
/*
	This code is used to change the display properties of the links and navigation items
*/

//******* Set some Globals **************
// var anthing;
/******* Functions **************/
function test(str){alert(str);}

function hasClass(obj) {
     var result = false;
     if (obj.getAttributeNode("class") != null) {
         result = obj.getAttributeNode("class").value;
     }
     return result;
  }  

//********************************************************************** 
function leftNavLink(obj){
	obj.style.color = 'white';
	obj.style.backgroundColor = "#FFFFFF";
}

function leftNavHover(obj){
	//alert('hover');
	obj.style.color = 'black';
	obj.style.backgroundColor = "#A9B5CB";
}
 //************************************************************************
 //	Top nav 
  //************************************************************************
function topNavLink(obj){
	//alert('topNavLink');
	obj.style.color = '#FFFFFF';
	obj.style.backgroundColor = "#99CC33";
}

function topNavHover(obj){
	//alert('topNavHover');
	obj.style.color = '#000000';
	obj.style.backgroundColor = "#99CC33";
}

function topNavLink2(obj){
	//alert('topNavLink2');
	obj.style.color = 'white';
	obj.style.backgroundColor = "#336633";
}

function topNavHover2(obj){
	//alert('topNavHover2');
	obj.style.color = 'black';
	obj.style.backgroundColor = "#99CC33";
}

function topNavLink3(obj){
	//alert('topNavLink3');
	obj.style.color = '#0000FF';
	obj.style.backgroundColor = "#99CC33";
}

//*******************************
//HOVER 0066CC
//LINK 99CCFF

function topNavLinkWS(obj){
	//alert('topNavLink');
	obj.style.color = '#FFFFFF';
	obj.style.backgroundColor = "#99CCFF";
}

function topNavHoverWS(obj){
	//alert('topNavHover');
	obj.style.color = '#000000';
	obj.style.backgroundColor = "#0066CC";
}

function topNavLink2WS(obj){
	//alert('topNavLink2');
	obj.style.color = 'white';
	obj.style.backgroundColor = "#6699CC";
}

function topNavHover2WS(obj){
	//alert('topNavHover2');
	obj.style.color = 'black';
	obj.style.backgroundColor = "#0066CC";
}

function topNavLink3WS(obj){
	//alert('topNavLink3');
	obj.style.color = '#0000FF';
	obj.style.backgroundColor = "#6699CC";
}
 //************************************************************************
function footNavLink(obj){
	obj.style.color = 'black';
	obj.style.backgroundColor = "#9ACD68";
	//obj.className = 'footnavMenu';
}

function footNavHover(obj){
	obj.style.color = 'white';
	obj.style.backgroundColor = "#336633";
	//obj.className = 'footnavMenuJS';
}

// Clear the search text box
function clearSearch(){
	document.frmTopNav.search.value = "";
}

//************************************
