document.write('<link rel=stylesheet href="http://microsites.audiusa.com/ngw/09/stylesheets/en/ngw.css">');jQuery(document).ready(function(){if(jQuery.browser.msie&&jQuery.browser.version<6){return false}if(jQuery("#audi_container_emo").length>0){var b=""+window.location.href;if(b.indexOf("/author/")==-1){audi_ngw.animation.emointro._$elHitbox.mouseover(function(){});audi_ngw.animation.emointro._$elNavi.hover(function(){},function(){});audi_ngw.animation.emointro._$elNavi.unbind("mouseout");audi_ngw.animation.emointro._$elHitbox.unbind("*").fadeOut(function(){audi_ngw.animation.emointro._$elHitbox.remove()});audi_ngw.clearTimer(audi_ngw.animation.emointro.timer);audi_ngw.animation.emointro._doShow(audi_ngw.animation.emointro._$element)}}if(jQuery("#audi_teaser_area li.con_teaser_news a#slide_button").length>0){var a=""+window.location.href;if(a.indexOf("/author/")==-1){jQuery("#audi_teaser_area li.con_teaser_news a#slide_button").unbind("click",audi_ngw.animation.teaser.toggle);jQuery("#audi_teaser_area li.con_teaser_news a#slide_button").css("display","none");jQuery("#audi_teaser_area li.con_teaser_news ul.slide").show();jQuery("#audi_teaser_area li.con_teaser_news li.floatbox a.block_arrow").removeClass("clear");audi_ngw.dom.teaser.stopRotation();if(jQuery("#audi_teaser_area li.con_teaser_news ul.slide").next().length>0){jQuery("#audi_teaser_area li.con_teaser_news ul.slide").next().remove()}jQuery("#audi_teaser_area li.con_teaser_news li.floatbox").css("border","0px");jQuery("#audi_teaser_area li.con_teaser_news li.floatbox").css("background","none");jQuery("#audi_teaser_area li.con_teaser_news li.floatbox a.floatbox").addClass("block_arrow");jQuery("#audi_teaser_area li.con_teaser_news li.floatbox a.floatbox span").css("padding-left","0px");jQuery(document).bind("ajaxModalContentReady.layerModal",function(){audi_ngw.dom.teaser.stopRotation();if(jQuery("#audi_teaser_area li.con_teaser_news ul.slide").next().length>0){jQuery("#audi_teaser_area li.con_teaser_news ul.slide").next().remove()}})}}jQuery("body").append('<div id="lastLoad" style="display:none"><img src="http://microsites.audiusa.com/ngw/test/media/blank.png"></div>');jQuery("#lastLoad img").load(function(){aoa_js.pageLoaded=true})});if(typeof aoa_js==="undefined"){var aoa_js={}}aoa_js.pageLoaded=false;aoa_js.openBlankLink=function(b){if(jQuery.browser.msie){window.location.href=b}else{var a=window.open(b,"aoaWindow"+Math.floor(Math.random()*9999999999));if(a==null){window.location.href=b}return false}};aoa_js.downloadFile=function(a){if(jQuery("#downloader").length==0){var b=document.createElement("div");b.setAttribute("style","display:none;");b.innerHTML='<iframe id="downloader" width="1" height="1" frameborder="0" src=""></iframe>';document.body.appendChild(b)}jQuery("#downloader").attr("src",a)};aoa_js.dealer_search={};aoa_js.dealer_search.searchOpen=function(){jQuery.history.load("source=http://www.audiusa.com/us/brand/en/tools/ngwext/dsh/dealersearch.html&container=layerModal&rand="+Math.floor(Math.random()*9999999999))};aoa_js.dealer_search.searchSubmit=function(a){aoa_js.dealer_search.zipCode=a;jQuery(document).bind("ajaxModalContentReady.layerModal",aoa_js.dealer_search.waitForAjaxRefresh);var b=window.location.href;if(b.indexOf("http://audiusa.com")!=-1||b.indexOf("http://www.audiusa.com")!=-1){aoa_js.dealer_search.searchOpen();return false}else{jQuery.history.load("#source=http://cms.audi.com/author/us/brand/en/tools/ngwext/dsh/dealersearch.html&container=layerModal&rand="+Math.floor(Math.random()*9999999999));return false}};aoa_js.dealer_search.waitForAjaxRefresh=function(){jQuery(document).unbind("ajaxModalContentReady.layerModal",aoa_js.dealer_search.waitForAjaxRefresh);aoa_js.dealer_search.timeout=setTimeout("aoa_js.dealer_search.checkForDealerSearchCode()",100)};aoa_js.dealer_search.checkForDealerSearchCode=function(){if(typeof audi_ngw!="undefined"){if(typeof audi_ngw.dsh!="undefined"){if(typeof audi_ngw.dsh.reload!="undefined"){clearTimeout(aoa_js.dealer_search.timeout);aoa_js.dealer_search.reloadResults();return}}}aoa_js.dealer_search.timeout=setTimeout("aoa_js.dealer_search.checkForDealerSearchCode()",100)};aoa_js.dealer_search.reloadResults=function(){audi_ngw.dsh.reload("back_link=&zip_code="+aoa_js.dealer_search.zipCode+"&city=&max_dist=20&name=")};aoa_js.dealer_search_ca={};aoa_js.dealer_search_ca.searchOpen=function(){jQuery.history.load("source=http://www.audi.ca/ca/brand/en/tools/ngwext/dsh/dealersearch.html&container=layerModal&rand="+Math.floor(Math.random()*9999999999))};aoa_js.dealer_search_ca.searchSubmit=function(a){aoa_js.dealer_search_ca.zipCode=a;jQuery(document).bind("ajaxModalContentReady.layerModal",aoa_js.dealer_search_ca.waitForAjaxRefresh);var b=window.location.href;if(b.indexOf("http://audiusa.com")!=-1||b.indexOf("http://www.audiusa.com")!=-1){aoa_js.dealer_search_ca.searchOpen();return false}else{if(b.indexOf("/ca/brand/en")!=-1){jQuery.history.load("source=http://www.audi.ca/ca/brand/en/tools/ngwext/dsh/dealersearch.html&container=layerModal&rand="+Math.floor(Math.random()*9999999999));return false}else{if(b.indexOf("/ca/brand/fr")!=-1){jQuery.history.load("source=http://www.audi.ca/ca/brand/fr/tools/ngwext/dsh/dealersearch.html&container=layerModal&rand="+Math.floor(Math.random()*9999999999));return false}else{jQuery.history.load("#source=http://www.audi.ca/ca/brand/en/tools/ngwext/dsh/dealersearch.html&container=layerModal&rand="+Math.floor(Math.random()*9999999999));return false}}}};aoa_js.dealer_search_ca.waitForAjaxRefresh=function(){jQuery(document).unbind("ajaxModalContentReady.layerModal",aoa_js.dealer_search_ca.waitForAjaxRefresh);aoa_js.dealer_search_ca.timeout=setTimeout("aoa_js.dealer_search_ca.checkForDealerSearchCode()",100)};aoa_js.dealer_search_ca.checkForDealerSearchCode=function(){if(typeof audi_ngw!="undefined"){if(typeof audi_ngw.dsh!="undefined"){if(typeof audi_ngw.dsh.reload!="undefined"){clearTimeout(aoa_js.dealer_search_ca.timeout);aoa_js.dealer_search_ca.reloadResults();return}}}aoa_js.dealer_search_ca.timeout=setTimeout("aoa_js.dealer_search_ca.checkForDealerSearchCode()",100)};aoa_js.dealer_search_ca.reloadResults=function(){audi_ngw.dsh.reload("back_link=&zip_code="+aoa_js.dealer_search_ca.zipCode+"&city=&max_dist=20&name=")};aoa_js.dealertracking={};aoa_js.dealertracking.checkForDealerPageAndSetCookie=function(){var f="dealerId";var a=window.location.href;var d=a.indexOf("/p_");var b=a.indexOf("request_a_quote_acc.html");var c=a.indexOf("configurator.audi.com");if(d>-1&&c<0&&b<0){if(a.substr(d+9,1)=="/"){var e=a.substr(d+3,6);aoa_js.dealertracking.createCookie(f,e,7)}}else{if(b<0){aoa_js.dealertracking.eraseCookie(f)}}};aoa_js.dealertracking.createCookie=function(c,d,e){if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));var a="; expires="+b.toGMTString()}else{var a=""}document.cookie=c+"="+d+a+"; path=/"};aoa_js.dealertracking.eraseCookie=function(a){aoa_js.dealertracking.createCookie(a,"",-1)};aoa_js.dealertracking.readCookie=function(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)==0){return f.substring(e.length,f.length)}}return null};aoa_js.dealertracking.checkForDealerPageAndSetCookie();aoa_js.chrome_fix={};aoa_js.chrome_fix.reloadChromeEmbedCode=function(){var b=$("#audi_modal_body").html()+"<div/>";var a=Math.floor(Math.random()*9999999);b=b.replace(/.swf"/g,".swf?rnd="+a+'"');$("#audi_modal_body").html(""+b);jQuery(document).unbind("ajaxModalContentReady.layerModal",aoa_js.chrome_fix.fixChrome)};aoa_js.chrome_fix.fixChrome=function(){var b=$("#audi_modal_body").html();var c=false;if(b.indexOf("website-audi_tdi-v1.swf")!=-1){c=true}if(b.indexOf("q5/app.swf")!=-1){c=true}if(b.indexOf("a4/app.swf")!=-1){c=true}if(b.indexOf("a6/app.swf")!=-1){c=true}if(b.indexOf("driving_experience/app.swf")!=-1){c=true}if(b.indexOf("motorsport_experience/app.swf")!=-1){c=true}if(b.indexOf("technology/app.swf")!=-1){c=true}if(c==true){var a=setTimeout("aoa_js.chrome_fix.reloadChromeEmbedCode()",1000)}};aoa_js.chrome_fix.checkForChrome=function(){var a=navigator.userAgent.toLowerCase();var b=(a.indexOf("chrome")!=-1);if(b==true){jQuery(document).bind("ajaxModalContentReady.layerModal",aoa_js.chrome_fix.fixChrome)}};aoa_js.chrome_fix.checkForChrome();aoa_js.form_tracking={};aoa_js.form_tracking.storeFormTracking=function(a){};aoa_js.form_tracking.removeAbandonListeners=function(){};aoa_js.form_tracking.onFormAbandoned=function(){};aoa_js.createSwfBridge=function(){if(navigator.appName.indexOf("Microsoft")!=-1){$("body").append('<div id="swfBridge" /><script type="text/javascript">swfobject.embedSWF( "http://microsites.audiusa.com/ngw/09/media/swfs/shared/ngwbridge.swf", "swfBridge", "1", "1", "9.0.0", null, {}, {allowScriptAccess:"always"}, {} );<\/script>')}};function callUberFlood(){var b=Math.round(Math.random()*10000000000000)+"";var c=document.createElement("div");c.setAttribute("style","display:none;");c.innerHTML='<iframe width="1" height="1" frameborder="0" src="http://fls.doubleclick.net/activityi;src=1311136;type=audiusa;cat=request;ord=1;num='+b+'?"></iframe>';document.body.appendChild(c)}if(typeof warmode==="undefined"){var warmode={}}warmode.setup=function(){$("body").append('<div id="shadow" style="display: none;"></div>');var a=$("#shadow");a.css({"background-image":"url(http://microsites.audiusa.com/ngw/test/media/img/shade1x1_60_fw.png)",position:"absolute",left:"0",top:"0",width:"100%","z-index":"10000",height:$(document).height()})};warmode.enable=function(){warmode.stored_embed_html=$(".audi_main_flash_stage")[0].innerHTML;$(".audi_main_flash_stage object").remove();$("#shadow").append('<div id="warmode_flashwrapper"><div id="warmode_flashcontent">#</div></div>');$("#warmode_flashwrapper").css({width:"1017px",height:"621px",position:"relative","z-index":"10001","background-image":"url(http://microsites.audiusa.com/ngw/test/media/img/drop_shadow.png)","background-repeat":"no-repeat",margin:"auto","margin-top":"40px","padding-top":"18px"});if($.browser.msie==true&&$.browser.version.match(/6/)){$("#warmode_flashwrapper").css({"background-image":"url(http://microsites.audiusa.com/ngw/test/media/img/drop_shadow_fw.png)"})}var d="http://microsites.audiusa.com/ngw/10/experience/superbowl10/";var b={parent_id:"warmode_flashcontent",xmldata:"media/xml/en/superbowl10/xmldata.xml",truthsxml:"media/xml/en/shared/truths.xml",bwImg:"http://microsites.audiusa.com/ngw/10/experience/superbowl10/media/images/superbowl10/bandwidth_detector.png",s_account:"audiag222007",base:d};var e={base:d,allowScriptAccess:"always",quality:"best",wmode:"opaque"};var a={id:"warmode_flashcontent",name:"warmode_flashcontent",bgcolor:"#abb0b6"};var c=swfobject.embedSWF((d+"media/swfs/superbowl10.swf"),"warmode_flashcontent","971","575","9.0.45",(d+"media/swfs/expressinstall.swf"),b,e,a);$("#shadow").show()};warmode.disable=function(){window.location.href=window.location.href.replace(/warmode/,"")};$(document).ready(function(){if(/warmode/.test(window.location.href)){warmode.setup();warmode.enable()}});