image1 = new Image(); 
image1.src = "images/arrowon.gif"; 


var ie5 = (document.getElementById && document.all); 
var ns6 = (document.getElementById && !document.all);

// to change the duration of the effect, change the duration number. "Duration=2" => 2 seconds
var boxOut = "revealTrans(Duration=0.3,Transition=1)"; 
var myEffect = boxOut;

function showFilter(obj, visibility) {
	if(ie5){
		menu[obj].style.filter = myEffect; 
		menu[obj].filters[0].Apply();
		menu[obj].style.visibility = visibility;
		menu[obj].filters[0].Play();
	}
	else if(ns6){
		menu[obj].style.visibility = visibility;
	}
}

function showHide(obj, visibility) {
	if(ie5 || ns6){
		menu[obj].style.visibility = visibility;
	}
}

function menuBarInit() {
	if(ie5 || ns6){
   		menu = document.getElementsByTagName("div");
	}
}

function MakeActive(num) {
    	if(ie5 || ns6) {
        	for(i=0;i<lnk.length;i++) {
        		lnk[i].style.color = "#006699";
        		lnk[num].style.color = "red";
        	}
    	}
}


// Browser Slide-Show script.
// With image cross fade effect for those browsers that support it.
var slideCache = new Array();
function RunSlideShow(pictureName,imageFiles,displaySecs)
{
  var imageSeparator = imageFiles.indexOf(";");
  var nextImage = imageFiles.substring(0,imageSeparator);
  if (document.all)
  {
    document.getElementById(pictureName).style.filter="blendTrans(duration=2)";
    document.getElementById(pictureName).filters.blendTrans.Apply();
  }
  document.getElementById(pictureName).src = nextImage;
  if (document.all)
  {
    document.getElementById(pictureName).filters.blendTrans.Play();
  }
  var futureImages= imageFiles.substring(imageSeparator+1,imageFiles.length)
    + ';' + nextImage;
  setTimeout("RunSlideShow('"+pictureName+"','"+futureImages+"',"+displaySecs+")",
    displaySecs*1000);
  // Cache the next image to improve performance.
  imageSeparator = futureImages.indexOf(";");
  nextImage = futureImages.substring(0,imageSeparator);
  if (slideCache[nextImage] == null) {
    slideCache[nextImage] = new Image;
    slideCache[nextImage].src = nextImage;
  }
}
