var d=new Date();var flashTime=d.getTime();var hName=location.hostname;var servicesURL="";if(hName!=null&&hName!=""){var egoIndexIndex=-1;var gypsyCabPathIndex=-1;var r32Index=-1;var jettaReportIndex=-1;var vdubsRockIndex=-1;var eosBoutiqueIndex=-1;var jettaReportCaIndex=-1;var vwFeaturesIndex=-1;var eosTarotIndex=-1;var vwcertified=-1;var shellElement="";var widgetShimOverride=false;egoIndexIndex=hName.indexOf("egoindex.com");gypsyCabPathIndex=hName.indexOf("gypsycabproject.com");r32Index=hName.indexOf("5000r32.com");jettaReportIndex=hName.indexOf("jettareport.com");vdubsRockIndex=hName.indexOf("vdubsrock.com");eosBoutiqueIndex=hName.indexOf("eosboutique.com");jettaReportCaIndex=hName.indexOf("jettareport.ca");vwFeaturesIndex=hName.indexOf("vwfeatures.com");eosTarotIndex=hName.indexOf("eostarot.com");vwCertifiedIndex=hName.indexOf("vwcertified.vw.com");if((egoIndexIndex>-1)||(vdubsRockIndex>-1)){window.location="http://www.vw.com/showroom/en/us"}else{if(gypsyCabPathIndex>-1){window.location="http://www.vw.com/vwhype/gypsycabproject/en/us/"}else{if(jettaReportIndex>-1){window.location="http://www.vw.com/vwhype/thejettareport/en/us/"}else{if(r32Index>-1){window.location="http://www.vw.com/5000r32/en/us/"}else{if(eosBoutiqueIndex>-1){window.location="http://www.vw.com/eosboutique/"}else{if(jettaReportCaIndex>-1){window.location="http://www.vw.com/vwhype/thejettareport/en/ca/index.php"}else{if(vwFeaturesIndex>-1){window.location="http://vw.com/vwfeatures/gti/en/us/"}else{if(eosTarotIndex>-1){window.location="http://www.vw.com/vwhype/eostarot/en/us/"}else{if(vwCertifiedIndex>-1){window.location="http://www.vw.com/preloved/en/us/"}}}}}}}}}}if(typeof vw=="undefined"){var vw={}}vw.hybrid={addWidget:function(l,o,t,b,u,g,m,f){var h;try{h=t}catch(r){h=false}if(h!=undefined&&(h=="external"||h=="externalWHeader"||h=="externalDealer")){if((g==undefined)||(g=="")){g="http://www.vw.com"}}else{g=""}if(m==undefined){m=""}var q=new SWFObject(g+"/global/nav/swf/universal_nav.swf","swf_shell","100%","100%",getFlashVersion(),o,false,"high");var k="";var s="";if(b!=undefined){k=b}if(u!=undefined){s=u}if(f!=undefined){q.addVariable("template",f)}if(h!=undefined){if(o=="#000000"){q.addVariable("configXML",g+"/global/nav/data/config.xml")}else{q.addVariable("configXML",g+"/global/nav/data/config.xml")}if(h=="external"||h=="externalWHeader"){q.addVariable("externalDomain",g);q.addVariable("livesOnExternalSite","true");q.addVariable("externalDomain",g);q.addVariable("dealerPhoneNumbers",m);q.addVariable("flashTime",flashTime);q.addVariable("userAgent",util.getBrowser());q.addParam("allowScriptAccess","always")}}else{if(o=="#000000"){q.addVariable("configXML","/global/nav/data/config.xml")}else{q.addVariable("configXML","/global/nav/data/config.xml")}}q.addVariable("availableSearches",k);q.addVariable("defaultSearchType",s);q.addVariable("dealerPhoneNumbers",m);q.addParam("wmode","transparent");q.addVariable("hybrid_page","true");q.addVariable("black_bg","none");q.addVariable("flashTime",flashTime);var a="?url=http://";a+=hName;a+="&service=";var j=m.search(/service/i);var p="";if(j>0){var n=j+9;var i=m.indexOf(";",n)-1;if(i>0){p=m.slice(n,i)}}try{a+=getServicePhone()}catch(c){a=""}try{if(getDealerCookie("dealersession")=="true"){q.addVariable("dealersession","true");q.addVariable("dealerdomain",getDealerCookie("dealerdomain"))}}catch(r){}q.setAttribute("redirectUrl",g+"/update/en/us/"+a);q.write(l)},addFooter:function(c,a,b){},addEmail:function(b,a){util.getNode("container").innerHTML+='<div id="emailMask" onMouseOver="doNothing();"></div><div id="emailDiv"></div>';var c=new SWFObject("/global/email/swf/email.swf","swf_email","100%","100%",getFlashVersion(),"#ffffff",false,"high");c.addVariable("hybridEmail","true");c.addVariable("email_template_name",b);c.addVariable("email_car_model",a);c.addParam("wmode","transparent");c.write("emailDiv")}};vw.util={addScript:function(b){var a=document.createElement("script");a.setAttribute("type","text/javascript");a.setAttribute("src",b);document.getElementsByTagName("head")[0].appendChild(a)},addCSS:function(b){var a=document.createElement("link");a.setAttribute("type","text/css");a.setAttribute("src",b);a.setAttribute("rel","stylesheet");document.getElementsByTagName("head")[0].appendChild(a)},getQueryString:function(){var a=top.location.search;return escape(a.substring(1,a.length))},getQueryStringValue:function(l){var f=new Object();var g=location.search.substring(1);var b=g.split("&");var a=0;for(var c=0;c<b.length;c++){var j=b[c].indexOf("=");if(j==-1){continue}var h=b[c].substring(0,j);var k=b[c].substring(j+1);if(!f[h]){f[h]=unescape(k)}else{f[h]+=("&"+h+"="+unescape(k))}}return f[l]},getURL:function(a){window.location=a},popup:function(a){window.open(a)},widgetReady:function(){try{onWidgetReady()}catch(a){}},widgetLoadComplete:function(){try{bodyOnLoadComplete();getShell()}catch(a){}},print:function(c,g,a){if(!g){g=600}if(!a){a=600}var f="WIDTH="+g+",HEIGHT="+a+",screenX=0,screenY=0,LEFT=0,TOP=0,CHANNELMODE=0,DEPENDENT=0,DIRECTORIES=0,FULLSCREEN=0,LOCATION=0,MENUBAR=0,RESIZABLE=1,SCROLLBARS=1,STATUS=0,TOOLBAR=0";var h=window.location.href.split("/")[2];var b=window.open("http://"+h+c,"vwPrint",f);function i(){if(document.getElementById){shellElement=document.getElementById("swf_shell")}}window.onUnload=function(){shellElement.endDealerSession()};if(!b.opener){b.opener=self}}};vw.tooltip={add:function(a){try{var c=util.getNode(a);c.onmouseover=function(){vw.tooltip.show(a)};c.onmouseout=function(){vw.tooltip.hide()}}catch(b){}},get:function(b){var a=util.getNode(b);if(a==null){util.createNode("body",b,b);pngpong.serve(b,"/global/images/comingSoon.png")}var a=util.getNode(b);return a},show:function(a){var b=vw.tooltip.get("comingSoon");var f=YAHOO.util.Dom.getX(a)+8;var c=YAHOO.util.Dom.getY(a)-20;YAHOO.util.Dom.setX("comingSoon",f);YAHOO.util.Dom.setY("comingSoon",c);util.setStyle("comingSoon","visibility","visible");util.setStyle("comingSoon_img","visibility","visible")},hide:function(){util.setStyle("comingSoon","visibility","hidden");util.setStyle("comingSoon_img","visibility","hidden")}};if(typeof util=="undefined"){var util=new Object()}util={GET_DATA:Array(),addSwf:function(o,b,m,n,g,h,l,k){try{var a;if(l==undefined||l==""){a=new SWFObject(b,m,n,g,getFlashVersion(),"#FFFFFF",false,"high")}else{a=new SWFObject(b,m,n,g,getFlashVersion(),l,false,"high")}a.addParam("swliveconnect","true");if(h){a.addParam("wmode","transparent")}a.addParam("allowScriptAccess","always");if(k!=undefined||k!=""){}else{var f=this.getNameValuePairObject(k);for(var c in f){a.addVariable(c,f[c])}a.write(o)}}catch(j){}},removeSwf:function(c){try{var b=this.getNode(c);b.parentNode.removeChild(b)}catch(a){}},changeElementProp:function(c,b,a,i,j){var k=this.getNode(c);var f=this.getNode(b);if(i==undefined){i=0}switch(a){case"baseline":var h=k.offsetHeight;var g=f.offsetHeight;this.setStyle(c,"top",g-h+i,j);break;default:this.setStyle(c,a,i,j);break}},changeClass:function(f,a){try{var b=this.getNode(f)}catch(c){}try{b.className=a}catch(c){}},setStyle:function(h,f,b,a){var c=this.getNode(h);var g=(a!=undefined)?b+a:b;c.style[f]=g},setWidgetHeight:function(b,g){this.setStyle("flashid","height",b,"px");var a=window.location.href.split("/");var f="contactadealer quote joyride ownerperks lineup brochure preloved";if(f.indexOf(a[3])!=-1||f.indexOf(a[4])!=-1||f.indexOf(a[5])!=-1){if(navigator.userAgent.indexOf("MSIE 6.0")!=-1){var c=350;if(a[3].toLowerCase()=="contactadealer"||a[4].toLowerCase()=="contactadealer"||f.indexOf(a[5])!=-1){c=130}if(widgetShimOverride==true){c=130}if(b>c){if(g!=true){document.all.widgetShim.style.display="block"}}else{document.all.widgetShim.style.display="none"}}}},createNode:function(b,f,c){var g=document.createElement("div");g.className=c;g.id=f;var a=this.getNode(b);a.appendChild(g)},getNode:function(a){if(window.document[a]){return window.document[a]}if(navigator.appName.indexOf("Microsoft Internet")==-1){if(document.embeds&&document.embeds[a]){return document.embeds[a]}else{return document.getElementById(a)}}else{return document.getElementById(a)}},getLocation:function(){var a=new String(window.location);return a},getBrowser:function(){var a=navigator.appName;var c=navigator.userAgent.toLowerCase();var b="";if((a.indexOf("Microsoft")!=-1)&&(c.indexOf("mac")==-1)){return"ie"}else{if((a.indexOf("Microsoft")!=-1)&&(c.indexOf("mac")!=-1)){return"other"}else{if(c.indexOf("safari")!=-1){return"safari"}else{if(c.indexOf("firefox")!=-1){return"firefox"}else{return"other"}}}}},getUrlData:function(){var c=new Array();var a=new String(window.location);var f=a.search(/\?/);var b=a.search(/\#/);if(f!=-1){a=a.substring(f+1,b).split(/\&/).join("|");c=a}else{c=""}return escape(c)},getUrlData_sc:function(){var c=new Array();var a=new String(window.location);var f=a.search(/\?/);var b=a.search(/\#/);if(f!=-1){a=a.substring(f+1,b);c=a}else{c=""}return c},getUrlHash:function(){var c=new Array();var a=new String(window.location);var b=a.search(/\#/);if(b!=-1){a=a.substr(b+1).split(/\&/).join("|");c=a}else{c=""}return escape(c)},getNameValuePairObject:function(g){var c=new Array();var f=g.split(/&/g);for(var b=0;b<f.length;b++){var a=f[b].split(/=/);c[unescape(a[0])]=unescape(a[1])}return c},getNameValuePairArray:function(j){var g=new Array();var h=j.split(/&/g);for(var c=0;c<h.length;c++){var b=h[c].split(/=/);g[c]=new Array();var a=(unescape(b[0])=="undefined")?"":unescape(b[0]);var f=(unescape(b[1])=="undefined")?"":unescape(b[1]);g[c].push(a,f)}return g},include_js:function(a){var b=document.getElementsByTagName("head").item(0);var c=document.createElement("script");c.setAttribute("language","javascript");c.setAttribute("type","text/javascript");c.setAttribute("src",a);b.appendChild(c);return false},checkIfSafari:function(){return(navigator.vendor=="Apple Computer, Inc.")},swapDiv:function(a,b){util.setStyle(a,"visibility","visible");util.setStyle(b,"visibility","hidden")},addComma:function(c){var g=String(c).split("");var b="";var a=0;for(var f=g.length-1;f>=0;f--){if(a==3){a=0;b=","+b}a+=1;b=g[f]+b}return b},writeHtmlComment:function(a){document.write("<!--"+a+"-->")}};function setFlashWidth(b,a){document.getElementById(b).style.width=a+"px"}function setFlashHeight(b,a){document.getElementById(b).style.height=a+"px"}function setFlashSize(c,b,a){setFlashWidth(c,b);setFlashHeight(c,a)}function canResizeFlash(){var b=navigator.userAgent.toLowerCase();var a=b.indexOf("opera");if(document.getElementById){if(a==-1){return true}else{if(parseInt(b.substr(a+6,1))>=7){return true}}}return false}function returnURL(){return top.location.toString()}function returnDomain(){var a=top.location.href.split("/");var b=a[2];return b.toString()}
function getUrlType(){if(servicesURL==""){var relativeLocPreTrimmed_str=String(window.location);var whatToTrimFirst_str="http://";var charToSearchFor_str="/";var whereToStartTrim_num=whatToTrimFirst_str.length;var whereToEndTrim_num=relativeLocPreTrimmed_str.indexOf(charToSearchFor_str,whereToStartTrim_num);var whatToSetVarTo_str=relativeLocPreTrimmed_str.substring(whereToStartTrim_num,whereToEndTrim_num);setServicesURL(whatToSetVarTo_str);}}function setServicesURL(url){if((servicesURL=="")&&(url!="")){servicesURL=url;}}function getServicesURL(){return servicesURL}function maximizeWindow(){}function updateFlashHolderSize(){}function repositionEmail(){var a=getScrollXY();document.getElementById("emailDiv").style.top=a[1]+150+"px";timeout=setTimeout("repositionEmail()",10)}function getScrollXY(){var b=0,a=0;if(typeof(window.pageYOffset)=="number"){a=window.pageYOffset;b=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){a=document.body.scrollTop;b=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){a=document.documentElement.scrollTop;b=document.documentElement.scrollLeft}}}return[b,a]}function getWindowSize(){var b=0,a=0;if(typeof(window.innerWidth)=="number"){b=window.innerWidth;a=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){b=document.documentElement.clientWidth;a=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){b=document.body.clientWidth;a=document.body.clientHeight}}}return[b,a]}function showEmail(){var a=getScrollXY();document.getElementById("emailMask").style.visibility="visible";document.getElementById("emailMask").style.height=document.body.scrollHeight+120+"px";document.getElementById("emailDiv").style.visibility="visible";document.getElementById("emailDiv").style.top=a[1]+150+"px";repositionEmail();return false}function hideEmail(){document.getElementById("emailDiv").style.visibility="hidden";document.getElementById("emailMask").style.visibility="hidden";clearTimeout(timeout);return false}function setCookie(a,b){document.cookie=a+"="+escape(b)+";"}function getCookie(a){if(new RegExp("(?:^|;)"+a+"(?:$|=)([^;]+)").test(document.cookie)){return unescape(RegExp.$1);return unescape(RegExp.$1)}else{return""}}function doNothing(){}function widgetReady(){}function openWin(c){var a=100,g=220;if(document.all){a=window.screenTop+0;g=window.screenLeft+180}else{if(document.layers){a=window.screenX+0;g=window.screenY+180}}var f="WIDTH=1000,HEIGHT=600,screenX="+a+",screenY="+g+",LEFT="+a+",TOP="+g+",CHANNELMODE=0,DEPENDENT=0,DIRECTORIES=0,FULLSCREEN=0,LOCATION=1,statusbar=1,MENUBAR=1,RESIZABLE=1,SCROLLBARS=1,STATUS=1,TOOLBAR=1";var b=window.open(c,"VW Search",f)}var siteDomain="";try{siteDomain=(isExternalSite)?"http://www.vw.com":""}catch(e){}var siteurl=window.location.href;var dealersession={};dealersession.isDealerSession=false;function dealerSessionReady(m){dealersession=m;try{void (jQuery);var l=$(document);l.trigger("session:dealer",[m])}catch(k){}if(m.isDealerSession){try{var h=window.document.getElementById("buy_findADealer_img");var j=h.src;var c="";if(j.indexOf(".png")!=-1){c=".png"}else{c=".gif"}var a=j.split("/");var g="/";for(var f=3;f<a.length-1;f++){g+=a[f]+"/"}g+="buy_contactDealer_";var b="pngpong.util.swapImage('buy_findADealer_img', '";h.src=g+"out"+c;h.setAttribute("onmouseover",b+g+"over"+c+"');");h.setAttribute("onmouseout",b+g+"out"+c+"');");h.setAttribute("onmousedown","window.location='http://"+m.dealerDomain+"/ContactUsForm'");if(util.getBrowser()=="ie"){h.onmouseover=function(){h.src=g+"over"+c};h.onmouseout=function(){h.src=g+"out"+c};h.onmousedown=function(){window.location="http://"+m.dealerDomain+"/ContactUsForm"}}}catch(k){}}}var daasession={};daasession.isDaaSession=false;function daaSessionReady(a){daasession=a;if(daasession.isDaaSession==true){try{void (jQuery);var c=$(document);c.trigger("session:daa",[a])}catch(b){}}}function getFlashVersion(){return"9.0.45.0"}var d=new Date();var flashTime=d.getTime();function setDealerCookie(f,c){try{var b=window.location.href.split("/")}catch(a){}}function getDealerCookie(a){return""}function getDealerJSONP(c,b,a){}getUrlType();if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(p,b,r,g,l,n,j,i,f,o,m){if(!document.getElementById){return}this.DETECT_KEY=m?m:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(p){this.setAttribute("swf",p)}if(b){this.setAttribute("id",b)}if(r){this.setAttribute("width",r)}if(g){this.setAttribute("height",g)}if(l){this.setAttribute("version",new deconcept.PlayerVersion(l.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(n){this.addParam("bgcolor",n)}var a=i?i:"high";this.addParam("quality",a);this.setAttribute("useExpressInstall",j);this.setAttribute("doExpressInstall",false);var k=(f)?f:window.location;this.setAttribute("xiRedirectUrl",k);this.setAttribute("redirectUrl","");if(o){this.setAttribute("redirectUrl",o)}};deconcept.SWFObject.prototype={setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(b,a){this.params[b]=a},getParams:function(){return this.params},addVariable:function(b,a){this.variables[b]=a},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var c=new Array();var b;var a=this.getVariables();for(b in a){c.push(b+"="+a[b])}return c},getSWFHTML:function(){var b="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn")}b='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'"';b+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var h=this.getParams();for(var g in h){b+=[g]+'="'+h[g]+'" '}var f=this.getVariablePairs().join("&");if(f.length>0){b+='flashvars="'+f+'"'}b+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX")}b='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'">';b+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var c=this.getParams();for(var g in c){b+='<param name="'+g+'" value="'+c[g]+'" />'}var a=this.getVariablePairs().join("&");if(a.length>0){b+='<param name="flashvars" value="'+a+'" />'}b+="</object>"}return b},write:function(b){if(this.getAttribute("useExpressInstall")){var a=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(a)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var c=(typeof b=="string")?document.getElementById(b):b;c.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var f=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){f=new deconcept.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(c){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=new deconcept.PlayerVersion([6,0,21]);b.AllowScriptAccess="always"}catch(c){if(f.major==6){return f}}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(c){}}if(b!=null){f=new deconcept.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(","))}}return f};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(a){var f=document.location.search||document.location.hash;if(f){var c=f.substring(1).split("&");for(var b=0;b<c.length;b++){if(c[b].substring(0,c[b].indexOf("="))==a){return c[b].substring((c[b].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){if(window.opera||!document.all){return}var c=document.getElementsByTagName("OBJECT");for(var b=0;b<c.length;b++){c[b].style.display="none";for(var a in c[b]){if(typeof c[b][a]=="function"){c[b][a]=function(){}}}}};deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};if(typeof window.onunload=="function"){var a=window.onunload;window.onunload=function(){deconcept.SWFObjectUtil.cleanupSWFs();a()}}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs}};if(typeof window.onbeforeunload=="function"){var oldBeforeUnload=window.onbeforeunload;window.onbeforeunload=function(){deconcept.SWFObjectUtil.prepUnload();oldBeforeUnload()}}else{window.onbeforeunload=deconcept.SWFObjectUtil.prepUnload}if(Array.prototype.push==null){Array.prototype.push=function(a){this[this.length]=a;return this.length}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;