    blueImage = new Image();
	greyImage = new Image();
	var myMenuItem
	//function loadImages(){
		blueImage = "url(images/buttonbackgroundblue.jpg)";
		greyImage = "url(images/buttonbackground.jpg)";
	//}
   
	function buttonhigh(thisitem, i){
		thisitem.style.backgroundImage = blueImage;
		thisitem.style.backgroundColor = "#232741"
		thisitem.style.color = "#FFCC00";
		myMenuItem = "menuItem";
		myMenuItem = myMenuItem + i;
		document.getElementById(myMenuItem).style.color = "#FFCC00";	
	}
	function buttonunhigh(thisitem, i){
		thisitem.style.backgroundImage = greyImage;
		thisitem.style.backgroundColor = "#D0D0D0"
		thisitem.style.color = "#232741";
		myMenuItem = "menuItem";
		myMenuItem = myMenuItem + i;
		document.getElementById(myMenuItem).style.color = "#232741";
	}
	
	function btnMOver(btnObj,color,txtColor)
	{
		btnObj.style.backgroundImage = blueImage
		btnObj.style.cursor = "pointer"
		btnObj.style.color = "#FFCC00"
	}
	function btnOut(btnObj,color)
	{
		btnObj.style.backgroundImage = "none"
		btnObj.style.color = "#232741"
	}
	
	function btnClick(url)
	{
		document.location = url
	}

	var currentMenu = ""
	function stopIt(which){
		which.blur()
	}
	function closeMenu(){
		if (currentMenu != null){
			document.getElementById(currentMenu).style.display = "none"
		}
	}

	var menuArray = new Array
	function high(thisitem,back,font){
		thisitem.style.background = back
		thisitem.style.color = font
	}
	function unhigh(thisitem,back,font){
		thisitem.style.background = back
		thisitem.style.color = font
	}
	function showlinks(item){
		
		var currentfile = new String
		var currentfileArray = new Array
		var slashloc
		var strlen
		var endstr
		currentfile = window.location.toString()
		currentfile = currentfile.replace(".asp","")
		strlen = currentfile.length
		endstr = strlen - slashloc
		currentfileArray = currentfile.split("/")
		currentfile = currentfileArray[currentfileArray.length-1]
		
		//decide to keep current menu open
		for (i=0; i < menuArray.length - 1; i++){
			if(menuArray[i] != currentfile){
				document.getElementById(menuArray[i]).style.display = "none"
			}
		}
		
		if(document.getElementById("keepdisplayed").value != ""){
			var keep 
			keep = document.getElementById("keepdisplayed").value
			document.getElementById(keep).style.display = "inline"
		}
		//open menu just rolled over
		document.getElementById(item).style.display = "inline"
	}
	
	function gotoloc(loc){
		window.location = loc
	}
	
		
	function high2(thisitem)
	{
		thisitem.style.background="#EEEEEE";
	}
	function unhigh2(thisitem)
	{
		thisitem.style.background='transparent';
	}
			
	function approveIt()
	{
		window.navigate("../admin/approve.asp")
	}
			
		
	function findPosY(obj)
	{
		var curtop = 0;
		if (obj.offsetParent)
		{
			while (obj.offsetParent)
			{
				curtop += obj.offsetTop
				obj = obj.offsetParent;
			}
		}
		else if (obj.y)
			curtop += obj.y;
		return curtop;
	}
			
	function findPosX(obj)
	{
		var curLeft = 0;
		if (obj.offsetParent)
		{
			while (obj.offsetParent)
			{
				curLeft += obj.offsetLeft
				obj = obj.offsetParent;
			}
		}
		else if (obj.x)
			curLeft += obj.x;
		return curLeft;
	}
			