YAHOO.util.Event.onContentReady("hmmenu", function () { /* Instantiate a MenuBar: The first argument passed to the constructor is the id of the element in the page representing the MenuBar; the second is an object literal of configuration properties. */ var oMenuBar = new YAHOO.widget.MenuBar("hmmenu", { autosubmenudisplay: false, showdelay: 0, hidedelay: 750, clicktohide: false, lazyload: true }); /* Define an array of object literals, each containing the data necessary to create a submenu. */ var aSubmenuData = [ { id: "angebote", itemdata: [ { text: "Neuzugänge", url: "http://www.gebrauchtroboter.at/de/aktuelle_angebote/neuzugaenge/" }, { text: "Alle Angebote", url: "http://www.gebrauchtroboter.at/de/aktuelle_angebote/" }, { text: "Roboter", url: "http://www.gebrauchtroboter.at/de/aktuelle_angebote/roboter/linktoY29udD1rYXRfZGV0YWlsJmthdElEPTEz", submenu: { id: "roboter", itemdata: [ { text: "Schweißroboter Knickarm", url: "http://www.gebrauchtroboter.at/de/aktuelle_angebote/roboter/schweißroboter_knickarm/linktoY29udD1rYXRfZGV0YWlsJmthdElEPTE4Mg==" }, { text: "Zubehör für Roboter", url: "http://www.gebrauchtroboter.at/de/aktuelle_angebote/roboter/zubehör_für_roboter/linktoY29udD1rYXRfZGV0YWlsJmthdElEPTE4Ng==" }, ] } }, ] }, { id: "ersatzteile", itemdata: [ { text: "Neu", url: "http://www.gebrauchtroboter.at/de/ersatz-_und_verschleissteile/" }, { text: "Gebraucht", url: "http://www.gebrauchtroboter.at/de/ersatz-_und_verschleissteile/gebraucht/", submenu: { id: "ersatzteilsub", itemdata: [ { text: "Zubehör für Roboter", url: "http://www.gebrauchtroboter.at/de/ersatz-_und_verschleissteile/gebraucht/zubehör_für_roboter/linktoY29udD1rYXRfZGV0YWlsJmVyc2F0ej0xJmthdElEPTE4Ng==" }, ] } }, ] }, { id: "unternehmen", itemdata: [ { text: "Profil", url: "http://www.gebrauchtroboter.at/de/unternehmen/profil/" }, { text: "Referenzen", url: "http://www.gebrauchtroboter.at/de/unternehmen/referenzen/" }, { text: "Impressum", url: "http://www.gebrauchtroboter.at/de/unternehmen/impressum/" }, { text: "AGB", url: "http://www.gebrauchtroboter.at/de/unternehmen/agb/" } ] } , { id: "kontakt", itemdata: [ { text: "Kontakt & Mail", url: "http://www.gebrauchtroboter.at/de/kontakt/" }, { text: "Kaufangebot einholen", url: "http://www.gebrauchtroboter.at/de/kontakt/kaufangebot_einholen/" }, { text: "Direktanfrage senden", url: "http://www.gebrauchtroboter.at/de/kontakt/direktanfrage/" } ] } ]; var ua = YAHOO.env.ua, oAnim; // Animation instance /* "beforeshow" event handler for each submenu of the MenuBar instance, used to setup certain style properties before the menu is animated. */ function onSubmenuBeforeShow(p_sType, p_sArgs) { var oBody, oElement, oShadow, oUL; if (this.parent) { oElement = this.element; /* Get a reference to the Menu's shadow element and set its "height" property to "0px" to syncronize it with the height of the Menu instance. */ oShadow = oElement.lastChild; oShadow.style.height = "0px"; /* Stop the Animation instance if it is currently animating a Menu. */ if (oAnim && oAnim.isAnimated()) { oAnim.stop(); oAnim = null; } /* Set the body element's "overflow" property to "hidden" to clip the display of its negatively positioned