
/*  
Script made by Martial Boissonneault © 2002-2003 http://getElementById.com/
This script may be used and changed freely as long as this msg is intact
Visit http://getElementById.com/ for more free scripts and tutorials.

Adapted by Rob Maurizi for use at UVM/LCPLearn site

*/

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

function showArrow(obj, visibility) {
	
//	if(ie5){
		document.getElementById("arrow").style.visibility = visibility;
		document.getElementById("arrow").style.top = document.getElementById(obj).style.top;
		
		// try placing a transparent gif the same size as the arrow exactly where you want it, and replace that image with the arrow image on rollover....
		// .... or place the arrow at each spot, and make it visible / invisible as necessary
	

//	}
//	else if(ns6){
//		document.getElementById("arrow").style.visibility = visibility;
//		document.getElementById("arrow").style.top = document.getElementById(obj).style.top;
//	}

}


function showHere(obj) {

//	alert(obj);
//	if (ie5) {
		document.getElementById("here").style.visibility = "visible";
		document.getElementById("here").style.top = document.getElementById(obj).style.top;


}


function showNewArrow(arrow, visibility) {

	document.getElementById(arrow).style.visibility = visibility;

}

function showNewHere(arrow) {

//	alert(obj);
//	if (ie5) {
		
		var hereBox = "LI_"+arrow;
		
		if ((arrow) && (arrow != "") && (arrow !="welcome_page")) {
		
			document.getElementById(arrow).src = "http://www.uvm.edu/~lcplearn/units/images/arrow_here.gif";
			document.getElementById(arrow).style.visibility = "visible";
			if (hereBox != "LI_orientation") {
				document.getElementById(hereBox).style.backgroundColor = "#6F9D63";
			}
		}

}

