if (document.images) {
   // describe on images
   btn1_on = new Image();
   btn1_on.src = "/images/menu/btn1_on.gif";

   btn2_on = new Image();
   btn2_on.src = "/images/menu/btn2_on.gif";

   btn3_on = new Image();
   btn3_on.src = "/images/menu/btn3_on.gif";

   btn4_on = new Image();
   btn4_on.src = "/images/menu/btn4_on.gif";

   btn5_on = new Image();
   btn5_on.src = "/images/menu/btn5_on.gif";

   btn6_on = new Image();
   btn6_on.src = "/images/menu/btn6_on.gif";

   // describe off images
   btn1_off = new Image();
   btn1_off.src = "/images/menu/btn1_off.gif";

   btn2_off = new Image();
   btn2_off.src = "/images/menu/btn2_off.gif";

   btn3_off = new Image();
   btn3_off.src = "/images/menu/btn3_off.gif";

   btn4_off = new Image();
   btn4_off.src = "/images/menu/btn4_off.gif";

   btn5_off = new Image();
   btn5_off.src = "/images/menu/btn5_off.gif";

   btn6_off = new Image();
   btn6_off.src = "/images/menu/btn6_off.gif";
}

// when mouse over buttons
function img_exc(imgName) {
   if (document.images) {
      document[imgName].src = eval(imgName + "on.src");
      // document["exc"].src = eval(imgName + "exc.src");
   }
}

// when mouse not over buttons
function img_noexc(imgName,orgImg) {
   if (document.images) {
      document [imgName].src = eval(imgName + "off.src");
      // document["exc"].src = orgImg;
   }
}

function isMac() {
   return (navigator.appVersion.indexOf("Mac") != -1);
}

function loadSearchForm(findVal) {
   if(findVal == 1)
      document.search.keyword.focus();
}

function checkKeyword() {
   if(document.search.keyword.value.length == 0) {
      alert('You Must Provide Search Criteria...');
      document.search.keyword.focus();
   }
   else
      document.search.submit();
}

function bannerLink(id) {
   var szURL = '/common/main/clickthru.asp?id=' + id;
   mainWin = window.open(szURL,'mainWindow','menubar=0,status=yes,toolbar=0,location=0,directories=0,scrollbars=yes,width=680,height=520,resizable=0');
   mainWin.opener = self;
}

function paperView(loc) {
   paperWindow = window.open(loc,'paperWindow','menubar=1,status=yes,toolbar=0,location=0,directories=0,scrollbars=yes,width=520,height=480,resizable=0');
   paperWindow.opener = self;
}

function paperLink(loc) {
   top.location.href = loc;
}
