// JavaScript Document

function imagefadeOut(delay){
	
	new Effect.Opacity('extraImage', {duration:1, from:1.0, to:0}); 
	string="imagefadeIn("+delay+");";
	setTimeout(string,delay);
	
}
function imagefadeIn(delay){

	
	new Effect.Opacity('extraImage', {duration:1, from:0, to:1.0}); 
	string="imagefadeOut("+delay+");";
	setTimeout(string,delay);

}

function getWindowSize(){
if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName=="Netscape") {
  winW = window.innerWidth;
 }
 if (navigator.appName.indexOf("Microsoft")!=-1) {
  winW = document.body.offsetWidth;
 }
}
return winW;

}
function highlightPage(tID){
	
	resetList('quicksection');
	resetList('quicklinks');
	
	for (i=0; i < tID.length; i++){
		if(document.getElementById("link" + tID[i])){
		document.getElementById("link" + tID[i]).className = "highlight";		
		}
	}
}

function resetList(el){

	var listLength = document.getElementById(el).childNodes.length;
	
	for(var e=0; e < listLength; e++){
		
		if(document.getElementById(el).childNodes[e].nodeType==1){
			
			document.getElementById(el).childNodes[e].className = "";	
		}
		
	}
}