//script for html text delay
var browserType;
if (document.layers) {browserType = "nn4"}
if (document.all) {browserType = "ie"}
if (document.getElementById) {browserType= "ff"}

function showFootnote(){
 if (browserType == "ff" ){
     document.getElementById('footnote').style.visibility = "visible";	
  }else if (browserType == "ie"){
     document.all['footnote'].style.visibility = "visible";
  }else{
     document.layers['footnote'].style.visibility = "visible";
  }
}

function showSiteMap() {
	if (browserType == "ff" ){
		document.getElementById('headerimage').style.visibility = "visible";
		//document.getElementById('map1').style.visibility = "visible";
		//document.getElementById('map2').style.visibility = "visible";
		//document.getElementById('mapbg1').style.backgroundColor="#F4F4F4";
		//document.getElementById('footnote').style.visibility = "visible";
	}else if (browserType == "ie"){
		document.all['headerimage'].style.visibility = "visible";
		//document.all['map1'].style.visibility = "visible";
		//document.all['map2'].style.visibility = "visible";
		//document.all['mapbg1'].style.backgroundColor="#F4F4F4";
		//document.all['footnote'].style.visibility = "visible";
	}else{
		document.layers['headerimage'].style.visibility = "visible";
		//document.layers['map1'].style.visibility = "visible";
		//document.layers['map2'].style.visibility = "visible";
		//document.layers['mapbg1'].style.backgroundColor="#F4F4F4";
		//document.layers['footnote'].style.visibility = "visible";
	}
}

function showDetails() {
	if (browserType == "ff" ){
		x = document.getElementById('challenge');
		y = document.getElementById('solution');
		z = document.getElementById('footnote');
	}else if (browserType == "ie"){
		x = document.all['challenge'];
		y = document.all['solution'];
		z = document.all['footnote'];
	}else{
		x = document.layers['challenge'];
		y = document.layers['solution'];
		z = document.layers['footnote'];
	}
	if (x && y && z){
		x.style.visibility = "visible";
		y.style.visibility = "visible";
		z.style.visibility = "visible";
	}
}

function showDetails2() {
	if (browserType == "ff" ){
		x = document.getElementById('challenge2');
		y = document.getElementById('solution2');
		z = document.getElementById('footnote');
	}else if (browserType == "ie"){
		x = document.all['challenge2'];
		y = document.all['solution2'];
		z = document.all['footnote'];
	}else{
		x = document.layers['challenge2'];
		y = document.layers['solution2'];
		z = document.layers['footnote'];
	}
	if (x && y && z){
		x.style.visibility = "visible";
		y.style.visibility = "visible";
		z.style.visibility = "visible";
	}
}


//script for popup window
function open_window(url) {
	self.name = "main";
	newwin = window.open("",'banner','width=600,height=300,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
	newwin.location.href = url;
	if (newwin.opener == null){
		newwin.opener = window;
		newwin.opener.name = "main";
	}
	if (newwin.open){
		newwin.focus();
	}
 }

