/* Globals required by Honda Car Experience */ var homeURL = 'http://ww1.honda.co.uk'; var blockedURL = 'indexBlocked.html'; var noFlashURL = 'indexBlocked.html'; var hceURL = 'hce_flash.html'; var historyURL = 'hce_flash_history.html'; var hceServer = 'http://media.honda.co.uk/car/media/'; var flashVars = Array(); if (location.search != '') { params = location.search.substring(1); flashVars = params.split("&"); } /* Functions to support the Honda Car Experience */ function popUpHCE(redirect, search) { if (search == null) { search = ''; } document.location = homeURL + "/car/" + search; } function popUp(url, width, height, titleHeight) { var popUp = window.open(url, "", "width=" + width + ", left=" + ((screen.width - width) / 2) + ", height=" + height + ", top=" + ((screen.height - height) / 2 - titleHeight) + ","); } function hondaHome() { top.location.href = homeURL; } function hceRedirect(url) { location.href = url; } function hceCancelDetection() { //clearTimeout(detectionTimeout); } function traceDebug(trace) { alert(trace); } mediaServer = 'http://media.honda.co.uk'; function openClearer() { var pWin = window.open(mediaServer+"/campaign/ima/clearer.html","clearerWindow", 'width=700,height=450,left=40,top=40,scrollbars=no,resize=no,status=no,toolbar=no,menubar=no'); pWin.focus(); } function openBrighter() { var pWin = window.open(mediaServer+"/campaign/ima/brighter.html","brighterWindow", 'width=700,height=450,left=40,top=40,scrollbars=no,resize=no,status=no,toolbar=no,menubar=no'); pWin.focus(); } function openThinking() { var pWin = window.open(mediaServer+"/campaign/ima/thinking.html","thinkingWindow", 'width=700,height=450,left=40,top=40,scrollbars=no,resize=no,status=no,toolbar=no,menubar=no'); pWin.focus(); } //UNIVERSAL FLASH->JS FUNCTION function doFunctions() { var funcList = new Array(); var func = new Array(); var silent = arguments[0]; var argsStr = silent; for (var i=1;i 0) { for (var j=1;j1) funcStr = funcStr.substr(0,funcStr.length-1); funcStr += ");"; if (!silent) alert("trying:\n" + funcStr); try { eval(funcStr); } catch(exception) { if (!silent) alert("failed:\n" + exception); } } } }