﻿// Used to popup menus on mouseover and hide on mouse out.

var  timerId=0 ;

function clearTimer() {
   if (timerId!=0) {
      clearTimeout(timerId); timerId=0; }}
      
function startTimer() {
   clearTimer(); timerId=setTimeout('timerId=0;hideMenus()',200); }
   
function showMenu(menuNum) {
   clearTimer(); hideMenus();
   document.getElementById('menu_'+menuNum).style.display=""; }

function hideMenus() {
   var  i=1 ;
   while (document.getElementById('menu_'+i)) {
      document.getElementById('menu_'+i).style.display="none";
      i++; }}
      
function hiLite(theOption) {
   clearTimer();
   document.getElementById('opt_'+theOption).style.background='#B4260B'; }
   
function unLite(theOption) {
   startTimer();
   document.getElementById('opt_'+theOption).style.background='#FEFFCC'; }
   
function keepOvrImage(id)
{
   document.getElementById('img_'+id).src=document.getElementById('img_'+id).getAttribute("oversrc");
}

function restoreOrgImage(id)
{
   document.getElementById('img_'+id).src=document.getElementById('img_'+id).getAttribute("origsrc");
}

function notAvailable(theOption) {
   unLite(theOption); clearTimer(); hideMenus();
   alert('The page you requested is currently under construction.  Please try again at a later date'); }
   
function redirectURL(theOption, url) {
   unLite(theOption); clearTimer(); hideMenus();
   Response.Write("url"); }
   
