var isIE = document.all ? true : false;
function turnOn() {
	var topline = document.getElementById("topLine");
	if(topline!=null) { 
		topline.style.display="none"
	}
	var bottomline = document.getElementById("bottomLine");
	if(bottomline!=null) { 
		bottomline.style.display="block"
	}
	menuShow("topnav",5);
}

function turnOff() {
	var topline = document.getElementById("topLine");
	if(topline!=null) { 
		topline.style.display="block"
	}
	var bottomline = document.getElementById("bottomLine");
	if(bottomline!=null) { 
		bottomline.style.display="none"
	}
	menuHide("topnav",5);
	
}
function rihgtMenuOn(){
	menuShow("navRight",3);
}
function rihgtMenuOff(){
	menuHide("navRight",3);
}
function menuShow(lnk_id,msize) { 
	for(i=1;i<=msize;i++){
		restDiv = document.getElementById(lnk_id+i); 
		if(restDiv!=null) { 
			restDiv.style.display="block"; 
			if(isIE){
				restDiv.style.marginLeft="7px"
			}
		} 
	}
} 

function menuHide(lnk_id,msize) { 
	for(i=1;i<=msize;i++){
		restDiv = document.getElementById(lnk_id+i); 
		if(restDiv!=null) { 
			restDiv.style.display="none"; 
		} 
	}
}
function doLinkRowMouseOver(xrow) {
	xrow.style.backgroundColor = '#EEEEEE';
}

function doLinkRowMouseOut(xrow) {
	xrow.style.backgroundColor = '';
}

function doRightMenuMouseOver(xrow) {
	xrow.style.backgroundColor = '#EEEEEE';
}

function doRightMenuMouseOut(xrow) {
	xrow.style.backgroundColor = '';
}

function doLinkMouseOver(xrow) {
	xrow.style.cursor= 'pointer';
}

function doLinkMouseOut(xrow) {
	xrow.style.cursor= '';
}
function setDivPosition(){
	var navigationDiv = document.getElementById("navigationDiv");
	if(navigationDiv!=null) {
		//navigationDiv.style.left=leftSpace+"px";
		navigationDiv.style.top="0px";
	}
	var contentDiv = document.getElementById("contentDiv");
	if(contentDiv!=null) { 
		//contentDiv.style.left=leftSpace+"px";
		contentDiv.style.top="67px";
	}
	var footerDiv = document.getElementById("footerDiv");
	if(footerDiv!=null) { 
		//footerDiv.style.left=leftSpace+"px";
		footerDiv.style.top="590px";
	}
	if(isIE){
		/*var plainArea = document.getElementById("plainArea");
		if(plainArea!=null) { 
			plainArea.style.width="95%";
		}*/
		var rnav = document.getElementById("rnav");
		if(rnav!=null) { 
			rnav.style.marginLeft="0px"
			rnav.style.paddingLeft="12px"
		}
		
		for(i=1;i<=2;i++){
			linkDiv = document.getElementById("link"+i); 
			if(linkDiv!=null) { 
				linkDiv.style.marginLeft="0px"
			} 
		}
	}
}