// get browser var agent = navigator.userAgent.toLowerCase(); var isIE = (navigator.appName == "Microsoft Internet Explorer") ? true : false; var isNetscape6 = (!document.all && !document.layers && navigator.appName == "Netscape" && parseInt(navigator.appVersion) >=5) ? true : false; var isMac = (agent.indexOf("Mac") != -1) ? true : false; var isIE4 = (agent.indexOf("MSIE") != -1 && agent.indexOf("4.0;") != -1) ? true : false; var isNetscape = (agent.indexOf("Mozilla") != -1 && agent.indexOf("4.") != -1) ? true : false; var win2000 = ((agent.indexOf("winnt") != -1) || (agent.indexOf("windows nt 5.0") != -1)) ? true : false; var winXP = ((agent.indexOf("winnt") != -1) || (agent.indexOf("windows nt 5.1") != -1)) ? true : false; // insert jscript if((isNetscape6 || isIE || isIE4)) { document.write(''); } else if (isNetscape && !isMac) { document.write(''); } // menu info function createMenuObject () { this.menus[0] = new Object(); this.menus[0].left = 186; this.menus[0].width = 150; this.menus[0].links = new Array("driving by car", "hop on a bus", "catching a train", "car parking", "journey planner", "your travel options" ); this.menus[0].urls = new Array("/pages/car.mhtml", "/pages/bus.mhtml", "/pages/rail.mhtml", "/pages/parking.mhtml", "javascript:void(window.open('http://journeyplanner.tfl.gov.uk'));", "javascript:void(window.open('http://www.tfl.gov.uk/'));" ); this.menus[0].subs = new Array(); this.menus[1] = new Object(); this.menus[1].left = 382; this.menus[1].width = 250; this.menus[1].links = new Array("customer services", "job vacancies", "press releases", "student info", "centre contacts", "Bromley info", "commercial filming & photography", "advertising and promotion opportunities", "disclaimer" ); this.menus[1].urls = new Array("/pages/customer_services/", "javascript:openPopup('glades_popup', '/pages/popup/vacancies/', 561, 500, true, true, true, false, true);", "javascript:openPopup('glades_popup', '/pages/popup/press_releases/', 561, 500, true, true, true, false, true);", "/pages/students/", "/pages/centre_contacts.mhtml", "javascript:void(window.open('http://www.bromley.gov.uk'));", "/pages/filming.mhtml", "/pages/advertising.mhtml", "/pages/disclaimer.mhtml" ); this.menus[1].subs = new Array(); this.menus[1].subs[0] = new Object(); this.menus[1].subs[0].width = 160; this.menus[1].subs[0].links = new Array("disabled facilities", "baby & toddler facilities", "clean air shopping", "meeting point", "services", "rac roadwatch desk", "lost / stolen credit cards", "cash & currency" ); this.menus[1].subs[0].urls = new Array("/pages/customer_services/disabled.mhtml", "/pages/customer_services/baby_toddler.mhtml", "/pages/customer_services/clean_air_shopping.mhtml", "/pages/customer_services/meeting_point.mhtml", "/pages/customer_services/services.mhtml", "/pages/customer_services/rac.mhtml", "/pages/customer_services/lost_stolen_creditcards.mhtml", "/pages/customer_services/cash_currency.mhtml" ); this.menus[1].subs[3] = new Object(); this.menus[1].subs[3].width = 160; this.menus[1].subs[3].links = new Array("facts & figures", "about the glades", "in the community", "awards" ); this.menus[1].subs[3].urls = new Array("/pages/students/student_facts.mhtml", "/pages/students/student_about.mhtml", "/pages/students/student_community.mhtml", "/pages/students/student_awards.mhtml" ); this.menus[2] = new Object(); this.menus[2].left = 426; this.menus[2].width = 150; this.menus[2].links = new Array( "events & promotions", "special offers", "latest news", "gift vouchers", "magazine request" ); this.menus[2].urls = new Array( "javascript:openPopup('glades_popup', '/pages/popup/events/', 561, 500, true, true, true, false, true);", "javascript:openPopup('glades_popup', '/pages/popup/offers/', 561, 500, true, true, true, false, true);", "/pages/news/", "/pages/gift_vouchers.mhtml", "/pages/magazine/" ); this.menus[2].subs = new Array(); } // rollover functions var rOvers = new Array; function preloadImage (ref,image) { rOvers[ref] = new Image; rOvers[ref].src = image + ".gif"; rOvers[ref + "2"] = new Image; rOvers[ref + "2"].src = image + "2.gif"; } function rollOver (ref) { document.images[ref].src = rOvers[ref + "2"].src; } function rollOut (ref) { document.images[ref].src = rOvers[ref].src; } // submit link function swapSubmit(name) { document.getElementById(name + '_submit_link').innerHTML = 'Submitted...'; document.getElementById(name + '_submit_link').style.color = '#99BBFF'; } // popup functions function openPopup (ref, url, width, height, scroll, menu, toolbar, location, status) { window.open(url, ref, "toolbar=no, location=no, menubar=" + ((menu) ? 'yes' : 'no') + ", " + "scrollbars=" + ((scroll) ? 'yes' : 'no') + ", " + "toolbar=" + ((toolbar) ? 'yes' : 'no') + ", " + "status=" + ((status) ? 'yes' : 'no') + ", " + "location=" + ((location) ? 'yes' : 'no') + ", " + "resizable=no, width=" + width + ", height=" + height ); } // bookmark site function bookmark_site() { var bookmarkurl = "http://www.theglades.uk.com"; var bookmarktitle = "The Glades Shopping Centre"; if (isIE || isNetscape6) { window.external.AddFavorite(bookmarkurl,bookmarktitle); } }