// NB's Page Filler Script
// Copyright © 2004 Nick Brown - NB Development
// Built for Fychan Webdesign

	var intBrowserHeight;
	var intFooterT;
	var intFooterH;
	var intPageH;
	function MSIEversion(){
		appVersion=""+navigator.appVersion
		IEStr="MSIE"
		space=1
		actualVersion=parseFloat(appVersion.substr(appVersion.indexOf(IEStr)+IEStr.length+space))
		actualVersion=(isNaN(actualVersion))?-1:actualVersion
		return actualVersion
	}
	function getStyle(strId,strStyle){
		var nodeDiv = document.getElementById(strId);
		divStyle=getFromStyleSheet(strId,strStyle)		
		/*if(window.getComputedStyle){
			divStyle = window.getComputedStyle(nodeDiv,null).getPropertyValue(strStyle);
		}else if(nodeDiv.currentStyle){
			divStyle= ""+eval('nodeDiv.currentStyle.' + strStyle);
		}else{

		}*/
		return (divStyle!="")?divStyle:"";
	}
	function getFromStyleSheet(strId,strStyle){
		for(var s=0;s<document.styleSheets.length;++s){
			objCssRules=(document.styleSheets[s].cssRules)?document.styleSheets[s].cssRules:document.styleSheets[s].rules
			for(var r=0;r<objCssRules.length;++r){/* MAC gets *#page and SAFARI gets *[ID"page"] */
				if(objCssRules[r].selectorText==("#"+strId) || objCssRules[r].selectorText==("*#"+strId) || objCssRules[r].selectorText==('*[ID"'+strId+'"]')){
					return eval('objCssRules[r].style.'+strStyle)
				}
			}
		}
		return "";
	}
	function SpecialContinueBottom(){
		if(self.innerWidth){//NON IE - Safari && MOZILLA
			intBrowserHeight=parseInt(self.innerHeight,10)
		}else if(document.documentElement.clientHeight){//IE 6+ in 'standards compliant mode'
			intBrowserHeight=parseInt(document.documentElement.clientHeight,10)						
		}else if(document.body.clientWidth){//IE 4
		document.getElementById("page").style.height=intBrowserHeight+"px"
		}
		if(typeof intFooterT!='number'){//ONLY GET THIS ONCE
			/*intHeaderH=parseInt(getStyle("header","height"))
			intWhereamiH=parseInt(getStyle("footer","height"))*/

		}
		document.getElementById("content").style.height=((intBrowserHeight-155))+"px"
		document.getElementById("page").style.height=intBrowserHeight+"px"
	}
	var intMSIE=(document.all)?MSIEversion():0;
	
onload=SpecialContinueBottom
onresize=SpecialContinueBottom