var ie=0;
//******************************************
//City Outline
//******************************************
var _aCityOutline;

_aCityOutline=new GPolyline([new GLatLng(39.04398031941225,-94.68660514371766),new GLatLng(39.03043647546568,-94.6864451142696),new GLatLng(39.03027202617999,-94.67776232102192),new GLatLng(39.00771342758898,-94.67740479817407),new GLatLng(39.0075463137156,-94.68644042046718),new GLatLng(38.99302715162241,-94.68636472501446),new GLatLng(38.99296680971949,-94.70514203454808),new GLatLng(38.97107686347739,-94.70498973417814),new GLatLng(38.97112525692492,-94.72354565573086),new GLatLng(38.94200614599847,-94.72359523414572),new GLatLng(38.94205223861626,-94.74214535690896),new GLatLng(38.86894570632399,-94.74235609337592),new GLatLng(38.86917590693934,-94.72382509659342),new GLatLng(38.84004589210602,-94.72351938705715),new GLatLng(38.84009055867806,-94.74225584352389),new GLatLng(38.82561956720506,-94.74245410756558),new GLatLng(38.82541882955906,-94.68622160674779),new GLatLng(38.79639905244288,-94.68621545367516),new GLatLng(38.79628967920498,-94.6677045000441),new GLatLng(38.84001841579904,-94.66770259120885),new GLatLng(38.84007098206056,-94.6491082219588),new GLatLng(38.91285602248446,-94.64901515276038),new GLatLng(38.92744987322723,-94.64894073031132),new GLatLng(38.9274996294241,-94.63024994995733),new GLatLng(38.95684342040298,-94.63030436276281),new GLatLng(38.95673834393656,-94.64900286549835),new GLatLng(38.97854074264862,-94.64899622141971),new GLatLng(38.9785422595775,-94.65852466786831),new GLatLng(38.99300348355129,-94.65845019659584),new GLatLng(38.993056819457,-94.64899032441734),new GLatLng(39.0075958528458,-94.64905831410152),new GLatLng(39.00765269780281,-94.65830618335417),new GLatLng(39.01481022290249,-94.6584554786352),new GLatLng(39.01490622834704,-94.66773537964365),new GLatLng(39.04402913471093,-94.66779546783295),new GLatLng(39.04398031941225,-94.68660514371766)],"#ff0000",2,0.75);
function DrawCity()
{
	//try
	//{
		if(_aCityOutline)
		{
		//	for(var t=0;t<_aCityOutline.length;t++)
		//	{
				//_aCityOutline[t].display[true];
				map.addOverlay(_aCityOutline);
			//}
		}
	
	//}
	//catch(e)
	//{
		//keep going;
	//	var sErr=e.message;
		//alert(sErr);
	//}

}

//*******************************************

function SetMapDimensions()
{
	var winHt=0;
	var winWd=0;
	var myHt;
	var myWd;
	var htOffset=90;
	var wdOffset=117;


	try
	{
		if( typeof( window.innerWidth ) == 'number' )
		{
			//Non-IE
			winWd = window.innerWidth+5;
			winHt = window.innerHeight-20;
		} 
		else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
		{
			//IE 6+ in 'standards compliant mode'
			winWd = document.documentElement.clientWidth;
			winHt = document.documentElement.clientHeight;
		}
		else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
		{
			//IE 4 compatible
			winWd = document.body.clientWidth;
			winHt = document.body.clientHeight;
		}

	
		myHt=winHt-htOffset;
		myWd=winWd-wdOffset;
		
		
		if(myHt>0)
		{
			document.getElementById('map').style.height=(myHt - htOffset-55) + "px";
			document.getElementById('dvMapCont').style.height=(myHt - htOffset-55) + "px";
			if(document.getElementById('tblMap'))
			{
			    document.getElementById('tblMap').style.height=(myHt - htOffset-54) + "px"
			}
		}
		if(myWd>0)
		{
			document.getElementById('map').style.width=(myWd - wdOffset-10) + "px";
			document.getElementById('dvMapCont').style.width=(myWd - wdOffset-10) + "px";
		}
		document.getElementById('map').style.display='block';
		document.getElementById('dvMapCont').style.display='block';
		if(document.getElementById('divLoad'))
		{
			document.getElementById('divLoad').style.display='none';		
		}
		if(document.getElementById('divLegend'))
		{
			document.getElementById('divLegend').style.display='block';		
			document.getElementById('divLegend').style.width=(myWd - wdOffset-10) + "px";
		}
		if(document.getElementById('divNav'))
		{
			document.getElementById('divNav').style.display='block';
		}
		if(document.getElementById('tblMap'))
		{
		    document.getElementById('tblMap').style.display='';		
		}
		
	}
	catch(e)
	{
		var sErr=e.message;
	}
}

function SetMapDimensionsLinks()
{
	var winHt=0;
	var winWd=0;
	var myHt;
	var myWd;
	var htOffset=95;
	var wdOffset=117;
	//**************************************
	    //with no header and footer
	    //var htOffset=38;
	    //var wdOffset=0;
	//**************************************


	try
	{
	    
	    if(document.getElementById('map'))
	   {  
		    if( typeof( window.innerWidth ) == 'number' )
		    {
			    //Non-IE
			    winWd = window.innerWidth-5;
			    winHt = window.innerHeight-30;
		    } 
		    else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
		    {
			    //IE 6+ in 'standards compliant mode'
			    winWd = document.documentElement.clientWidth;
			    winHt = document.documentElement.clientHeight-20;
		    }
		    else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
		    {
			    //IE 4 compatible
			    winWd = document.body.clientWidth;
			    winHt = document.body.clientHeight-15;
		    }

    	
		    myHt=winHt-htOffset;
		    myWd=winWd-wdOffset;
    		
		    if(myWd>0)
		    {
			    document.getElementById('map').style.width=(myWd - wdOffset) + "px";
			   if(document.getElementById('lyrLegend'))
			   {
			        document.getElementById('lyrLegend').style.width=(myWd - wdOffset) + "px";
			   } 
		    }
		    if(myHt>0)
		    {
			    document.getElementById('map').style.height=(myHt - htOffset) + "px";
		    }
			if(document.getElementById('tblMap'))
			{
			    document.getElementById('tblMap').style.height=(myHt - htOffset) + "px"
			}
		    if(document.getElementById('divLoad'))
		    {
			    document.getElementById('divLoad').style.display='none';		
		    }
			if(document.getElementById('tblMap'))
			{
			    document.getElementById('tblMap').style.display='';		
			}
		    document.getElementById('map').style.display='block';
		}		
	}
	catch(e)
	{
		var sErr=e.message;
	}
}


