// JavaScript Document
$(document).ready(function() 
{
  adjustDivContainerPosition();
});

var browser;
var windowHeight;



function adjustDivContainerPosition()
{
    browser = navigator.appName;
	
	
    if(browser=="Microsoft Internet Explorer")
    {windowHeight = (document.documentElement.clientHeight);}	
    else															
    {windowHeight = (window.innerHeight);}						
	
    if(windowHeight<680)
	{
	    document.getElementById("divContainer").style.top = "340px";
	}
	else
	{document.getElementById("divContainer").style.top = "50%";}
	
	setTimeout("adjustDivContainerPosition()",250);
}