browserName = navigator.appName;

browserVer = parseInt ( navigator.appVersion );

version = "n2";

if ( browserName == "Netscape" && browserVer >= 3 ) version = "n3";

if ( browserName == "Microsoft Internet Explorer" && browserVer >=4 ) version = "e4";

if (version == "n3" || version == "e4" ) {
    main_on = new Image ( 160, 24 );
    main_on.src = "images/main_on.gif";
    menu_on = new Image ( 160, 24 );
    menu_on.src = "images/menu_on.gif";
    cater_on = new Image ( 160, 24 );
    cater_on.src = "images/cater_on.gif";
    kosher_on = new Image ( 160, 24 );
    kosher_on.src = "images/kosher_on.gif";
    testimony_on = new Image ( 160, 24 );
    testimony_on.src = "images/testimony_on.gif";
    feedback_on = new Image ( 160, 24 );
    feedback_on.src = "images/feedback_on.gif";
    locate_on = new Image ( 160, 24 );
    locate_on.src = "images/locate_on.gif";

    main_off = new Image ( 160, 24 );
    main_off.src = "images/main_off.gif";
    menu_off = new Image ( 160, 24 );
    menu_off.src = "images/menu_off.gif";
    cater_off = new Image ( 160, 24 );
    cater_off.src = "images/cater_off.gif";
    kosher_off = new Image ( 160, 24 );
    kosher_off.src = "images/kosher_off.gif";
    testimony_off = new Image ( 160, 24 );
    testimony_off.src = "images/testimony_off.gif";
    feedback_off = new Image ( 160, 24 );
    feedback_off.src = "images/feedback_off.gif";
    locate_off = new Image ( 160, 24 );
    locate_off.src = "images/locate_off.gif";
}

function button_on ( imgName ) {
    if ( version == "n3" || version == "e4" ) {
        butOn = eval ( imgName + "_on.src" );
        document[imgName].src = butOn;
    }
}

function button_off ( imgName ) {
    if ( version == "n3" || version == "e4" ) {
        butOff = eval ( imgName + "_off.src" );
        document[imgName].src = butOff;
    }
}