/*Manage Content Scroll*/
var windowHeight=0;
function getWindowHeight(){

	if (typeof(window.innerHeight)=='number') {
		windowHeight=window.innerHeight;
		document.getElementById('mainContainerLift').style.height=windowHeight+"px";
		document.getElementById('opacDiv').style.height=windowHeight+"px";
		document.getElementById('mainContainerLift').style.overflow='hidden';
	}
	else {
		if (document.documentElement && document.documentElement.clientHeight && parseInt(document.documentElement.clientHeight) !=0 ) {
			windowHeight = document.documentElement.clientHeight;
			document.getElementById('mainContainer').style.height=windowHeight+"px";
			document.getElementById('opacDiv').style.height=windowHeight+"px";
			document.getElementById('mainContainer').style.overflow='hidden';
		}
		else {
			if (document.body&&document.body.clientHeight){
				windowHeight=document.body.clientHeight;
				document.getElementById('mainContainer').style.height=windowHeight+"px";
				document.getElementById('opacDiv').style.height=windowHeight+"px";
				document.getElementById('mainContainer').style.overflow='hidden';
			}
		}
	}
		return windowHeight;
}


/* Show dispatch */

function hideDispatch(){
	for(i=0; i<4; i++){
		eval("document.getElementById('dispatch"+i+"').className='displayNone'");
		
	}
}

function showdispatch0(){
	hideDispatch();
	document.getElementById('dispatch0').className='displayBlock';
}

function showdispatch1(){
	hideDispatch();
	document.getElementById('dispatch1').className='displayBlock';
}

function showdispatch2(){
	hideDispatch();
	document.getElementById('dispatch2').className='displayBlock';
}

function showdispatch3(){
	hideDispatch();
	document.getElementById('dispatch3').className='displayBlock';
}



addLoadListener(showdispatch0);
addLoadListener(getWindowHeight);

