// 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 document.write(''); // menu info function createMenuObject () { // getting here this.menus[0] = new Object(); this.menus[0].left = 188; this.menus[0].width = 160; this.menus[0].links = new Array("car parking", "public transport" ); this.menus[0].urls = new Array("/pages/parking.mhtml", "/pages/public.mhtml" ); this.menus[0].subs = new Array(); // information this.menus[1] = new Object(); this.menus[1].left = 385; this.menus[1].width = 160; this.menus[1].links = new Array( "job vacancies", "press releases", "customer services", "contact information", "shoppers creche", "mother and baby", "assistance", "emett clock", "jerry's tank", "promotional space", "disclaimer" ); this.menus[1].urls = new Array( "javascript:openPopup('victoria_popup', '/pages/popup/vacancies/', 561, 500, true, true, true, false, true);", "javascript:openPopup('victoria_popup', '/pages/popup/press_releases/', 561, 500, true, true, true, false, true);", "/pages/customer_service.mhtml", "/pages/contact.mhtml", "/pages/creche.mhtml", "/pages/mother_baby.mhtml", "/pages/assistance.mhtml", "/pages/emett_clock.mhtml", "/pages/jerrys.mhtml", "/pages/promotional.mhtml", "/pages/disclaimer.mhtml" ); this.menus[1].subs = new Array(); // get more this.menus[2] = new Object(); this.menus[2].left = 429; this.menus[2].width = 170; this.menus[2].links = new Array( "events & promotions", "special offers", "latest news", "gift vouchers & gift cards", "brochure request", "customer loyalty card", "online magazine", "Picture Gallery" ); this.menus[2].urls = new Array( "javascript:openPopup('victoria_popup', '/pages/popup/events/', 561, 500, true, true, true, false, true);", "javascript:openPopup('victoria_popup', '/pages/popup/offers/', 561, 500, true, true, true, false, true);", "/pages/news/", "/pages/gift_vouchers.mhtml", "/pages/brochure/", "/pages/loyalty_card/", "/pages/online.mhtml", "/pages/gallery.mhtml" ); 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.currentmedicalliterature.com"; var bookmarktitle = "Current Medical Literature"; if (isIE || isNetscape6) { window.external.AddFavorite(bookmarkurl,bookmarktitle); } }