<!--
isNS4 = (document.layers) ? true : false;
isIE4 = (document.all && !document.getElementById) ? true : false;
isIE5 = (document.all && document.getElementById) ? true : false;
isNS6 = (!document.all && document.getElementById) ? true : false;

function switchDivMiddle(strDivName,bolVisible){

	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) 
		{
		myWidth = window.innerWidth; myHeight = window.innerHeight;
		} 
	else if( document.documentElement && ( document.documentElement.clientWidth ||document.documentElement.clientHeight ) ) 
		{
		myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight;
		}
	else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
		{
		myWidth = document.body.clientWidth; myHeight = document.body.clientHeight;
		}
	
	//calculate position of button vs screen size and scrolling position
	var scrOfX = 0, scrOfY = 0;
	
	if( typeof( window.pageYOffset ) == 'number' ) {
	  //Netscape compliant
	  scrOfY = window.pageYOffset;
	  scrOfX = window.pageXOffset;
	} else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
	  //DOM compliant
	  scrOfY = document.body.scrollTop;
	  scrOfX = document.body.scrollLeft;
	} else if( document.documentElement &&
	    ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
	  //IE6 standards compliant mode
	  scrOfY = document.documentElement.scrollTop;
	  scrOfX = document.documentElement.scrollLeft;
	}

	//identify the element based on browser type
	if (isNS4) {
	  objElement = document.layers[strDivName];
	} else if (isIE4) {
	  objElement = document.all[strDivName];
	} else if (isIE5 || isNS6) {
	  objElement = document.getElementById(strDivName);
	}
	
	 if(isNS4){
		objElement.left = scrOfX+(myWidth-200)/2 ;
		objElement.top =  1+(myHeight-50)/2 ;
		if(!bolVisible) {
	      objElement.visibility ="hidden"
	    } else {
	      objElement.visibility ="visible"
	    }     
	 }else{
		objElement.style.left = scrOfX+(myWidth-200)/2 ;
		objElement.style.top =  1+(myHeight-50)/2 ;
	    if(!bolVisible) {
	      objElement.style.visibility = "hidden";
	    } else {
	      objElement.style.visibility = "visible";
	    }
	}
}

function switchDivDisplay(strDivName,bolVisible){

	//identify the element based on browser type
	if (isNS4) {
	  objElement = document.layers[strDivName];
	} else if (isIE4) {
	  objElement = document.all[strDivName];
	} else if (isIE5 || isNS6) {
	  objElement = document.getElementById(strDivName);
	}
	
	 if(isNS4){
		if(!bolVisible) {
	      objElement.display ="none"
	    } else {
	      objElement.display ="block"
	    }     
	 }else{
	    if(!bolVisible) {
	      objElement.style.display = "none";
	    } else {
	      objElement.style.display = "block";
	    }
	}
}
//-->
