function InfoLayer(id, name, projectURL){
	this.id = id;
	this.name = name;
	this.p_id = '';
	this.projectURL = projectURL;
}

InfoLayer.prototype.show = function(e, content, p_id){
	if(e) Event.stop(e);
	if(!$(this.id)){
		var d = document.createElement('div');
		d.setAttribute('id', this.id);
		d.className = 'info_layer';
		d.innerHTML = '<div class="info_layer_close"><a href="javascript:' + this.name + '.hide()"><img src="' + '/images/icon_close.gif" alt="Close" width="12" height="12" border="0"></a></div><div id="' + this.id + '_c" class="info_layer_text"></div>';
		document.body.appendChild(d);
	}
	$(this.id + '_c').innerHTML = content;
	$(this.id).show();
	if(p_id){
		this.p_id = p_id;
		Position.clone($(p_id), $(this.id), {setWidth: false, setHeight: false});
	}
}

InfoLayer.prototype.hide = function(){
	$(this.id).hide();
}
