/**
 * @author Dom
 */
function init(){
    //==========================================================================================
    // if supported, initialize TransMenus
    //==========================================================================================
    // Check isSupported() so that menus aren't accidentally sent to non-supporting browsers.
    // This is better than server-side checking because it will also catch browsers which would
    // normally support the menus but have javascript disabled.
    //
    // If supported, call initialize() and then hook whatever image rollover code you need to do
    // to the .onactivate and .ondeactivate events for each menu.
    //==========================================================================================
    if (TransMenu.isSupported()) {
        TransMenu.initialize();
        
        // hook all the highlight swapping of the main toolbar to menu activation/deactivation
        // instead of simple rollover to get the effect where the button stays hightlit until
        // the menu is closed.
        menu1.onactivate = function(){
            document.getElementById("optic").className = "menu_top_item1";
        };
        menu1.ondeactivate = function(){
            document.getElementById("optic").className = "menu_top_item";
        };
        
        menu2.onactivate = function(){
            document.getElementById("serwisant").className = "menu_top_item1";
        };
        menu2.ondeactivate = function(){
            document.getElementById("serwisant").className = "menu_top_item";
        };
        
    };
    };


function load_buttons(){

    opticp = new Image();
    opticp.src = "contentgrf/optic_promocja.jpg";
    opticp_on = new Image();
    opticp_on.src = "contentgrf/optic_promocja_on.jpg";
    
    serwisantp = new Image();
    serwisantp.src = "contentgrf/serwisant_promocja.jpg";
    serwisantp_on = new Image();
    serwisantp_on.src = "contentgrf/serwisant_promocja_on.jpg";
    
    demop = new Image();
    demop.src = "contentgrf/optic_demo.jpg";
    demop_on = new Image();
    demop_on.src = "contentgrf/optic_demo_on.jpg";
    
};

