// Initialize and render the menu when it is available in the DOM
var oMenu ;
	YAHOO.util.Event.onContentReady("menu", function () {

    /*
         Instantiate the menu.  The first argument passed to the
         constructor is the id of the element in the DOM that
         represents the menu; the second is an object literal
         representing a set of configuration properties for
         the menu.
    */
	oMenu = new YAHOO.widget.Menu(
                        "menu",
                        {
                            position: "static",
                            hidedelay: 750,
                            lazyload: true
                            /*effect: {
                                effect: YAHOO.widget.ContainerEffect.FADE,
                                duration: 0.25
                            }*/
                        }
                    );

    /*
         Call the "render" method with no arguments since the markup for
         this menu already exists in the DOM.
    */
		oMenu.render();


	if (si>-1 && oMenu.getItem(si)._oSubmenu) oMenu.getItem(si)._oSubmenu.show();

	if (si>-1) oMenu.getItem(si).cfg.setProperty("selected",true);
	if (sj>-1)
	    oMenu.getItem(si)._oSubmenu.getItem(sj).cfg.setProperty("selected",true);


});

function popup_printmap(lang) {
	 window.open ("/map/print/?lang="+lang, "indigo-print","menubar=0,resizable=1,width=570,height=590");
}


