if (document.images) { // If browser supports image swapping

catalogon  = new Image(); catalogon.src  = "/images/nav_catalog_F2.gif";
catalogoff = new Image(); catalogoff.src = "/images/nav_catalog.gif";
checkon    = new Image(); checkon.src    = "/images/nav_check_F2.gif";
checkoff   = new Image(); checkoff.src   = "/images/nav_check.gif";
clubon     = new Image(); clubon.src     = "/images/nav_club_F2.gif";
cluboff    = new Image(); cluboff.src    = "/images/nav_club.gif";
contacton  = new Image(); contacton.src  = "/images/nav_contact_F2.gif";
contactoff = new Image(); contactoff.src = "/images/nav_contact.gif";
designon   = new Image(); designon.src   = "/images/nav_design_F2.gif";
designoff  = new Image(); designoff.src  = "/images/nav_design.gif";
helpon     = new Image(); helpon.src     = "/images/nav_help_F2.gif";
helpoff    = new Image(); helpoff.src    = "/images/nav_help.gif";
monthlyon  = new Image(); monthlyon.src  = "/images/nav_monthly_F2.gif";
monthlyoff = new Image(); monthlyoff.src = "/images/nav_monthly.gif";
requeston  = new Image(); requeston.src  = "/images/nav_request_F2.gif";
requestoff = new Image(); requestoff.src = "/images/nav_request.gif";
searchon   = new Image(); searchon.src   = "/images/search-button_F2.gif";
searchoff  = new Image(); searchoff.src  = "/images/search-button.gif";

}

function turn(button, state) {

   if (document.images) {

   image = eval(button + state + ".src");
   document [button].src = image;
   
   }
}

function openCalc() {

   window.open('/club/fund_calc.asp','Calc','width=320,height=305,resizable=yes,scrollbars=no');

}

function openSigkit(sigkitType) {

   myLocation = encodeURL("/sigkit/sig_kit_pop_download_PDF.asp?sigType=" + sigkitType);
   window.open(myLocation,'Sigkit','width=340,height=600,resizable=yes,scrollbars=yes');

}

function popColor(designImage) {

   myLocation = encodeURL("/design/color_pop.asp?designImage=" + designImage);
   newWindow = window.open(myLocation,'Design','width=240,height=200,resizable=yes,scrollbars=yes');
   newWindow.focus();

}

function popDesign(designImage) {

   myLocation = encodeURL("/design/design_pop.asp?designImage=" + designImage);
   newWindow = window.open(myLocation,'Design','width=240,height=200,resizable=yes,scrollbars=yes');
   newWindow.focus();

}

<!--
                                                                
function enterLivePerson(aname, gname, re, name) {
   window.name = "lp_parent";
   var url = "http://tsoutfitters.client.liveperson.net/user.asp?aname=" + aname + "&gname=" + gname + "&RE=" + re + "&name=" + name;
   var hWnd = window.open(url,"live_person","width=300,height=350,resizable=yes,scrollbars=yes");
   if (hWnd != null) { if (hWnd.opener == null) { hWnd.opener = self; window.name = "home"; hWnd.location.href=url; } }
}
                                                                  
//-->

function encodeURL(str) {
   while(str.indexOf(" ") != "-1") {
      position = str.indexOf(" ");
      leftString = str.substring(0, position);
      rightString = str.substring(position + 1, str.length);
      str = leftString + "%20" + rightString;
   }
   return str;
}
