    //rollover function for images
    function rollover(id,image) {
        if (document.images) {
	        var theImg=document.getElementById(id);
	        theImg.setAttribute("src",image.src);
        }
    }

    if (document.images) {
        btn_acctlogin_up = new Image();
        btn_acctlogin_down = new Image();
        btn_acctlogin_up.src = buttonsPath + "acctlogin.gif";
        btn_acctlogin_down.src = buttonsPath + "acctlogin.gif";

        btn_agree_up = new Image();
        btn_agree_down = new Image();
        btn_agree_up.src = buttonsPath + "agree.gif";
        btn_agree_down.src = buttonsPath + "agree.gif";

        btn_applycoupon_up = new Image();
        btn_applycoupon_down = new Image();
        btn_applycoupon_up.src = buttonsPath + "applycoupon.gif";
        btn_applycoupon_down.src = buttonsPath + "applycoupon.gif";

        btn_checkout_up = new Image();
        btn_checkout_down = new Image();
        btn_checkout_up.src = buttonsPath + "checkout.gif";
        btn_checkout_down.src = buttonsPath + "checkout.gif";

        btn_checkoutnow_up = new Image();
        btn_checkoutnow_down = new Image();
        btn_checkoutnow_up.src = buttonsPath + "checkoutnow.gif";
        btn_checkoutnow_down.src = buttonsPath + "checkoutnow.gif";

        btn_close_up = new Image();
        btn_close_down = new Image();
        btn_close_up.src = buttonsPath + "close.gif";
        btn_close_down.src = buttonsPath + "close.gif";

        btn_disagree_up = new Image();
        btn_disagree_down = new Image();
        btn_disagree_up.src = buttonsPath + "disagree.gif";
        btn_disagree_down.src = buttonsPath + "disagree.gif";

        btn_download_up = new Image();
        btn_download_down = new Image();
        btn_download_up.src = buttonsPath + "download.gif";
        btn_download_down.src = buttonsPath + "download.gif";

        btn_edit_up = new Image();
        btn_edit_down = new Image();
        btn_edit_up.src = buttonsPath + "edit.gif";
        btn_edit_down.src = buttonsPath + "edit.gif";

        btn_editcart_up = new Image();
        btn_editcart_down = new Image();
        btn_editcart_up.src = buttonsPath + "editcart.gif";
        btn_editcart_down.src = buttonsPath + "editcart.gif";

        btn_editship_up = new Image();
        btn_editship_down = new Image();
        btn_editship_up.src = buttonsPath + "editship.gif";
        btn_editship_down.src = buttonsPath + "editship.gif";

        btn_finishcheckout_up = new Image();
        btn_finishcheckout_down = new Image();
        btn_finishcheckout_up.src = buttonsPath + "finishcheckout.gif";
        btn_finishcheckout_down.src = buttonsPath + "finishcheckout.gif";

        btn_keepshop_up = new Image();
        btn_keepshop_down = new Image();
        btn_keepshop_up.src = buttonsPath + "keepshop.gif";
        btn_keepshop_down.src = buttonsPath + "keepshop.gif";

        btn_shipck_up = new Image();
        btn_shipck_down = new Image();
        btn_shipck_up.src = buttonsPath + "shipck.gif";
        btn_shipck_down.src = buttonsPath + "shipck.gif";

        btn_shopmore_up = new Image();
        btn_shopmore_down = new Image();
        btn_shopmore_up.src = buttonsPath + "shopmore.gif";
        btn_shopmore_down.src = buttonsPath + "shopmore.gif";

        btn_update_up = new Image();
        btn_update_down = new Image();
        btn_update_up.src = buttonsPath + "update.gif";
        btn_update_down.src = buttonsPath + "update.gif";

        btn_updates_up = new Image();
        btn_updates_down = new Image();
        btn_updates_up.src = buttonsPath + "updateS.gif";
        btn_updates_down.src = buttonsPath + "updateS.gif";

        btn_updates2_up = new Image();
        btn_updates2_down = new Image();
        btn_updates2_up.src = buttonsPath + "updateS2.gif";
        btn_updates2_down.src = buttonsPath + "updateS2.gif";
    
        //discontinued but required for backwards compatibility with existing db records:
        btn_editmobile_down = new Image();
        btn_fanclub_login_down = new Image();
        btn_newcheckout_down = new Image();
    }
