var irlStore=false; // test for pro site. if(document.location.href.indexOf("store=irl") > -1) {irlStore=true;} var retailMenu = function() {} retailMenu.onMenuLoad = function(p_oEvent) { var oMenuData = { "imsMenu" : [ { url: "index.php?store=ims&category=specials", text: "Specials" }, { url: "index.php?store=ims&category=apparel", text: "Apparel" }, { url: "index.php?store=ims&category=izod", text: "IZOD" }, { url: "index.php?store=ims&category=ladies", text: "Ladies" }, { url: "index.php?store=ims&category=youth/infant", text: "Youth/Infant" }, { url: "index.php?store=ims&category=caps", text: "Caps" }, { url: "index.php?store=ims&category=diecast", text: "Die-cast" }, { url: "index.php?store=ims&category=hot wheels", text: "Hot Wheels" }, { url: "index.php?store=ims&category=collectibles", text: "Collectibles" }, { url: "index.php?store=ims&category=glassware", text: "Glassware" }, { url: "index.php?store=ims&category=lapel pins/key chains", text: "Lapel Pins/Key Chains" }, { url: "index.php?store=ims&category=souvenirs", text: "Souvenirs" }, { url: "index.php?store=ims&category=golf shop", text: "Golf Shop" }, { url: "index.php?store=ims&category=historical", text: "Historical" }, { url: "index.php?store=ims&category=programs", text: "Programs" }, { url: "index.php?store=ims&category=media", text: "Media" }, { url: "index.php?store=ims&category=watches/jewelry", text: "Watches/Jewelry" }, { url: "http://members.ebay.com/ws/eBayISAPI.dll?ViewUserPage&userid=ims_online", text: "Auctions", target: "_blank" } ], "indyMenu" : [ { url: "index.php?store=500&category=specials", text: "Specials" }, { url: "index.php?store=500&category=apparel", text: "Apparel" }, { url: "index.php?store=500&category=izod", text: "IZOD" }, { url: "index.php?store=500&category=champion", text: "Champion" }, { url: "index.php?store=500&category=ladies", text: "Ladies" }, { url: "index.php?store=500&category=youth/infant", text: "Youth/Infant" }, { url: "index.php?store=500&category=caps", text: "Caps" }, { url: "index.php?store=500&category=diecast", text: "Die-cast" }, { url: "index.php?store=500&category=hot wheels", text: "Hot Wheels" }, { url: "index.php?store=500&category=collectibles", text: "Collectibles" }, { url: "index.php?store=500&category=glassware", text: "Glassware" }, { url: "index.php?store=500&category=lapel pins/key chains", text: "Lapel Pins/Key Chains" }, { url: "index.php?store=500&category=souvenirs", text: "Souvenirs" }, { url: "index.php?store=500&category=historical", text: "Historical" }, { url: "index.php?store=500&category=programs", text: "Programs" }, { url: "index.php?store=500&category=media", text: "Media" }, { url: "index.php?store=500&category=watches/jewelry", text: "Watches/Jewelry" }, { url: "http://members.ebay.com/ws/eBayISAPI.dll?ViewUserPage&userid=ims_online", text: "Auctions", target: "_blank" } ], "asbyMenu" : [ { url: "index.php?store=400&category=apparel", text: "Apparel" }, { url: "index.php?store=400&category=champion", text: "Champion" }, { url: "index.php?store=400&category=ladies", text: "Ladies" }, { url: "index.php?store=400&category=youth/infant", text: "Youth/Infant" }, { url: "index.php?store=400&category=caps", text: "Caps" }, { url: "index.php?store=400&category=diecast", text: "Die-cast" }, { url: "index.php?store=400&category=collectibles", text: "Collectibles" }, { url: "index.php?store=400&category=glassware", text: "Glassware" }, { url: "index.php?store=400&category=lapel pins/key chains", text: "Lapel Pins/Key Chains" }, { url: "index.php?store=400&category=souvenirs", text: "Souvenirs" }, { url: "index.php?store=400&category=historical", text: "Historical" }, { url: "index.php?store=400&category=programs", text: "Programs" }, { url: "index.php?store=400&category=media", text: "Media" }, { url: "http://members.ebay.com/ws/eBayISAPI.dll?ViewUserPage&userid=ims_online", text: "Auctions", target: "_blank" } ], "motogpMenu" : [ { url: "index.php?store=motogp&category=apparel", text: "Apparel" }, { url: "index.php?store=motogp&category=alpinestars", text: "Alpinestars" }, { url: "index.php?store=motogp&category=champion", text: "Champion" }, { url: "index.php?store=motogp&category=ladies", text: "Ladies" }, { url: "index.php?store=motogp&category=youth/infant", text: "Youth/Infant" }, { url: "index.php?store=motogp&category=caps", text: "Caps" }, { url: "index.php?store=motogp&category=diecast", text: "Die-cast" }, { url: "index.php?store=motogp&category=collectibles", text: "Collectibles" }, { url: "index.php?store=motogp&category=glassware", text: "Glassware" }, { url: "index.php?store=motogp&category=lapel pins/key chains", text: "Lapel Pins/Key Chains" }, { url: "index.php?store=motogp&category=souvenirs", text: "Souvenirs" }, { url: "index.php?store=motogp&category=historical", text: "Historical" }, { url: "index.php?store=motogp&category=programs", text: "Programs" }, { url: "index.php?store=motogp&category=media", text: "Media" }, { url: "index.php?store=motogp&category=watches/jewelry", text: "Watches/Jewelry" }, { url: "http://members.ebay.com/ws/eBayISAPI.dll?ViewUserPage&userid=ims_online", text: "Auctions", target: "_blank" } ], "indycarMenu" : [ { url: "index.php?store=irl&category=apparel", text: "Apparel" }, { url: "index.php?store=irl&category=izod", text: "IZOD" }, { url: "index.php?store=irl&category=champion", text: "Champion" }, { url: "index.php?store=irl&category=ladies", text: "Ladies" }, { url: "index.php?store=irl&category=youth/infant", text: "Youth/Infant" }, { url: "index.php?store=irl&category=caps", text: "Caps" }, { url: "index.php?store=irl&category=diecast", text: "Die-cast" }, { url: "index.php?store=irl&category=hot wheels", text: "Hot Wheels" }, { url: "index.php?store=irl&category=collectibles", text: "Collectibles" }, { url: "index.php?store=irl&category=glassware", text: "Glassware" }, { url: "index.php?store=irl&category=lapel pins/key chains", text: "Lapel Pins/Key Chains" }, { url: "index.php?store=irl&category=souvenirs", text: "Souvenirs" }, { url: "index.php?store=irl&category=media", text: "Media" }, { url: "index.php?store=irl&category=watches/jewelry", text: "Watches/Jewelry" }, { url: "http://members.ebay.com/ws/eBayISAPI.dll?ViewUserPage&userid=ims_online", text: "Auctions", target: "_blank" }, { url: "index.php?store=irl&category=susan g. komen", text: "Susan G. Komen" } ], "specialsMenu" : [ { url: "index.php?store=special&category=specials", text: "Specials" }, { url: "index.php?store=special&category=apparel", text: "Apparel" }, { url: "index.php?store=special&category=alpinestars", text: "Alpinestars" }, { url: "index.php?store=special&category=izod", text: "IZOD" }, { url: "index.php?store=special&category=champion", text: "Champion" }, { url: "index.php?store=special&category=ladies", text: "Ladies" }, { url: "index.php?store=special&category=youth/infant", text: "Youth/Infant" }, { url: "index.php?store=special&category=caps", text: "Caps" }, { url: "index.php?store=special&category=diecast", text: "Die-cast" }, { url: "index.php?store=special&category=hot wheels", text: "Hot Wheels" }, { url: "index.php?store=special&category=collectibles", text: "Collectibles" }, { url: "index.php?store=special&category=glassware", text: "Glassware" }, { url: "index.php?store=special&category=lapel pins/key chains", text: "Lapel Pins/Key Chains" }, { url: "index.php?store=special&category=souvenirs", text: "Souvenirs" }, { url: "index.php?store=special&category=golf shop", text: "Golf Shop" }, { url: "index.php?store=special&category=historical", text: "Historical" }, { url: "index.php?store=special&category=programs", text: "Programs" }, { url: "index.php?store=special&category=media", text: "Media" }, { url: "http://members.ebay.com/ws/eBayISAPI.dll?ViewUserPage&userid=ims_online", text: "Auctions", target: "_blank" } ], "centennialMenu" : [ { url: "index.php?store=centennial&category=specials", text: "Specials" }, { url: "index.php?store=centennial&category=apparel", text: "Apparel" }, { url: "index.php?store=centennial&category=alpinestars", text: "Alpinestars" }, { url: "index.php?store=centennial&category=izod", text: "IZOD" }, { url: "index.php?store=centennial&category=ladies", text: "Ladies" }, { url: "index.php?store=centennial&category=youth/infant", text: "Youth/Infant" }, { url: "index.php?store=centennial&category=caps", text: "Caps" }, { url: "index.php?store=centennial&category=collectibles", text: "Collectibles" }, { url: "index.php?store=centennial&category=glassware", text: "Glassware" }, { url: "index.php?store=centennial&category=lapel pins/key chains", text: "Lapel Pins/Key Chains" }, { url: "index.php?store=centennial&category=souvenirs", text: "Souvenirs" }, { url: "index.php?store=centennial&category=historical", text: "Historical" }, { url: "index.php?store=centennial&category=programs", text: "Programs" }, { url: "index.php?store=centennial&category=media", text: "Media" }, { url: "index.php?store=centennial&category=watches/jewelry", text: "Watches/Jewelry" }, { url: "http://members.ebay.com/ws/eBayISAPI.dll?ViewUserPage&userid=ims_online", text: "Auctions", target: "_blank" } ], "causeMenu" : [ { url: "index.php?store=cause&category=apparel", text: "Apparel" }, { url: "index.php?store=cause&category=caps", text: "Caps" }, { url: "http://members.ebay.com/ws/eBayISAPI.dll?ViewUserPage&userid=ims_online", text: "Auctions", target: "_blank" }, { url: "index.php?store=cause&category=fisher house", text: "Fisher House" }, { url: "index.php?store=cause&category=susan g. komen", text: "Susan G. Komen" } ] }; // "beforeshow" handler for each submenu of the menubar function onMenuBeforeShow(p_sType, p_sArgs) { if(this.getItemGroups().length == 0) { // load up the menu var aItemsData = this.itemsData, nItems = aItemsData.length, oItemData, oItemConfig, oSubmenu; for(var i=0; i