var timer=0;

function reloadPageStart()
{
 timer=window.setTimeout("reloadPage()",500);
}


function reloadPage()
{ 
window.clearTimeout(timer);
window.location.href="/demo/index.html";

}





		function setFlashHeight(){
			var winHeight = 0;
			if( typeof( window.innerWidth ) == 'number' ) {
				winHeight = window.innerHeight;
			} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
				winHeight = document.documentElement.clientHeight;
			} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
				winHeight = document.body.clientHeight;
			}
			if(winHeight > 770) {			
				//document.getElementById("flashwrapper").style.height = "100%";
				//document.getElementById("flashdiv").style.height = "100%";		
				document.getElementById("contentflash").height = "100%";
			} else {
				//document.getElementById("flashwrapper").style.height = "770px";
				//document.getElementById("flashdiv").style.height = "770px";		
				document.getElementById("contentflash").height = "770px";
			}
		}
		
	





function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}


function swapImage(id) {
document.getElementById('navinactive'+id).style.backgroundImage="url(/cms/site/img/nav-active.png)";
}

function swapImageBack(id) {
document.getElementById('navinactive'+id).style.backgroundImage="url(/cms/site/img/nav-inactive.png)";
}

function getUrl(url)
{
 document.location.href=url;
}