window.onerror = null;
 	var bName = navigator.appName;
 	var bVer = parseInt(navigator.appVersion);
 	var NS4 = (bName == "Netscape" && bVer >= 4);
 	var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
 	var NS3 = (bName == "Netscape" && bVer < 4);
 	var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
 	var menuActive = 0
 	var menuOn = 0
 	var onLayer = null
 	var timeOn = null
 	var loaded = 0

// load image
function LoadImgs(){
	  if (document.images || IE4) {
	  	menu0 = new Image(); menu0.src="images/forward.gif"; menu1 = new Image(); menu1.src="images/flag.gif";
	  	loaded = 1
	  }
	}
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadforward == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadforward = false;
function preloadImages() {
	if (document.images) {
/*
c11on = newImage("images/11-ci-over.gif");
c11lineon = newImage("images/11-line.gif");
c11remarkon = newImage("images/11-remark.gif"); 

c15on = new Image(180,30); c15on.src = "images/15-webpage-over.gif";
c15lineon = new Image(180,30); c15lineon.src = "images/15-line.gif";
c15remarkon = new Image(180,30); c15remarkon.src = "images/15-remark.gif"; 

c16on = new Image(180,30); c16on.src = "images/16-website-over.gif";
c16lineon = new Image(180,30); c16lineon.src = "images/16-line.gif";
c16remarkon = new Image(180,30); c16remarkon.src = "images/16-remark.gif"; 
*/
preloadforward = true;

	}
}

// LAYER SWITCHING CODE
	if (NS4 || IE4) {
	 if (navigator.appName == "Netscape") {
	  layerStyleRef="layer.";
	  layerRef="document.layers";
	  styleSwitch="";
	  }else{
	  layerStyleRef="layer.style.";
	  layerRef="document.all";
	  styleSwitch=".style";
	 }
	}
	
	//BUTTON ROLLOVER
	function change(Name, No) {
	 if (document.images && (loaded == 1)) {
	   document.images[Name].src = eval(Name + No + ".src");
	  }
	 return true
	}
	
	//Function To Open Window
	function popup(url) {
	  var window_left = (screen.width-350)/2;
	  var window_top = 0
	
	  details = window.open(url,'details','width=350,height=364,resizable=no,scrollbars=no,top=' + window_top + ',left=' + window_left + '');
	  details.window.focus();
	}
	
	// SHOW MENU
	function showLayer(layerName){
	if (NS4 || IE4) {
	 if (timeOn != null) {
	  clearTimeout(timeOn)
	  hideLayer(onLayer)
	 }
	 if (NS4 || IE4) {
	  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
	 }   
	 onLayer = layerName
	 }
	}
	
	// HIDE MENU
	function hideLayer(layerName){
	 if (menuActive == 0) {
	  if (NS4 || IE4) {
	   if(layerName != null) {
	    eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
	   }
	  }
	 }
	}
	
	// TIMER FOR BUTTON MOUSE OUT
	function btnTimer() {
	 timeOn = setTimeout("btnOut()",1000)
	}
	
	// BUTTON MOUSE OUT
	function btnOut(layerName) {
	 if (menuActive == 0) {
	  hideLayer(onLayer)
	  }
	}
	
	// MENU MOUSE OVER  
	function menuOver(itemName) {
	 clearTimeout(timeOn)
	 menuActive = 1
	 if (NS4 || IE4) {
	  if (NS4) {
	    document[onLayer].document.images[itemName].src = menu1.src
	 } else {
	     document.all[itemName].src = menu1.src
	 }
	 }
	}
	
	// MENU MOUSE OUT 
	function menuOut(itemName) {
	 menuActive = 0 
	  if (NS4 || IE4) {
	  if (NS4) {
	    document[onLayer].document.images[itemName].src = menu0.src
	  } else {
	     document.all[itemName].src = menu0.src
	  }
	  }
	  timeOn = setTimeout("hideLayer(onLayer)", 400)
 	}
// -->