// JavaScript Document
window.onresize= resizeColumn;

function setTimers() {
	/*
		The current version of safari reports incorrect page heights during the onload event.
		Because of that the timers are set to double check the function.
		This should be tested without the timer on future Safari releases.
	*/
	
	var detect = navigator.vendor;
	if (detect == 'Apple Computer, Inc.'){
		var safariBrowser = true;
	} else {
		var safariBrowser = false;
	}
	
	
	if (safariBrowser == false){
		resizeColumn();
	}
	
	
	setTimeout("resizeColumn()", 500);
	setTimeout("resizeColumn()", 3200);
	setTimeout("resizeColumn()", 2200);
	setTimeout("resizeColumn()", 3200);

}



function resizeColumn(){
	
	if (window.innerHeight) {
		windowHeight = window.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight) {
		windowHeight = document.documentElement.clientHeight;
	}
	else if (document.body) {
		windowHeight = document.body.clientHeight;
	}
	
	// grab height from wrapper div for comparison
	mainHeight = document.getElementById("wrap").offsetHeight;
	HowHigh = mainHeight + "px"; //get the height of the wrap div..
	
	if (windowHeight > mainHeight){
		HowHigh = windowHeight + "px"; //if the window height is bigger, set HowHigh to the goal height, and make things right
		document.getElementById("main").style.height = HowHigh;
	    document.getElementById("footer").style.position = "absolute";
		document.getElementById("footer").style.width = "775px";
		document.getElementById("footer").style.bottom = "0px";
		document.getElementById("edgeL").style.height = HowHigh;
		document.getElementById("edgeR").style.height = HowHigh;
	}
		
	document.getElementById("edgeL").style.height = HowHigh; //set the dropshadows to the height of the div, adjusted or not
	document.getElementById("edgeR").style.height = HowHigh;
	
}

function checkIt()
{
	
	
	return place;
}