// JavaScript Document



	// show / hide module function
function shoh(id) { 
	if (document.getElementById) { // DOM3 = IE5, NS6
		if (document.getElementById(id).style.display == "none"){
			document.getElementById(id).style.display = 'block';
			
		} else {
			
			document.getElementById(id).style.display = 'none';			
		}	
	} else { 
		if (document.layers) {	
			if (document.id.display == "none"){
				document.id.display = 'block';
				
			} else {
				
				document.id.display = 'none';
			}
		} else {
			if (document.all.id.style.visibility == "none"){
				document.all.id.style.display = 'block';
			} else {
				
				document.all.id.style.display = 'none';
			}
		}
	}
}


//here you place the ids of every element you want.
var ids=new Array('hidden_navi0','hidden_navi1','hidden_navi2','hidden_navi3','hidden_navi4','hidden_navi5','hidden_navi6');

function switchid(id){	
if (aValue=="on") {
	hideallids();
	showdiv(id);
}
}

function hideallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids.length;i++){
		hidediv(ids[i]);
	}		  
}

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}


var newWindow = null;
function openWindow(contentURL, windowName, windowWidth, windowHeight) {
	 
	   widthHeight = 'width=' + windowWidth +',' + 'height=' + windowHeight + ',scrollbars=auto';
	   newWindow = window.open(contentURL, windowName, widthHeight);
	   newWindow.focus();
}








// JavaScript Document
function Dswitchid(Did){ 


		 Dhideallids();
		 Dshowdiv(Did);

		}
		
		
		function Dhideallids(){
		 //loop through the array and hide each element by id
		 for (var i=0;i<Dids.length;i++){
		  Dhidediv(Dids[i]);
		 }    
		}
		
		function Dhidediv(Did) {
		 //safe function to hide an element with a specified id
		 if (document.getElementById) { // DOM3 = IE5, NS6
		  document.getElementById(Did).style.display = 'none';
		 }
		 else {
		  if (document.layers) { // Netscape 4
		   document.Did.display = 'none';
		  }
		  else { // IE 4
		   document.all.Did.style.display = 'none';
		  }
		 }
		}
		
		function Dshowdiv(Did) {
		 //safe function to show an element with a specified id
			
		 if (document.getElementById) { // DOM3 = IE5, NS6
		  document.getElementById(Did).style.display = 'block';
		 }
		 else {
		  if (document.layers) { // Netscape 4
		   document.Did.display = 'block';
		  }
		  else { // IE 4
		   document.all.Did.style.display = 'block';
		  }
		 }
		
	}



/*terms*/
var newWindow = null;
function openWindow01(contentURL, windowName, windowWidth, windowHeight) {
	 
	   widthHeight = 'width=' + windowWidth +',' + 'height=' + windowHeight + ',scrollbars=yes';
	   newWindow = window.open(contentURL, windowName, widthHeight);
	   newWindow.focus();
}




/* setting navi over timing */

var aValue="off";

function timedOut()
{var t=setTimeout("setValues()",1000)}

function setValues()
{aValue = "on";}

function testMessage()
{alert(aValue);}

timedOut();







