function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


var current = "";

function show(name) {

current = name;
tip = document.getElementById(name);
	if (tip) {
	
	//var flyimg = eval('document.all.img' + name);
	tip.style.visibility = "visible";
	}
}


function hide(name)
{
var tip = document.getElementById(name);
if (tip)
{
tip.style.visibility = "hidden";
current="";
}
}




/* Function highlights left nav section when subnavs are chosen */
function highlight(id){

var x = document.getElementById(id);

if (x)
{
x.style.color = "#FA9A00";
x.onmouseout = "";
x.onmouseover = "";

}
}


/* Highlight function invoked and defined on a per-page basis */
highlight('nav1')

function showLeftNav(num)
{
//alert("num="+num)
	for(i=1;i<7;i++)
	{
		//a = eval("document.all.LN" + i)
		a = document.getElementById("LN" + i);
		//alert("i="+i)
		
		if(i==num)
		{
			a.style.display='block';
		}else{
			a.style.display='none';
		}
	}
	
	
}
 

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//document.all.top1.style.color="#FA9A00";

sfHover = function() { 
var sfEls = document.getElementById("subNavigation").getElementsByTagName("LI"); 
	for (var i=0; i<sfEls.length; i++) { 
		sfEls[i].onmouseover=function() { 
		this.className+=" sfhover"; 
		} 
		sfEls[i].onmouseout=function() { 
		this.className=this.className.replace(new RegExp(" sfhover\\b"), ""); 
		} 
	} 
var sfDivs = document.getElementById("subNavigation").getElementsByTagName("DIV");
	for (var i=0; i<sfDivs.length; i++) { 
		sfDivs[i].onmouseover=function() { 
		this.className+=" divHover"; 
		} 
		sfDivs[i].onmouseout=function() { 
		this.className=this.className.replace(new RegExp(" divHover\\b"), ""); 
		} 
	}
} 
//if (window.attachEvent) window.attachEvent("onload", sfHover);

function showUtility(id) {
	node = document.getElementById(id);
	node.style.display = "block";

}

function hideUtility(id) {
	node = document.getElementById(id);
	node.style.display = "none";
}

// nifties
myId = "mydefaultbody";
color1 = "#425298";
color2 = "#E8ECF8";

window.onload=function(){
	if(!NiftyCheck()) return;
		if(document.getElementsByTagName) {
		
		myBody = document.getElementsByTagName("body");
		myId = myBody[0].id;
		
			switch(myId) {
				case("mydefaultbody"): 
	  			color1 = "#425298";
				color2 = "#E8ECF8";
				break;
				
				case("ourbusiness"):
				color1 = "#415299";
				color2 = "#E8ECF8"; 
				break;
				
				case("visionandvalues"):
				color1 = "#fbb340";
				color2 = "#fee6bf"; 
				break;
				
				case("continiouslearning"):
				color1 = "#439588";
				color2 = "#c0dcd7"; 
				break;
				
				case("campusevents"):
				color1 = "#92a349";
				color2 = "#dbe0c2"; 
				break;
				
				case("selectionprocess"):
				color1 = "#c94043";
				color2 = "#edbfc0"; 
				break;
				
				default:
	  			color1 = "#425298";
				color2 = "#E8ECF8";
				break
			}
			if(myId) {
			// default colors
				Rounded("#" + myId + " div#contextMenu div.csc-frame-frame1","#fff",color1);
				RoundedTop("#" + myId + " div#contextMenu div.csc-frame-frame2","#fff",color1);
				RoundedBottom("#" + myId + " div#contextMenu div.csc-frame-frame2","#fff",color2);
			}
			
			
		}
	
	
}