function map_raise( type ) 
{
	layer = document.getElementById( "layer_" + type );

}
function map_open( type ) 
{
	if( !googlemap_loaded ) return;

	layer = document.getElementById( "layer_" + type );
     
	if( layer.style.visibility != "visible" ) {

		pt = Math.max( 0, Math.round( document.body.clientHeight/2 ) + document.body.scrollTop - 250 );
		pl = Math.round( document.body.clientWidth/2 ) + document.body.scrollLeft - 250;

		layer.style.top = pt + "px";
		layer.style.left = pl + "px";
		
		layer.style.backgroundColor = "#999999";
		layer.style.visibility = "visible";
		layer.style.display = "block";
	
		map_raise( type );
	} else {
		map_raise( type );
	}
}

function map_close( type )
{
	base = document.getElementById( "layer_" + type );

	if( base.style.visibility != "hidden" ) {
		base.style.visibility = "hidden";
	}
}
