// 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 = 174; this.menus[0].width = 100; this.menus[0].links = new Array("by car", "by bus", "by tube", "car parking" ); this.menus[0].urls = new Array("/pages/car.mhtml", "/pages/bus.mhtml", "/pages/tube.mhtml", "/pages/parking.mhtml" ); this.menus[0].subs = new Array(); this.menus[1] = new Object(); this.menus[1].left = 342; this.menus[1].width = 150; this.menus[1].links = new Array("customer information", "job vacancies", "press releases", "centre contacts", "disclaimer" ); this.menus[1].urls = new Array("/pages/customer_info.mhtml", "javascript:openPopup('chimes_popup', '/pages/popup/vacancies/', 500, 480, true, true, true, false, true);", "javascript:openPopup('chimes_popup', '/pages/popup/press_releases/', 561, 500, true, true, true, false, true);", "/pages/contacts.mhtml", "/pages/disclaimer.mhtml" ); this.menus[1].subs = new Array(); this.menus[2] = new Object(); this.menus[2].left = 483; this.menus[2].width = 150; this.menus[2].links = new Array( "free prize draw", "what's on?", "instore offers", "latest news", "odeon cinema", "gift vouchers", "shopping & eating", "heritage", "shopmobility" ); this.menus[2].urls = new Array( "/prizedraws/", "javascript:openPopup('chimes_popup', '/pages/popup/events/', 561, 500, true, true, true, false, true);", "javascript:openPopup('chimes_popup', '/pages/popup/offers/', 561, 500, true, true, true, false, true);", "/pages/news/", "/pages/odeon_cinema.mhtml", "/pages/gift_vouchers.mhtml", "/pages/shopping_eating.mhtml", "/pages/heritage.mhtml", "/pages/shop_mobility.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); } }