<!--
fls = document.getElementsByTagName("object");
for (var a = 0; a < fls.length; a++){fls[a].outerHTML = fls[a].outerHTML;}


function checkMenu(strAddress){

	var objString = new String(strAddress)
	
	if (objString.indexOf("/tiredness.htm") >0){
		var myStyle = document.getElementById('primary-nav-about').style;
 		 myStyle.backgroundColor='#2F3192';
		 myStyle.color='#fff';
		var myStyle = document.getElementById('headerImage').style;
		 myStyle.backgroundImage='url(images/header/about.jpg)';
		 myStyle.backgroundPosition='0px 0px';
		 myStyle.backgroundRepeat='no-repeat';

	} else if (objString.indexOf("/checkFlash.htm") >0){
		var myStyle = document.getElementById('primary-nav-challenge').style;
 		 myStyle.backgroundColor='#2F3192';
		 myStyle.color='#fff';
		 
	} else if (objString.indexOf("/Pro-Plus-challenge.htm") >0){
		var myStyle = document.getElementById('primary-nav-challenge').style;
 		 myStyle.backgroundColor='#2F3192';
		 myStyle.color='#fff';
	
	//-- challenge submenu --//
	
	} else if (objString.indexOf("/high-scores.php") >0){
		var myStyle = document.getElementById('primary-nav-challenge').style;
 		 myStyle.backgroundColor='#2F3192';
		 myStyle.color='#fff';
		var myStyle = document.getElementById('menu1').style;
 		 myStyle.backgroundColor='#2F3192';
		 myStyle.color='#fff';
		 myStyle.backgroundImage='url(../images/sub_arrow_norm.gif)';
		 myStyle.backgroundPosition='0px 0px';
		 myStyle.backgroundRepeat='no-repeat';
		 
	} else if (objString.indexOf("/tell-a-friend.htm") >0){
		var myStyle = document.getElementById('primary-nav-challenge').style;
 		 myStyle.backgroundColor='#2F3192';
		 myStyle.color='#fff';
		var myStyle = document.getElementById('menu2').style;
 		 myStyle.backgroundColor='#2F3192';
		 myStyle.color='#fff';
		 myStyle.backgroundImage='url(../images/sub_arrow_norm.gif)';
		 myStyle.backgroundPosition='0px 0px';
		 myStyle.backgroundRepeat='no-repeat';
		 
	} else if (objString.indexOf("/taf-submit.php") >0){
		var myStyle = document.getElementById('primary-nav-challenge').style;
 		 myStyle.backgroundColor='#2F3192';
		 myStyle.color='#fff';
		var myStyle = document.getElementById('menu2').style;
 		 myStyle.backgroundColor='#2F3192';
		 myStyle.color='#fff';
		 myStyle.backgroundImage='url(../images/sub_arrow_norm.gif)';
		 myStyle.backgroundPosition='0px 0px';
		 myStyle.backgroundRepeat='no-repeat';
		 
	} else if (objString.indexOf("/winners.htm") >0){
		var myStyle = document.getElementById('primary-nav-challenge').style;
 		 myStyle.backgroundColor='#2F3192';
		 myStyle.color='#fff';
		var myStyle = document.getElementById('menu3').style;
 		 myStyle.backgroundColor='#2F3192';
		 myStyle.color='#fff';
		 myStyle.backgroundImage='url(../images/sub_arrow_norm.gif)';
		 myStyle.backgroundPosition='0px 0px';
		 myStyle.backgroundRepeat='no-repeat';
	
	//-- challenge submenu end --//
	
	} else if (objString.indexOf("/tired_exhaustion.htm") >0){
		var myStyle = document.getElementById('primary-nav-students').style;
 		 myStyle.backgroundColor='#2F3192';
		 myStyle.color='#fff';
		var myStyle = document.getElementById('headerImage').style;
		 myStyle.backgroundImage='url(images/header/student.jpg)';
		 myStyle.backgroundPosition='0px 0px';
		 myStyle.backgroundRepeat='no-repeat';
		 
	} else if (objString.indexOf("/sleepy_and_knackered.htm") >0){
		var myStyle = document.getElementById('primary-nav-facts').style;
 		 myStyle.backgroundColor='#2F3192';
		 myStyle.color='#fff';
		var myStyle = document.getElementById('headerImage').style;
		 myStyle.backgroundImage='url(images/header/standard.jpg)';
		 myStyle.backgroundPosition='0px 0px';
		 myStyle.backgroundRepeat='no-repeat';
		 
	} else if (objString.indexOf("/downloads.htm") >0){
		var myStyle = document.getElementById('primary-nav-downloads').style;
 		 myStyle.backgroundColor='#2F3192';
		 myStyle.color='#fff';
		var myStyle = document.getElementById('headerImage').style;
		 myStyle.backgroundImage='url(images/header/download.jpg)';
		 myStyle.backgroundPosition='0px 0px';
		 myStyle.backgroundRepeat='no-repeat';
		 
	}
}

checkMenu(window.location);

//-->