//Compensate for client browser height resolution
function ResolutionCompensation(ElementID, MinimumMinHeight, MinusFooterHeight){
	var WindowHeight=window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight;
		if(typeof MinimumMinHeight=='undefined'){MinimumMinHeight=200;}
	//Set this value to pull the content areas up above the footer
		if(typeof MinusFooterHeight=='undefined'){MinusFooterHeight=204;}
		if(WindowHeight>=MinimumMinHeight)
			{WindowHeight=WindowHeight-MinusFooterHeight+'px';
			document.getElementById(ElementID).style.height=WindowHeight;}}

//GET FULL HEIGHT OF PAGE INCLUDING SCROLL BARS
function Full_Y_Resolution()
	{if(window.innerHeight && window.scrollMaxY)
		{yWithScroll = window.innerHeight + window.scrollMaxY;}// Firefox
	else if(document.body.scrollHeight > document.body.offsetHeight)
		{yWithScroll = document.body.scrollHeight;}// all but Explorer Mac
	else
		{yWithScroll = document.body.offsetHeight;}// works in Explorer 6 Strict, Mozilla (not FF) and Safari
	return yWithScroll;}

//GET FULL WIDTH OF PAGE INCLUDING SCROLL BARS
function Full_X_Resolution()
	{if(window.innerHeight && window.scrollMaxY)
		{xWithScroll = window.innerWidth + window.scrollMaxX;}// Firefox
	else if(document.body.scrollHeight > document.body.offsetHeight)
		{xWithScroll = document.body.scrollWidth;}// all but Explorer Mac
	else
		{xWithScroll = document.body.offsetWidth;}// works in Explorer 6 Strict, Mozilla (not FF) and Safari
	return xWithScroll;}

//Preloader
function Preload(PreloadLayer)
	{document.getElementById(PreloadLayer).style.height=Full_Y_Resolution() + 'px';
	if(document.getElementById){document.getElementById(PreloadLayer).style.display='none';}// DOM3 = IE5, NS6
	else{if(document.layers){document.getElementById(PreloadLayer).style.display='none';}// Netscape 4
	else{document.getElementById(PreloadLayer).style.display='none';}}}// IE 4

