var menuData = { // construction du menu en notation JSON menuObject : [ { id:'12503', label:"NYSE Liffe",url_href:'',children: [ { id:'12601', label:"Overview",url_href:'/landing/liffeLanding-12601-EN.html',children: [ ]}, { id:'12810', label:"Market information",url_href:'',children: [ { id:'1643', label:"Corporate actions",url_href:'',children : [ { id:'3960', label:"Notices",url_href:'/news/corporateactions/wide_orclausemapping/corporateActions-3960-EN.html', children: []}, { id:'39419', label:"Latest",url_href:'/editorial/wide/editorial-39419-EN.html', children: []}, { id:'39418', label:"Corp. Actions this week",url_href:'/news/corporateactions/wide_orclausemapping/corporateActions-39418-EN.html', children: []}, { id:'101818', label:"Unusual contract size",url_href:'/editorial/wide/editorial-101818-EN.html', children: []}, { id:'39568', label:"Policy",url_href:'/editorial/wide/editorial-39568-EN.html', children: []} ]}, { id:'12808', label:"News & notices",url_href:'',children : [ { id:'19575', label:"Notices",url_href:'/news/notices/notices-19575-EN.html', children: []}, { id:'22020', label:"Info Flashes",url_href:'/editorial/wide/editorial-22021-EN.html', children: []}, { id:'4765', label:"Other news",url_href:'/news/othernews/otherNews-4765-EN.html', children: []} ]}, { id:'1627', label:"LIFFE CONNECT®",url_href:'',children : [ { id:'3752', label:"Introduction",url_href:'/editorial/wide/editorial-3767-EN.html', children: []}, { id:'3746', label:"Products",url_href:'/editorial/wide/editorial-3997-EN.html', children: []}, { id:'3747', label:"Market access",url_href:'/editorial/wide/editorial-3770-EN.html', children: []}, { id:'3776', label:"How trading happens",url_href:'/editorial/wide/editorial-3776-EN.html', children: []}, { id:'3751', label:"Customer information",url_href:'/editorial/wide/editorial-3773-EN.html', children: []}, { id:'3748', label:"Developer information",url_href:'/editorial/wide/editorial-4004-EN.html', children: []}, { id:'3750', label:"Training",url_href:'/editorial/wide/editorial-3775-EN.html', children: []} ]}, { id:'2246', label:"Rules",url_href:'',children : [ { id:'3388', label:"Harmonised",url_href:'/tools/documentation/wide/documents-3388-EN.html', children: []}, { id:'3389', label:"Non harmonised",url_href:'/tools/documentation/wide/documents-3389-EN.html', children: []}, { id:'21463', label:"London Handbook",url_href:'/editorial/wide/editorial-21464-EN.html', children: []} ]}, { id:'7320', label:"Statistics",url_href:'',children : [ { id:'8522', label:"Per period/topic",url_href:'/editorial/wide/editorial-7339-EN.html', children: []}, { id:'8523', label:"Per region",url_href:'/editorial/wide/editorial-8548-EN.html', children: []}, { id:'11956', label:"Discontinued reports",url_href:'/editorial/wide/editorial-11956-EN.html', children: []} ]}, { id:'11855', label:"Liffe trading calendar",url_href:'/editorial/wide/editorial-11855-EN.html',children : [ ]}, { id:'18923', label:"Exchange holidays / rules",url_href:'',children : [ { id:'1688', label:"Trading hours",url_href:'/editorial/documentation/wide/documents-1688-EN.html', children: []}, { id:'30518', label:"Exchange holidays / rules",url_href:'/editorial/documentation/wide/documents-30518-EN.html', children: []} ]} ]}, { id:'12901', label:"Products",url_href:'',children: [ { id:'46177', label:"Derivatives delayed prices",url_href:'/landing/landingDerivativesPrices-46177-EN.html',children : [ ]}, { id:'1709', label:"Bond derivatives",url_href:'',children : [ { id:'2037', label:"Overview",url_href:'/landing/landingInfo-2037-EN.html', children: []}, { id:'46170', label:"Delayed prices",url_href:'/trader/priceslistsderivatives/derivativespriceslists-46170-EN.html', children: []}, { id:'2038', label:"Product information",url_href:'/trader/contractspecifications/wide/contractSpecifications-3107-EN.html', children: []}, { id:'2040', label:"Delivery",url_href:'/editorial/wide/editorial-4130-EN.html', children: []}, { id:'2036', label:"News & notices",url_href:'/news/notices/notices-3075-EN.html', children: []}, { id:'2042', label:"Wholesale trading",url_href:'/editorial/wide/editorial-3534-EN.html', children: []}, { id:'2039', label:"Publications",url_href:'/tools/documentation/wide/documents-2039-EN.html', children: []}, { id:'2041', label:"Trading calendars",url_href:'/editorial/wide/editorial-3538-EN.html', children: []}, { id:'2034', label:"End of Day/EDSP",url_href:'/editorial/wide/editorial-2034-EN.html', children: []} ]}, { id:'1710', label:"Commodities",url_href:'',children : [ { id:'3127', label:"Overview",url_href:'/landing/landingInfo-3127-EN.html', children: []}, { id:'46171', label:"Delayed prices",url_href:'/trader/priceslistsderivatives/derivativespriceslists-46171-EN.html', children: []}, { id:'3121', label:"News & notices",url_href:'/news/notices/notices-2888-EN.html', children: []}, { id:'3124', label:"Product information",url_href:'/trader/contractspecifications/wide/contractSpecifications-3064-EN.html', children: []}, { id:'3123', label:"Trading calendars",url_href:'/editorial/wide/editorial-3068-EN.html', children: []}, { id:'3130', label:"Delivery",url_href:'/editorial/wide/editorial-4127-EN.html', children: []}, { id:'3118', label:"Wholesale trading",url_href:'/editorial/wide/editorial-4256-EN.html', children: []}, { id:'3119', label:"Advisory groups",url_href:'/editorial/wide/editorial-3057-EN.html', children: []}, { id:'3116', label:"Publications",url_href:'/tools/documentation/wide/documents-3116-EN.html', children: []}, { id:'3125', label:"Background information",url_href:'/editorial/wide/editorial-3049-EN.html', children: []}, { id:'3120', label:"Trade associations",url_href:'/editorial/wide/editorial-3053-EN.html', children: []}, { id:'3131', label:"Commodity reports",url_href:'/editorial/wide/editorial-3131-EN.html', children: []}, { id:'3132', label:"End of Day/EDSP",url_href:'/editorial/wide/editorial-3132-EN.html', children: []}, { id:'23868', label:"Incentives Schemes",url_href:'/editorial/wide/editorial-23869-EN.html', children: []}, { id:'85968', label:"Fees and Charges",url_href:'/editorial/wide/editorial-4123-EN.html', children: []} ]}, { id:'1711', label:"Currencies",url_href:'',children : [ { id:'2123', label:"Overview",url_href:'/landing/landingInfo-2123-EN.html', children: []}, { id:'46172', label:"Delayed prices",url_href:'/trader/priceslistsderivatives/derivativespriceslists-46172-EN.html', children: []}, { id:'2124', label:"Market watch",url_href:'/trader/marketwatch/marketwatch-3217-EN.html', children: []}, { id:'2121', label:"News & notices",url_href:'/news/notices/notices-2893-EN.html', children: []}, { id:'2122', label:"Product information",url_href:'/trader/contractspecifications/wide/contractSpecifications-3586-EN.html', children: []}, { id:'2120', label:"Trading calendars",url_href:'/editorial/wide/editorial-3591-EN.html', children: []}, { id:'2117', label:"Wholesale trading",url_href:'/editorial/wide/editorial-4258-EN.html', children: []}, { id:'2116', label:"Publications",url_href:'/tools/documentation/wide/documents-2116-EN.html', children: []}, { id:'2118', label:"End of Day/EDSP",url_href:'/editorial/wide/editorial-2118-EN.html', children: []} ]}, { id:'1694', label:"ETF/Tracker options",url_href:'',children : [ { id:'1857', label:"Overview",url_href:'/landing/landingInfo-1857-EN.html', children: []}, { id:'46173', label:"Delayed prices",url_href:'/trader/priceslistsderivatives/derivativespriceslists-46173-EN.html', children: []}, { id:'1854', label:"Market watch",url_href:'/trader/marketwatch/marketwatch-3154-EN.html', children: []}, { id:'1861', label:"News & notices",url_href:'/news/notices/notices-2700-EN.html', children: []}, { id:'1856', label:"Product information",url_href:'/trader/contractspecifications/wide/contractSpecifications-3095-EN.html', children: []}, { id:'1851', label:"Liquidity schemes",url_href:'/editorial/wide/editorial-4800-EN.html', children: []}, { id:'1860', label:"Trading calendars",url_href:'/editorial/wide/editorial-3508-EN.html', children: []}, { id:'1858', label:"Publications",url_href:'/tools/documentation/wide/documents-1858-EN.html', children: []}, { id:'1862', label:"End of Day/EDSP",url_href:'/editorial/wide/editorial-1862-EN.html', children: []}, { id:'1853', label:"Bclear Cscreen",url_href:'/landing/landingGeneral-4562-EN.html', children: []} ]}, { id:'1705', label:"STIRs",url_href:'',children : [ { id:'2099', label:"Overview",url_href:'/landing/landingInfo-2099-EN.html', children: []}, { id:'46174', label:"Delayed prices",url_href:'/trader/priceslistsderivatives/derivativespriceslists-46174-EN.html', children: []}, { id:'2093', label:"News & notices",url_href:'/news/notices/notices-3544-EN.html', children: []}, { id:'2097', label:"Product information",url_href:'/trader/contractspecifications/wide/contractSpecifications-3554-EN.html', children: []}, { id:'2095', label:"Trading calendars",url_href:'/editorial/wide/editorial-3561-EN.html', children: []}, { id:'2098', label:"Wholesale trading",url_href:'/editorial/wide/editorial-3549-EN.html', children: []}, { id:'2087', label:"Publications",url_href:'/tools/documentation/wide/documents-2087-EN.html', children: []}, { id:'2102', label:"End of Day/EDSP",url_href:'/editorial/wide/editorial-2102-EN.html', children: []}, { id:'2101', label:"Packs & Bundles",url_href:'/editorial/wide/editorial-4511-EN.html', children: []}, { id:'2096', label:"Liquidity schemes",url_href:'/editorial/wide/editorial-2835-EN.html', children: []}, { id:'2090', label:"EURIBOR®",url_href:'/editorial/wide/editorial-4388-EN.html', children: []}, { id:'2092', label:"Eonia®",url_href:'/editorial/wide/editorial-4398-EN.html', children: []}, { id:'11155', label:"STIR Options",url_href:'/editorial/wide/editorial-11162-EN.html', children: []} ]}, { id:'1699', label:"Stock indices",url_href:'',children : [ { id:'1896', label:"Overview",url_href:'/landing/landingInfo-1896-EN.html', children: []}, { id:'46175', label:"Delayed prices",url_href:'/trader/priceslistsderivatives/derivativespriceslists-46175-EN.html', children: []}, { id:'1892', label:"Market watch",url_href:'/trader/marketwatch/marketwatch-3177-EN.html', children: []}, { id:'1897', label:"News & notices",url_href:'/news/notices_orclausemapping/notices-2851-EN.html', children: []}, { id:'1901', label:"Product information",url_href:'/trader/contractspecifications/wide/contractSpecifications-3503-EN.html', children: []}, { id:'1889', label:"Liquidity schemes",url_href:'/editorial/wide/editorial-4774-EN.html', children: []}, { id:'1895', label:"Trading calendars",url_href:'/editorial/wide/editorial-3528-EN.html', children: []}, { id:'1894', label:"Wholesale trading",url_href:'/editorial/wide/editorial-3522-EN.html', children: []}, { id:'1893', label:"Publications",url_href:'/tools/documentation/wide/documents-1893-EN.html', children: []}, { id:'1898', label:"End of Day/EDSP",url_href:'/editorial/wide/editorial-1898-EN.html', children: []}, { id:'1891', label:"Bclear Cscreen",url_href:'/landing/landingGeneral-4562-EN.html', children: []}, { id:'1888', label:"Weekly/Daily Options",url_href:'/editorial/wide/editorial-1888-EN.html', children: []}, { id:'11355', label:"FTSE EPRA / NAREIT",url_href:'/editorial/wide/editorial-11356-EN.html', children: []} ]}, { id:'1693', label:"Stock futures",url_href:'',children : [ { id:'2731', label:"Overview",url_href:'/landing/landingInfo-2731-EN.html', children: []}, { id:'2721', label:"Delayed prices",url_href:'/trader/priceslistsderivatives/derivativespriceslists-2721-EN.html', children: []}, { id:'2722', label:"Market watch",url_href:'/trader/marketwatch/marketwatch-3169-EN.html', children: []}, { id:'2724', label:"News & notices",url_href:'/news/notices/notices-2739-EN.html', children: []}, { id:'2729', label:"Product information",url_href:'/trader/contractspecifications/wide/contractSpecifications-3111-EN.html', children: []}, { id:'2720', label:"Liquidity schemes",url_href:'/editorial/wide/editorial-4806-EN.html', children: []}, { id:'2727', label:"Trading calendars",url_href:'/editorial/wide/editorial-3519-EN.html', children: []}, { id:'2723', label:"Wholesale trading",url_href:'/editorial/wide/editorial-3514-EN.html', children: []}, { id:'2726', label:"Publications",url_href:'/tools/documentation/wide/documents-2726-EN.html', children: []}, { id:'2717', label:"Trading simulation",url_href:'http://usftradinggame.euronext.if5.com/', children: []}, { id:'2725', label:"End of Day/EDSP",url_href:'/editorial/wide/editorial-2725-EN.html', children: []}, { id:'2719', label:"Bclear Cscreen",url_href:'/landing/landingGeneral-4562-EN.html', children: []} ]}, { id:'1692', label:"Stock options",url_href:'',children : [ { id:'1834', label:"Overview",url_href:'/landing/landingInfo-1834-EN.html', children: []}, { id:'1830', label:"Delayed prices",url_href:'/trader/priceslistsderivatives/derivativespriceslists-1830-EN.html', children: []}, { id:'1833', label:"Market watch",url_href:'/trader/marketwatch/marketwatch-3161-EN.html', children: []}, { id:'1839', label:"News & notices",url_href:'/news/notices_orclausemapping/notices-2712-EN.html', children: []}, { id:'1835', label:"Product information",url_href:'/trader/contractspecifications/wide/contractSpecifications-3084-EN.html', children: []}, { id:'1832', label:"Liquidity schemes",url_href:'/editorial/wide/editorial-3089-EN.html', children: []}, { id:'1837', label:"Trading calendars",url_href:'/editorial/wide/editorial-3511-EN.html', children: []}, { id:'1836', label:"Wholesale trading",url_href:'/editorial/wide/editorial-3077-EN.html', children: []}, { id:'1838', label:"Publications",url_href:'/tools/documentation/wide/documents-1838-EN.html', children: []}, { id:'1840', label:"End of Day/EDSP",url_href:'/editorial/wide/editorial-1840-EN.html', children: []}, { id:'1829', label:"Bclear Cscreen",url_href:'/landing/landingGeneral-4562-EN.html', children: []}, { id:'38619', label:"PBTS",url_href:'/editorial/wide/editorial-38619-EN.html', children: []} ]}, { id:'1708', label:"Swapnote®",url_href:'',children : [ { id:'2114', label:"Overview",url_href:'/landing/landingInfo-2114-EN.html', children: []}, { id:'46176', label:"Delayed prices",url_href:'/trader/priceslistsderivatives/derivativespriceslists-46176-EN.html', children: []}, { id:'2115', label:"News & notices",url_href:'/news/notices/notices-3567-EN.html', children: []}, { id:'2111', label:"Product information",url_href:'/trader/contractspecifications/wide/contractSpecifications-3582-EN.html', children: []}, { id:'2110', label:"Trading calendars",url_href:'/editorial/wide/editorial-3583-EN.html', children: []}, { id:'2112', label:"Wholesale trading",url_href:'/editorial/wide/editorial-3572-EN.html', children: []}, { id:'2106', label:"Pricing/EDSPs",url_href:'/editorial/wide/editorial-4303-EN.html', children: []}, { id:'2103', label:"Publications",url_href:'/tools/documentation/wide/documents-2103-EN.html', children: []}, { id:'2104', label:"End of Day/EDSP",url_href:'/editorial/wide/editorial-2104-EN.html', children: []}, { id:'2105', label:"Education",url_href:'/editorial/wide/editorial-4160-EN.html', children: []}, { id:'2108', label:"€Swapnote®",url_href:'/editorial/wide/editorial-4404-EN.html', children: []} ]} ]}, { id:'4561', label:"OTC Services",url_href:'',children: [ { id:'4562', label:"Overview",url_href:'/landing/landingGeneral-4562-EN.html',children : [ ]}, { id:'4563', label:"Bclear - Equities",url_href:'',children : [ { id:'4573', label:"Overview",url_href:'/editorial/wide/editorial-4573-EN.html', children: []}, { id:'4578', label:"Go live preparation",url_href:'/editorial/wide/editorial-4578-EN.html', children: []}, { id:'4577', label:"Contracts & trading",url_href:'/editorial/wide/editorial-4577-EN.html', children: []}, { id:'4575', label:"Publications",url_href:'/editorial/wide/editorial-4575-EN.html', children: []}, { id:'4580', label:"Reported trades",url_href:'/editorial/wide/editorial-4658-EN.html', children: []}, { id:'34318', label:"US approved contracts",url_href:'/editorial/wide/editorial-34318-EN.html', children: []} ]}, { id:'54521', label:"Bclear - Commodities",url_href:'',children : [ { id:'54522', label:"Overview",url_href:'/editorial/wide/editorial-54522-EN.html', children: []}, { id:'54523', label:"Publications",url_href:'/editorial/wide/editorial-54523-EN.html', children: []}, { id:'54524', label:"Go live preparation",url_href:'/editorial/wide/editorial-54524-EN.html', children: []} ]}, { id:'4564', label:"Cscreen",url_href:'',children : [ { id:'4570', label:"Introduction",url_href:'/editorial/wide/editorial-4570-EN.html', children: []}, { id:'4571', label:"Publications",url_href:'/editorial/wide/editorial-4571-EN.html', children: []} ]}, { id:'4568', label:"Contact us",url_href:'/editorial/wide/editorial-4568-EN.html',children : [ ]}, { id:'98118', label:"OTC status",url_href:'http://marketstatus.production.euronext.com/otc.htm',children : [ ]} ]}, { id:'18871', label:"Education",url_href:'',children: [ { id:'4741', label:"Overview",url_href:'/editorial/wide/editorial-4741-EN.html',children : [ ]}, { id:'1828', label:"Equity workshops",url_href:'',children : [ { id:'4780', label:"Introduction",url_href:'/editorial/wide/editorial-4780-EN.html', children: []}, { id:'19213', label:"Courses",url_href:'/editorial/wide/editorial-19213-EN.html', children: []}, { id:'4781', label:"Registration",url_href:'/editorial/wide/editorial-4781-EN.html', children: []}, { id:'4782', label:"Further information",url_href:'/editorial/wide/editorial-4782-EN.html', children: []}, { id:'4783', label:"How to find us",url_href:'/editorial/wide/editorial-4783-EN.html', children: []} ]}, { id:'3133', label:"Commodity workshops",url_href:'',children : [ { id:'4172', label:"Introduction",url_href:'/editorial/wide/editorial-4172-EN.html', children: []}, { id:'4175', label:"Courses",url_href:'/editorial/wide/editorial-4177-EN.html', children: []}, { id:'4174', label:"Speakers",url_href:'/editorial/wide/editorial-4174-EN.html', children: []}, { id:'4176', label:"Registration",url_href:'/editorial/wide/editorial-4176-EN.html', children: []}, { id:'4173', label:"Further notification",url_href:'/editorial/wide/editorial-4173-EN.html', children: []} ]}, { id:'4814', label:"Interest rate courses",url_href:'',children : [ { id:'4840', label:"Introduction",url_href:'/editorial/wide/editorial-4840-EN.html', children: []}, { id:'4841', label:"Courses",url_href:'/editorial/wide/editorial-4859-EN.html', children: []}, { id:'4844', label:"Speakers",url_href:'/editorial/wide/editorial-4844-EN.html', children: []}, { id:'4843', label:"Registration",url_href:'/editorial/wide/editorial-4843-EN.html', children: []}, { id:'4842', label:"Further information",url_href:'/editorial/wide/editorial-4842-EN.html', children: []} ]} ]}, { id:'12809', label:"Customer service",url_href:'',children: [ { id:'4134', label:"Market services",url_href:'',children : [ { id:'4141', label:"Contacts",url_href:'/editorial/wide/editorial-4141-EN.html', children: []}, { id:'4144', label:"Market status",url_href:'http://marketstatus.euronext.com/derivative.htm', children: []} ]}, { id:'4135', label:"Sales / Account management",url_href:'/editorial/wide/editorial-4135-EN.html',children : [ ]}, { id:'4136', label:"Complaints process",url_href:'/editorial/wide/editorial-4136-EN.html',children : [ ]}, { id:'21776', label:"Infrastructure extranet",url_href:'/editorial/wide/editorial-21776-EN.html',children : [ ]} ]}, { id:'1621', label:"Membership",url_href:'',children: [ { id:'4122', label:"Overview",url_href:'/landing/landingGeneral-4122-EN.html',children : [ ]}, { id:'4113', label:"Becoming a Member",url_href:'/editorial/wide/editorial-4113-EN.html',children : [ ]}, { id:'4116', label:"Membership Forms",url_href:'/editorial/wide/editorial-4116-EN.html',children : [ ]}, { id:'4114', label:"Affiliate Access",url_href:'/editorial/wide/editorial-4114-EN.html',children : [ ]}, { id:'4112', label:"Trader Registration",url_href:'/editorial/wide/editorial-4112-EN.html',children : [ ]}, { id:'1663', label:"Membership Directory",url_href:'/forourclient/mbs/market/list-1663-EN.html',children : [ ]}, { id:'4123', label:"Fees and Charges",url_href:'/editorial/wide/editorial-4123-EN.html',children : [ ]} ]}, { id:'84918', label:"NYSE Liffe Clearing",url_href:'',children: [ { id:'54322', label:"Introduction",url_href:'/landing/liffeLanding-54322-EN.html',children : [ ]}, { id:'84920', label:"Clearing - TRS/CPS",url_href:'/editorial/wide/editorial-84920-EN.html',children : [ ]}, { id:'84919', label:"TRS & Clearing status",url_href:'http://marketstatus.production.euronext.com/clearing.htm',children : [ ]}, { id:'91368', label:"Span Information",url_href:'/editorial/wide/editorial-91368-EN.html',children : [ ]} ]} ]} ], // méthodes de construction du menu en HTML referenceChannel : undefined, anchorElement : undefined, focusedElement : undefined, channelIDSelected : undefined, hasVisibleNodeChildren : false, buildMenu : function(elt, visibleNode) { menuData.anchorElement = elt; menuData.channelIDSelected = visibleNode ; menuData.buildSubMenu(elt, menuData.menuObject, 1); menuData.anchorElement.select("li.extensible").each(function(item) { item.addClassName("collapsed"); item.addClassName("collapsed-level"+item.level); }); var referenceChannel=$(visibleNode); menuData.focusedElement = $(visibleNode) ; if (referenceChannel != undefined && referenceChannel != null) { level = referenceChannel.level ; if ( ! menuData.hasVisibleNodeChildren && (level == 2 || level == 3 || level == 4)) referenceChannel.addClassName("focusedLevel"+level) ; else if (level == 1) referenceChannel.addClassName("focused"); if (!referenceChannel.hasClassName("extensible")) referenceChannel = referenceChannel.up("li.extensible"); if (referenceChannel != undefined) { referenceChannel.expandMenu(); menuData.referenceChannel = referenceChannel; } } menuData.anchorElement.observe("click", menuClickObserver); $(document).observe("mouseover", menuOverObserver); }, buildSubMenu : function(elt, children, level) { var ul = new Element("ul"); children.each(function(item) { var li = new Element("li", {id : item.id}); li.level=level; if (item.children.length > 0) { if (item.id == menuData.channelIDSelected) menuData.hasVisibleNodeChildren = true ; li.update("
"+item.label+"
"); li.addClassName("extensible"); li.collapseMenu=menuFct.collapseMenu; li.expandMenu=menuFct.expandMenu; var subUl = menuData.buildSubMenu(li, item.children, level+1); subUl.hide(); } else li.update("
"+item.label+"
"); ul.insert(li); }); elt.insert(ul); return ul; } }; var menuFct = { collapseMenu : function () { var elt = $(this); if (elt.hasClassName("collapsed")) return; elt.removeClassName("expanded"); elt.removeClassName("expanded-level"+elt.level); elt.addClassName("collapsed"); elt.addClassName("collapsed-level"+elt.level); var toHide = elt.childElements()[1]; Effect.BlindUp(toHide, { duration: 0.2 }); // collapse children recursively elt.select('li.expanded').each(function(child) { child.collapseMenu() ; }) ; }, expandMenu : function () { var elt = $(this); // expand if not done yet if (!elt.hasClassName("expanded")) { elt.addClassName("expanded"); elt.addClassName("expanded-level"+elt.level); elt.removeClassName("collapsed"); elt.removeClassName("collapsed-level"+elt.level); var toShow = elt.childElements()[1]; Effect.BlindDown(toShow, { duration: 0.3 }); } // collapse sibblings elt.siblings().each(function(sib) { if (sib.match("li.extensible", "expanded")) sib.collapseMenu(); }); // expand father recursively var fatherToExpand = elt.up('.extensible'); if (fatherToExpand != undefined) fatherToExpand.expandMenu(); } }; var backToRefID = null; function menuOverObserver(e) { var element = Event.element(e); if (element.descendantOf(menuData.anchorElement)) // Over menu { // Just entered -> Cancel the back to reference channel callback if (backToRefID != null) { clearTimeout(backToRefID); backToRefID = null; } } // Not over menu and trigger not set yet else if (backToRefID == null) { // Trigger the back to reference channel callback backToRefID = setTimeout(function() { // open the reference node if (menuData.referenceChannel != undefined) { menuData.referenceChannel.expandMenu(); // collpase the children of the reference element menuData.referenceChannel.select('.expanded').each(function(child) { child.collapseMenu() ; }) ; } // collapse the brothers of the active element if (menuData.focusedElement != undefined) { menuData.focusedElement.siblings().each(function(sib) { if (sib.match("li.extensible", "expanded")) sib.collapseMenu() ; }) ; } }, 5000); } } function menuClickObserver(e) { var elt = Event.element(e); // Skip links if (elt.match("a div")||elt.match("a")) return; // Get the first extensible parent var extensibleParent = elt.match("li.extensible")?elt:elt.up("li.extensible"); // If not found, we're not in the menu if (extensibleParent == undefined) return; if (extensibleParent.expandMenu != undefined) // If found { if (extensibleParent.hasClassName("expanded")) extensibleParent.collapseMenu(); else extensibleParent.expandMenu(); e.stop(); } }