// JavaScript Document
function adjustLayout(){
	var hFooter = document.getElementById("footer");
	
	
	if (window.innerHeight && window.scrollMaxY) {// Firefox
		yWithScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		yWithScroll = document.body.scrollHeight;
	} else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		yWithScroll = document.body.offsetHeight;
  	}
	
	hFooter.style.top = yWithScroll + 'px';

}

function fadeOut(opac2) {

		if(opac2 > 0){
			opac = 0;
			opac2-=1;
			if(ie5) document.getElementById('fade').filters.alpha.opacity = opac2;
			if(ns6) document.getElementById('fade').style.MozOpacity = opac2/10;
			setTimeout('fadeOut()', 0);
		}

		if(opac2 == 0){
			document.getElementById('fade').style.visibility = 'hidden';
		}
	}

function adjustHeight(){

	var scnHei;
	var fade = document.getElementById("fade");
	var yWithScroll;
	
	if (window.innerHeight && window.scrollMaxY){
		scnHei = window.innerHeight + window.scrollMaxY;
		
	}else if (document.documentElement && document.documentElement.clientHeight){
		//IE
		scnHei = document.getElementById('holder').clientHeight;
	}
	
	fade.style.height = scnHei + 'px';
	
	//alert(fade.style.height);
}

function reloadOnSize(){
		window.location.reload();
}

// JavaScript Document
function fadeOut() {
		var opac2;
		//document.write(opac2);
		if(opac2 > 0){
			opac = 0;
			opac2-=1;
			if(ie5) document.getElementById('fade').filters.alpha.opacity = opac2;
			if(ns6) document.getElementById('fade').style.MozOpacity = opac2/10;
			setTimeout('fadeOut()', 0);
		}

		if(opac2 == 0){
			document.getElementById('fade').style.visibility = 'hidden';
		}
	}
	

