function getWinH(){
	var winH=0;
	if(typeof(window.innerHeight)=='number'){
		winH=window.innerHeight;
	}else{
		if(document.documentElement && document.documentElement.clientHeight){
			winH=document.documentElement.clientHeight;
		}else{
			if(document.body && document.body.clientHeight) winH=document.body.clientHeight;
		}
	}
	return winH;
}
function positionFooter(){
	if(document.getElementById){
			var winH=getWinH();
			if(winH>0){
				var elmGitter=document.getElementById('gitter');
				var intWinH=getWinH();
				elmGitter.style.position="absolute";
				var yPosition=winH-285;
				if(winH>771){
				elmGitter.style.top=yPosition+"px";
				} else {
					elmGitter.style.top="486px";
				}

			}
	}
}
window.onload=function(){
	positionFooter();
}
window.onresize=function(){
	positionFooter();
}






