
vjo.ctype("vjo.darwin.tracking.sojourner.SojData").singleton().protos({constructs:function(){this.sojD;}}).inits(function(){vjo.darwin.tracking.sojourner.SojData=new vjo.darwin.tracking.sojourner.SojData();}).endType();
vjo.ctype("vjo.darwin.tracking.sojourner.CalData").singleton().protos({constructs:function(){this.cal={};},setData:function(_1,_2){if(!_1||!_2){return;}
this.cal[_1]=_2;},getData:function(_3){if(_3){return this.cal[_3];}}}).inits(function(){vjo.darwin.tracking.sojourner.CalData=new vjo.darwin.tracking.sojourner.CalData();}).endType();
vjo.ctype("vjo.darwin.tracking.sojourner.TrackingRespHdl").needs(["vjo.darwin.tracking.sojourner.SojData","vjo.darwin.tracking.sojourner.CalData"]).props({handleResponse:function(_1){if(_1.errors&&_1.errors.length>0){vjo.darwin.tracking.sojourner.SojData.sojD="";}
if(_1.response&&_1.response.dataMap&&_1.response.dataMap.SOJDATA){vjo.darwin.tracking.sojourner.SojData.sojD=_1.response.dataMap.SOJDATA;}
if(_1.response&&_1.response.dataMap&&_1.response.dataMap.TDATA){vjo.darwin.tracking.sojourner.CalData.setData(_1.svcId,_1.response.dataMap.TDATA);}}}).endType();
vjo.ctype("vjo.darwin.tracking.enabler.TrackingEnablerUtil").needs("vjo.dsf.EventDispatcher").needs("vjo.dsf.utils.URL").needs("vjo.dsf.cookie.VjCookieJar").props({seekParent:function(_1,_2){if(!_1||!_1.tagName){return"";}
if(_1.tagName.toLowerCase()=="a"||_1.tagName.toLowerCase()=="area"){return _1;}
if(_1.tagName.toUpperCase()=="INPUT"&&_1.getAttribute("type")&&_1.getAttribute("type").toUpperCase()=="SUBMIT"){return _1;}
if(_2>0){return this.seekParent(_1.parentNode,_2-1);}else{return"";}},splitParm:function(_3){var v=[-1,-1,-1,-1];var f=_3.split(".");for(var i=0;i<f.length;i++){var s=f[i].substr(0,1);if(s=="p"){v[0]=f[i].substr(1);}
if(s=="c"){v[1]=f[i].substr(1);}
if(s=="m"){v[2]=f[i].substr(1);}
if(s=="l"){v[3]=f[i].substr(1);}}
return v;},enc:function(i){var A=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];var P="z";var _b="";var B=A.length;var _d;if(i==-1){return P;}
while(i>=B){_d=i%B;_b=A[_d]+_b;i=i/B|0;}
_b=A[i]+_b;return _b;},checkSiteDomain:function(_e){var dd=document.domain,i=dd.indexOf(".ebay.");if(i!=-1){dd=dd.substr(i+1);}
if(_e&&_e.length>0){if(_e.charAt(0)=="/"){return true;}else{if(_e.indexOf(dd)==-1){return false;}}
return true;}
return dd;}}).endType();
vjo.ctype("vjo.darwin.tracking.enabler.TrackingEnabler").needs("vjo.dsf.utils.URL").needs("vjo.dsf.cookie.VjCookieJar").needs("vjo.darwin.tracking.enabler.TrackingEnablerUtil").props({rewriteURLs:function(_1,_2,_3,_4,_5){if(_1.nativeEvent===null||_1.nativeEvent===undefined){return;}
var _6=_1.nativeEvent.srcElement||_1.nativeEvent.target;if(_6===null||_6===undefined){return;}
if(_6.tagName.toLowerCase()=="img"||_6.tagName.toLowerCase()=="span"){_6=_6.parentNode;}
var _7=_6.getAttribute(_4);if(_7===null){return;}
_7=_7.split(_5);if(_7[0]){var _8=_6.href;if(_8&&vjo.darwin.tracking.enabler.TrackingEnablerUtil.checkSiteDomain(_8)){_8=vjo.dsf.utils.URL.addArg(_8,_2,_7[0]);if(_7[1]){_8=vjo.dsf.utils.URL.addArg(_8,_3,_7[1]);}
_6.href=" "+_8;}}},copySIDToCookie:function(_9,_a,_b,_c){var _d=";";var vj=vjo.dsf.cookie.VjCookieJar;var u=vjo.darwin.tracking.enabler.TrackingEnablerUtil;var x="undefined";if(typeof(_GlobalNavHeaderCookieTracking)==x||!_GlobalNavHeaderCookieTracking){return this.rewriteURLs(_9,_a,_c,_b,_d);}
if(typeof(_GlobalNavHeaderStatic)!=x&&_GlobalNavHeaderStatic){vj.writeCookielet("ds2","sotr");return;}
var pid=_GlobalNavHeaderSrcPageId;var V="a";var P="zzzz";var _14=_9.nativeEvent.srcElement||_9.nativeEvent.target;if(!_14){return;}
_14=u.seekParent(_14,3);if(!_14){return;}
var url=_14.href;var isF=false;var _17=_14.getAttribute(_b);if(_14.tagName=="INPUT"&&_14.getAttribute("type").toUpperCase()=="SUBMIT"){var _18=document.getElementsByName(_a);url=_14.form.action;for(var i=0;i<_18.length;i++){if(_18[i].tagName=="INPUT"&&_18[i].getAttribute("type")&&_18[i].getAttribute("type").toUpperCase()=="HIDDEN"&&_18[i].form==_14.form){isF=true;_17=_18[i].value;}}}
if(!u.checkSiteDomain(url)){return;}
var v=[-1,-1,-1,-1];var _1b=[-1,-1,-1,-1];var oc=vj.readCookie("ds2","sotr");if(oc&&oc.length==12&&oc.substr(0,1)=="a"){var _1d=oc.substr(1,4);if(_1d!="zzzz"){_1b[0]=_1d;}
_1d=oc.substr(5,1);if(_1d!="z"){_1b[1]=_1d;}
_1d=oc.substr(6,3);if(_1d!="zzz"){_1b[2]=_1d;}
_1d=oc.substr(9,3);if(_1d!="zzz"){_1b[3]=_1d;}}
var b=false;if(_17){_17=_17.split(_d);var _1f;if(url&&_17[0]){_1f=_17[0];if(_17[1]){try{url=vjo.dsf.utils.URL.addArg(url,_c,_17[1]);_14.href=" "+url;}
catch(e){}}
v=u.splitParm(_1f);b=true;}}
if(!b){var _20=_a+"=";if(url&&url.indexOf(_20)!=-1){try{var p=(url.substr(url.indexOf(_20)+_20.length)).split("&");_1f=p[0];v=u.splitParm(_1f);b=true;}
catch(e){}}}
if(!b&&v[0]==-1){if(!pid||!_9.nativeEvent){return;}else{v[0]=pid;b=true;}}
if(isF&&v[0]===0&&pid){v[0]=pid;}
if(b){var cv=V;if(v[0]==-1&&_1b[0]!=-1){cv+=_1b[0];}else{cv+=(u.enc(v[0])+P).substr(0,4);}
if(v[1]==-1&&_1b[1]!=-1){cv+=_1b[1];}else{cv+=u.enc(v[1]);}
if(v[2]==-1&&_1b[2]!=-1){cv+=_1b[2];}else{cv+=(u.enc(v[2])+P).substr(0,3);}
if(v[3]==-1&&_1b[3]!=-1){cv+=_1b[3];}else{cv+=(u.enc(v[3])+P).substr(0,3);}
vj.writeCookielet("ds2","sotr",cv);}}}).endType();
vjo.itype("vjo.dsf.common.IJsHandler").protos({handle:function(_1){}}).endType();
vjo.ctype("vjo.darwin.tracking.enabler.TrackingModuleEnabler").needs("vjo.dsf.utils.URL").needs("vjo.dsf.typeextensions.string.Comparison").needs("vjo.dsf.cookie.VjCookieJar").needs("vjo.darwin.tracking.enabler.TrackingEnablerUtil").satisfies("vjo.dsf.common.IJsHandler").protos({constructs:function(_1,_2,_3,_4){this.sCid=_1;this.sParms=_2;this.sCidParms=_3;this.sDelim=_4;this.oCJ=vjo.dsf.cookie.VjCookieJar;this.oU=vjo.darwin.tracking.enabler.TrackingEnablerUtil;},logModuleId:function(_5){var V="a";var P="zzzz";if(!_5.nativeEvent||_5.nativeEvent===null||_5.nativeEvent===undefined){return;}
var sc=false;if(typeof(_GlobalNavHeaderCookieTracking)!="undefined"&&_GlobalNavHeaderCookieTracking){sc=true;}
var _9=_5.nativeEvent.srcElement||_5.nativeEvent.target;if(!_9||_9===null||_9===undefined){return;}
_9=this.oU.seekParent(_9,3);if(!_9){return;}
var _a=this.sCidParms.split(this.sDelim);if(_a[0]&&_9&&_9.href&&!_9.href.has("javascript:")){if(sc){var v=[-1,-1,-1,-1];v=this.oU.splitParm(_a[0]);var _c=V;_c+=(this.oU.enc(v[0])+P).substr(0,4);_c+=this.oU.enc(v[1]);_c+=(this.oU.enc(v[2])+P).substr(0,3);_c+=(this.oU.enc(v[3])+P).substr(0,3);this.oCJ.writeCookielet("ds2","sotr",_c);}else{var _d=vjo.dsf.utils.URL.addArg(_9.href,this.sCid,_a[0]);if(_a[1]){_d=vjo.dsf.utils.URL.addArg(_d,this.sParms,_a[1]);}
_9.href=" "+_d;}}},getAnchor:function(_e){var e=_e;if(e&&e.tagName){if(!e.tagName.is("A")&&!e.tagName.is("INPUT")&&(e.tagName.is("INPUT")&&e.getAttribute("type")!="SUBMIT")){e=this.getAnchor(e.parentNode);}
return e;}},handle:function(_10){this.logModuleId(_10);}}).endType();
vjo.ctype("vjo.darwin.core.ebayheader.rover.FooterRover").needs("vjo.dsf.cookie.VjCookieJar").props({roverService:function(_1){if(document.location.protocol.has("https:")){return;}
this.command=_1;if(!_1){return;}
if(!this.isCookieValid()){return;}
vjo.dsf.EventDispatcher.addEventListener(window,"load",this.sendRequest,this);},sendRequest:function(){var _2=new vjo.dsf.assembly.VjClientAssemblerRequest(this.command,this.handleResponse,this,"cb",false);vjo.dsf.assembly.VjClientAssembler.load(_2);},isCookieValid:function(){var _3=vjo.dsf.cookie.VjCookieJar.readCookie("dp1","idm");if(!_3){return true;}else{return false;}},handleResponse:function(_4){if(_4&&_4.length>1){var _5=_4.length-1;for(i=0;i<_5;i++){this.createImage(_4[i]);}
this.setCookieExpiration(_4[_5]);}},createImage:function(_6){if(_6&&_6.length>1){var _7=document.createElement("IMG");_7.width="1";_7.height="1";_7.src=_6;document.body.appendChild(_7);}},setCookieExpiration:function(_8){if(typeof _8=="number"&&_8>0){vjo.dsf.cookie.VjCookieJar.writeCookielet("dp1","idm","1",_8/86400,"");}}}).endType();
vjo.ctype("vjo.darwin.core.dynamicmenu.ReplaceHandler").props({replace:function(_1,_2,_3){var dm=vjo.Registry.get(_1);if(null!=dm){dm.replaceJSONDataHandler(_2,_3);}}}).endType();
vjo.ctype("vjo.darwin.core.encoding.Enc").needs("vjo.dsf.Enc","").inits(function(){if(vjo.darwin.core.encoding.Enc.loaded){return;}
vjo.darwin.core.encoding.Enc.loaded=true;var vjoDecodeURI=window.decodeURI;window.decodeURI=function(str){try{return vjoDecodeURI(str);}catch(e){return unescape(str);}};var vjoDecodeURIComponent=window.decodeURIComponent;window.decodeURIComponent=function(str){try{return vjoDecodeURIComponent(str);}catch(e){return unescape(str);}};}).endType();
vjo.ctype("vjo.darwin.core.ebaytoolbar.VjEbayToolbarDetect").needs(["vjo.dsf.client.ActiveX","vjo.dsf.utils.Bit","vjo.dsf.cookie.VjCookieJar"]).props({isEnabled:function(){var V1="eBayToolbar.Helper",V2="eBayToolbarCommLib.IWebEvent.1";var _2=this.vj$.ActiveX,cv=this.rw(false),oldt,newt;if(cv){if(cv==1||cv==2){return true;}
return false;}else{oldt=_2.isLibLoaded(V1);newt=_2.isLibLoaded(V2);if(oldt){this.rw(true,1);}else{if(newt){this.rw(true,2);}else{this.rw(true,3);}}
return oldt||newt;}},rw:function(_3,_4){var t=this,n=t.vj$,C=n.VjCookieJar,B=n.Bit;cl=C.readCookie("ebay","sbf");if(!_3){return B.getMulti(cl,74,2);}else{if(_3){_4=(_4=="")?3:_4;cl=B.setMulti(cl,74,2,_4);C.writeCookielet("ebay","sbf",cl);}}}}).endType();
vjo.ctype("vjo.darwin.core.bta.BuyerTransactionAlert").needs(["vjo.dsf.cookie.VjCookieJar","vjo.dsf.typeextensions.string.Comparison","vjo.dsf.client.Browser","vjo.dsf.document.Element","vjo.dsf.utils.Object","vjo.darwin.core.ebaytoolbar.VjEbayToolbarDetect"]).protos({constructs:function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b){this.sId=_1;this.iPollingInterval=_2;this.iMaxHits=_3;this.iHitTimeout=_4;this.iServerHits=0;this.sLastCookieletValue="";this.sServerUrl=_5;if(document.location.protocol.has("https")){_6=_6.replace("http://pics.","https://securepics.");}
this.sImgServer=_6;this.sViewItemUrl=_7;this.aAlertInfo=[["h:h:alt:2",_9,"icon/iconOutbid_16x16.gif"],["h:h:alt:3",_8,"icon/iconWatchB_16x16.gif"],["h:h:alt:4",_9,"icon/iconOutbid_16x16.gif"],["h:h:alt:5",_a,"icon/iconchanceBlu_16x16.gif"],["h:h:alt:tcr",_b,"icon/iconMailBlue_16x16.gif"]];var c,oC=vjo.dsf.client.Browser,oCJ=vjo.dsf.cookie.VjCookieJar;if((oC.bNav&&oC.iVer<7)||(oC.bOpera&&(oC.iVer+oC.fMinorVer)<0.5)||(oC.bIE&&oC.iVer<5)){return;}
c=oCJ.readCookie("ebaysignin");if(!c||!c.is("in")){return;}
c=oCJ.readCookie("dp1","a1p");if(c&&c.length>0&&parseInt(c)>0){return;}
if(vjo.darwin.core.ebaytoolbar.VjEbayToolbarDetect.isEnabled()){return;}},isEnabled:function(){var V1="eBayToolbar.Helper",V2="eBayToolbarCommLib.IWebEvent.1";with(this){var _f=vj$.ActiveX;return(_f.isLibLoaded(V1)||_f.isLibLoaded(V2));}},setValue:function(_10,_11){var oL=this.oL;if(oL){if(_10.is("")&&!oL.ctrld){return;}
if(_11){if(vjo.dsf.client.Browser.bFirefox){oL.textContent=_10;}else{oL.innerText=_10;}}else{oL.innerHTML=_10;}
oL.ctrld=1;}},onRefresh:function(){var E=vjo.dsf.document.Element;if(!this.oL){this.oL=E.get(this.sId);}
if(!this.oL){return;}
var c=vjo.dsf.cookie.VjCookieJar.readCookie("npii","mri");if(c){return;}
c=vjo.dsf.cookie.VjCookieJar.readCookie("ebay","a2p");if(!c){this.onCookieExpire();return;}
var at=parseInt(c.charAt(8));if(isNaN(at)){return;}
if(at===0){this.setValue("");return;}
var nrt=parseInt(c.substring(0,8),16)*1000;if(isNaN(nrt)){return;}
var ct=new Date();ct=ct.getTime();if(at==6||at==9){if(!c.is(this.sLastCookieletValue)){this.iServerHits=0;}
this.setValue("");this.sLastCookieletValue=c;var t=(nrt>ct)?parseInt((nrt-ct)/1000):this.iPollingInterval;window.setTimeout(vjo.dsf.utils.Object.hitch(this,this.onCookieExpire),t*1000);return;}
if(ct>=nrt){this.onCookieExpire();return;}
this.iServerHits=0;var cfg=this.aAlertInfo;if(at<0&&at>=cfg.length){return;}
var ii=c.substring(9,c.lastIndexOf("."));if(!c.is(this.sLastCookieletValue)){var _1b=cfg[at-1],imgSrv=this.sImgServer;var _1c=imgSrv+"s.gif";var _1d="<img src=\""+_1c+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">|<img src=\""+_1c+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">";_1d+="<img src=\""+imgSrv+_1b[2]+"?t\" style=\"vertical-align:middle\"><img src=\""+_1c+"\" width=\"5\" height=\"16\" style=\"vertical-align:middle\">";var url=this.sViewItemUrl+"&item="+ii;_1d+="<a href=\""+url+"&ssPageName="+_1b[0]+"\">"+_1b[1]+"</a>";this.setValue(_1d);this.sLastCookieletValue=c;}
this.fireRefreshEvent();},fireRefreshEvent:function(_1f){if(!_1f){_1f=this.iPollingInterval;}
window.setTimeout(vjo.dsf.utils.Object.hitch(this,this.onRefresh),_1f*1000);},onCookieExpire:function(){var oCJ=vjo.dsf.cookie.VjCookieJar,signin=oCJ.readCookie("ebaysignin");if(!signin.has("in")){return;}
if(document.location.href.has("https:")){return;}
if(this.iServerHits<this.iMaxHits){this.iServerHits++;var ct=new Date();ct=ct.getTime();this.setValue("<img height=\"1\" width=\"1\" src=\""+this.sServerUrl+"&clientTime="+ct+"\" style=\"visibility:hidden;vertical-align:middle\">");this.fireRefreshEvent(this.iHitTimeout);}else{this.setValue("");oCJ.writeCookielet("ebay","a2p","1111111101111111111.");}}}).endType();
vjo.ctype("vjo.dsf.document.Shim").needs("vjo.dsf.client.Browser").props({add:function(_1,_2,_3){var f,p="px",w,h,s;if(this.check()){w=_1.offsetWidth;h=_1.offsetHeight;w+=_2?_2:0;h+=_3?_3:0;f=document.createElement("IFRAME");s=f.style;s.width=w+p;s.height=h+p;s.filter="chroma(color='white')";f.frameBorder=0;s.position="absolute";s.left="0"+p;s.top="0"+p;s.zIndex="-1";s.filter="Alpha(Opacity=\"0\")";if(document.location.protocol=="https:"){f.src="https://securepics.ebaystatic.com/aw/pics/s.gif";}
_1.appendChild(f);return f;}
return null;},remove:function(_6,_7){if(this.check()){if(_7&&_7.parentNode){_7.parentNode.removeChild(_7);}}},check:function(){var B=vjo.dsf.client.Browser;return(B.bIE||B.bFirefox);}}).endType();
vjo.ctype("vjo.darwin.core.dynamicmenu.Show").needs("vjo.dsf.utils.JsLoader").satisfies("vjo.dsf.common.IJsHandler").protos({constructs:function(_1){this.id=_1;},handle:function(_2){var _3=vjo.Registry.get(this.id),url=_3.getHandlerSource(),handler=_3.getHandler();if(url!==null&&typeof(window[handler])=="undefined"){this.vj$.JsLoader.load(url,_3.setup,_3);}else{_3.setup();}}}).endType();
vjo.ctype("vjo.darwin.core.dynamicmenu.Hide").satisfies("vjo.dsf.common.IJsHandler").protos({constructs:function(_1){this.id=_1;},handle:function(_2){vjo.Registry.get(this.id).hide();}}).endType();
vjo.ctype("vjo.darwin.core.dynamicmenu.Stay").satisfies("vjo.dsf.common.IJsHandler").protos({constructs:function(_1){this.id=_1;},handle:function(_2){vjo.Registry.get(this.id).clear();}}).endType();
vjo.ctype("vjo.darwin.core.dynamicmenu.DynamicMenu").needs(["vjo.dsf.document.Element","vjo.dsf.document.Positioning","vjo.dsf.document.Shim","vjo.dsf.utils.Object","vjo.dsf.client.Browser","vjo.darwin.core.dynamicmenu.Show","vjo.darwin.core.dynamicmenu.Hide","vjo.darwin.core.dynamicmenu.Stay"]).protos({constructs:function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f,_10,_11,_12,_13,_14){this.iMouseOutTimer=null;this.iMouseOverTimer=null;this.iLeftPadding=_b;this.iTopPadding=_c;this.iRightPadding=_d;this.sAnchorId=_1;this.sContainerLayerId=_2;this.sContentLayerId=_3;this.iMouseOutDelay=_4;this.iMouseOverDelay=_5;this.iHighResDocWidth=_6;this.iLowResDocWidth=_7;this.iHighResColumns=_8;this.iMediumResColumns=_9;this.iLowResColumns=_a;this.sHandler=_e;this.sCollName=_f;this.sWidth=_10;this.sAnchorMouseOverClass=_11;this.sAnchorMouseOutClass=_12;this.iframeShim=null;this.sHTML=null;this.oAnchor=null;this.sTemplate=null;this.sAnchorText=_13;this.sDomain=_14;this.sHandlerSource=null;if(this.sAnchorId=="Help"){this.iLeftPadding-=5;}
this.oCobrand=null;},setHandlerSource:function(url){if(url){this.sHandlerSource=url;}},getHandlerSource:function(){return this.sHandlerSource;},getHandler:function(){return this.sHandler;},setup:function(){var oL,oA,iL,iT,iWW,noc,iAL,iAW,iLW,op,oSI,bF=false,t,lh=window.location.href;var vd=vjo.dsf,D=vd.document,E=D.Element,P=D.Positioning,S=D.Shim,B=vd.client.Browser;var O=vd.utils.Object;var _24=0;var _25=false;with(this){clear();if(sTemplate==null){t=E.get(sContentLayerId);if(t){sTemplate=t.innerHTML;}}
oL=E.get(sContainerLayerId);if(oL){op=oL.offsetParent;}
oA=E.get(sAnchorId);iAL=DynamicMenuGetOffsetLeft(oA);iAW=oA.offsetWidth;if(oA.parentNode&&oA.parentNode.id&&oA.parentNode.id.has("item")){oA=oA.parentNode;}
iT=P.getOffsetTop(oA)+(oA.offsetHeight);iWW=P.getClientWidth();if(typeof(iWW)=="undefined"){iWW=800;}
if(iWW>iHighResDocWidth){noc=iHighResColumns;}else{if(iWW>iLowResDocWidth&&iWW<=iHighResDocWidth){noc=iMediumResColumns;}else{if(iWW<=iLowResDocWidth){noc=iLowResColumns;}else{noc=5;}}}
if(sHTML==null){bF=true;if(B.bFirefox&&!lh.has("motors.")&&!lh.hasAny("shop.","local.","catalog.")){E.promoteToBody(sContainerLayerId);}
sHTML=getMenuHtml(noc);if(sHTML==null){return;}
oL.innerHTML=sHTML;}
iLW=oL.offsetWidth;var _26=GetContainerDiv(),cw,bRA=false;if(sAnchorId=="Help"){bRA=true;}
if(_26&&B.bIE&&!lh.hasAny("community","education")){cw=_26.offsetWidth+P.getOffsetLeft(_26);if((iAL+iLW)>cw){bRA=true;}}
var bE=(sAnchorId=="EbxBrowseCategories")?true:false;if(lh.hasAny("securitycenter","payments.")&&lh.has(".hk")){iAL=P.getOffsetLeft(oA);}else{if(lh.hasAny("securitycentre","contact_ebay")&&lh.has(".au")){iAL=P.getOffsetLeft(oA);}else{if((typeof(pageName)!="undefined")?pageName.has("CCHP_"):false){iAL=P.getOffsetLeft(oA);}else{if(lh.hasAll("pages.","ebaymotors")){}else{if(lh.hasAny("/buy/")){iAL=P.getOffsetLeft(oA);}else{if(lh.hasAny("pages.",".html",".shtml","cgi.","tools.ebay.de","neighborhoods.","themenwelten.","neighbourhoods.","motors.ebay.co.uk","motors.uk.","ebaymotors.at","motors.at.","motors.ebay.de","motors.de.")){iAL=P.getOffsetLeft(oA);}else{if(lh.hasAny("annonces.")&&!(B.bIE&&B.iVer==6)){iAL=P.getOffsetLeft(oA);}else{if(typeof(bCenterAlignedPage)!="undefined"&&bCenterAlignedPage){iAL=P.getOffsetLeft(oA);}else{if(bE&&((typeof(pageName)!="undefined")?pageName.has("KP_HomePage"):false)){iAL=P.getOffsetLeft(oA);}else{if(sAnchorId=="StoreBrowseCats"&&lh.has("stores.")){iAL=P.getOffsetLeft(oA);}else{if(typeof(pageName)!="undefined"&&pageName=="HomePagePortal"){iAL=P.getOffsetLeft(oA);}}}}}}}}}}}
var _28=E.get("2tabPopularProducts");if(_28&&B.bIE){iAL=P.getOffsetLeft(oA);}
var _29=false;if(lh.hasAny(".fr.","ebay.fr")&&sAnchorId=="Community"){_29=true;}
if(!_29&&((((iWW-iAL-iLW)<=10)&&iWW>iLW)||(iWW<(P.getOffsetLeft(oA)+iAW+iLW))||bRA||bE)){_24=iAW-iLW;iL=iAL+iAW-iLW;}else{iL=iAL;}
if(_29){iL-=5;}
if(sAnchorId=="Buy"||sAnchorId=="BrowseCategories"){_25=true;}
if(sAnchorId=="Buy"||sAnchorId=="Sell"||sAnchorId=="MyEbay"||sAnchorId=="OV"){iL=iAL;}
iL+=iLeftPadding;if(lh.has("securitycentre")&&lh.has(".sg")&&B.bIE){iL+=10;}else{if(lh.has("feedback")&&lh.has(".hk")&&B.bFirefox){iL+=7;}else{if(lh.has("my.")&&B.bFirefox){iL-=7;}else{if(lh.has("myworld")&&B.bIE){iL+=10;}else{if(bE){var sn=E.get("dynamicmenu-snavW");iT=P.getOffsetTop(sn)+(sn.offsetHeight)+iTopPadding;if(B.bFirefox){iL+=2;}
if(B.bIE&&((typeof(pageName)!="undefined")?pageName.has("KP_HomePage"):false)){iL-=9;}}else{if(lh.has("search.")&&sAnchorId=="BrowseCategories"&&B.bIE&&B.iVer==7){iL+=22;iT-=2;}else{if(!lh.has("motors.shop.")&&B.bIE){if(lh.has("shop.")){if(sAnchorId=="BrowseCategories"){iL+=5;}}else{if(lh.hasAny("catalog.")){iL+=15;iT-=2;}}}else{if(lh.has("hub.motors.")&&B.bIE&&B.iVer>6){iL-=8;}}}}}}}}
if(bF){oL.style.left=(iL>=0)?(iL-1)+"px":"14px";oL.style.top=(iT)+"px";if((typeof(this.vj$.DynamicMenu.bUnified)!="undefined"&&this.vj$.DynamicMenu.bUnified)||lh.has("deals.")||lh.has("stores.")||lh.has("contact")||lh.has("catalog.")||(lh.has("resolutioncenter.")&&B.bIE&&B.iVer>6)){oL.style.position="absolute";var p1=P.getOffsetLeft(document.getElementById(sAnchorId));oL.style.left=(p1+_24+this.iLeftPadding)+"px";E.promoteToBody(oL.id);}
oL.style.zIndex="1000";if(lh.has("motors")||sAnchorId=="BrowseCategories"&&!lh.has("myworld")){iframeShim=this.add(oL,12);}else{iframeShim=this.add(oL);}}else{if(B.bIE){oL.appendChild(iframeShim);}}
oSI=E.get(sContainerLayerId+"-spacer");if(oSI&&bF){oSI.width=iLW-12;}
iMouseOverTimer=setTimeout(O.hitch(this,"show"),iMouseOverDelay);}},show:function(){var oA,E=vjo.dsf.document.Element;with(this){oA=E.get(sAnchorId);if(oA){oA.className=sAnchorMouseOverClass;}
E.toggleVisibility(sContainerLayerId,true);}},hide:function(){with(this){clearTimeout(iMouseOverTimer);iMouseOutTimer=setTimeout(vj$.Object.hitch(this,"close"),iMouseOutDelay);}},close:function(){var oA,E=vjo.dsf.document.Element;with(this){oA=E.get(sAnchorId);if(oA){oA.className=sAnchorMouseOutClass;}
E.toggleVisibility(sContainerLayerId,false);if(iframeShim){vj$.Shim.remove(E.get(sContainerLayerId),iframeShim);}}},clear:function(){clearTimeout(this.iMouseOutTimer);},sortByValue:function(_30,_31){if(_30.value.has("Everything")){return 1;}else{if(_31.value.has("Everything")){return-1;}else{return _30.value<_31.value?-1:(_30.value>_31.value?1:0);}}},getMenuHtml:function(_32){with(this){var i,j,c,n,h,ipc,_39,_3a=".paradise.qa.ebay.com",sTemp2=".qa.ebay.com",u,ff,ll,sTemp3=".no-pool-name.qa.ebay.com";var E=vj$.Element;var lh=window.location.href;var _3d=window[sHandler];if(!_3d){return;}
var _3e=_3d(),items=_3e[sCollName],l=items.length;if(sAnchorId=="BrowseCategories"&&lh.has("ebay.com/")){for(i=0;i<l;i++){if(items[i].value.has("eBay Motors")){items[i].value="Cars, Boats, Vehicles & Parts";items[i].url="http://www.motors.ebay.com";items.sort(sortByValue);break;}}}
ipc=Math.ceil(l/_32);h="<table bgcolor='white' border='0' cellpadding='0' cellspacing='0'";if(this.sWidth!=""){h+=" width='"+sWidth+"'";}
h+=">";for(i=0;i<ipc;i++){h+="<tr>";for(j=0;j<_32;j++){h+="<td nowrap>";n=i+(j)*ipc;c=items[n];if(c){if(typeof(c.url)!="undefined"){u=c.url;if(sDomain){if(c.url.indexOf(_3a)!=-1){u=c.url.replace(_3a,sDomain);}else{if(c.url.indexOf(sTemp3)!=-1){u=c.url.replace(sTemp3,sDomain);}else{if(c.url.indexOf(sTemp2)!=-1){u=c.url.replace(sTemp2,sDomain);}}}}
u=cobrandUrl(u);h+="<a href='"+u+"'>";h+=c.value;h+="</a>";}else{u=c.value;ff=u.indexOf("href=\"");if(ff==-1){h+=u;}else{ff+=6;ll=u.lastIndexOf("\"");u=u.substr(ff,ll-ff);h+=c.value.substr(0,ff)+cobrandUrl(u)+c.value.substr(ll);}}}else{h+="&nbsp;";}
h+="</td>";}
h+="</tr>";}
h+="</table>";_39=h;if(sTemplate){_39=sTemplate.replace("##1##",h);}
return _39;}},DynamicMenuGetOffsetLeft:function(e){var l=0,oCl=vjo.dsf.client.Browser,ex=(oCl.bIE||oCl.bSafari),lh=window.location.href;var bH=(typeof(isHomepage)!="undefined")?isHomepage:false;var _42=false;if(e.offsetParent){l=e.offsetLeft;while(e=e.offsetParent){if(!_42){_42=e.innerHTML.has("snav");}
if(!e.id.toLowerCase().has("maincontent")&&!e.className.has("pagecontainer")){l+=e.offsetLeft;}
if(((e.className.is("pnav")||_42)&&ex)&&e.offsetLeft!=0&&(!lh.hasAny("signin.","shop.","community","sitemap","/help/","/education/","blogs","feedback","my"))){return l;}else{if((e.className.is("pnav")||_42)&&e.offsetLeft!=0&&oCl.bFirefox&&lh.has(".hk")&&(!lh.has("community")&&!bH)){return l;}else{if((e.className.is("pnav")||_42)&&e.offsetLeft!=0&&oCl.bIE&&lh.has(".au")&&lh.hasAny("/help/")){return l;}}}}}
return l;},GetContainerDiv:function(){var d=document,aa,i,l;if(d.getElementsByTagName){aa=d.getElementsByTagName("div");}else{if(d.all){aa=d.all;}}
l=aa.length;for(i=0;i<l;i++){if(aa[i].className=="gbhdr"){return aa[i];}}},cobrandUrl:function(_44){var lh=window.location.href;if(!lh.has("sandbox.")){return _44;}
var u="undefined",cc,cf;if(this.oCobrand==null&&typeof(ebay)!=u&&typeof(ebay.oDocument)!=u){cc=ebay.oDocument._getControl("cobrandCollection");if(cc){cf=cc._getControl("cobrandFunctions");this.oCobrand=cf;}}else{cf=this.oCobrand;}
var lc=(_44.substring(_44.length)!="/")?"/":"";if(cf&&typeof(cf.cobrandURL)!=u){return cf.cobrandURL(_44+lc);}else{if(typeof(vjo.darwin.core.cobrand)!=u&&typeof(vjo.darwin.core.cobrand.EbaySandbox)!=u){return vjo.darwin.core.cobrand.EbaySandbox.cobrandURL(_44);}}
return _44;},add:function(_48,_49,_4a){var f,p="px",w,h,s,S=vjo.dsf.document.Shim;if(vjo.dsf.client.Browser.bIE){w=_48.offsetWidth;h=_48.offsetHeight;w+=_49?_49:0;h+=_4a?_4a:0;f=document.createElement("IFRAME");s=f.style;s.width=w+p;s.height=h+p;s.filter="chroma(color='white')";f.frameBorder=0;s.position="absolute";s.left="0"+p;s.top="0"+p;s.zIndex="-1";s.filter="Alpha(Opacity=\"0\")";if(document.location.protocol.has("https")){f.src="https://securepics.ebaystatic.com/aw/pics/s.gif";}
_48.appendChild(f);return f;}},replaceJSONDataHandler:function(_4d,_4e){if(_4d!=null){this.sHandler=_4d;}
if(_4e!=null){this.sDomain=_4e;}}}).props({setUnifiedPosition:function(){this.bUnified=true;}}).endType();
vjo.ctype("vjo.darwin.core.ebayheader.playground.Playground").needs(["vjo.dsf.typeextensions.string.Comparison","vjo.dsf.cookie.VjCookieJar","vjo.dsf.document.Element"]).protos({constructs:function(_1,_2){this.sLayerId=_1;this.sHandle=_2;},show:function(){var _3=vjo.dsf.cookie.VjCookieJar,sbf=_3.readCookie("ebay","sbf"),pcon=_3.getBitFlag(sbf,24),l,h,lid=this.sLayerId,E=this.vj$.Element;if(pcon){l=E.get(lid);h=window[this.sHandle];if(h&&l){l.innerHTML=h();E.toggleHideShow(lid,true);}}else{E.toggleHideShow(lid,false);}}}).endType();
vjo.ctype("vjo.darwin.core.ebayheader.timezone.TimeZone").needs("vjo.dsf.cookie.VjCookieJar").props({init:function(){this.vj$.VjCookieJar.writeCookielet("dp1","tzo",new Date().getTimezoneOffset().dec2Hex());}}).inits(function(){vjo.darwin.core.ebayheader.timezone.TimeZone.init();}).endType();
vjo.ctype("vjo.darwin.core.ebayheader.rebate.Rebate").needs("vjo.dsf.Element").needs("vjo.dsf.cookie.VjCookieJar").props({Refresh:function(_1,_2,_3){var E=vjo.dsf.Element;var _5=E.get(_1);if(_5){if(this.IsShowMagicRebate(_5,_2)){E.toggleHideShow(_1,true);}else{if(this.IsShowVibrantCoupon()){var _6=_5.getElementsByTagName("span")[0];if(_6){_6.innerHTML=_3;E.toggleHideShow(_1,true);}}}}},IsShowVibrantCoupon:function(){var _7=vjo.dsf.cookie.VjCookieJar.readCookie("ebay","sbf");if(_7){return vjo.dsf.cookie.VjCookieJar.getBitFlag(_7,29)==1;}},IsShowMagicRebate:function(_8,_9){var _a=_8.getElementsByTagName("img")[0],rate=vjo.dsf.cookie.VjCookieJar.readCookie("npii","mri"),perc;if(this.IsExpired()){return false;}
if(!rate){return false;}
perc=this.GetRate(rate);if(perc){perc=this.IsValidRate(perc);}
if(perc!==null&&_a){if(perc!=_9){_a.src=_a.src.replaceToken(_a.src,_9,perc);}
return true;}else{return false;}},IsExpired:function(){var _b=new Date().getTime();var _c=this.getClientOffset(_b);var _d=vjo.dsf.cookie.VjCookieJar.readCookieObj("npii","mri");if(_d!==null){var _e=parseInt(_d.maxage,16)*1000;if(_e>0){var _f=_e-_b+_c;if(_f<0){return true;}}}
return false;},getClientOffset:function(_10){var _11;var _12=vjo.dsf.cookie.VjCookieJar.readCookie("ebay","cos");if(_12!==null&&_12.length>0){_11=parseInt(_12,16)*1000;}else{_11=3600000;}
return _11;},IsValidRate:function(_13){var R=parseInt(_13,10);return(R>0&&R<100)?R:null;},GetRate:function(cv){var ar=cv.split(":");return ar.length>3?ar[2]:null;}}).endType();
vjo.needs("vjo.dsf.typeextensions.string.Comparison");vjo.ctype("vjo.dsf.typeextensions.string.TokenReplacement").endType();String.prototype.replaceToken=function(_1,_2,_3){if(_2==_3){return _1;}
var rv=_1;while(rv.has(_2)){rv=rv.replace(_2,_3);}
return rv;};String.prototype.replaceTokensEx=function(_5){var rv=this,re,tkn,a=arguments,l=a.length;for(var i=1;i<l+1;i++){rv=this.replaceToken(rv,_5.replace("n",(i)),a[i]);}
return rv;};String.prototype.replaceTokens=function(){var rv=this,re,tkn,a=arguments,l=a.length;for(var i=0;i<l;i++){rv=this.replaceToken(rv,"<#"+(i+1)+"#>",a[i]);}
return rv;};
vjo.ctype("vjo.dsf.window.utils.VjWindowUtils").props({getBrowserWindowHeight:function(){var s=self;var d=document;var de=d.documentElement;if(s.innerHeight){return s.innerHeight;}else{if(de&&de.clientHeight){return de.clientHeight;}}
return d.body.clientHeight;},getBrowserWindowWidth:function(){var s=self;var d=document;var de=d.documentElement;if(s.innerWidth){return s.innerWidth;}else{if(de&&de.clientWidth){return de.clientWidth;}}
return d.body.clientWidth;},getScrollXY:function(){var _7=0,scrOfY=0;if(typeof(window.pageYOffset)=="number"){scrOfY=window.pageYOffset;_7=window.pageXOffset;}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){scrOfY=document.body.scrollTop;_7=document.body.scrollLeft;}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){scrOfY=document.documentElement.scrollTop;_7=document.documentElement.scrollLeft;}}}
return[_7,scrOfY];},toPixels:function(_8){return _8+"px";},scrollTop:function(){if(window.pageYOffset!=null){return window.pageYOffset;}
if(document.documentElement){return Math.max(document.documentElement.scrollTop,document.body.scrollTop);}else{return document.body.scrollTop;}},scrollLeft:function(){if(window.pageXOffset!=null){return window.pageXOffset;}
if(document.documentElement){return Math.max(document.documentElement.scrollLeft,document.body.scrollLeft);}else{return document.body.scrollLeft;}},scrollWidth:function(){if(document.documentElement){return document.documentElement.scrollWidth;}else{return Math.max(document.body.scrollWidth,document.body.offsetWidth);}},scrollHeight:function(){if(document.documentElement){return document.documentElement.scrollHeight;}else{return Math.max(document.body.scrollHeight,document.body.offsetHeight);}},clientTop:function(){if(document.documentElement){return document.documentElement.clientTop;}else{return document.body.clientTop;}},clientLeft:function(){if(document.documentElement){return document.documentElement.clientLeft;}else{return document.body.clientLeft;}},clientWidth:function(){var _9=document.documentElement;if(_9&&window.innerWidth){return Math.min(_9.clientWidth,window.innerWidth);}else{if(_9&&_9.clientWidth){return _9.clientWidth;}else{if(window.innerWidth){return window.innerWidth;}else{if(document.body.clientWidth){return document.body.clientWidth;}else{return document.body.offsetWidth;}}}}},clientHeight:function(){var _a=document.documentElement;if(_a&&window.innerHeight){return Math.min(_a.clientHeight,window.innerHeight);}else{if(_a&&_a.clientHeight){return _a.clientHeight;}else{if(window.innerHeight){return window.innerHeight;}else{if(document.body.clientHeight){return document.body.clientHeight;}else{return document.body.offsetHeight;}}}}},browserTop:function(){return(window.innerHeight)?window.screenY+(window.outerHeight-window.innerHeight):window.screenTop;},browserLeft:function(){return(window.innerWidth)?window.screenX+(window.outerWidth-window.innerWidth):window.screenLeft;},eventTop:function(_b){if(_b.pageY!=null){return _b.pageY;}
if(document.documentElement){return _b.clientY+Math.max(document.documentElement.scrollTop,document.body.scrollTop);}else{return _b.clientY+document.body.scrollTop;}},eventLeft:function(_c){if(_c.pageX!=null){return _c.pageX;}
if(document.documentElement){return _c.clientX+Math.max(document.documentElement.scrollLeft,document.body.scrollLeft);}else{return _c.clientX+document.body.scrollLeft;}},offsetTop:function(_d){var _e=(document.documentElement&&document.documentElement.clientTop)?document.documentElement.clientTop:0;for(var _f=0;(_d!=null);_d=_d.offsetParent){_f+=_d.offsetTop;}
return _f+_e;},offsetLeft:function(_10){var _11=(document.documentElement&&document.documentElement.clientLeft)?document.documentElement.clientLeft:0;for(var _12=0;(_10!=null);_10=_10.offsetParent){_12+=_10.offsetLeft;}
return _12+_11;},openWindow:function(url,_14,_15){var _16=new Array();var _17=vjo.dsf.window.utils.VjWindowUtils;_15.top=_17.browserTop()+Math.round((_17.clientHeight()-_15.height)/2)+25;_15.left=_17.browserLeft()+Math.round((_17.clientWidth()-_15.width)/2);for(var key in _15){_16.push(key.concat("=",_15[key]));}
return window.open(url,_14,_16.join(","),true);}}).endType();
vjo.ctype("vjo.darwin.core.ebayheader.autocomplete.AutoComplete").needs(["vjo.dsf.Message","vjo.dsf.Element","vjo.dsf.EventDispatcher","vjo.dsf.utils.Handlers","vjo.dsf.ServiceEngine","vjo.dsf.window.utils.VjWindowUtils"]).protos({H:vjo.dsf.utils.Handlers,constructs:function(_1,_2){var t=this,E=vjo.dsf.Element,ED=vjo.dsf.EventDispatcher;t.sFormId=_2;t.sAcDivId=_1+"_acdiv";t.acdivWidth=0;t.sShowImg=false;t.activated=true;t.sReskin=true;t.H.attachSvcReqt("activateAutoComplete",t.activateAutoComplete,t);t.input=E.get(_1);t.input.setAttribute("AUTOCOMPLETE","OFF");if(t.input.className.has("xpborder")){t.sReskin=false;}
t.acdiv=E.get(t.sAcDivId);var _4=document.forms;ED.add(_1,"keyup",function(e){if(!t.activated){return;}
var _6=e.nativeEvent.keyCode;var _7=new vjo.dsf.Message("SVC_GH_OUT");_7.clientContext={type:"kw_keyup",src:e.src,value:t.input.value,keyCode:_6};return _7;});ED.add(_1,"keydown",function(e){if(!t.activated){return;}
var _9=e.nativeEvent.keyCode;var _a=new vjo.dsf.Message("SVC_GH_OUT");_a.clientContext={type:"kw_keydown",src:e.src,value:t.input.value,keyCode:_9};return _a;});ED.add(_1,"mouseover",function(e){if(!t.activated){return;}
var _c=e.nativeEvent.keyCode;var _d=new vjo.dsf.Message("SVC_GH_OUT");_d.clientContext={type:"kw_mouseover",src:e.src};return _d;});ED.add(_1,"blur",function(e){if(!t.activated){return;}
var _f=e.nativeEvent.keyCode;var _10=new vjo.dsf.Message("SVC_GH_OUT");_10.clientContext={type:"kw_blur",src:e.src};return _10;});ED.add(this.sAcDivId,"click",function(e){if(!t.activated){return;}
var _12=new vjo.dsf.Message("SVC_GH_OUT");_12.clientContext={type:"show_click"};return _12;});vjo.dsf.ServiceEngine.registerSvcHdl("SVC_GH_IN",function(_13){if(!t.activated){return;}
var _14=_13.clientContext.type;if(_14=="kw_updvalue"){t.input.value=_13.clientContext.value;}else{if(_14=="kw_autocomplete"){if(_13.clientContext.bOn&&!_13.clientContext.bSkipFocus){t.input.blur();}
t.input.setAttribute("AUTOCOMPLETE",_13.clientContext.bOn?"ON":"OFF");if(_13.clientContext.bOn&&!_13.clientContext.bSkipFocus){t.input.blur();t.input.focus();}}else{if(_14=="search_updtrk"){for(i=0;i<_4.length;i++){if(_4[i].name==_2){for(var j=0;j<_4[i].length;j++){if(_4[i].elements[j].name=="_trksid"){var _16=_4[i].elements[j].value;var _17="";var _18=["p","m","l"];for(var _19 in _18){var _1a=new RegExp(_18[_19]+"[0-9]+(?=.|$)");var _1b=_16.match(_1a);var _1c=_13.clientContext.lnkStr.match(_1a);var _1d=_1c?_1c[0]:(_1b?_1b[0]:null);var _1e=_17.length>0?".":"";if(_1d){_17+=_1e+_1d;}}
_4[i].elements[j].value=_17;return;}}}}}else{if(_14=="search_submit"){for(i=0;i<_4.length;i++){if(_4[i].name==_2){_4[i].submit();return;}}}else{if(_14=="sug_icon_show"){if(_13.clientContext.bShow){t.showImage();}else{t.hideImage();}}else{if(_14=="kw_focus"){t.input.focus();t.input.value=t.input.value+"";}}}}}}});},activateAutoComplete:function(msg){var t=this;if(msg.activated){t.activated=true;}else{t.hideImage();t.activated=false;}},showImage:function(){var t=this;if(t.sShowImg){return;}
if(t.acdivWidth===0){t.acdiv.style.display="inline";t.acdivWidth=t.acdiv.offsetWidth;}
var wd=(t.sReskin)?1:-3;var _23=t.acdivWidth-wd;if("BackCompat"==document.compatMode){_23=_23-5;}
t.input.style.width=(t.input.clientWidth-_23)+"px";t.input.style.borderRightWidth="0px";t.acdiv.style.display="inline";t.sShowImg=true;},hideImage:function(){var t=this;if(!t.sShowImg){return;}
var wd=(t.sReskin)?1:5;var _26=t.acdiv.offsetWidth-wd;if("BackCompat"==document.compatMode){_26=_26+6;}
t.input.style.width=(t.input.clientWidth+_26)+"px";t.input.style.borderRightWidth="1px";t.acdiv.style.display="none";t.sShowImg=false;}}).props({init:function(_27,_28){new vjo.darwin.core.ebayheader.autocomplete.AutoComplete(_27,_28);}}).endType();
vjo.ctype("vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteEncoder").protos({aCharList:[[new RegExp("[%]","g"),"_"],[new RegExp("[.]","g"),"_2e"],[new RegExp("[+]","g"),"_2b"],[new RegExp("[']","g"),"_27"]],pseudoDiv:null,constructs:function(){this.pseudoDiv=document.createElement("div");},encode:function(_1){var _2=encodeURIComponent(_1),t=this;for(var j=0;j<t.aCharList.length;j++){var _4=t.aCharList[j];_2=_2.replace(_4[0],_4[1]);}
return _2;},decodeCookie:function(_5){var _6=_5||"";_6=_6.replace(new RegExp("[+]","g")," ");_6=decodeURIComponent(_6);return _6;},encodeHTML:function(_7){var e=this.pseudoDiv;if(typeof(e.textContent)!="undefined"){e.textContent=_7;}else{e.innerText=_7;}
return e.innerHTML;}}).endType();
vjo.ctype("vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteCache").needs("vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteEncoder").protos({oCache:{},oIdx:{},oRef:{},oLeaf:{},oEncoder:null,UN:"undefined",TFU:"function",TNU:"number",constructs:function(){this.oEncoder=new vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteEncoder();},add:function(_1){try{var t=this,cacheItem=t.oCache[kw],kw,kwL,laL,prdL,tdL;var _3=false;if(_1[0].version){kw=_1[1];kwL=_1[2].sug?_1[2].sug:_1[2];laL=_1[3];prdL=_1[2].prd;tdL=_1[2].td;_3=true;}else{kw=_1[0];kwL=_1[1];laL=_1[2];}
if(_3){if(_1.length>=4){t.addItem(kw,kw,"k",kwL,prdL,tdL);}else{laL=_1[2];}}else{if(_1.length>=3){t.addItem(kw,kw,"k",kwL,null,null);}else{try{if(typeof(kwL[0])=="string"){laL=null;t.addItem(kw,kw,"k",kwL,null,null);}else{if(typeof(kwL[0])=="object"&&(kwL[0]instanceof Array)){laL=_1[1];}}}
catch(err){laL=null;}}}
if(laL!==null){for(var i=0;i<laL.length;i++){var _5=laL[i];var _6=kw+_5[0];var _7=_5[1];var _8;var _9;var _a;if(_3){if(_5[2].sug){_8=_5[2].sug;}else{_8=_5[2];}
_9=_5[2].prd;_a=_5[2].td;}else{_8=_5[2];}
if(typeof(_8)==t.UN||_8===null){_7="fd";_8=_5[0];}
t.addItem(_6,kw,_7,_8,_9,_a);}}else{t.addItem(kw,kw,"null",null);}}
catch(e){}},addItem:function(_b,_c,_d,_e,_f,_10){var t=this;_b=_b.toLowerCase();_c=_c.toLowerCase();if(_d=="k"){t.oCache[_b]=t.buildItem("k",(typeof(_e)==t.TNU)?(""+_e):_e,_f,_10,_c);return t.oCache[_b];}else{if(_d=="f"){t.oIdx[_b]=t.buildItem("f",(typeof(_e)==t.TNU)?(""+_e):_e,_f,_10,_c);return t.oIdx[_b];}else{if(_d=="fd"){t.oRef[_b]=t.buildItem("fd",_e,_f,_10,_c);return t.oRef[_b];}else{if(_d=="null"){t.oLeaf[_b]=t.buildItem("null",null,_f,_10,_c);return t.oLeaf[_b];}}}}},buildItem:function(_12,_13,_14,pTd,_16){var _17={"type":_12,"shortPrefix":_16};if(_13!==null){_17.keyword=_13;}
if(_14!==null){_17.prd=_14;}
if(pTd!==null){_17.td=pTd;}
return _17;},get:function(_18,_19){_18=_18.toLowerCase();_19=_19.toLowerCase();var t=this,cacheItem=t.oCache[_18],indexItem=t.oIdx[_18],referenceItem=t.oRef[_18];if(typeof(cacheItem)!=t.UN&&typeof(cacheItem)!=t.TFU){return cacheItem;}
if(typeof(indexItem)!=t.UN&&typeof(indexItem)!=t.TFU){return indexItem;}
if(typeof(referenceItem)!=t.UN&&typeof(referenceItem)!=t.TFU){return referenceItem;}
if(_19){var _1b=t.oLeaf[_19];if(typeof(_1b)!=t.UN&&typeof(_1b)!=t.TFU){return _1b;}
var _1c=[];for(var _1d in t.oIdx){var _1e=t.oIdx[_1d];if(_1e.shortPrefix==_19){_1c.push(_1d);}}
_1c.sort();if(_1c.length===0){return null;}
var _1f=_1c.length-1;for(var i=0;i<_1c.length;i++){if(_18<_1c[i]){_1f=i-1;break;}}
if(_1f<0){_1f=0;}
return t.oIdx[_1c[_1f]];}
return null;}}).endType();
vjo.ctype("vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteConfig").needs("vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteEncoder").protos({oModel:{"rootDir":"autofill","listSize":10,"delayTime":100,"dirDepth":3,"noSugShowTime":1500,"svcIn":"SVC_GH_IN","svcOut":"SVC_GH_OUT"},defaultAlgo:"1",algoMap:{"1":"f","2":"a"},widthDef:{"unit":9,"min":{"px":235,"char":26},"max":{"px":400,"char":40}},oEncoder:null,constructs:function(_1){this.oEncoder=new vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteEncoder();this.loadConfig(_1);},loadConfig:function(_2){var t=this,tM=t.oModel;if(_2.version===null||_2.algorithm===null){tM.version=_2.algoVerMap[t.defaultAlgo];tM.algorithm=t.algoMap[t.defaultAlgo];}else{tM.version=_2.version;tM.algorithm=t.algoMap[_2.algorithm];}
tM.trkSuggest=_2.trkSuggest;tM.trkProduct=_2.trkProduct;tM.trkBrandedLogo=_2.trkBrandedLogo;tM.trkRS=_2.trkRS;tM.trkInput=_2.trkInput;tM.trkShow=_2.trkShow;tM.trkHide=_2.trkHide;tM.roverDomainUrl=_2.roverDomainUrl;tM.containerId=_2.containerId;tM.idList=_2.idList;tM.sugDivId=_2.sugDivId;tM.noSugDivId=_2.noSugDivId;tM.hideLnk=_2.hideLnk;tM.baseURL=_2.baseURL;tM.prdURL=_2.prdBaseURL;tM.siteId=_2.siteId;tM.lastSearch=t.oEncoder.decodeCookie(_2.lastSearch);},updateWidthDef:function(_4){var t=this,inputWidth=parseInt(_4.offsetWidth,10);t.widthDef.max={"px":inputWidth,"char":Math.floor(inputWidth/t.widthDef.unit)-1};},getHideLnk:function(){return this.oModel.hideLnk;},getWidthUnit:function(){return this.widthDef.unit;},getWidthMin:function(){return this.widthDef.min;},getWidthMax:function(){return this.widthDef.max;},getRootDir:function(){return this.oModel.rootDir;},getListSize:function(){return this.oModel.listSize;},getDelayTime:function(){return this.oModel.delayTime;},getDirDepth:function(){return this.oModel.dirDepth;},getAlgorithm:function(){return this.oModel.algorithm;},getVersion:function(){return this.oModel.version;},getTrkSuggest:function(){return this.oModel.trkSuggest;},getTrkProduct:function(){return this.oModel.trkProduct;},getTrkBrandedLogo:function(){return this.oModel.trkBrandedLogo;},getTrkRS:function(){return this.oModel.trkRS;},getTrkInput:function(){return this.oModel.trkInput;},getRoverDomainUrl:function(){return this.oModel.roverDomainUrl;},getTrkShow:function(){return this.oModel.trkShow;},getTrkHide:function(){return this.oModel.trkHide;},getContainerId:function(){return this.oModel.containerId;},getIdList:function(){return this.oModel.idList;},getKeyUpSvc:function(){return this.oModel.keyUpSvc;},getKeyDownSvc:function(){return this.oModel.keyDownSvc;},getInputOverSvc:function(){return this.oModel.inputOverSvc;},getUpdInputSvc:function(){return this.oModel.updInputSvc;},getFillContentSvc:function(){return this.oModel.fillContentSvc;},getInSvc:function(){return this.oModel.svcIn;},getOutSvc:function(){return this.oModel.svcOut;},getBaseURL:function(){return this.oModel.baseURL;},getPrdURL:function(){return this.oModel.prdURL;},getSiteId:function(){return this.oModel.siteId;},getSugDivId:function(){return this.oModel.sugDivId;},getNoSugDivId:function(){return this.oModel.noSugDivId;},getNoSugShowTime:function(){return this.oModel.noSugShowTime;},getLastSearch:function(){return this.oModel.lastSearch;}}).endType();
vjo.ctype("vjo.dsf.utils.Timer").protos({timer:null,isRunning:false,interval:null,onTick:function(){},onStart:null,onStop:null,constructs:function(_1){this.interval=_1;},setInterval:function(ms){var t=this;if(t.isRunning){window.clearInterval(t.timer);}
t.interval=ms;if(t.isRunning){t.setInt();}},start:function(){var t=this;if(typeof t.onStart=="function"){t.onStart();}
t.isRunning=true;t.setInt();},stop:function(){var t=this;if(typeof t.onStop=="function"){t.onStop();}
t.isRunning=false;window.clearInterval(t.timer);},setInt:function(){var t=this;t.timer=window.setInterval(vjo.hitch(t,t.onTick),t.interval);}}).endType();
vjo.ctype("vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteRequest").needs(["vjo.dsf.XDomainRequest","vjo.dsf.utils.Timer","vjo.dsf.Element","vjo.dsf.ServiceEngine","vjo.dsf.Message","vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteCache","vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteEncoder"]).props({aReqList:[],sRespSvc:"autofill_response",inProcess:false,bInit:false,vX:vjo.dsf.XDomainRequest,uN:"undefined",init:function(_1){var t=this;if(t.bInit){return;}
t.oConfig={baseURL:_1.baseURL,dirDepth:_1.dirDepth,rootDir:_1.rootDir,algorithm:_1.algorithm,version:_1.version,siteId:_1.siteId};t.oCache=new vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteCache();t.oEncoder=new vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteEncoder();t.oProcessTimer=new vjo.dsf.utils.Timer();t.oProcessTimer.setInterval(20);t.oProcessTimer.onTick=function(){if(t.inProcess){return;}
t.inProcess=true;try{t.processQue();t.cleanQue();}
catch(e){}
t.inProcess=false;};t.oProcessTimer.start();t.bInit=true;},processQue:function(){var t=this;if(t.aReqList.length===0){return;}
var _4=t.aReqList[0];if(_4&&(_4.state=="wait")){t.aReqList[0].state="process";var _5=t.vX.bUseIframe;try{t.vX.bUseIframe=false;t.aReqList[0].scriptId=t.vX.send(_4.url,false);}
catch(e){}
t.vX.bUseIframe=_5;}},cleanQue:function(){var t=this;var _7=[],i;for(i=0;i<t.aReqList.length;i++){var _8=t.aReqList[i];if(_8.state=="wait"){_7.push(_8);}else{if(_8.state=="process"){var _9=new Date(),time=_9.getTime()-_8.timestamp;if(time>=1000){t.removeScriptTag(_8.scriptId);t.sendRespService(true,_8.requester,_8.prefix,null,null,_8.shortPrefix);}else{_7.push(_8);}}}}
t.aReqList=_7;},removeScriptTag:function(_a){try{this.vX.getReqDiv().removeChild(vjo.dsf.Element.get(_a));}
catch(e){}},getRespSvc:function(){return this.sRespSvc;},getShortPrefix:function(_b){return _b.substr(0,this.oConfig.dirDepth+1);},buildPath:function(_c,_d){var t=this,pd=_d?10000:t.oConfig.dirDepth;var _f=_c.length>pd?_c.substr(0,pd):_c.substr(0,_c.length-1);var _10=_c.length>pd?_c.substr(pd,1):_c.substr(_c.length-1,1);var _11="";var _12=_f.toLowerCase();var _13=_10.toLowerCase();for(var i=0;i<_12.length;i++){_11+=t.oEncoder.encode(_12.charAt(i))+"/";}
return[_11,t.oEncoder.encode(_13),_f+_10];},buildURL:function(){var t=this,tO=t.oConfig,url=tO.baseURL,href=document.location+"";if(href.search(/^https/g)!=-1){url=url.replace(/http:\/\/include/g,"https://secureinclude");url=url.replace(/com:80/g,"com");}
if(typeof(tO.version)==t.uN||tO.version===null){return null;}
if(url.lastIndexOf("/")<url.length-1){url+="/";}
url+=tO.rootDir+"/";url+=tO.algorithm+"/";url+=tO.siteId+"/";url+=tO.version+"/";return url;},addRequest:function(_16,_17,_18,_19){var t=this;var url=t.buildURL();var _1c=t.buildPath(_17,(_18=="fd"));if(url===null){return;}
if(url.lastIndexOf("/")<url.length-1){url+="/";}
url+=_1c[0]+_1c[1];if(_18=="f"&&typeof(_19)!=t.uN&&_19.length>0){url+=_19;}
url+=".js";var _1d=new Date();t.aReqList.push({"requester":_16,"prefix":_17,"shortPrefix":t.getShortPrefix(_17),"url":url,"state":"wait","timestamp":_1d.getTime(),"type":_18});},send:function(_1e,_1f){var t=this;if(!t.bInit){return;}
var _21=t.getShortPrefix(_1f);var _22=t.oCache.get(_1f,_21);if(_22===null){t.addRequest(_1e,_1f,"k");}else{if(_22.type=="f"||_22.type=="fd"){t.addRequest(_1e,_1f,_22.type,_22.keyword);}else{if(_22.type=="null"){t.sendRespService(true,_1e,_1f,[],[],_21,[]);}else{t.sendRespService(false,_1e,_1f,_22.keyword,[],_21,_22.prd,_22.td);}}}},sendRespService:function(_23,_24,_25,_26,_27,_28,_29,_2a){var m=new vjo.dsf.Message(this.sRespSvc);if(_23){m.clientContext={"timeout":true,"prefix":_25,"shortPrefix":_28,"requestId":_24};}else{m.clientContext={"timeout":false,"prefix":_25,"shortPrefix":_28,"requestId":_24,"kwList":_26,"laList":_27,"prdList":_29,"tdList":_2a};}
vjo.dsf.ServiceEngine.handleRequest(m);},handleResponse:function(_2c){var t=this,i,kw,pKwList,pLaList,pPrdList,pTdList;if(_2c[0].version){kw=_2c[1];pKwList=_2c[2].sug;pLaList=_2c[3];pPrdList=_2c[2].prd;pTdList=_2c[2].td;}else{kw=_2c[0];pKwList=_2c[1];pLaList=_2c[2];}
if(!t.bInit){return;}
t.oCache.add(_2c);var _2e=[];for(i=0;i<t.aReqList.length;i++){var _2f=t.aReqList[i];if(_2f.state!="process"){continue;}
if(_2f.prefix.toLowerCase()==_2f.shortPrefix.toLowerCase()){if(_2f.prefix.toLowerCase()==kw.toLowerCase()){_2f.state="done";t.removeScriptTag(_2f.scriptId);t.sendRespService(false,_2f.requester,kw,pKwList,pLaList,_2f.shortPrefix,pPrdList,pTdList);}}else{if(_2f.shortPrefix.toLowerCase()==kw.toLowerCase()){var _30=t.oCache.get(_2f.prefix,_2f.shortPrefix);_2f.state="done";t.removeScriptTag(_2f.scriptId);if(_2f.type=="f"&&_30.type!="k"){t.sendRespService(true,_2f.requester,_2f.prefix,null,null,_2f.shortPrefix,pPrdList,pTdList);}else{_2e.push(_2f);}}}}
for(i=0;i<_2e.length;i++){var _31=_2e[i];t.send(_31.requester,_31.prefix);}}}).inits(function(){}).endType();
vjo.ctype("vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteLayer").needs(["vjo.dsf.Element","vjo.dsf.utils.Object","vjo.dsf.document.Shim","vjo.dsf.EventDispatcher","vjo.dsf.Message","vjo.dsf.ServiceEngine","vjo.dsf.cookie.VjCookieJar","vjo.dsf.window.utils.VjWindowUtils","vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteRequest","vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteEncoder"]).props({_do:function(_1){vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteRequest.handleResponse(_1);}}).protos({cKw:"",lKw:"",cSel:-1,cKwL:[],cTdL:[],bInSugDiv:false,oRequest:vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteRequest,blQryEpt:false,oEncoder:new vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteEncoder(),VE:vjo.dsf.Element,VED:vjo.dsf.EventDispatcher,VS:vjo.dsf.ServiceEngine,constructs:function(_2,_3){var t=this;var _5=t.VED;var vS=t.VS;t.reqId=_3;t.oConfig=_2;vS.registerSvcHdl(t.oRequest.getRespSvc(),vjo.hitch(t,this.handleResp));_5.add(_2.getContainerId(),"mouseover",function(){t.bInSugDiv=true;});_5.add(_2.getContainerId(),"mouseout",function(){t.bInSugDiv=false;});_5.addEventListener(window,"resize",t.onWindowResize,t);var _7=t.VE.get("_nkw_id")?"_nkw_id":"_nkw";_5.addEventListener(_7,"keydown",t.onEntSbmt,t);try{t.VE.promoteToBody(_2.getContainerId());}
catch(e){}
_5.add(_2.getHideLnk(),"click",function(_8){t.setHideSuggestion(true);t.selectSug(null);t.showSugDiv(false);t.setAutoComplete(true);t.showIcon(true);var _9=function(){t.createTrackingImg(t.oConfig.getRoverDomainUrl()+t.oConfig.getTrkHide());};window.setTimeout(_9,500);return false;});vS.registerSvcHdl(_2.getOutSvc(),function(_a){var _b=_a.clientContext;t.setInput(_b.src);switch(_b.type){case"kw_keyup":t.kw_keyup(_b);break;case"kw_blur":t.kw_blur(_b);break;case"kw_keydown":t.kw_keydown(_b);break;case"kw_mouseover":t.kw_mouseover(_b);break;case"show_click":t.show_click(_b);break;}});t.prdDiv=t.VE.get("prdDivWrp");t.prdItms=[];var _c=t.prdDiv.getElementsByTagName("tr");for(var i=0;i<_c.length;i++){var _e={};_e.tr=_c[i];var _f=_c[i].getElementsByTagName("td");_e.imgTd=_f[0];_e.titleTd=_f[1];t.prdItms.push(_e);}
t.tdDivWraper=t.VE.get("tdDivWrp");t.tdDiv=t.VE.get("tdDiv");t.tdItms=[];var _f=t.tdDiv.getElementsByTagName("div");for(var i=0;i<_f.length;i++){t.tdItms.push(_f[i]);}
t.updTrk(_2.getTrkInput());t.setAutoComplete(t.isHideSuggestion(),true);},handleResp:function(_10){var t=this,cfg=t.oConfig,ctx=_10.clientContext;var _12=cfg.getIdList(),id;for(var i=0;i<_12.length;i++){id=_12[i];t.VED.unregister(id,"mouseover");}
var _14=ctx.kwList||[];var _15=ctx.laList||[];var _16=ctx.prdList||[];var _17=ctx.tdList||[];if(t.reqId!=ctx.requestId||ctx.prefix.toLowerCase()!=t.getInputValue().toLowerCase()){return;}
var _18=t.getRecentSearch();if(_18&&_18.length>0){var _19=_18.toLowerCase();var _1a=_19.indexOf(t.cKw.toLowerCase());var _1b=false;var _1c=_19;var _1d=0;while(_1a>=0){if(t.isWordStart(_19,_1a+_1d)){_1b=true;break;}
_1d=_1a+1;_1c=_1c.substr(_1a+1);_1a=_1c.indexOf(t.cKw.toLowerCase());}
if(_1b){var _1e=[];_1e.push(_18);for(var i=0;i<_14.length;i++){if(_14[i].toLowerCase()!=_19){_1e.push(_14[i]);}}
if(_1e.length>cfg.getListSize()){_1e.pop();}
_14=_1e;}}
if(ctx.timeout&&(ctx.prefix==t.cKw)&&_14.length<1){if(!t.blQryEpt){t.showNoSugMessage(true);t.showSugDiv(true,cfg.getWidthMin().px);}else{t.showSugDiv(false);}
t.blQryEpt=true;return;}
t.blQryEpt=false;t.showNoSugMessage(false);t.cSel=-1;t.cKwL=[];var _12=cfg.getIdList();var _1f=_12.length;if(_1f>cfg.getListSize()){_1f=cfg.getListSize();}
if(t.oInput){cfg.updateWidthDef(t.oInput);}
var _20=t.getMaxKwLength(_14,_1f)*cfg.getWidthUnit();if(_20<cfg.getWidthMin().px){_20=cfg.getWidthMin().px;}else{if(_20>cfg.getWidthMax().px){_20=cfg.getWidthMax().px;}}
for(var i=0;i<_1f;i++){var en=_12[i],e=t.VE.get(en);if(e===null){continue;}
e.className="unsel";if(i<_14.length){e.innerHTML=t.genKwHTML(_14[i],t.cKw,cfg.getWidthMax()["char"]);t.VE.toggleHideShow(en,true);var trk=(_14[i]==_18)?cfg.getTrkRS():cfg.getTrkSuggest();t.cKwL[i]={"divId":en,"sugKw":_14[i],"trk":trk,"type":"kw"};}else{t.VE.toggleHideShow(en,false);}}
var _23=_16.length;if(_23>0&&(""+document.location).search(/https:/g)==-1){t.prdDiv.style.display="block";for(var i=0;i<t.prdItms.length;i++){var _24=t.prdItms[i];if(_16[i]){_24.tr.style.display="block";_24.tr.className="unsel";_24.imgTd.innerHTML="<img width='32px' height='32px' src='"+_16[i][2]+"' />";_24.titleTd.innerHTML=t.genPrdHtml(_16[i][1],t.cKw,cfg.getWidthMax()["char"]);t.cKwL.push({"divId":_24.tr.id,"sugKw":t.getInputValue(),"trk":cfg.getTrkProduct(),"type":"prd","pid":_16[i][0]});}else{_24.tr.style.display="none";}}}else{t.prdDiv.style.display="none";}
var _25=_17.length;if(_25>0&&(""+document.location).search(/https:/g)==-1){t.tdDivWraper.style.display="block";for(var i=0;i<t.tdItms.length;i++){var _26=t.tdItms[i];if(_17[i]){_26.style.display="block";_26.innerHTML="<img src='"+_17[i][1]+"' />";_26.className="unsel";t.cKwL.push({"divId":_26.id,"sugKw":t.getInputValue(),"trk":cfg.getTrkBrandedLogo(),"type":"td","url":_17[i][2]});if(_17[i][1]!=t.cTdL[i]){t.cTdL[i]=_17[i][1];var _27=t.oConfig.getRoverDomainUrl()+"/roverimp/0/0/9/?imp="+_GlobalNavHeaderSrcPageId+"&trknvp=kw%3D"+t.getInputValue()+"%26td%3D"+_17[i][0];t.createTrackingImg(_27);}}else{_26.style.display="none";t.cTdL[i]=null;}}}else{t.tdDivWraper.style.display="none";t.cTdL=[];}
t.showSugDiv(true,_20);},getInputValue:function(){var t=this;return t.oInput?t.oInput.value:"";},isHideSuggestion:function(){var vC=vjo.dsf.cookie.VjCookieJar,pbf=vC.readCookie("dp1","pbf"),bit=vC.getBitFlag(pbf,29);return bit==1;},setHideSuggestion:function(_2a){var vC=vjo.dsf.cookie.VjCookieJar,pbf=vC.readCookie("dp1","pbf");vC.writeCookielet("dp1","pbf",vC.setBitFlag(pbf,29,_2a?1:0));},getRecentSearch:function(){var lss=this.oConfig.getLastSearch();if(lss!==null&&lss.length>0){lss=lss.substring(lss.indexOf(".")+1);return lss;}
return"";},getMaxKwLength:function(_2d,_2e){if(!_2d){return 0;}
var max=0;var _30=_2d.length;if(_30>_2e){_30=_2e;}
for(var i=0;i<_30;i++){var len=_2d[i].length;if(len>max){max=len;}}
return max;},isWordStart:function(pKw,_34){if(_34<=0||_34>pKw.length-1){return true;}
var _35=new RegExp("[\\s \\.,]");return pKw.substr(_34-1,1).search(_35)>=0;},genKwHTML:function(pKw,_37,_38){var _39=_37.length;var out=pKw,t=this;var _3b=t.oEncoder,part;var _3c=-1;for(var i=0;i<pKw.length;i++){part=pKw.substr(i,_39);if(part.length!=_39){break;}
if(part.toLowerCase()==_37.toLowerCase()&&t.isWordStart(pKw,i)){_3c=i;break;}}
var _3e=pKw.substring(0,_3c);var _3f=pKw.substr(_3c+_39);var _40;if(_3c>=0){if(pKw.length>_38){if(_3e.length>_38){out=_3b.encodeHTML(out.substr(0,_38));out+="...";}else{if((_3e.length+part.length)>_38){_40=_38-_3e.length;part="<span class='hl'>"+_3b.encodeHTML(part.substr(0,_40))+"...</span>";out=_3b.encodeHTML(_3e)+part;}else{_40=_38-_3e.length-part.length;out=_3b.encodeHTML(_3e)+"<span class='hl'>"+_3b.encodeHTML(part)+"</span>"+_3b.encodeHTML(_3f.substr(0,_40))+"...";}}}else{out=_3b.encodeHTML(_3e)+"<span class='hl'>"+_3b.encodeHTML(part)+"</span>"+_3b.encodeHTML(_3f);}}else{if(pKw.length>_38){out=_3b.encodeHTML(out.substr(0,_38));out+="...";}}
return out;},genPrdHtml:function(_41,_42,_43){var kws=_42.split(/\s/);var out=_41.length>75?_41.substr(0,75)+"...":_41;for(var i=0;i<kws.length;i++){if(kws[i]!=""){var reg=new RegExp(kws[i],"i");out=out.replace(reg,"<-"+_41.substr(_41.search(reg),kws[i].length)+"->");}}
out=out.replace(/<-/g,"<span class='hl'>");out=out.replace(/->/g,"</span>");return out;},startKeyTimer:function(_48){var t=this;t.stopKeyTimer();var _4a=function(){var _4b=t.getInputValue();if(_48!=_4b||_4b.length<1){return;}
t.oRequest.send(t.reqId,_48);};t.oKeyTimer=window.setTimeout(_4a,t.oConfig.getDelayTime());},stopKeyTimer:function(){var t=this;if(t.oKeyTimer){window.clearTimeout(t.oKeyTimer);t.oKeyTimer=null;}},getKwSelect:function(){var t=this;if(t.cSel<0){return t.cKw;}
return t.cKwL[t.cSel].sugKw;},selectSug:function(_4e,_4f,_50){var t=this,kw=t.cKw;if(t.cSel>=0){t.unselectSug(t.cKwL[t.cSel].divId);}
if(_4e!==null){var e=t.VE.get(_4e);for(var i=0;i<t.cKwL.length;i++){var _54=t.cKwL[i];if(_54.divId==_4e){t.cSel=i;kw=_54.sugKw;break;}}
if(e){e.className="sel";}}else{t.cSel=-1;}
if(!_50){t.updateInput(kw);}
if(!_4f){t.focusInput();}},unselectSug:function(_55){var t=this,e=t.VE.get(_55);if(e){e.className="unsel";}},createTrackingImg:function(_57){var _58=new Date(),r=_58.getTime();var _59=_57;if(_59.indexOf("?")>0){_59+="&"+r;}else{_59+="?"+r;}
var img=new Image();document.getElementsByTagName("body")[0].appendChild(img);img.setAttribute("src",_59);img.setAttribute("width","1");img.setAttribute("height","1");img.setAttribute("border","0");},sendInSvc:function(_5b){var m=new vjo.dsf.Message(this.oConfig.getInSvc());m.clientContext=_5b;this.VS.handleRequest(m);},isCtrlKey:function(_5d){var _5e=[38,39,40,27];for(var i=0;i<_5e.length;i++){if(_5e[i]==_5d){return true;}}
return false;},isIgnorKey:function(_60){var _61=[16,17,18];for(var i=0;i<_61.length;i++){if(_60==_61[i]){return true;}}
return false;},isSugShown:function(){var t=this;var _64=t.VE.get(t.oConfig.getContainerId());disp=_64.currentStyle?_64.currentStyle.display:window.getComputedStyle(_64,null).getPropertyValue("display");return(disp!="none");},isNoSugMsgShow:function(){var t=this;var _66=t.VE.get(t.oConfig.getNoSugDivId());disp=_66.currentStyle?_66.currentStyle.display:window.getComputedStyle(_66,null).getPropertyValue("display");return(disp!="none");},showNoSugMessage:function(_67){var t=this;t.VE.toggleHideShow(t.oConfig.getSugDivId(),!_67);t.VE.toggleHideShow("prdDivWrp",!_67);t.VE.toggleHideShow("tdDivWrp",!_67);t.VE.toggleHideShow(t.oConfig.getNoSugDivId(),_67);if(_67){var _69=function(){if(t.isNoSugMsgShow()){t.showSugDiv(false);}};window.setTimeout(_69,t.oConfig.getNoSugShowTime());}},showSugDiv:function(_6a,_6b){var t=this;if(t.isHideSuggestion()&&_6a){t.showIcon(true);return;}
var vS=vjo.dsf.document.Shim;var _6e=t.oConfig.getContainerId();var _6f=t.VE.get(_6e);if(_6a){t.posLayer(_6b);t.VE.toggleHideShow(_6e,true);if(t.oIframeShim){vS.remove(_6f,t.oIframeShim);}
t.oIframeShim=vS.add(_6f);var _70=function(){t.regOverEvent(true);};window.setTimeout(_70,100);}else{t.VE.toggleHideShow(_6e,false);if(t.oIframeShim){vS.remove(_6f,t.oIframeShim);t.oIframeShim=null;}
t.regOverEvent(false);}},onEntSbmt:function(e){var t=this,idx=t.cSel;if(e.keyCode==13&&idx>-1){var _73=t.cKwL[idx].type,trk=t.cKwL[idx].trk,pid=t.cKwL[idx].pid,url=t.cKwL[idx].url;if(url){var _74=trk?(url.indexOf("?")>=0?"&":"?")+"_trksid="+trk:"";document.location.href=url+_74;return false;}else{if(pid){var _74=trk?"&_trksid="+trk:"";t.VED.stopEvent(e);document.location.href=t.oConfig.getPrdURL()+"/?_pid="+pid+_74;return false;}}}},regOverEvent:function(_75){var t=this;var _77=t.oConfig.getIdList(),id;for(var i=0;i<_77.length;i++){id=_77[i];t.VED.unregister(id,"mouseover");t.VED.unregister(id,"click");if(_75){t.VED.add(id,"mouseover",function(_79){t.bInSugDiv=true;t.selectSug(_79.src.id,false,false);});t.VED.add(id,"click",function(_7a){var _7b=_7a.src.attributes,type,trk,pid,url;for(var j=0;j<t.cKwL.length;j++){if(t.cKwL[j].divId==_7a.src.id){type=t.cKwL[j].type;trk=t.cKwL[j].trk;pid=t.cKwL[j].pid;url=t.cKwL[j].url;break;}}
if(type=="prd"){if(pid){var _7d=trk?"&_trksid="+trk:"";document.location.href=t.oConfig.getPrdURL()+"/?_pid="+pid+_7d;}}else{if(type=="td"){var _7d=trk?(url.indexOf("?")>=0?"&":"?")+"_trksid="+trk:"";document.location.href=url+_7d;}else{t.selectSug(_7a.src.id);t.submitForm();t.showSugDiv(false);}}});}}},posLayer:function(_7e){var t=this,gap;var _80=t.getAbsPos(t.oInput);if(_80===null){return false;}
var e=t.VE.get(t.oConfig.getContainerId());if(e===null){return false;}
gap=vjo.dsf.client.Browser.bIE?2:0;e.style.left=_80.left-gap+"px";e.style.top=_80.top+_80.height-gap+"px";if((typeof(_7e)!="undefined")&&(_7e!==null)){e.style.width=parseInt(_7e,10)+"px";}
return true;},getAbsPos:function(_82){var vW=vjo.dsf.window.utils.VjWindowUtils,t=this;if(_82===null){return null;}
return{"left":parseInt(vW.offsetLeft(_82),10),"top":parseInt(vW.offsetTop(_82),10),"height":parseInt(_82.offsetHeight,10),"width":parseInt(_82.offsetWidth,10)};},updateInput:function(pKw){var t=this;if(t.isSugShown()){t.lKw=pKw;t.sendInSvc({"type":"kw_updvalue","value":pKw});}},updTrk:function(_86){this.sendInSvc({"type":"search_updtrk","lnkStr":_86});},submitForm:function(){var t=this;if(t.cSel>=0){var trk=t.cKwL[t.cSel].trk;t.updTrk(trk);}
this.sendInSvc({"type":"search_submit"});},showIcon:function(_89){this.sendInSvc({"type":"sug_icon_show","bShow":_89});},focusInput:function(){this.sendInSvc({"type":"kw_focus"});},setAutoComplete:function(bOn,_8b){this.sendInSvc({"type":"kw_autocomplete","bOn":bOn,"bSkipFocus":_8b});},setInput:function(_8c){if(!_8c){return;}
var t=this;if(!t.oInput){t.oInput=_8c;}
t.oConfig.updateWidthDef(_8c);},show_click:function(_8e){var t=this;t.showIcon(false);t.setHideSuggestion(false);t.blQryEpt=false;t.oRequest.send(t.reqId,t.getInputValue());var _90=function(){t.createTrackingImg(t.oConfig.getRoverDomainUrl()+t.oConfig.getTrkShow());};window.setTimeout(_90,500);t.setAutoComplete(false);},kw_blur:function(_91){var t=this;if(t.isSugShown()&&!t.isNoSugMsgShow()){if(!t.bInSugDiv){var _93=t.cSel>=0?t.cKwL[t.cSel].divId:null;t.showSugDiv(false);t.unselectSug(_93);}else{t.focusInput();}}},kw_mouseover:function(_94){var t=this;if(t.isSugShown()&&!t.isNoSugMsgShow()){t.selectSug(null);}},kw_keydown:function(_96){var t=this,kc=_96.keyCode;if((kc==13||kc==9)&&t.isSugShown()&&!t.isNoSugMsgShow()){if(t.cSel>=0){t.updTrk(t.cKwL[t.cSel].trk);}
t.showSugDiv(false);}},kw_keyup:function(_98){var t=this,kc=_98.keyCode,cv=_98.value;if(t.isIgnorKey(kc)){return;}
if(t.isSugShown()&&!t.isNoSugMsgShow()){if(t.isCtrlKey(kc)){var e,_9b,_9c;switch(kc){case 38:_9b=t.cSel-1;if(_9b<-1){_9b=t.cKwL.length-1;}
_9c=_9b>=0?t.cKwL[_9b].divId:null;t.selectSug(_9c);t.cSel=_9b;break;case 40:_9b=t.cSel+1;if(_9b>=t.cKwL.length){_9b=-1;}
_9c=_9b>=0?t.cKwL[_9b].divId:null;t.selectSug(_9c);break;case 39:if(cv.length!==0){t.cKw=cv;t.startKeyTimer(cv);t.lKw=cv;}
break;case 27:t.selectSug(null);t.showSugDiv(false);break;}}else{if(cv.length!==0){if(t.lKw!=cv){t.cKw=cv;t.startKeyTimer(cv);t.lKw=cv;}}else{t.showSugDiv(false);t.showIcon(false);t.cKw=cv;t.lKw=cv;t.blQryEpt=false;}}}else{if(cv.length!==0){if(t.lKw!=cv){t.cKw=cv;t.startKeyTimer(cv);t.lKw=cv;}}else{t.cKw=cv;if(t.isHideSuggestion()){t.showIcon(false);}
t.lKw=cv;t.blQryEpt=false;}}},onWindowResize:function(_9d){if(this.isSugShown()){this.showSugDiv(true);}}}).endType();
vjo.ctype("vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteLayerInit").needs(["vjo.dsf.ServiceEngine","vjo.dsf.EventDispatcher","vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteConfig","vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteLayer","vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteRequest"]).protos({oModel:null,constructs:function(_1){this.oModel=_1;var t=this;var _3=function(){var _4=new vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteConfig(t.oModel);var _5={baseURL:_4.getBaseURL(),dirDepth:_4.getDirDepth(),rootDir:_4.getRootDir(),algorithm:_4.getAlgorithm(),version:_4.getVersion(),siteId:_4.getSiteId()};vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteRequest.init(_5);new vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteLayer(_4,t.oModel.requestId);};vjo.dsf.EventDispatcher.addEventListener(window,"load",_3,window);vjo.ctype("vjo.darwin.domain.finding.autofill.AutoFill").props({_do:function(_6){vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteLayer._do(_6);}});}}).props({init:function(_7){new vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteLayerInit(_7);}}).endType();
vjo.ctype("vjo.darwin.core.utils.WindowDimension").props({D:undefined,getBrowserDimension:function(){var s=self;var d=document;var de=d.documentElement;if(s.innerHeight){return[s.innerWidth,s.innerHeight];}else{if(de&&de.clientHeight){return[de.clientWidth,de.clientHeight];}}
return[d.body.clientWidth,d.body.clientHeight];},getScrollXY:function(){var _4=0,scrOfY=0,scrOfH=0,scrOfW=0,d=document.documentElement||document.body;if(typeof(window.pageYOffset)=="number"){return[window.pageXOffset,window.pageYOffset,document.height,document.width];}else{if(d){return[d.scrollLeft,d.scrollTop,d.scrollHeight,d.scrollWidth];}}
return[_4,scrOfY,scrOfH,scrOfW];},getOffsetPosition:function(_5){var e=_5,l=0,t=0,z=0,tz,h=e.offsetHeight,w=e.offsetWidth;while(e){l+=e.offsetLeft;t+=e.offsetTop;if(e.style){tz=parseInt(e.style.zIndex,10);z=!isNaN(tz)&&tz>z?tz:z;}
e=e.offsetParent;}
return[l,t,z,h,w];}}).endType();
function get_Buy_menu(){return{"items":[{"value":"<a href=\"http://pages.motors.ebay.com/buy/buying-services-resources/index.html\">Buying Services</a>"},{"value":"<a href=\"http://pages.motors.ebay.com/buy/howto/index.html\">How to Buy a Vehicle</a>"},{"value":"<a href=\"http://pages.motors.ebay.com/buy/purchase-protection/index.html\">Vehicle Purchase Protection</a>"}]};}
function get_Sell_menu(){return{"items":[{"value":"<a href=\"http://pages.motors.ebay.com/sell/howto/index.html\">How to Sell a Vehicle</a>"},{"value":"<a href=\"http://hub.motors.ebay.com/sell\">Sell Your Item</a>"},{"value":"<a href=\"http://www.dealercenter.motors.ebay.com/\">Dealer Center</a>"}]};}
function get_MyEbay_menu(){return{"items":[{"value":"<a href=\"http://my.ebay.com/ebaymotors/ws/eBayISAPI.dll?MyEbay&amp;gbh=1&amp;CurrentPage=MyeBaySummary&amp;ssPageName=STRK:ME:LNLK\">Summary</a>"},{"value":"<a href=\"http://my.ebay.com/ebaymotors/ws/eBayISAPI.dll?MyEbay&amp;gbh=1&amp;CurrentPage=MyeBayWatching\">Watching</a>"},{"value":"<a href=\"http://my.ebay.com/ebaymotors/ws/eBayISAPI.dll?MyEbay&amp;gbh=1&amp;CurrentPage=MyeBayBidding\">Bidding</a>"},{"value":"<a href=\"http://my.ebay.com/ebaymotors/ws/eBayISAPI.dll?MyEbay&amp;gbh=1&amp;CurrentPage=MyeBayWon\">Won</a>"},{"value":"<a href=\"http://my.ebay.com/ebaymotors/ws/eBayISAPI.dll?MyEbay&amp;gbh=1&amp;CurrentPage=MyeBayAllSelling&amp;ssPageName=STRK:ME:LNLK\">Selling</a>"},{"value":"<a href=\"http://my.ebay.com/ebaymotors/ws/eBayISAPI.dll?MyEbay&amp;gbh=1&amp;CurrentPage=MyeBayAllFavorites\">Saved Searches</a>"},{"value":"<a href=\"http://my.ebay.com/ebaymotors/ws/eBayISAPI.dll?MyEbay&amp;gbh=1&amp;ssPageName=STRK:ME:LNLK&amp;CurrentPage=MyeBayMyMessages\">My Messages</a>"}]};}
function get_Help_menu(){return{"items":[{"value":"<a href=\"http://pages.ebay.com/ebaymotors/help/index.html\">Help Topics</a>"},{"value":"<a href=\"http://pages.motors.ebay.com/buy/security/index.html\">Security Center</a>"},{"value":"<a href=\"http://contact.ebay.com/ws/eBayISAPI.dll?ContactUsNextGen\">Contact Us</a>"}]};};
function get_CT_menu(){return{"items":[{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZAcura3c2bde2QQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">Acura</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZAudi1f4fd9QQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">Audi</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZBMW1016cQQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">BMW</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZBuick3d8d53eQQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">Buick</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZCadillacebca2da5QQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">Cadillac</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZChevroletb00f1088QQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">Chevrolet</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZChrysler76de4c52QQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">Chrysler</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZDodge3f237b7QQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">Dodge</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZFord2180dbQQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">Ford</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZGMC1141dQQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">GMC</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZHonda42abae4QQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">Honda</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZHummer8180dcfaQQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">Hummer</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZInfinitie2cce38QQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">Infiniti</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZJeep232b46QQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">Jeep</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZLandRover3bbee9d1QQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">Land Rover</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZLexus45eb4ddQQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">Lexus</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZLincoln6dc338dfQQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">Lincoln</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZMazda46b0043QQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">Mazda</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZMitsubishiecdaf8b3QQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">Mitsubishi</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZMercedesBenz455f39e6QQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">Mercedes-Benz</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQQ5feditaspZ1QQ_fcsfcZ0QQ_fsadZ1QQ_madZ1QQ_sacatZ6001QQ_dmptZUS_Cars_Trucks?Make247a0e=Mercury9c0e86f3&amp;_fcsfc=0\">Mercury</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZNissan8b17a6e8QQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">Nissan</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZPontiac4ba0dc06QQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">Pontiac</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZPorsche4bd8b000QQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">Porsche</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQQ5feditaspZ1QQ_fcsfcZ0QQ_fsadZ1QQ_madZ1QQ_sacatZ6001QQ_dmptZUS_Cars_Trucks?Make247a0e=Smart4c4a5a9&amp;_fcsfc=0\">Smart</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZToyota95abf51eQQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">Toyota</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQMake247a0eZVolkswagen1489b7cbQQ_sacatZ6001QQ_dmptZUS_Cars_Trucks\">Volkswagen</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Cars-Trucks__W0QQ_sacatZ6001\"><i>See all Cars &amp; Trucks...</i></a>"},{"value":"<b>Themes</b>"},{"value":"<a href=\"http://hub.motors.ebay.com/alternative_fuel\">Alternative Fuel Vehicle</a>"},{"value":"<a href=\"http://pages.ebay.com/ebaymotors/buy/cpo\">Certified Pre-Owned</a>"},{"value":"<a href=\"http://hub.motors.ebay.com/collector_car\">Collector Car</a>"},{"value":"<a href=\"http://hub.motors.ebay.com/convertible\">Convertible</a>"},{"value":"<a href=\"http://hub.motors.ebay.com/corvette\">Corvette</a>"},{"value":"<a href=\"http://hub.motors.ebay.com/coupe\">Coupe</a>"},{"value":"<a href=\"http://hub.motors.ebay.com/minivan\">Minivan</a>"},{"value":"<a href=\"http://hub.motors.ebay.com/muscle_car\">Muscle Car</a>"},{"value":"<a href=\"http://hub.motors.ebay.com/mustang\">Mustang</a>"},{"value":"<a href=\"http://hub.motors.ebay.com/sedan\">Sedan</a>"},{"value":"<a href=\"http://hub.motors.ebay.com/suv\">SUV</a>"},{"value":"<a href=\"http://hub.motors.ebay.com/truck\">Truck</a>"},{"value":"<a href=\"http://hub.motors.ebay.com/wagon\">Wagon</a>"}]};}
function get_PA_menu(){return{"items":[{"value":"<a href=\"http://motors.shop.ebay.com/items/Apparel-Merchandise__W0QQ_sacatZ6747\">Apparel, Gear &amp; Merchandise</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/ATV-Parts__W0QQ_sacatZ43962\">ATV Parts</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Aviation-Parts__W0QQ_sacatZ26435\">Aviation Parts &amp; Gear</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Boat-Parts__W0QQ_sacatZ26443\">Boats Parts &amp; Gear</a>"},{"value":"<a href=\"http://pages.motors.ebay.com/Car-Truck-Parts/6030/\">Car &amp; Truck Parts</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Car-Audio-Video__W0QQ_sacatZ38635\">Car Audio &amp; Electronics</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Manuals-Literature__W0QQ_sacatZ6029\">Manuals &amp; Literature</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Motorcycle-Parts__W0QQ_sacatZ10063\">Motorcycle Parts</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Other-Vehicle-Parts__W0QQ_sacatZ34285\">Other Vehicle Parts</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/Racing-Parts-/107057/i.html\">Racing Parts</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Automotive-Tools__W0QQ_sacatZ34998\">Tools</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Vintage-Car-Truck-Parts__W0QQ_sacatZ10073\">Vintage Car &amp; Truck Parts</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Parts-Accessories__W0QQ_sacatZ6028\"><i>See all Parts &amp; Accessories...</i></a>"}]};}
function get_MC_menu(){return{"items":[{"value":"<a href=\"http://motors.shop.ebay.com/items/Motorcycles__W0QQMake247a0eZBMW1016cQQ_sacatZ6024QQ_dmptZUS_motorcycles\">BMW</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Motorcycles__W0QQMake247a0eZDucati7aa8c384QQ_sacatZ6024QQ_dmptZUS_motorcycles\">Ducati</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Motorcycles__W0QQMake247a0eZHarleyDavidson76180c4QQ_sacatZ6024QQ_dmptZUS_motorcycles\">Harley-Davidson</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Motorcycles__W0QQMake247a0eZHonda42abae4QQ_sacatZ6024QQ_dmptZUS_motorcycles\">Honda</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Motorcycles__W0QQMake247a0eZKawasaki4ad1f2ecQQ_sacatZ6024QQ_dmptZUS_motorcycles\">Kawasaki</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Motorcycles__W0QQMake247a0eZKTM12404QQ_sacatZ6024QQ_dmptZUS_motorcycles\">KTM</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Motorcycles__W0QQMake247a0eZSuzuki944c335bQQ_sacatZ6024QQ_dmptZUS_motorcycles\">Suzuki</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Motorcycles__W0QQMake247a0eZTriumph2412629bQQ_sacatZ6024QQ_dmptZUS_motorcycles\">Triumph</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Motorcycles__W0QQMake247a0eZYamaha9d693cb5QQ_sacatZ6024QQ_dmptZUS_motorcycles\">Yamaha</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Motorcycles__W0QQ_sacatZ6024\"><i>See all Motorcycles...</i></a>"},{"value":"<b>Themes</b>"},{"value":"<a href=\"http://hub.motors.ebay.com/harley_davidson\">Harley-Davidson</a>"}]};}
function get_PS_menu(){return{"items":[{"value":"<a href=\"http://motors.shop.ebay.com/items/ATVs__W0QQ_sacatZ6723\">ATVs</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Dune-Buggies-Sand-Rails__W0QQ_sacatZ133220\">Dune Buggies &amp; Sand Rails</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Go-Karts-High-performance__W0QQ_sacatZ46105\">Go Karts</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Personal-Watercraft__W0QQ_sacatZ31273\">Personal Watercraft</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Powersport-Vehicles-Under-50cc__W0QQ_sacatZ90983\">Powersports Under 50cc</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Scooters-Mopeds__W0QQ_sacatZ6720\">Scooters &amp; Mopeds</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Snowmobiles__W0QQ_sacatZ42595\">Snowmobiles</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Other-Powersports__W0QQ_sacatZ66467\">Everything Else</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Powersports__W0QQ_sacatZ66466\"><i>See all Powersports...</i></a>"}]};}
function get_BT_menu(){return{"items":[{"value":"<a href=\"http://motors.shop.ebay.com/items/Fishing-Boats__W0QQ_sacatZ63723\">Fishing Boats</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Powerboats-Motorboats__W0QQ_sacatZ31269\">Powerboats &amp; Motorboats</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Sailboats__W0QQ_sacatZ63728\">Sailboats</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Other-Boats__W0QQ_sacatZ26434\">Other Boats</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Boats__W0QQ_sacatZ26429\"><i>See all Boats...</i></a>"}]};}
function get_OV_menu(){return{"items":[{"value":"<a href=\"http://motors.shop.ebay.com/items/Aircraft__W0QQ_sacatZ63676\">Aircraft</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Buses__W0QQ_sacatZ6728\">Buses</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Commercial-Trucks__W0QQ_sacatZ63732\">Commercial Trucks</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Military-Vehicles__W0QQ_sacatZ80765\">Military Vehicles</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Race-Cars-Not-Street-Legal__W0QQ_sacatZ98060\">Race Cars</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/RVs-and-Campers__W0QQ_sacatZ50054\">RVs &amp; Campers</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Trailers__W0QQ_sacatZ66468\">Trailers</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Other__W0QQ_sacatZ6737\">Everything Else</a>"},{"value":"<a href=\"http://motors.shop.ebay.com/items/Other-Vehicles-Trailers__W0QQ_sacatZ6038\"><i>See all Other Vehicles...</i></a>"}]};};
vjo.ctype("vjo.darwin.tracking.impression.Manager").needs(["vjo.dsf.cookie.VjCookieJar","vjo.dsf.EventDispatcher"]).protos({constructs:function(_1){if(!_1){return;}
var R=vjo.Registry,id="_pim",t=R.get(id);if(!t){t=this;t.vj$.EventDispatcher.add("body","mousedown",t.onMouseDown,t);R.put(id,t);}
t.sID=_1;},onMouseDown:function(){this.vj$.VjCookieJar.writeCookielet("ebay","psi",this.sID);}}).endType();
vjo.needs("vjo.dsf.typeextensions.string.Comparison");vjo.ctype("vjo.dsf.typeextensions.string.Trim").endType();String.prototype.trim=function(){var s=this;while(s.substring(0,1).isAny(" ","\n","\r")){s=s.substring(1,s.length);}
while(s.substring(s.length-1,s.length).isAny(" ","\n","\r")){s=s.substring(0,s.length-1);}
return s;};
vjo.ctype("vjo.darwin.core.ebayheader.searchbox.SearchBox").needs(["vjo.dsf.client.Browser","vjo.dsf.typeextensions.string.Trim","vjo.dsf.Element"]).props({Focus:function(_1){var _2=vjo.dsf.Element.get(_1),B=vjo.dsf.client.Browser.bIE;if(typeof(_2)!="undefined"&&_2){if(B.bIE&&B.iVer==6){setTimeout(function(){_2.focus();},0);}else{_2.focus();}}},IeOptionDisabler:function(_3){if(vjo.dsf.client.Browser.bIE){var sl=vjo.dsf.Element.get(_3),idx;if(sl){sl.onchange=function(){idx=this.selectedIndex=(this.options[this.selectedIndex].disabled)?idx:this.selectedIndex;};sl.onfocus=function(){idx=this.selectedIndex;};this.greydisabledoption(sl);}}},greydisabledoption:function(e){var i,op;for(i=0;i<e.options.length;i++){op=e.options[i];if(op.disabled){op.style.color="graytext";}}}}).endType();
vjo.ctype("vjo.darwin.core.ebayheader.searchbox.MiniSearchBox").needs("vjo.dsf.EventDispatcher").protos({table:null,input:null,submit:null,defaultText:null,showDftText:false,constructs:function(_1){this.table=document.getElementById(_1.tableID);var D=vjo.dsf.EventDispatcher,is=this.table.getElementsByTagName("input");this.input=is[0];this.submit=is[1];this.defaultText=_1.defaultText;this.dispDftText();this.showDftText=true;D.addEventListener(this.input,"click",this.clearDftText,this);D.addEventListener(this.submit,"click",this.onSubmit,this);},clearDftText:function(){if(this.showDftText){this.input.value="";this.input.className="";this.showDftText=false;}},dispDftText:function(){this.input.value=this.defaultText;},onSubmit:function(){if(this.input.value==this.defaultText){this.input.value="";}
return true;}}).endType();
vjo.ctype("vjo.darwin.core.greetings.VjGreetingsServer").needs(["vjo.dsf.utils.URL","vjo.darwin.core.greetings.Sandbox"]).props({handleClick:function(_1,_2){var _3=_2.srcElement||_2.target;if(_3){_3.href=vjo.dsf.utils.URL.addArg(_1,"ru",encodeURIComponent(document.location.href));}}}).endType();
vjo.ctype("vjo.darwin.tracking.rover.Rover").needs("vjo.dsf.cookie.VjCookieJar").props({roverTrack:function(){var _1=new Date().getTime();var _2=vjo.darwin.tracking.rover.Rover.getClientOffset(_1);var _3=vjo.dsf.cookie.VjCookieJar.readCookieObj("npii","tpim");if(_3==null||_3.value==""){return;}
var _4=parseInt(_3.maxage,16)*1000;if(_4>0){var _5=_4-_1+_2;var _6=15552000000;if((_5>_6||_5<0)&&typeof(RoverSyncDropped)=="undefined"&&typeof(RoverNsCapable)=="undefined"){vjo.darwin.tracking.rover.Rover.dropRoverSyncImage();}}},dropRoverSyncImage:function(){if(typeof(RoverDomainBaseUrl)!=="undefined"&&RoverDomainBaseUrl.length>0){var im=document.createElement("img");im.width="1";im.height="1";im.src=RoverDomainBaseUrl+"/roversync/?rtpim=1&mpt="+new Date().getTime();document.body.appendChild(im);}},getClientOffset:function(_8){var _9;var _a=vjo.dsf.cookie.VjCookieJar.readCookie("ebay","cos");if(_a!==null&&_a.length>0){_9=parseInt(_a,16)*1000;}else{if(typeof(svrGMT)!=="undefined"){_9=_8-svrGMT;var _b=Math.round(_9/1000);if(!isNaN(_b)){vjo.dsf.cookie.VjCookieJar.writeCookielet("ebay","cos",_b.toString(16));}}}
if(isNaN(_9)){_9=1800000;}
return _9;}}).endType();
vjo.ctype("vjo.dsf.typeextensions.string.Decode").endType();String.prototype.decodeBase64=function(){var rv=this,len=rv.length,ret="",i=0;if(len===0){return ret;}
var _2,_3,_4="";var _5,_6,_7,_8="";var _9="ABCDEFGHIJKLMNOPQRSTUVWXYZ"+"abcdefghijklmnopqrstuvwxyz"+"0123456789+/=*";var _a=new RegExp("[^A-Za-z0-9+/=*]");if(_a.exec(rv)){return;}
do{_5=_9.indexOf(rv.charAt(i++));_6=_9.indexOf(rv.charAt(i++));_7=_9.indexOf(rv.charAt(i++));_8=_9.indexOf(rv.charAt(i++));_2=(_5<<2)|(_6>>4);_3=((_6&15)<<4)|(_7>>2);_4=((_7&3)<<6)|_8;ret+=String.fromCharCode(_2);if(!(_7>=64)){ret+=String.fromCharCode(_3);}
if(!(_8>=64)){ret+=String.fromCharCode(_4);}
_2=_3=_4=_5=_6=_7=_8="";}while(i<len);return ret;};String.prototype.decodeUTF8=function(){var s=this,len=s.length;var rs="";var i=0;var c=0,c1=0,c2=0;while(i<len){c=s.charCodeAt(i);if(c<128){rs+=String.fromCharCode(c);i++;}else{if((c>191)&&(c<224)){c2=s.charCodeAt(i+1);rs+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;}else{c2=s.charCodeAt(i+1);c3=s.charCodeAt(i+2);rs+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}}}
return rs;};(function () {
var _r = vjo.Registry;
_r.put('FooterTrackingCompSpecGenerator_0',new vjo.darwin.tracking.enabler.TrackingModuleEnabler("_trksid", "_trkparms", "m40;", ";")); })();function FooterTrk(){ return {handle:function (event){ (function(){
var _d=vjo.dsf.EventDispatcher;
var _r=vjo.Registry;
_d.add('glbfooter','click',function(event) { this.handle(event); },_r._FooterTrackingCompSpecGenerator_0);})();  }};};vjo.dsf.EventDispatcher.add('body','load', new FooterTrk());(function () {
var _r = vjo.Registry;
function $o0(p0,p1,p10,p13){return new vjo.darwin.core.dynamicmenu.DynamicMenu(p0,p1,"dynMenuCtr",75,250,900,800,1,1,1,p10,-1,0,p13,"items","","hovered","","","");};_r.put('BuyMenu',$o0("Buy","Buy-menu",5,"get_Buy_menu")); _r.put('SellMenu',$o0("Sell","Sell-menu",0,"get_Sell_menu")); _r.put('MyEbayMenu',$o0("MyEbay","MyEbay-menu",0,"get_MyEbay_menu")); _r.put('HelpMenu',$o0("Help","Help-menu",0,"get_Help_menu")); })();function NavMenuBind(){ return {handle:function (event){ (function(){
var _d=vjo.dsf.EventDispatcher;
var _r=vjo.Registry;
_r.put('MotorsPrimaryNavResourceSpec_1', new vjo.darwin.core.dynamicmenu.Hide("BuyMenu")); _r.put('MotorsPrimaryNavResourceSpec_2', new vjo.darwin.core.dynamicmenu.Stay("BuyMenu")); _r.put('MotorsPrimaryNavResourceSpec_3', new vjo.darwin.core.dynamicmenu.Show("BuyMenu")); _r.put('MotorsPrimaryNavResourceSpec_4', new vjo.darwin.core.dynamicmenu.Hide("BuyMenu")); _r.put('MotorsPrimaryNavResourceSpec_6', new vjo.darwin.core.dynamicmenu.Hide("SellMenu")); _r.put('MotorsPrimaryNavResourceSpec_7', new vjo.darwin.core.dynamicmenu.Stay("SellMenu")); _r.put('MotorsPrimaryNavResourceSpec_8', new vjo.darwin.core.dynamicmenu.Show("SellMenu")); _r.put('MotorsPrimaryNavResourceSpec_9', new vjo.darwin.core.dynamicmenu.Hide("SellMenu")); _r.put('MotorsPrimaryNavResourceSpec_11', new vjo.darwin.core.dynamicmenu.Hide("MyEbayMenu")); _r.put('MotorsPrimaryNavResourceSpec_12', new vjo.darwin.core.dynamicmenu.Stay("MyEbayMenu")); _r.put('MotorsPrimaryNavResourceSpec_13', new vjo.darwin.core.dynamicmenu.Show("MyEbayMenu")); _r.put('MotorsPrimaryNavResourceSpec_14', new vjo.darwin.core.dynamicmenu.Hide("MyEbayMenu")); _r.put('MotorsPrimaryNavResourceSpec_16', new vjo.darwin.core.dynamicmenu.Hide("HelpMenu")); _r.put('MotorsPrimaryNavResourceSpec_17', new vjo.darwin.core.dynamicmenu.Stay("HelpMenu")); _r.put('MotorsPrimaryNavResourceSpec_18', new vjo.darwin.core.dynamicmenu.Show("HelpMenu")); _r.put('MotorsPrimaryNavResourceSpec_19', new vjo.darwin.core.dynamicmenu.Hide("HelpMenu")); _d.add('Buy-menu','mouseout',_r.get('MotorsPrimaryNavResourceSpec_1'));_d.add('Buy-menu','mouseover',_r.get('MotorsPrimaryNavResourceSpec_2'));_d.add('Buy','mouseover',_r.get('MotorsPrimaryNavResourceSpec_3'));_d.add('Buy','mouseout',_r.get('MotorsPrimaryNavResourceSpec_4'));_d.add('Sell-menu','mouseout',_r.get('MotorsPrimaryNavResourceSpec_6'));_d.add('Sell-menu','mouseover',_r.get('MotorsPrimaryNavResourceSpec_7'));_d.add('Sell','mouseover',_r.get('MotorsPrimaryNavResourceSpec_8'));_d.add('Sell','mouseout',_r.get('MotorsPrimaryNavResourceSpec_9'));_d.add('MyEbay-menu','mouseout',_r.get('MotorsPrimaryNavResourceSpec_11'));_d.add('MyEbay-menu','mouseover',_r.get('MotorsPrimaryNavResourceSpec_12'));
_d.add('MyEbay','mouseover',_r.get('MotorsPrimaryNavResourceSpec_13'));_d.add('MyEbay','mouseout',_r.get('MotorsPrimaryNavResourceSpec_14'));_d.add('Help-menu','mouseout',_r.get('MotorsPrimaryNavResourceSpec_16'));_d.add('Help-menu','mouseover',_r.get('MotorsPrimaryNavResourceSpec_17'));_d.add('Help','mouseover',_r.get('MotorsPrimaryNavResourceSpec_18'));_d.add('Help','mouseout',_r.get('MotorsPrimaryNavResourceSpec_19'));})();  }};};vjo.dsf.EventDispatcher.add('body','load', new NavMenuBind());(function () {
var _r = vjo.Registry;
function $o0(p0,p1,p7,p8,p9,p13){return new vjo.darwin.core.dynamicmenu.DynamicMenu(p0,p1,"dynMenuCtr",75,250,900,800,p7,p8,p9,0,-1,0,p13,"items","","hovered","","","");};_r.put('CTMenu',$o0("CT","CT-menu",3,3,3,"get_CT_menu")); _r.put('PAMenu',$o0("PA","PA-menu",1,1,1,"get_PA_menu")); _r.put('MCMenu',$o0("MC","MC-menu",1,1,1,"get_MC_menu")); _r.put('PSMenu',$o0("PS","PS-menu",1,1,1,"get_PS_menu")); _r.put('BTMenu',$o0("BT","BT-menu",1,1,1,"get_BT_menu")); _r.put('OVMenu',$o0("OV","OV-menu",1,1,1,"get_OV_menu")); })();function SecNavMenuBind(){ return {handle:function (event){ (function(){
var _d=vjo.dsf.EventDispatcher;
var _r=vjo.Registry;
_r.put('MotorsSecondaryNavResourceSpec_1', new vjo.darwin.core.dynamicmenu.Hide("CTMenu")); _r.put('MotorsSecondaryNavResourceSpec_2', new vjo.darwin.core.dynamicmenu.Stay("CTMenu")); _r.put('MotorsSecondaryNavResourceSpec_3', new vjo.darwin.core.dynamicmenu.Show("CTMenu")); _r.put('MotorsSecondaryNavResourceSpec_4', new vjo.darwin.core.dynamicmenu.Hide("CTMenu")); _r.put('MotorsSecondaryNavResourceSpec_6', new vjo.darwin.core.dynamicmenu.Hide("PAMenu")); _r.put('MotorsSecondaryNavResourceSpec_7', new vjo.darwin.core.dynamicmenu.Stay("PAMenu")); _r.put('MotorsSecondaryNavResourceSpec_8', new vjo.darwin.core.dynamicmenu.Show("PAMenu")); _r.put('MotorsSecondaryNavResourceSpec_9', new vjo.darwin.core.dynamicmenu.Hide("PAMenu")); _r.put('MotorsSecondaryNavResourceSpec_11', new vjo.darwin.core.dynamicmenu.Hide("MCMenu")); _r.put('MotorsSecondaryNavResourceSpec_12', new vjo.darwin.core.dynamicmenu.Stay("MCMenu")); _r.put('MotorsSecondaryNavResourceSpec_13', new vjo.darwin.core.dynamicmenu.Show("MCMenu")); _r.put('MotorsSecondaryNavResourceSpec_14', new vjo.darwin.core.dynamicmenu.Hide("MCMenu")); _r.put('MotorsSecondaryNavResourceSpec_16', new vjo.darwin.core.dynamicmenu.Hide("PSMenu")); _r.put('MotorsSecondaryNavResourceSpec_17', new vjo.darwin.core.dynamicmenu.Stay("PSMenu")); _r.put('MotorsSecondaryNavResourceSpec_18', new vjo.darwin.core.dynamicmenu.Show("PSMenu")); _r.put('MotorsSecondaryNavResourceSpec_19', new vjo.darwin.core.dynamicmenu.Hide("PSMenu")); _r.put('MotorsSecondaryNavResourceSpec_21', new vjo.darwin.core.dynamicmenu.Hide("BTMenu")); _r.put('MotorsSecondaryNavResourceSpec_22', new vjo.darwin.core.dynamicmenu.Stay("BTMenu")); _r.put('MotorsSecondaryNavResourceSpec_23', new vjo.darwin.core.dynamicmenu.Show("BTMenu")); _r.put('MotorsSecondaryNavResourceSpec_24', new vjo.darwin.core.dynamicmenu.Hide("BTMenu")); _r.put('MotorsSecondaryNavResourceSpec_26', new vjo.darwin.core.dynamicmenu.Hide("OVMenu")); _r.put('MotorsSecondaryNavResourceSpec_27', new vjo.darwin.core.dynamicmenu.Stay("OVMenu")); _r.put('MotorsSecondaryNavResourceSpec_28', new vjo.darwin.core.dynamicmenu.Show("OVMenu")); _r.put('MotorsSecondaryNavResourceSpec_29', new vjo.darwin.core.dynamicmenu.Hide("OVMenu")); _d.add('CT-menu','mouseout',_r.get('MotorsSecondaryNavResourceSpec_1'));_d.add('CT-menu','mouseover',_r.get('MotorsSecondaryNavResourceSpec_2'));_d.add('CT','mouseover',_r.get('MotorsSecondaryNavResourceSpec_3'));_d.add('CT','mouseout',_r.get('MotorsSecondaryNavResourceSpec_4'));_d.add('PA-menu','mouseout',_r.get('MotorsSecondaryNavResourceSpec_6'));_d.add('PA-menu','mouseover',_r.get('MotorsSecondaryNavResourceSpec_7'));_d.add('PA','mouseover',_r.get('MotorsSecondaryNavResourceSpec_8'));_d.add('PA','mouseout',_r.get('MotorsSecondaryNavResourceSpec_9'));_d.add('MC-menu','mouseout',_r.get('MotorsSecondaryNavResourceSpec_11'));_d.add('MC-menu','mouseover',_r.get('MotorsSecondaryNavResourceSpec_12'));
_d.add('MC','mouseover',_r.get('MotorsSecondaryNavResourceSpec_13'));_d.add('MC','mouseout',_r.get('MotorsSecondaryNavResourceSpec_14'));_d.add('PS-menu','mouseout',_r.get('MotorsSecondaryNavResourceSpec_16'));_d.add('PS-menu','mouseover',_r.get('MotorsSecondaryNavResourceSpec_17'));_d.add('PS','mouseover',_r.get('MotorsSecondaryNavResourceSpec_18'));_d.add('PS','mouseout',_r.get('MotorsSecondaryNavResourceSpec_19'));_d.add('BT-menu','mouseout',_r.get('MotorsSecondaryNavResourceSpec_21'));_d.add('BT-menu','mouseover',_r.get('MotorsSecondaryNavResourceSpec_22'));_d.add('BT','mouseover',_r.get('MotorsSecondaryNavResourceSpec_23'));_d.add('BT','mouseout',_r.get('MotorsSecondaryNavResourceSpec_24'));
_d.add('OV-menu','mouseout',_r.get('MotorsSecondaryNavResourceSpec_26'));_d.add('OV-menu','mouseover',_r.get('MotorsSecondaryNavResourceSpec_27'));_d.add('OV','mouseover',_r.get('MotorsSecondaryNavResourceSpec_28'));_d.add('OV','mouseout',_r.get('MotorsSecondaryNavResourceSpec_29'));})();  }};};vjo.dsf.EventDispatcher.add('body','load', new SecNavMenuBind());(function () {
var _r = vjo.Registry;
function $o0(){return new vjo.darwin.tracking.enabler.TrackingModuleEnabler("_trksid","_trkparms","m38;",";");};_r.put('HeaderTrackingMotorsCompSpecGenerator_0',$o0()); _r.put('HeaderTrackingMotorsCompSpecGenerator_1',$o0()); })();function HeaderTrk(){ return {handle:function (event){ (function(){
var _d=vjo.dsf.EventDispatcher;
var _r=vjo.Registry;
function $0(){return function(event){return this.handle(event);};};_d.add('BrowseCategories-menu','click',$0(),_r._HeaderTrackingMotorsCompSpecGenerator_0);_d.add('gnheader','click',$0(),_r._HeaderTrackingMotorsCompSpecGenerator_1);_d.add('body','click',function(event){ vjo.darwin.tracking.enabler.TrackingEnabler.copySIDToCookie(event, "_trksid", "_sp", "_trkparms");  });})();  }};};vjo.dsf.EventDispatcher.add('body','load', new HeaderTrk());
// en_US_AUTOS/e661/GH-661_Motors_e66110863925_1_en_US_AUTOS
// b=10863925
