	document.write("<div name='pocono_map_layer' id='pocono_map_layer'  style='z-index:5;position:absolute;visibility:hidden;background-color:#FFFFFF'>");
	document.write("<TABLE bordercolor='#000000' cellpadding='1' cellspacing='1' border='1' style='border-collapse: collapse;'><TR><TD>")
	document.write("<TABLE border='0' cellspacing='0 cellpadding='0' >");
	document.write("	<TR>");
	document.write("		<TD bgcolor='#008000'>");
	document.write("<font size='2' face='Arial' color='#FFFF00'><b>Poconos Interactive Map!</b></font>");
	document.write("		</TD>");
	document.write("		<TD bgcolor='#008000'>");
	document.write("			");
	document.write("		</TD>");
	document.write("		<TD valign='middle' align='right' bgcolor='#008000'>");
	document.write("			<img alt='Close Map Window' src='http://www.poconoevents.com/map/close.gif' onclick =\"javascript:close_map_window();\"></img>");
	document.write("		</TD>");
	document.write("	</TR>");
	document.write("	<TR>");
	document.write("		<TD colspan='3'>");
	document.write("			<iframe name='pocono_map' id='pocono_map' BORDER='0' FRAMEBORDER='0' ALIGN='middle' SCROLLING='no'  src='about:blank' style='height:400px;width:675px;background-color:#ffffff'></iframe>");
	document.write("		</TD>");
	document.write("	</TR>");
//	document.write("	<TR>");
//	document.write("		<TD colspan='3'>");
//	document.write("		&nbsp;");
//	document.write("		</TD>");
//	document.write("	</TR>");
	document.write("</TABLE>");
//	document.write("&nbsp;");
	document.write("</TD></TR></TABLE>");

	document.write("</div>");

	document.write("<iframe  name='muse' id='muse' src='about:blank' MARGINWIDTH='0' MARGINHEIGHT='0'  frameborder='0' scrolling='no' style='z-index:3;position:absolute;width:675;height:400px;visibility:hidden;top:0;left:0;'>");
	document.write("</iframe>");


	function center_map_layer()
	{
  		var myWidth = 0, myHeight = 0;

  		if( typeof( window.innerWidth ) == 'number' )
		{
    			//Non-IE
    			myWidth = window.innerWidth;
    			myHeight = window.innerHeight;
  		}
		else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
		{
    			//IE 6+ in 'standards compliant mode'
    			myWidth = document.documentElement.clientWidth;
    			myHeight = document.documentElement.clientHeight;
  		} 
		else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
		{
    			//IE 4 compatible
    			myWidth = document.body.clientWidth;
    			myHeight = document.body.clientHeight;

  		}
		obj		= document.getElementById('pocono_map_layer');
		obj1		= document.getElementById('muse');
		otop	= ((myHeight/2) + (window.pageYOffset ? window.pageYOffset : document.body.scrollTop)) - 200;
		oleft	= ((myWidth/2)  + (window.pageXOffset ? window.pageXOffset : document.body.scrollLeft)) - 337;	
		obj.style.left = oleft;
		obj.style.top = otop;		
		//obj1.style.left = oleft - 25;
		obj1.style.left = oleft;
		obj1.style.top	= otop;
	}	
	function open_map_window()
	{

		if(document.getElementById('pocono_map').src != 'about:blank' && document.getElementById('pocono_map_layer').style.visibility == 'visible')
		{
			close_map_window();
			return;
		}
		center_map_layer();
		if(document.getElementById('pocono_map').src != 'http://www.poconoevents.com/map/interactive_map.php')
		{
			
			document.getElementById('pocono_map').src ='http://www.poconoevents.com/map/interactive_map.php';
			//document.forms[0].elements['categories'].selectedIndex = 1;
		}
		document.getElementById('pocono_map_layer').style.visibility = 'visible';
		document.getElementById('muse').style.visibility = 'visible';
	}

	function close_map_window()
	{
		document.getElementById('muse').style.visibility = 'hidden';	
		document.getElementById('pocono_map_layer').style.visibility = 'hidden';
	}

