// Set default window status
//window.defaultStatus = '';

var colMenuOff = "url(images/nav_bg_off.gif) no-repeat";
var colMenuRoll = "url(images/nav_bg_on.gif) no-repeat";

var rightMenuRollBg = "#f0f3ed";
var rightMenuRollBorder = "6px #587f9a solid";

var rightMenuOffBg = "#ffffff";
var rightMenuOffBorder = "6px #90AA70 solid";



//var colMenuOn = "#07318B";
//var colMenu2On = "#ADBFED";
//var colMenuBoxOff = "#07318B";
//var colMenuBoxOn = "#108C31";

//var colTableOutline = "#FFFFFF";


HM_DOM = (document.getElementById) ? true : false;
HM_NS4 = (document.layers) ? true : false;
HM_IE = (document.all) ? true : false;
HM_IE4 = HM_IE && !HM_DOM;
HM_Mac = (navigator.appVersion.indexOf("Mac") != -1);
HM_IE4M = HM_IE4 && HM_Mac;





function Hilite(ThisID) {
		ThisImage = ThisID;
	    document.images[ThisImage].src = document.images[ThisImage].src.substring(0, document.images[ThisImage].src.lastIndexOf('.') - 4) + "_on.gif";
}

function UnHilite(ThisID) {
		ThisImage = ThisID;
	    document.images[ThisImage].src = document.images[ThisImage].src.substring(0, document.images[ThisImage].src.lastIndexOf('.') - 3) + "_off.gif";
}


function HiliteMenuBackground(myid){
	if ((HM_IE) || (HM_DOM)) {
		// Explorer
		if (HM_IE){
			ThisDIV = document.all["Nav_" + myid];
		//	ThisBoxDIV = document.all["NavBox_" + myid];
		}
		// DOM Browsers
		else {
			ThisDIV = document.getElementById("Nav_" + myid);
		//	ThisBoxDIV = document.getElementById("NavBox_" + myid);
		}
		ThisDIV.style.background = colMenuRoll;
	//	ThisBoxDIV.style.backgroundColor = colMenuBoxOn;
		
	}
}

function UnHiliteMenuBackground(myid){
	if ((HM_IE) || (HM_DOM)) {
		// Explorer
		if (HM_IE){
			ThisDIV = document.all["Nav_" + myid];
		//	ThisBoxDIV = document.all["NavBox_" + myid];
		}
		// DOM Browsers
		else {
			ThisDIV = document.getElementById("Nav_" + myid);
		//	ThisBoxDIV = document.getElementById("NavBox_" + myid);
		}
		ThisDIV.style.background = colMenuOff;
	//	ThisBoxDIV.style.backgroundColor = colMenuBoxOff;
	}
}


function HiliteRightMenuBackground(myid){
	if ((HM_IE) || (HM_DOM)) {
		// Explorer
		if (HM_IE){
			ThisDIV = document.all["Right_" + myid];
/*var str = '';	
var curobj = document.all["Right_" + myid].style;		
for ( i in curobj){
	if ( i.match(/color/ig) ) 
		str += i+'='+curobj[i]+'\n';
}
alert(str);	*/
		//	ThisBoxDIV = document.all["NavBox_" + myid];
		}
		// DOM Browsers
		else {
			ThisDIV = document.getElementById("Right_" + myid);
		//	ThisBoxDIV = document.getElementById("NavBox_" + myid);
		}
		ThisDIV.style.backgroundColor = rightMenuRollBg;
		ThisDIV.style.borderLeft = rightMenuRollBorder;
		
	}
}

function UnHiliteRightMenuBackground(myid){
	if ((HM_IE) || (HM_DOM)) {
		// Explorer
		if (HM_IE){
			ThisDIV = document.all["Right_" + myid];
			
/*var str = '';	
var curobj = document.all["Right_" + myid].style;		
for ( i in curobj){
	if ( i.match(/color/ig) ) 
		str += i+'='+curobj[i]+'\n';
}
alert(str);	*/
		//	ThisBoxDIV = document.all["NavBox_" + myid];
		}
		// DOM Browsers
		else {
			ThisDIV = document.getElementById("Right_" + myid);
		//	ThisBoxDIV = document.getElementById("NavBox_" + myid);
		}
		ThisDIV.style.backgroundColor = rightMenuOffBg;
		ThisDIV.style.borderLeft = rightMenuOffBorder;
	}
}


function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
}



function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;

