

function filler(){
	var windowheight = window.innerHeight || document.documentElement.clientHeight || document.body.offsetHeight;
	var designheight = 789; 
	var mainheight = document.getElementById("mainarea").offsetHeight;
	var minmainheight = designheight - 280; //223px top+menubar original 276
	
	//make sure mainheight matches minmainheight
	if(mainheight <= minmainheight)
	{
		document.getElementById("mainarea").style.height = minmainheight + "px";
		
		document.getElementById("dropright").style.height = 272 + document.getElementById("mainarea").offsetHeight + document.getElementById("footer").offsetHeight + "px";
		document.getElementById("dropleft").style.height = 272 + document.getElementById("mainarea").offsetHeight + document.getElementById("footer").offsetHeight + "px";
		
	}
	else//mainheight is bigger, things need to be moved
	{
		var heightchange = mainheight - minmainheight;
		document.getElementById("fillerspace").style.height = heightchange + "px";
		
		document.getElementById("footer").style.top = (designheight + heightchange) + "px";
		
		document.getElementById("dropright").style.height = 276 + document.getElementById("mainarea").offsetHeight + document.getElementById("footer").offsetHeight + "px";
		document.getElementById("dropleft").style.height = 276 + document.getElementById("mainarea").offsetHeight + document.getElementById("footer").offsetHeight + "px";
	}
	
	if(windowheight > 628)//need to lengthen things to reach the bottom of the screen
	{
		var windowdifference = windowheight - 628;
		//document.getElementById("mainarea").style.height = (document.getElementById("mainarea").offsetHeight + windowdifference) + "px";
		//document.getElementById("mainareabg").style.height = (document.getElementById("mainareabg").offsetHeight + windowdifference) + "px";
		//document.getElementById("dropright").style.height = (document.getElementById("dropright").offsetHeight + windowdifference) + "px";
		//document.getElementById("fillerspace").style.height = windowdifference + "px";
		//document.getElementById("footer").style.top = (windowheight - 59) + "px";
	}
	
	
	initialize();
}

function initialize() {
var map = new GMap2(document.getElementById("map_canvas"));

var customUI = map.getDefaultUI();
customUI.controls.maptypecontrol = false;
map.setUI(customUI);
var point = new GLatLng(46.541486, -87.393319);
map.setCenter(point, 13);


map.addOverlay(new GMarker(point));
map.openInfoWindowHtml(point, "UP Builder's Association<br>307 S. Front St. Suite 102<br>Marquette, MI 49855");

}