var mediaServer = "http://media.honda.co.uk"; function launchCars () { popUpHCE(false,location.search); } var dom = (document.getElementById)? true:false; var hasIE = (dom && (navigator.appVersion.indexOf("MSIE 6")>-1 || navigator.appVersion.indexOf("MSIE 7")>-1))? true:false; function displayHomeFlash(flashVars) { document.write("
"); //this code defines which buttons in buttons.xml to display. 4 buttons (b1-b4). 1=show. 0=don't show. if (hasIE) flashVars = "b1=1&b2=1&b3=1&b4=1&" + flashVars; else flashVars = "b1=1&b2=1&b3=1&b4=1&" + flashVars; var media = "http://media.honda.co.uk"; var url = media + "/car/media/homepage_main.swf?" + flashVars; var so = new SWFObject(url, "home", "936", "543", "6", "#FFFFFF"); // add parameters so.addParam("quality", "best"); so.addParam("scale", "noscale"); so.addParam("menu", "false"); so.addParam("allowscriptaccess", "always"); so.addParam("seamlesstabbing", "false"); // write object to page so.write("homeflash"); } function leftlaunch() { var leftWin = window.open("http://www.problemplayground.com", "leftWindow"); leftWin.focus(); } function righttoplaunch() { var rightWin = window.open("/newaccord/", "righttopWindow"); rightWin.focus(); } function launchWin(id) { if (id=="winabike") { var launchedWin = window.open("/winABike/", "launchedWindow"); launchedWin.focus(); } if (id=="puzzles") { var launchedWin = window.open("http://www.problemplayground.com", "launchedWindow"); launchedWin.focus(); } } function rightbottomlaunch() { var rightWin = window.open("/offers", "rightbottomWindow"); rightWin.focus(); } function hondaTV() { var url = "http://video.honda.co.uk/hondatv/honda_ff.htm"; if (hasIE) url = "http://video.honda.co.uk/hondatv/honda_home.htm"; var hondaTVWin = window.open(url,"HondaTV","width=683,height=384,status=no,toolbar=no,menubar=no,location=no"); hondaTVWin.focus(); } //IMPOSSIBLE DREAM LAUNCH FUNCTION function launch() { var iWidth = "860"; var iHeight = "570"; var titleHeight = 20; var impossibleDreamWin = window.open("/impossibleDream/window.html" + location.search, "impossibleDream", "width=" + iWidth + ", left=" + ((screen.width - iWidth) / 2) + ", height=" + iHeight + ", top=" + ((screen.height - iHeight) / 2 - titleHeight) + ","); impossibleDreamWin.focus(); } // LAUNCH IZY POP UP function showIzyPromo(){ izyPromoWindow = window.open("/garden/izyPromo/", "izyWindow", "width=550,height=550,scrollbars=no,resize=no,status=no,toolbar=no,menubar=no"); izyPromoWindow.focus(); }