var version;

//menu buttons action
function onLoad() {
 browserName = navigator.appName;
 browsonner = parseInt(navigator.appVersion);

 userAgent = navigator.userAgent;
   start = userAgent.indexOf("(");
   end = userAgent.indexOf(";");
   platform= userAgent.substring(start +1,end);  

        if (browserName == "Netscape" && browsonner >= 3) version = "n3";
        else version = "n2";
        if (browserName == "Microsoft Internet Explorer" && browsonner >= 4) version = "n3";
  
      if ((version == "n3")) { 
        accton = new Image();
        accton.src = "image/main_acct2.gif";
        person = new Image(); 
        person.src = "image/main_pers2.gif";
        ordon = new Image();
        ordon.src = "image/main_ord2.gif";
        conton = new Image();
        conton.src = "image/main_cont2.gif";
        abton = new Image();
        abton.src = "image/main_abt2.gif";
        homeon = new Image();
        homeon.src = "image/main_home2.gif";
        logon = new Image();
        logon.src = "image/bar_tech2.gif";
        prodon = new Image();
        prodon.src = "image/bar_prod2.gif";
        baraccton = new Image();
        baraccton.src = "image/bar_acct2.gif";
        barconton = new Image();
        barconton.src = "image/bar_cont2.gif";
        barhomeon = new Image();
        barhomeon.src = "image/bar_home2.gif";
        barcaton = new Image();
        barcaton.src = "image/bar_cat2.gif";
        barabton = new Image();
        barabton.src = "image/bar_abt2.gif";
        barmsdon = new Image();
        barmsdon.src = "image/bar_msds2.gif";
        sideappon = new Image();
        sideappon.src = "image/side_career_app2.gif";
        liston = new Image();
        liston.src = "image/nav_prod_list2.gif";
        fullon = new Image(); 
        fullon.src = "image/nav_prod_full2.gif";
        wtnon = new Image();
        wtnon.src = "image/side_tech_wtn2.gif";
        jpon = new Image(); 
        jpon.src = "image/side_tech_jp2.gif";
        wtaon = new Image();
        wtaon.src = "image/side_tech_wta2.gif";
        msd1on = new Image();
        msd1on.src = "image/nav_msds_1b.gif";
        msd2on = new Image();
        msd2on.src = "image/nav_msds_2b.gif";
        msd3on = new Image();
        msd3on.src = "image/nav_msds_3b.gif";
        lasbon = new Image();
        lasbon.src = "image/nav_lasb2.gif";

        acctoff = new Image();
        acctoff.src = "image/main_acct1.gif";
        persoff = new Image(); 
        persoff.src = "image/main_pers1.gif";
        ordoff = new Image();
        ordoff.src = "image/main_ord1.gif";
        contoff = new Image();
        contoff.src = "image/main_cont1.gif";
        abtoff = new Image();
        abtoff.src = "image/main_abt1.gif";
        homeoff = new Image();
        homeoff.src = "image/main_home1.gif";
        logoff = new Image();
        logoff.src = "image/bar_tech1.gif";
        prodoff = new Image();
        prodoff.src = "image/bar_prod1.gif";
        baracctoff = new Image();
        baracctoff.src = "image/bar_acct1.gif";
        barcontoff = new Image();
        barcontoff.src = "image/bar_cont1.gif";
        barhomeoff = new Image();
        barhomeoff.src = "image/bar_home1.gif";
        barcatoff = new Image();
        barcatoff.src = "image/bar_cat1.gif";
        barabtoff = new Image();
        barabtoff.src = "image/bar_abt1.gif";
        barmsdoff = new Image();
        barmsdoff.src = "image/bar_msds1.gif";
        sideappoff = new Image();
        sideappoff.src = "image/side_career_app1.gif";
        listoff = new Image();
        listoff.src = "image/nav_prod_list.gif";
        fulloff = new Image(); 
        fulloff.src = "image/nav_prod_full.gif";
        wtnoff = new Image();
        wtnoff.src = "image/side_tech_wtn.gif";
        jpoff = new Image(); 
        jpoff.src = "image/side_tech_jp.gif";
        wtaoff = new Image();
        wtaoff.src = "image/side_tech_wta.gif";
        msd1off = new Image();
        msd1off.src = "image/nav_msds_1a.gif";
        msd2off = new Image();
        msd2off.src = "image/nav_msds_2a.gif";
        msd3off = new Image();
        msd3off.src = "image/nav_msds_3a.gif";
        lasboff = new Image();
        lasboff.src = "image/nav_lasb1.gif";

        }
       if (version == "n3")
        {
        acctblurb = "Your Account Information";
        persblurb = "Rockmount Research Alloys, Inc Personnel Information";
        ordblurb = "Ordering from Rockmount Research Alloys, Inc";
        contblurb = "Contact Rockmount Research Alloys, Inc";
        abtblurb = "About Rockmount Research Alloys, Inc";
        homeblurb = "Return to Rockmount Research Alloys, Inc home page";
        logblurb = "Rockmount Technical Support";
        prodblurb = "Rockmount Products";
        baracctblurb = "Career Opportunities with Rockmount Research Alloys, Inc";
        barcontblurb = "Contact Rockmount Research Alloys, Inc";
        barhomeblurb = "Return to Rockmount Research Alloys, Inc home page";
        barcatblurb = "View Rockmount Research Alloys, Inc Catalog";
        barabtblurb = "About Rockmount Research Alloys, Inc";
        barmsdblurb = "Rockmount MSDS Sheets";
        sideappblurb = "Download Application PDF";
        listblurb = "Search the Product Listings";
        fullblurb = "Full Product Catalog";
        wtnblurb = "World Tech News";
        jpblurb = "Joining Problems";
        wtablurb = "Weld Tech Archives";
        msd1blurb = "Search for MSDS by Metals Family";
        msd2blurb = "Search for MSDS by Product";
        msd3blurb = "Other MSDS Sheets";
        lasbblurb = "LaserBest Drill Bits";
        }
}

onLoad();


function img_act(imgName) {
        if ((version == "n3")) {
        imgOn = eval(imgName + "on.src");
        document [imgName].src = imgOn;
        blurbNum= eval(imgName + "blurb")
        self.status = blurbNum
        }
       else if (version=="n3")
        {
        blurbNum= eval(imgName + "blurb")
        self.status = blurbNum
        }
       else
        return;

}

function img_inact(imgName) {
        if ((version == "n3")) {
        imgOff = eval(imgName + "off.src");
        document [imgName].src = imgOff;
        self.status =" ";
        }
       else if (version=="n3")
        {
        self.status =" ";
        }
       else

        return;

}
