﻿
function fixPos() {
	var thisTime = getWinHeight();
	myDiv=document.getElementById('content_container');
	if (thisTime < 850) {
		myDiv.style.top = "425px";
	} else {
		myDiv.style.top = "50%";
	}
}

function getWinHeight() {	
	var myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		myHeight = document.body.clientHeight;
	}
	return (myHeight);		
}