/*-------------------------------------------------
 * This script provides dynamic pop-up menu in the 
 * define location of the window. Cross-platform.
 * created 10-18-2004
 * last modified 10-18-2004
 * modified by Anna Molodtsova
 *-----------------------------------------------*/
 
 /*----------------------------------------------
  * The popUp function makes the menu visible/invisible 
  * in the defined position.
  *----------------------------------------------*/
		
if (document.getElementById) {
	stdBrowser = true
}
else {
	stdBrowser = false
}

function popUp(evt,currElem) {
	if (stdBrowser) {
		popUpWin = document.getElementById(currElem).style
	}
	else {
		popUpWin = eval("document." + currElem)
	}
	/* This sets the top and left position of the menu for IE users. */
	if (document.all) {
		popUpWin.pixelTop = 327
		popUpWin.pixelLeft = 3
	}
	else {
		/* This sets the top and left position of the menu for Netscape 6 users. */
		if (stdBrowser) {
			popUpWin.top = 327 + "px"
			popUpWin.left = 3 + "px"
		}
		else {
		/* This sets the top and left position of the menu for Netscape 4 users. */				
			popUpWin.top = 327
			popUpWin.left = 3
		}
	}
	/* This sets the menu to be visible */
	popUpWin.visibility = "visible"
}

/* The popDown function makes the menu invisible */
function popDown(currElem) {
	if (stdBrowser) {
		popUpWin = document.getElementById(currElem).style
	}
	else {
		popUpWin = eval("document." + currElem)
	}
	popUpWin.visibility = "hidden"
}

function turnOn(currentLink) {
	currentLink.style.color = "#335e7f";
	}
 
function turnOff(currentLink){
currentLink.style.color = "#ffffff";
}