/* ty_v9_javascript_core */ var G={gecko:navigator.product=='Gecko',flashVer:'9.0.0',hasFla:false,autoFla:false,ie6:(!!document.all && !(typeof window.XMLHttpRequest=='object')), init:function(){G.detectFlash();for(var n in G)if(G[n].init)G[n].init()}, set:function(a,b,c){for(var o in b)a[o]=b[o];if(c){for(var o in c)a.style[o]=c[o]};return a}, create:function(a,b,c,d){var o=(d||document).createElement(a);G.set(o,b);G.set(o.style,c);return o}, append:function(a,b,c,d){var o=b.tagName?b:G.create(b,c,d,a.ownerDocument);a.appendChild(o);return o}, time:function(){return new Date().getTime()}, fn:function(a){return(0.5-Math.cos(a*Math.PI)/2)}, middle:function(o,a,b){o=o.split(a);return(o.length<2)?'':o[1].split(b)[0]}, pos:function(a){var x=0,y=0;if(a.y)return{x:a.x,y:a.y};while(a!=null){x+=a.offsetLeft;y+=a.offsetTop;a=a.offsetParent};return{x:x,y:y}}, stop:function(a){if(a){clearTimeout(a);a=null}}, sub:function(a,b,c){var o=a.split(b);return(o.length>1)?o[1].split(c)[0]:''}, remove:function(a){var o=a.tagName?a:Tme.get(a);o.parentNode.removeChild(o)}, absTop:function(a){var y=0;if(a.y)return a.y;while(a!=null){y+=a.offsetTop;a=a.offsetParent};return y}, absLeft:function(a){var x=0;if(a.x)return a.x;while(a!=null){x+=a.offsetLeft;a=a.offsetParent};return x}, detectFlash:function(){if(G.middle(document.cookie,'acc_type=',';')=='html'){G.noFlash=true;return};var o=G.flash._o;G.hasFla=o.has(G.flashVer);G.autoFla=o.has('6.0.65')&&(o.ua.win||o.ua.mac)} } function $(a){return document.getElementById(a)} function $$(a,b){return (b||document).getElementsByTagName(a)} window.onload=G.init G.viamichelin={ createNamedElement:function(a,b,c,d,n){var o=null;try{o=(d||document).createElement('<'+a+' name="'+n+'">');}catch(err){}if (!o || o.nodeName != a.toUpperCase()){o=(d||document).createElement(a);o.name= n;}G.set(o,b);G.set(o.style,c);return o} } G.sifr={movie:'/images/toyota-display.swf', cGroup:{corp:'e50000','urban-iq':'92539a','urban-aygo':'c90123','urban-cruiser':'c90123',life:'ae9f6d',recreation:'7e6f5d',energy:'5cbac8',together:'c47e3d',work:'808b83'},on:0, init:function(){ var m=this,cn=$$('body')[0].className,o=$('img-focus'),i m.set($('hdrt'),{css:'.sIFR-root{color:#999999;font-weight:bold;text-align:right}strong{color:#'+m.cGroup[cn||'corp']+'}',size:16,offsettop:-2,thickness:20}) if(o){ m.items=$$('li',o) o=$$('h2',o);for(i=0;i-1 && v0)?'visible':'hidden' m.next.style.visibility=(v') m.doc.close() G.append($$('head',m.doc)[0],'base',{href:'http://www.goosen.nl/'}) G.append($$('head',m.doc)[0],'link',{rel:'stylesheet',type:'text/css',href:'css/v9_dd.css'}) o=m.body=$$('body',m.doc)[0] m.div=G.append(o,'div',{id:'dd-1'}) m.strip=G.append(o,'div',{id:'dds'}) G.append(o,'div',{id:'dd-2'}) m.set(o,m.subover,m.out) if(!window.JsTopMenu)return q=$$('a',qn);n=q.length for(i=0;i0){ m.set(q[i],m.over,m.out,i) if(q[i].className=='on')m.subm=JsTopMenu[i].children } } m.max=n-1 if(!m.sub)return qn=$('subnav');if(!qn)return if(qn.className=='final')return if(m.subm != undefined)m.prepareSub() q=$$('a',qn);n=q.length;for(i=0;i634){s=x-ss-634;x=ss+634} else if(q.index>0) x-=1 m.strip.className=(q.index==m.max)?'x':'' w+=1 G.set(m.sub.style,{top:y+'px',left:x+'px'}) G.set(m.strip.style,{width:w+'px',left:s+'px'}) m.body.className='' m.div.innerHTML='' o=JsTopMenu[q.index].children for(i=0;is.end){s.style.height=s.h2+'px';G.stop(s.timer)} else{q=G.fn(t/s.end);s.style.height=parseInt(q*s.h2)+'px'} } s.timer=setInterval(s.step,10) } } G.ieFix={hide:function(a){ if(!G.ie6)return var o=$$('select'),i for(i=0;iv)?o[i].offsetHeight:v if(v>40)$('subnav').className='dbh' } } /* Form in overlayer (testdrive form) */ G.extForm={ launch:function(a,b){ var m=G.extForm,o=$('ctai') if(!o||m.open==true)return G.append(o,'iframe',{src:a,allowTransparency:'true',frameBorder:'0'},{width:'616px',height:(b||'300')+'px'}) o.style.display='block' m.open=true }, close:function(){var m=G.extForm,o=$('ctai');o.innerHTML='';o.style.display='none';m.open=false} } G.cta={ init:function(){ var m=this,o=$$('a'),i,sDiv=false,s=G.sub(window.location.href,'?form=','#') if(s!='')sDiv=true for(i=0;i');for(x in q){switch(x){case'height':case'width':break;default:v.push('')}};v.push('') if(a[1].tagName)a[1].innerHTML=v.join('\n') else try{$(a[1]).innerHTML=v.join('\n')}catch(e){} }, alert:function(){ var m=this,o=m._o,q,v='/sys/flash_html_detection.aspx' /* flash auto update if(o.has('6.0.65')&&(o.ua.win||o.ua.mac)){m.render([{height:340,width:770,movie:'inc/expressInstall.swf',flashvars:'MMredirectURL='+location.href },'flash1'])};else{} */ q=G.append($('cnv'),'iframe',{id:'fl-install',src:v,allowTransparency:'true',frameBorder:'0'}) }, _o:function(){ var SF="Shockwave Flash",SX="ShockwaveFlash.ShockwaveFlash",win=window,D=document,B=navigator,N=null,F=false,T=true,i$=function(a){return typeof a!='undefined'};var ua=function(){var w3cdom=i$(D.getElementById)&&i$(D.getElementsByTagName)&&i$(D.createElement)&&i$(D.appendChild)&&i$(D.replaceChild)&&i$(D.removeChild)&&i$(D.cloneNode),playerVersion=[0,0,0],d=N; if(i$(B.plugins)&&typeof B.plugins[SF]=='object'){d=B.plugins[SF].description;if(d){d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");playerVersion[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10);playerVersion[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10);playerVersion[2]=/r/.test(d)?parseInt(d.replace(/^.*r(.*)$/,"$1"),10):0}}else if(i$(win.ActiveXObject)){var a=N,fp6Crash=F;try{a=new ActiveXObject(SX+".7")}catch(e){try{a=new ActiveXObject(SX+".6");playerVersion=[6,0,21];a.AllowScriptAccess="always"}catch(e){if(playerVersion[0]==6){fp6Crash=T}};if(!fp6Crash){try{a=new ActiveXObject(SX)}catch(e){}}};if(!fp6Crash&&a){try{d=a.GetVariable("$version");if(d){d=d.split(" ")[1].split(",");playerVersion=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)]}}catch(e){}}};var u=B.userAgent.toLowerCase(),p=B.platform.toLowerCase(),webkit=/webkit/.test(u)?parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):F,ie=F,windows=p?/win/.test(p):/win/.test(u),mac=p?/mac/.test(p):/mac/.test(u);/*@cc_on;ie=true;@if(@_win32)windows=true;@elif(@_mac)mac=true;@end;@*/return{w3cdom:w3cdom,pv:playerVersion,webkit:webkit,ie:ie,win:windows,mac:mac}}();function hasPlayerVersion(rv){var pv=ua.pv,v=rv.split(".");v[0]=parseInt(v[0],10);v[1]=parseInt(v[1],10);v[2]=parseInt(v[2],10);return(pv[0]>v[0]||(pv[0]==v[0]&&pv[1]>v[1])||(pv[0]==v[0]&&pv[1]==v[1]&&pv[2]>=v[2]))?T:F};return{get:function(){return{major:ua.pv[0],minor:ua.pv[1],release:ua.pv[2]}},has:hasPlayerVersion,ua:ua}}() }