 
//window.onresize = reDo; 

//Define global variables 
var timerID = null; 
var timerOn = false; 
var timecount = 400; 

// Change this to the time delay that you desire 
var what = null; 
var newbrowser = true; 
var check = false; 

var currentLayer=null;
var buffering=false;

//function reDo() { 
//window.location.reload(); 
//} 
 
function init() { 
if (document.layers) { 
layerRef="document.layers"; 
styleSwitch=""; 
what ="ns4"; 
} 
else if(document.all) { 
layerRef="document.all"; 
styleSwitch=".style"; 
what ="ie4"; 
} 
else if(document.getElementById) { 
layerRef="document.getElementByID"; 
styleSwitch=".style"; 
what="dom1"; 
} 
else { 
what="none"; 
newbrowser = false; 
} 
check = true; 
} 

// Toggles the layer visibility on 
function showLayer(layerName) {
	currentLayer=layerName;
	
	if(check) { 
		if (what =="none") { 
			return; 
		}else if (what == "dom1") { 
			if(document.getElementById(layerName)!=null)
				document.getElementById(layerName).style.visibility="visible"; 
		}else { 
			eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"'); 
		}//if/else
	}//if
}

// Toggles the layer visibility off 
function hideLayer(layerName) { 
	if(check) { 
		if (what =="none") { 
			return; 
		}else if (what == "dom1") { 
			if(document.getElementById(layerName)!=null)
				document.getElementById(layerName).style.visibility="hidden"; 
		}else { 
			eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"'); 
		}//if/else
	}//if
}

function hideAll() {
	oDivTags = document.body.getElementsByTagName("DIV");
	for(x=0;x<oDivTags.length;x++){
		if(oDivTags[x]!=null && oDivTags[x].id.substr(0,4)=="nav_")
			hideLayer(oDivTags[x].id);
	}//for
}

function hideAllExcept(layerName) { 
	oDivTags = document.body.getElementsByTagName("DIV");
	for(x=0;x<oDivTags.length;x++){
		if(oDivTags[x]!=null && oDivTags[x].id != layerName)
			hideLayer(oDivTags[x].id);
	}//for
}

function startTime() { 
if (timerOn == false) { 
timerID=setTimeout( "hideAll()" , timecount); 
timerOn = true; 
} 
}

function stopTime() { 
if (timerOn) { 
clearTimeout(timerID); 
timerID = null; 
timerOn = false; 
} 
}

function onLoad() { 
init(); 
} 

function land(ref, target){
	lowtarget=target.toLowerCase();
	
	if (lowtarget=="_self"){
		window.location=loc;
	}else if (lowtarget=="_top"){
		top.location=loc;
	}else if (lowtarget=="_blank") {
		window.open(loc);
	}else if (lowtarget=="_parent") {
		parent.location=loc;
	}else {
		parent.frames[target].location=loc;
	}//if/else
}

function jump(menu){
	ref=menu.choice.options[menu.choice.selectedIndex].value;
	splitc=ref.lastIndexOf("*");
	target="";
	if (splitc!=-1){
		loc=ref.substring(0,splitc);
		target=ref.substring(splitc+1,1000);
	}else {
		loc=ref; target="_self";
	}

	if (ref != "")
		land(loc,target);
}