/*
Drop Down Menu beta v.1 (By Darin Asakura email: dasakura@hawaii.edu)
Permission granted by Darin Asakura to include script in this webpage,
email for permisson to use on other projects.
*/

var popup = null;

function changeto(highlightcolor){
source=event.srcElement
if (source.tagName=="TR"||source.tagName=="TABLE")
return
while(source.tagName!="TD")
source=source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function changeback(originalcolor){
if (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")
return
if (event.toElement!=source)
source.style.backgroundColor=originalcolor
}
var hold,hold2;
hold="false";
hold2 = "false";
function viewMenu(temp){
  if(temp.style.visibility = "hidden"){
    temp.style.visibility = "visible";
    hold = "true";
    }
  else{
    temp.style.visibility = "hidden";
    hold = "false";
    hold2 = "false";
    } 
}
function off(temp){
    temp.style.visibility = "hidden";
    hold = "false";
    hold2 = "false";
}
function stay(temp){
temp.style.visibility = "visible";
hold2 = "on";
}
function stay2(temp){
  if(hold=="true" && hold2=="on"){
    temp.style.visibility = "visible";
    }
  else{
      temp.style.visibility = "hidden";
      hold2 = "false";
      hold = "false";
      }
}
function getURL(url){
window.location = url;
window.locationbar = url;
}    

