/*
function setFooter(){
	var innerHeight=getInWinSize()
	//document.body.offsetHeight + '\n' + document.getElementById('root').offsetHeight;
	document.getElementById('footer').style.bottom='0px';	
//	document.getElementById('footer').style.top=''+(innerHeight-document.getElementById('footer').offsetHeight)+'px';
}

function scrollFooter(){
	document.getElementById('footer').style.top=getInWinSize();
	window.status='avHeight='+ getInWinSize() + '; scrollTop=' + document.pageYOffset;
}
function setFooter1(){
	document.getElementById('footer').style.bottom='0px';
	runTimer();
}

function runTimer(){
	self.setTimeout('setFooter1()',1000);
}

window.onload=setFooter;
window.onresize=setFooter;
window.onscroll=scrollFooter;

function getInWinSize(){
	var x,y
	if (self.innerHeight){ // all except Explorer
		y = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight) {// Explorer 6 Strict Mode
		y = document.documentElement.clientHeight;
	}
	else if (document.body){ // other Explorers
		y = document.body.clientHeight;
	}
	return y;
}


		function getWindowHeight() {
			var windowHeight = 0;
			if (typeof(window.innerHeight) == 'number') {
				windowHeight = window.innerHeight;
			}
			else {
				if (document.documentElement && document.documentElement.clientHeight) {
					windowHeight = document.documentElement.clientHeight;
				}
				else {
					if (document.body && document.body.clientHeight) {
						windowHeight = document.body.clientHeight;
					}
				}
			}
			return windowHeight;
		}
*/		
