
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").needs("vjo.dsf.assembly.VjClientAssemblerRequest").props({VA:vjo.dsf.assembly.VjClientAssembler,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);this.VA.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").needs("vjo.Registry").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.Element","vjo.darwin.core.ebaytoolbar.VjEbayToolbarDetect"]).protos({sId:null,iPollingInterval:0,iMaxHits:0,iHitTimeout:0,iServerHits:0,sLastCookieletValue:"",sServerUrl:null,sImgServer:null,sViewItemUrl:null,aAlertInfo:[],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;}},setValue:function(_e,_f){var oL=this.oL;if(oL){if(_e.is("")&&!oL.ctrld){return;}
if(_f){if(vjo.dsf.client.Browser.bFirefox){oL.textContent=_e;}else{oL.innerText=_e;}}else{oL.innerHTML=_e;}
oL.ctrld=1;}},onRefresh:function(){var E=vjo.dsf.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.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 _19=cfg[at-1],imgSrv=this.sImgServer;var _1a=imgSrv+"s.gif";var _1b="<img src=\""+_1a+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">|<img src=\""+_1a+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">";_1b+="<img src=\""+imgSrv+_19[2]+"?t\" style=\"vertical-align:middle\"><img src=\""+_1a+"\" width=\"5\" height=\"16\" style=\"vertical-align:middle\">";var url=this.sViewItemUrl+"&item="+ii;_1b+="<a href=\""+url+"&ssPageName="+_19[0]+"\">"+_19[1]+"</a>";this.setValue(_1b);this.sLastCookieletValue=c;}
this.fireRefreshEvent();},fireRefreshEvent:function(_1d){if(!_1d){_1d=this.iPollingInterval;}
window.setTimeout(vjo.hitch(this,this.onRefresh),_1d*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.Positioning").props({getScrollLeftTop:function(){var d=document,rv=[0,0],db=d.body,de=d.documentElement;if(db){rv[0]+=db.scrollLeft;rv[1]+=db.scrollTop;}
if(de){rv[0]+=de.scrollLeft;rv[1]+=de.scrollTop;}
return rv;},getOffsetLeft:function(_2){var e=_2,l=0;while(e){l+=e.offsetLeft;e=e.offsetParent;}
return l;},getOffsetTop:function(_4){var e=_4,t=0;while(e){t+=e.offsetTop;e=e.offsetParent;}
return t;},getClientWidth:function(){var s=self,d=document,de=d.documentElement,w;if(s.innerWidth){w=s.innerWidth;}else{if(de&&de.clientWidth){w=de.clientWidth;}else{w=d.body.clientWidth;}}
return w;},getClientHeight:function(){var s=self,d=document,de=d.documentElement,h;if(s.innerHeight){h=s.innerHeight;}else{if(de&&de.clientHeight){h=de.clientHeight;}else{h=d.body.clientHeight;}}
return h;},getEventLeftTop:function(_8){var u="undefined",evt=window.event||_8,xOff=(typeof(screenLeft)!=u)?screenLeft:screenX,yOff=(typeof(screenTop)!=u)?screenTop:(screenY+(outerHeight-innerHeight)-25);return[evt.screenX-xOff,evt.screenY-yOff];}}).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({id:null,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").needs("vjo.Registry").protos({id:null,constructs:function(_1){this.id=_1;},handle:function(_2){vjo.Registry.get(this.id).hide();}}).endType();
vjo.ctype("vjo.darwin.core.dynamicmenu.Stay").needs("vjo.Registry").satisfies("vjo.dsf.common.IJsHandler").protos({id:null,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.Element","vjo.dsf.document.Positioning","vjo.dsf.document.Shim","vjo.dsf.client.Browser","vjo.darwin.core.dynamicmenu.Show","vjo.darwin.core.dynamicmenu.Hide","vjo.darwin.core.dynamicmenu.Stay"]).protos({iMouseOutTimer:null,iMouseOverTimer:null,iLeftPadding:0,iTopPadding:0,iRightPadding:0,sAnchorId:null,sContainerLayerId:null,sContentLayerId:null,iMouseOutDelay:0,iMouseOverDelay:0,iHighResDocWidth:0,iLowResDocWidth:0,iHighResColumns:0,iMediumResColumns:0,iLowResColumns:0,sHandler:null,sCollName:null,sWidth:null,sAnchorMouseOverClass:null,sAnchorMouseOutClass:null,iframeShim:0,sHTML:null,oAnchor:null,sTemplate:null,sAnchorText:null,sDomain:null,sHandlerSource:null,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;}
if(window.location.href.hasAny(".it.",".ebay.it")&&this.sAnchorId=="BrowseCategories"){this.sHandler="get_BrowseCategories_menu";}
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 _23=0;var _24=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 _25=GetContainerDiv(),cw,bRA=false;if(sAnchorId=="Help"){bRA=true;}
if(_25&&B.bIE&&!lh.hasAny("community","education")){cw=_25.offsetWidth+P.getOffsetLeft(_25);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 _27=E.get("2tabPopularProducts");if(_27&&B.bIE){iAL=P.getOffsetLeft(oA);}
var _28=false;if(lh.hasAny(".fr.","ebay.fr")&&sAnchorId=="Community"){_28=true;}
if(!_28&&((((iWW-iAL-iLW)<=10)&&iWW>iLW)||(iWW<(P.getOffsetLeft(oA)+iAW+iLW))||bRA||bE)){_23=iAW-iLW;iL=iAL+iAW-iLW;}else{iL=iAL;}
if(_28){iL-=5;}
if(sAnchorId=="Buy"||sAnchorId=="BrowseCategories"){_24=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+_23+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(vjo.hitch(this,this.show),iMouseOverDelay);}},show:function(){var oA,E=vjo.dsf.Element;with(this){oA=E.get(sAnchorId);if(oA){oA.className=sAnchorMouseOverClass;}
E.toggleVisibility(sContainerLayerId,true);}},hide:function(){with(this){clearTimeout(iMouseOverTimer);iMouseOutTimer=setTimeout(vjo.hitch(this,this.close),iMouseOutDelay);}},close:function(){var oA,E=vjo.dsf.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(_2f,_30){if(_2f.value.has("Everything")){return 1;}else{if(_30.value.has("Everything")){return-1;}else{return _2f.value<_30.value?-1:(_2f.value>_30.value?1:0);}}},getMenuHtml:function(_31){with(this){var i,j,c,n,h,ipc,_38,_39=".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 _3c=window[sHandler];if(!_3c){return;}
var _3d=_3c(),items=_3d[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/_31);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<_31;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(_39)!=-1){u=c.url.replace(_39,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>";_38=h;if(sTemplate){_38=sTemplate.replace("##1##",h);}
return _38;}},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 _41=false;if(e.offsetParent){l=e.offsetLeft;while(e=e.offsetParent){if(!_41){_41=e.innerHTML.has("snav");}
if(!e.id.toLowerCase().has("maincontent")&&!e.className.has("pagecontainer")){l+=e.offsetLeft;}
if(((e.className.is("pnav")||_41)&&ex)&&e.offsetLeft!=0&&(!lh.hasAny("signin.","shop.","community","sitemap","/help/","/education/","blogs","feedback","my"))){return l;}else{if((e.className.is("pnav")||_41)&&e.offsetLeft!=0&&oCl.bFirefox&&lh.has(".hk")&&(!lh.has("community")&&!bH)){return l;}else{if((e.className.is("pnav")||_41)&&e.offsetLeft!=0&&oCl.bIE&&lh.has(".au")&&lh.hasAny("/help/")){return l;}}}}}
return l;},GetContainerDiv:function(){var id="gnheader",cls="gbhdr",e=this.vj$.Element.get(id);if(e&&e.className==cls){return e;}},cobrandUrl:function(_43){var lh=window.location.href;if(!lh.has("sandbox.")){return _43;}
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=(_43.substring(_43.length)!="/")?"/":"";if(cf&&typeof(cf.cobrandURL)!=u){return cf.cobrandURL(_43+lc);}else{if(typeof(vjo.darwin.core.cobrand)!=u&&typeof(vjo.darwin.core.cobrand.EbaySandbox)!=u){return vjo.darwin.core.cobrand.EbaySandbox.cobrandURL(_43);}}
return _43;},add:function(_47,_48,_49){var f,p="px",w,h,s,S=vjo.dsf.document.Shim;if(vjo.dsf.client.Browser.bIE){w=_47.offsetWidth;h=_47.offsetHeight;w+=_48?_48:0;h+=_49?_49: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";}
_47.appendChild(f);return f;}},replaceJSONDataHandler:function(_4c,_4d){if(_4c!=null){this.sHandler=_4c;}
if(_4d!=null){this.sDomain=_4d;}}}).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.Element"]).protos({sLayerId:null,sHandle:null,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.darwin.core.ebayheader.autocomplete.AutoComplete").needs(["vjo.dsf.Message","vjo.dsf.Element","vjo.dsf.EventDispatcher","vjo.dsf.utils.Handlers","vjo.dsf.ServiceEngine"]).protos({H:vjo.dsf.utils.Handlers,sFormId:null,sAcDivId:null,acdivWidth:0,sShowImg:false,activated:false,input:null,acdiv:null,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.H.attachSvcReqt("activateAutoComplete",t.activateAutoComplete,t);t.input=E.get(_1);t.input.setAttribute("AUTOCOMPLETE","OFF");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(var 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 _17=_4[i].elements[j].value;var _18="";var _19=["p","m","l"];for(var _1a in _19){var _1b=new RegExp(_19[_1a]+"[0-9]+(?=.|$)");var _1c=_17.match(_1b);var _1d=_13.clientContext.lnkStr.match(_1b);var _1e=_1d?_1d[0]:(_1c?_1c[0]:null);var _1f=_18.length>0?".":"";if(_1e){_18+=_1f+_1e;}}
_4[i].elements[j].value=_18;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 _23=t.acdivWidth+3;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 _25=t.acdiv.offsetWidth-5;if("BackCompat"==document.compatMode){_25=_25+6;}
t.input.style.width=(t.input.clientWidth+_25)+"px";t.input.style.borderRightWidth="1px";t.acdiv.style.display="none";t.sShowImg=false;}}).props({init:function(_26,_27){new vjo.darwin.core.ebayheader.autocomplete.AutoComplete(_26,_27);}}).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;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;_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);}else{laL=_1[2];}}else{if(_1.length>=3){t.addItem(kw,kw,"k",kwL,null);}else{try{if(typeof(kwL[0])=="string"){laL=null;t.addItem(kw,kw,"k",kwL,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;if(_3){if(_5[2].sug){_8=_5[2].sug;}else{_8=_5[2];}
_9=_5[2].prd;}else{_8=_5[2];}
if(typeof(_8)==t.UN||_8===null){_7="fd";_8=_5[0];}
t.addItem(_6,kw,_7,_8,_9);}}else{t.addItem(kw,kw,"null",null);}}
catch(e){}},addItem:function(_a,_b,_c,_d,_e){var t=this;_a=_a.toLowerCase();_b=_b.toLowerCase();if(_c=="k"){t.oCache[_a]=t.buildItem("k",(typeof(_d)==t.TNU)?(""+_d):_d,_e,_b);return t.oCache[_a];}else{if(_c=="f"){t.oIdx[_a]=t.buildItem("f",(typeof(_d)==t.TNU)?(""+_d):_d,_e,_b);return t.oIdx[_a];}else{if(_c=="fd"){t.oRef[_a]=t.buildItem("fd",_d,_e,_b);return t.oRef[_a];}else{if(_c=="null"){t.oLeaf[_a]=t.buildItem("null",null,_e,_b);return t.oLeaf[_a];}}}}},buildItem:function(_10,_11,_12,_13){var _14={"type":_10,"shortPrefix":_13};if(_11!==null){_14.keyword=_11;}
if(_12!==null){_14.prd=_12;}
return _14;},get:function(_15,_16){_15=_15.toLowerCase();_16=_16.toLowerCase();var t=this,cacheItem=t.oCache[_15],indexItem=t.oIdx[_15],referenceItem=t.oRef[_15];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(_16){var _18=t.oLeaf[_16];if(typeof(_18)!=t.UN&&typeof(_18)!=t.TFU){return _18;}
var _19=[];for(var _1a in t.oIdx){var _1b=t.oIdx[_1a];if(_1b.shortPrefix==_16){_19.push(_1a);}}
_19.sort();if(_19.length===0){return null;}
var _1c=_19.length-1;for(var i=0;i<_19.length;i++){if(_15<_19[i]){_1c=i-1;break;}}
if(_1c<0){_1c=0;}
return t.oIdx[_19[_1c]];}
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":233,"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.trkRS=_2.trkRS;tM.trkInput=_2.trkInput;tM.trkShow=_2.trkShow;tM.trkHide=_2.trkHide;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;},getTrkRS:function(){return this.oModel.trkRS;},getTrkInput:function(){return this.oModel.trkInput;},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.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.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);}}}},sendRespService:function(_23,_24,_25,_26,_27,_28,_29){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};}
vjo.dsf.ServiceEngine.handleRequest(m);},handleResponse:function(_2b){var t=this,i,kw,pKwList,pLaList,pPrdList;if(_2b[0].version){kw=_2b[1];pKwList=_2b[2].sug;pLaList=_2b[3];pPrdList=_2b[2].prd;}else{kw=_2b[0];pKwList=_2b[1];pLaList=_2b[2];}
if(!t.bInit){return;}
t.oCache.add(_2b);var _2d=[];for(i=0;i<t.aReqList.length;i++){var _2e=t.aReqList[i];if(_2e.state!="process"){continue;}
if(_2e.prefix.toLowerCase()==_2e.shortPrefix.toLowerCase()){if(_2e.prefix.toLowerCase()==kw.toLowerCase()){_2e.state="done";t.removeScriptTag(_2e.scriptId);t.sendRespService(false,_2e.requester,kw,pKwList,pLaList,_2e.shortPrefix,pPrdList);}}else{if(_2e.shortPrefix.toLowerCase()==kw.toLowerCase()){var _2f=t.oCache.get(_2e.prefix,_2e.shortPrefix);_2e.state="done";t.removeScriptTag(_2e.scriptId);if(_2e.type=="f"&&_2f.type!="k"){t.sendRespService(true,_2e.requester,_2e.prefix,null,null,_2e.shortPrefix,pPrdList);}else{_2d.push(_2e);}}}}
for(i=0;i<_2d.length;i++){var _30=_2d[i];t.send(_30.requester,_30.prefix);}}}).inits(function(){}).endType();
vjo.ctype("vjo.darwin.core.ebayheader.autocomplete.layer.AutoCompleteLayer").needs(["vjo.dsf.Element","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:[],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.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.updTrk(_2.getTrkInput());t.setAutoComplete(t.isHideSuggestion(),true);},handleResp:function(_10){var t=this,cfg=t.oConfig,ctx=_10.clientContext,i;var _12=cfg.getIdList(),id;for(i=0;i<_12.length;i++){id=_12[i];t.VED.unregister(id,"mouseover");}
var _13=ctx.kwList||[];var _14=ctx.laList||[];var _15=ctx.prdList||[];if(t.reqId!=ctx.requestId||ctx.prefix.toLowerCase()!=t.getInputValue().toLowerCase()){return;}
var _16=t.getRecentSearch();if(_16&&_16.length>0){var _17=_16.toLowerCase();var _18=_17.indexOf(t.cKw.toLowerCase());var _19=false;var _1a=_17;var _1b=0;while(_18>=0){if(t.isWordStart(_17,_18+_1b)){_19=true;break;}
_1b=_18+1;_1a=_1a.substr(_18+1);_18=_1a.indexOf(t.cKw.toLowerCase());}
if(_19){var _1c=[];_1c.push(_16);for(i=0;i<_13.length;i++){if(_13[i].toLowerCase()!=_17){_1c.push(_13[i]);}}
if(_1c.length>cfg.getListSize()){_1c.pop();}
_13=_1c;}}
if(ctx.timeout&&(ctx.prefix==t.cKw)&&_13.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 _1d=_12.length;var _1e=_15.length;if(_1d>cfg.getListSize()){_1d=cfg.getListSize();}
if(t.oInput){cfg.updateWidthDef(t.oInput);}
var _1f=t.getMaxKwLength(_13,_1d)*cfg.getWidthUnit();if(_1f<cfg.getWidthMin().px){_1f=cfg.getWidthMin().px;}else{if(_1f>cfg.getWidthMax().px){_1f=cfg.getWidthMax().px;}}
for(i=0;i<_1d;i++){var en=_12[i],e=t.VE.get(en);if(e===null){continue;}
e.className="unsel";if(i<_13.length){e.innerHTML=t.genKwHTML(_13[i],t.cKw,cfg.getWidthMax()["char"]);t.VE.toggleHideShow(en,true);var trk=(_13[i]==_16)?cfg.getTrkRS():cfg.getTrkSuggest();t.cKwL[i]={"divId":en,"sugKw":_13[i],"trk":trk,"type":"kw"};}else{t.VE.toggleHideShow(en,false);}}
if(_1e>0&&(""+document.location).search(/https:/g)==-1){t.prdDiv.style.display="block";for(i=0;i<t.prdItms.length;i++){var _22=t.prdItms[i];if(_15[i]){_22.tr.style.display="block";_22.tr.className="unsel";_22.imgTd.innerHTML="<img width='32px' height='32px' src='"+_15[i][2]+"' />";_22.titleTd.innerHTML=t.genPrdHtml(_15[i][1],t.cKw,cfg.getWidthMax()["char"]);t.cKwL.push({"divId":_22.tr.id,"sugKw":t.getInputValue(),"trk":cfg.getTrkProduct(),"type":"prd","pid":_15[i][0]});}else{_22.tr.style.display="none";}}}else{t.prdDiv.style.display="none";}
t.showSugDiv(true,_1f);},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(_25){var vC=vjo.dsf.cookie.VjCookieJar,pbf=vC.readCookie("dp1","pbf");vC.writeCookielet("dp1","pbf",vC.setBitFlag(pbf,29,_25?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(_28,_29){if(!_28){return 0;}
var max=0;var _2b=_28.length;if(_2b>_29){_2b=_29;}
for(var i=0;i<_2b;i++){var len=_28[i].length;if(len>max){max=len;}}
return max;},isWordStart:function(pKw,_2f){if(_2f<=0||_2f>pKw.length-1){return true;}
var _30=new RegExp("[\\s \\.,]");return pKw.substr(_2f-1,1).search(_30)>=0;},genKwHTML:function(pKw,_32,_33){var _34=_32.length;var out=pKw,t=this;var _36=t.oEncoder,part;var _37=-1;for(var i=0;i<pKw.length;i++){part=pKw.substr(i,_34);if(part.length!=_34){break;}
if(part.toLowerCase()==_32.toLowerCase()&&t.isWordStart(pKw,i)){_37=i;break;}}
var _39=pKw.substring(0,_37);var _3a=pKw.substr(_37+_34);var _3b;if(_37>=0){if(pKw.length>_33){if(_39.length>_33){out=_36.encodeHTML(out.substr(0,_33));out+="...";}else{if((_39.length+part.length)>_33){_3b=_33-_39.length;part="<span class='hl'>"+_36.encodeHTML(part.substr(0,_3b))+"...</span>";out=_36.encodeHTML(_39)+part;}else{_3b=_33-_39.length-part.length;out=_36.encodeHTML(_39)+"<span class='hl'>"+_36.encodeHTML(part)+"</span>"+_36.encodeHTML(_3a.substr(0,_3b))+"...";}}}else{out=_36.encodeHTML(_39)+"<span class='hl'>"+_36.encodeHTML(part)+"</span>"+_36.encodeHTML(_3a);}}else{if(pKw.length>_33){out=_36.encodeHTML(out.substr(0,_33));out+="...";}}
return out;},genPrdHtml:function(_3c,_3d,_3e){var kws=_3d.split(/\s/);var out=_3c.length>75?_3c.substr(0,75)+"...":_3c;for(var i=0;i<kws.length;i++){if(kws[i]!=""){var reg=new RegExp(kws[i],"i");out=out.replace(reg,"<-"+_3c.substr(_3c.search(reg),kws[i].length)+"->");}}
out=out.replace(/<-/g,"<span class='hl'>");out=out.replace(/->/g,"</span>");return out;},startKeyTimer:function(_43){var t=this;t.stopKeyTimer();var _45=function(){var _46=t.getInputValue();if(_43!=_46||_46.length<1){return;}
t.oRequest.send(t.reqId,_43);};t.oKeyTimer=window.setTimeout(_45,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(_49,_4a,_4b){var t=this,kw=t.cKw;if(t.cSel>=0){t.unselectSug(t.cKwL[t.cSel].divId);}
if(_49!==null){var e=t.VE.get(_49);for(var i=0;i<t.cKwL.length;i++){var _4f=t.cKwL[i];if(_4f.divId==_49){t.cSel=i;kw=_4f.sugKw;break;}}
if(e){e.className="sel";}}else{t.cSel=-1;}
if(!_4b){t.updateInput(kw);}
if(!_4a){t.focusInput();}},unselectSug:function(_50){var t=this,e=t.VE.get(_50);if(e){e.className="unsel";}},createTrackingImg:function(_52){var _53=new Date(),r=_53.getTime();var _54=_52;if(_54.indexOf("?")>0){_54+="&"+r;}else{_54+="?"+r;}
var img=new Image();document.getElementsByTagName("body")[0].appendChild(img);img.setAttribute("src",_54);img.setAttribute("width","1");img.setAttribute("height","1");img.setAttribute("border","0");},sendInSvc:function(_56){var m=new vjo.dsf.Message(this.oConfig.getInSvc());m.clientContext=_56;this.VS.handleRequest(m);},isCtrlKey:function(_58){var _59=[38,39,40,27];for(var i=0;i<_59.length;i++){if(_59[i]==_58){return true;}}
return false;},isIgnorKey:function(_5b){var _5c=[16,17,18];for(var i=0;i<_5c.length;i++){if(_5b==_5c[i]){return true;}}
return false;},isSugShown:function(){var t=this;var _5f=t.VE.get(t.oConfig.getContainerId());disp=_5f.currentStyle?_5f.currentStyle.display:window.getComputedStyle(_5f,null).getPropertyValue("display");return(disp!="none");},isNoSugMsgShow:function(){var t=this;var _61=t.VE.get(t.oConfig.getNoSugDivId());disp=_61.currentStyle?_61.currentStyle.display:window.getComputedStyle(_61,null).getPropertyValue("display");return(disp!="none");},showNoSugMessage:function(_62){var t=this;t.VE.toggleHideShow(t.oConfig.getSugDivId(),!_62);t.VE.toggleHideShow("prdDivWrp",!_62);t.VE.toggleHideShow(t.oConfig.getNoSugDivId(),_62);if(_62){var _64=function(){if(t.isNoSugMsgShow()){t.showSugDiv(false);}};window.setTimeout(_64,t.oConfig.getNoSugShowTime());}},showSugDiv:function(_65,_66){var t=this;if(t.isHideSuggestion()&&_65){t.showIcon(true);return;}
var vS=vjo.dsf.document.Shim;var _69=t.oConfig.getContainerId();var _6a=t.VE.get(_69);if(_65){t.posLayer(_66);t.VE.toggleHideShow(_69,true);if(t.oIframeShim){vS.remove(_6a,t.oIframeShim);}
t.oIframeShim=vS.add(_6a);var _6b=function(){t.regOverEvent(true);};window.setTimeout(_6b,100);}else{t.VE.toggleHideShow(_69,false);if(t.oIframeShim){vS.remove(_6a,t.oIframeShim);t.oIframeShim=null;}
t.regOverEvent(false);}},onEntSbmt:function(e){var t=this,idx=t.cSel;if(e.keyCode==13&&idx>-1){var _6e=t.cKwL[idx].type,trk=t.cKwL[idx].trk,pid=t.cKwL[idx].pid;if(pid){var _6f=trk?"&_trksid="+trk:"";t.VED.stopEvent(e);document.location.href=t.oConfig.getPrdURL()+"/?_pid="+pid+_6f;return false;}}},regOverEvent:function(_70){var t=this;var _72=t.oConfig.getIdList(),i,id;for(i=0;i<_72.length;i++){id=_72[i];t.VED.unregister(id,"mouseover");t.VED.unregister(id,"click");if(_70){t.VED.add(id,"mouseover",function(_73){t.bInSugDiv=true;t.selectSug(_73.src.id,false,false);});t.VED.add(id,"click",function(_74){var _75=_74.src.attributes,type,trk,pid;for(i=0;i<t.cKwL.length;i++){if(t.cKwL[i].divId==_74.src.id){type=t.cKwL[i].type;trk=t.cKwL[i].trk;pid=t.cKwL[i].pid;break;}}
if(type=="prd"){if(pid){var _76=trk?"&_trksid="+trk:"";document.location.href=t.oConfig.getPrdURL()+"/?_pid="+pid+_76;}}else{t.selectSug(_74.src.id);t.submitForm();t.showSugDiv(false);}});}}},posLayer:function(_77){var t=this,gap;var _79=t.getAbsPos(t.oInput);if(_79===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=_79.left-gap+"px";e.style.top=_79.top+_79.height-gap+"px";if((typeof(_77)!="undefined")&&(_77!==null)){e.style.width=parseInt(_77,10)+"px";}
return true;},getAbsPos:function(_7b){var vW=vjo.dsf.window.utils.VjWindowUtils,t=this;if(_7b===null){return null;}
return{"left":parseInt(vW.offsetLeft(_7b),10),"top":parseInt(vW.offsetTop(_7b),10),"height":parseInt(_7b.offsetHeight,10),"width":parseInt(_7b.offsetWidth,10)};},updateInput:function(pKw){var t=this;if(t.isSugShown()){t.lKw=pKw;t.sendInSvc({"type":"kw_updvalue","value":pKw});}},updTrk:function(_7f){this.sendInSvc({"type":"search_updtrk","lnkStr":_7f});},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(_82){this.sendInSvc({"type":"sug_icon_show","bShow":_82});},focusInput:function(){this.sendInSvc({"type":"kw_focus"});},setAutoComplete:function(bOn,_84){this.sendInSvc({"type":"kw_autocomplete","bOn":bOn,"bSkipFocus":_84});},setInput:function(_85){if(!_85){return;}
var t=this;if(!t.oInput){t.oInput=_85;}
t.oConfig.updateWidthDef(_85);},show_click:function(_87){var t=this;t.showIcon(false);t.setHideSuggestion(false);t.blQryEpt=false;t.oRequest.send(t.reqId,t.getInputValue());var _89=function(){t.createTrackingImg(t.oConfig.getTrkShow());};window.setTimeout(_89,500);t.setAutoComplete(false);},kw_blur:function(_8a){var t=this;if(t.isSugShown()&&!t.isNoSugMsgShow()){if(!t.bInSugDiv){var _8c=t.cSel>=0?t.cKwL[t.cSel].divId:null;t.showSugDiv(false);t.unselectSug(_8c);}else{t.focusInput();}}},kw_mouseover:function(_8d){var t=this;if(t.isSugShown()&&!t.isNoSugMsgShow()){t.selectSug(null);}},kw_keydown:function(_8f){var t=this,kc=_8f.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(_91){var t=this,kc=_91.keyCode,cv=_91.value;if(t.isIgnorKey(kc)){return;}
if(t.isSugShown()&&!t.isNoSugMsgShow()){if(t.isCtrlKey(kc)){var e,_94,_95;switch(kc){case 38:_94=t.cSel-1;if(_94<-1){_94=t.cKwL.length-1;}
_95=_94>=0?t.cKwL[_94].divId:null;t.selectSug(_95);t.cSel=_94;break;case 40:_94=t.cSel+1;if(_94>=t.cKwL.length){_94=-1;}
_95=_94>=0?t.cKwL[_94].divId:null;t.selectSug(_95);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(_96){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){var t=this;t.oModel=_1;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.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.dsf.document.Select").needs("vjo.dsf.Element").props({E:vjo.dsf.Element,addOption:function(_1,_2,_3){var t=this,e=t.get(_1),o,os;if(e){o=t.createOption(_3,_2);os=e.options;os[os.length]=o;}},createOption:function(_5,_6,_7,_8){var _9=_7?_7:false;var _a=_7?_8:false;return new Option(_5,_6,_9,_a);},clear:function(_b){var e=this.get(_b),os,i,l;if(e){os=e.options;l=os.length;for(i=l-1;i>=0;i--){os[i]=null;}}},get:function(_d){var e=_d;if(typeof(_d)=="string"){e=this.E.get(_d);}
return e;}}).endType();
vjo.ctype("vjo.darwin.core.dynamicdropdown.DynamicDropdown").needs(["vjo.dsf.Element","vjo.dsf.document.Select"]).protos({sDropdownId:null,sHandler:null,sCollName:null,iCondNo:0,constructs:function(_1,_2,_3,_4){this.sDropdownId=_1;this.sHandler=_2;this.sCollName=_3;this.iCondNo=_4;},fill:function(){var e,h,d,_8,i,l,c,E=this.vj$.Element,S=this.vj$.Select;with(this){e=E.get(sDropdownId);if(e&&typeof(e.length)!="undefined"&&e.length>0){e=e[0];}
if(e&&e.options){if(iCondNo==-1||e.options.length<=iCondNo){h=window[sHandler];if(!h){return;}
d=h(),_8=d[sCollName],l=_8.length;for(i=0;i<l;i++){c=_8[i];S.addOption(e,c.id,c.value);}}}}}}).endType();
function get_Buy_menu(){return{"items":[{"value":"<a href=\"http://pages.ebay.at/kaufseinsteiger/index.html\">So kaufen Sie</a>"},{"value":"<a href=\"http://pages.ebay.at/richtigsuchen/index.html\">Richtig suchen</a>"},{"value":"<a href=\"http://pulse.ebay.at/\">eBay Top 10</a>"},{"value":"<a href=\"http://pages.ebay.at/sicherheitsregeln/index.html\">Sicherheitstipps</a>"}]};}
function get_Sell_menu(){return{"items":[{"value":"<a href=\"http://pages.ebay.at/verkaufseinsteiger/index.html\">So verkaufen Sie</a>"},{"value":"<a href=\"http://pages.ebay.at/verkaeuferportal/unternehmen.html\">Gewerbliche Verk\xe4ufer</a>"},{"value":"<a href=\"http://pages.ebay.at/verkaeufer-tools/index.html\">Bequemer verkaufen</a>"},{"value":"<a href=\"http://pages.ebay.at/versandcenter/index.html\">Versandcenter</a>"}]};}
function get_MyEbay_menu(){return{"items":[{"value":"<a href=\"http://my.ebay.at/ws/eBayISAPI.dll?MyEbay&amp;gbh=1&amp;CurrentPage=MyeBaySummary&amp;ssPageName=STRK:ME:LNLK\" rel=\"nofollow\">Zusammenfassung</a>"},{"value":"<a href=\"http://my.ebay.at/ws/eBayISAPI.dll?MyEbay&amp;gbh=1&amp;CurrentPage=MyeBayWatching\" rel=\"nofollow\">Beobachten</a>"},{"value":"<a href=\"http://my.ebay.at/ws/eBayISAPI.dll?MyEbay&amp;gbh=1&amp;CurrentPage=MyeBayBidding\" rel=\"nofollow\">Bieten</a>"},{"value":"<a href=\"http://my.ebay.at/ws/eBayISAPI.dll?MyEbay&amp;gbh=1&amp;CurrentPage=MyeBayWon\" rel=\"nofollow\">Gekauft</a>"},{"value":"<a href=\"http://my.ebay.at/ws/eBayISAPI.dll?MyEbay&amp;gbh=1&amp;CurrentPage=MyeBayAllSelling&amp;ssPageName=STRK:ME:LNLK\" rel=\"nofollow\">Verkaufen</a>"},{"value":"<a href=\"http://my.ebay.at/ws/eBayISAPI.dll?MyEbay&amp;gbh=1&amp;CurrentPage=MyeBayAllFavorites\" rel=\"nofollow\">Gespeicherte Suchanfragen</a>"},{"value":"<a href=\"http://my.ebay.at/ws/eBayISAPI.dll?MyEbay&amp;gbh=1&amp;ssPageName=STRK:ME:LNLK&amp;CurrentPage=MyeBayMyMessages\" rel=\"nofollow\">Nachrichten</a>"}]};}
function get_Community_menu(){return{"items":[{"value":"<a href=\"http://community.ebay.at\">Community: \xdcberblick</a>"},{"value":"<a href=\"http://www2.ebay.com/aw/marketing-at.shtml\">eBay-News</a>"},{"value":"<a href=\"http://community.ebay.de/forum/index.htm\">Diskussionsforen</a>"},{"value":"<a href=\"http://myworld.ebay.at\">Meine eBay Welt</a>"}]};}
function get_Help_menu(){return{"items":[{"value":"<a href=\"http://pages.ebay.at/help/index/A.html\">Hilfethemen</a>"},{"value":"<a href=\"http://pages.ebay.at/help/contact_us/_base/index.html\">Kontakt</a>"},{"value":"<a href=\"http://pages.ebay.at/telefon/index.html\">Telefonsupport</a>"},{"value":"<a href=\"http://pages.ebay.at/help/sell/fees.html\">eBay-Geb\xfchren</a>"}]};};
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;};
vjo.ctype("vjo.darwin.core.greetings.VjGreetingsClient").needs(["vjo.dsf.typeextensions.string.TokenReplacement","vjo.dsf.typeextensions.string.Decode","vjo.dsf.utils.URL","vjo.dsf.cookie.VjCookieJar"]).props({writePersonalHeader:function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f,_10,_11){var oCJ=vjo.dsf.cookie.VjCookieJar,u1p=oCJ.readCookie("dp1","u1p"),u1f=oCJ.readCookie("dp1","u1f"),s="",sinLink="",soutLink="",regLink="",un="undefined";if(!u1p||typeof(u1p)==un){s=typeof(_a)!=un?_a:"";document.write(s);return;}
if(!u1f||typeof(u1f)==un){u1f="";}else{u1f=u1f.replace(new RegExp("\\+","g")," ");}
var _13=u1p.decodeBase64().decodeUTF8(),v1=oCJ.readCookie("ebay","sin");var v2=oCJ.readCookie("dp1","kms");if(typeof(_13)==un){return;}
if(parseInt(_f,0)===1){_2=vjo.dsf.utils.URL.addArg(_2,"ru",_10?_10:encodeURIComponent(document.location.href));}
var a=oCJ.readCookie("dp1","a1p"),ba,bp;ba=a&&a>0;bp=vjo.darwin.core.greetings.VjGreetingsClient.isUserPersonalized();if(_11){var sA="";if(ba){if(a==1){sA=_d;}else{sA=_e;}
sA=sA.replaceTokensEx("##n##",a);}
if(_c){_c=_c.replaceTokensEx("##n##",sA);}}else{ba=false;}
if(_13.has("@@__@@__@@")){s+=typeof(_7)!=un?_7:"";sinLink="<a tabindex=\"-1\" href=\""+_2+"\" rel=\"nofollow\">"+_1+"</a>";regLink="<a tabindex=\"-1\" id=\"registerLink\" href=\""+_4+"\" rel=\"nofollow\">"+_3+"</a>";s=s.replaceTokensEx("##n##",sinLink,regLink);}else{if((v1&&v1.is("in"))||(v2&&v2.is("in"))){if(bp){if(ba){s=_b+"&nbsp;";}
s+=typeof(_8)!=un?_8:"";soutLink="<a tabindex=\"-1\" href=\""+_6+"\" rel=\"nofollow\">"+_5+"</a>";s=s.replaceTokensEx("##n##",_13,soutLink,u1f);s+=_c;}else{s=_a;}}else{if(ba){s=_b+"&nbsp;";}
s+=typeof(_9)!=un?_9:"";sinLink="<a tabindex=\"-1\" href=\""+_2+"\"  rel=\"nofollow\">"+_1+"</a>";s=s.replaceTokensEx("##n##",_13,sinLink,u1f);s+=_c;}}
document.write(s);},isUserPersonalized:function(){var oCJ=vjo.dsf.cookie.VjCookieJar,cId=oCJ.readCookie("cid"),pCd=oCJ.readCookie("dp1","pcid");if(pCd){if(cId){cId=decodeURIComponent(cId);var hCd=cId;var Inx=cId.indexOf("#");if(Inx===-1&&cId.length>8){return false;}
if(Inx!==-1){hCd=cId.substring(Inx+1,cId.length);}
if(hCd===pCd){oCJ.writeCookie("cid",cId,365);return true;}else{return false;}}
return false;}
return true;}}).endType();
vjo.ctype("vjo.darwin.core.ebayheader.rtm.GlobalHeaderRtmDec").endType();if(typeof(_oGlobalNavRTMInfo)=="undefined"){_oGlobalNavRTMInfo={};_oGlobalNavRTMInfo.aRTMPlacementData=[];};
vjo.ctype("vjo.darwin.core.ebayheader.rtm.GlobalHeaderRtmCall").needs(["vjo.dsf.typeextensions.string.Decode","vjo.dsf.cookie.VjCookieJar"]).props({iTimer:null,submitRTMCall:function(_1){var un="undefined",lh=window.location.href;if(!lh.hasAny("catalog.")&&(lh.hasAny("offer.")||!(typeof(ebay)!=un&&typeof(ebay.oDocument)!=un&&ebay.oDocument._getControl("rtm")))&&!(typeof(vjo)!=un&&typeof(vjo.dsf)!=un&&typeof(vjo.dsf.ServiceEngine)!=un&&typeof(vjo.dsf.ServiceEngine.inProcHdl)!=un&&typeof(vjo.dsf.ServiceEngine.inProcHdl.svcHdls)!=un&&typeof(vjo.dsf.ServiceEngine.inProcHdl.svcHdls.RTM_CALLBACK_SERVICE)!=un)&&typeof(_oGlobalNavRTMInfo)!==un&&!(typeof(rtm)!=un)){if(_oGlobalNavRTMInfo.aRTMPlacementData.length>0){this.iTimer=window.setInterval(vjo.hitch(this,this.init),1);}}else{if(_oGlobalNavRTMInfo.aRTMPlacementData.length>0){if(lh.hasAny("shop.","icatalog.","catalog.")&&!lh.hasAny("hub.")){this.init();}}}},getUid:function(){var _3=this.vj$.VjCookieJar.readCookie("dp1","u1p"),u1pDecoded;if(_3){u1pDecoded=_3.decodeBase64().decodeUTF8();}
return u1pDecoded;},getGuid:function(){return this.vj$.VjCookieJar.readCookie("ebay","sgj");},hasUid:function(_4){if(_4){return true;}
if(this.getUid().has("@@__@@__@@")){return false;}
return true;},init:function(){if(typeof(vjo.darwin.core.rtm)=="undefined"){return;}
if(this.iTimer!=null){window.clearInterval(this.iTimer);}
var _5=_oGlobalNavRTMInfo.aRTMPlacementData,data,widths=[],htmlIds=[],heights=[],pids=[],dblclkUrls=[],defaultUrls=[],url;for(i=0;i<_5.length;i++){data=_5[i];widths[i]=data.maxWidth;htmlIds[i]=data.htmlId;heights[i]=data.maxHeight;pids[i]=data.pid;dblclkUrls[i]="";defaultUrls[i]="";url=data.rtmUrl+"?RtmCmd&a=json"+(this.hasUid(data.userId)?("&l="+(data.userId?data.userId:this.getUid())):"")+"&g="+(data.gUid?data.gUid:this.getGuid())+"&ord="+data.ord+((data.oid)?"&i="+data.oid:"");}
url+="&p="+pids.join(":");_oGlobalNavRTMInfo.sRTMUrl=url;if(_5.length>0){var _6=new vjo.darwin.core.rtm.RTMInit({"url":url,"widths":widths,"htmlIds":htmlIds,"heights":heights,"pids":pids,"dblclkUrls":dblclkUrls,"defaultUrls":defaultUrls});_6.invoke({});}}}).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();(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(){return new vjo.darwin.tracking.enabler.TrackingModuleEnabler("_trksid","_trkparms","m38;",";");};_r.put('HeaderTrackingCompSpecGenerator_0',$o0()); _r.put('HeaderTrackingCompSpecGenerator_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._HeaderTrackingCompSpecGenerator_0);_d.add('gnheader','click',$0(),_r._HeaderTrackingCompSpecGenerator_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());(function () {
var _r = vjo.Registry;
_r.put('category0',new vjo.darwin.core.dynamicdropdown.DynamicDropdown("category0", "getBrowseCategoriesData", "items", 1)); })();(function(){(function(){
var _d=vjo.dsf.EventDispatcher;
var _r=vjo.Registry;
_d.add('body','load',function(event) { this.fill(); },_r._category0);})();})();(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",1,"get_Sell_menu")); _r.put('MyEbayMenu',$o0("MyEbay","MyEbay-menu",1,"get_MyEbay_menu")); _r.put('CommunityMenu',$o0("Community","Community-menu",1,"get_Community_menu")); _r.put('HelpMenu',$o0("Help","Help-menu",1,"get_Help_menu")); })();function NavMenuBind(){ return {handle:function (event){ (function(){
var _d=vjo.dsf.EventDispatcher;
var _r=vjo.Registry;
_r.put('CorePrimaryNavResourceSpec_1', new vjo.darwin.core.dynamicmenu.Hide("BuyMenu")); _r.put('CorePrimaryNavResourceSpec_2', new vjo.darwin.core.dynamicmenu.Stay("BuyMenu")); _r.put('CorePrimaryNavResourceSpec_3', new vjo.darwin.core.dynamicmenu.Show("BuyMenu")); _r.put('CorePrimaryNavResourceSpec_4', new vjo.darwin.core.dynamicmenu.Hide("BuyMenu")); _r.put('CorePrimaryNavResourceSpec_6', new vjo.darwin.core.dynamicmenu.Hide("SellMenu")); _r.put('CorePrimaryNavResourceSpec_7', new vjo.darwin.core.dynamicmenu.Stay("SellMenu")); _r.put('CorePrimaryNavResourceSpec_8', new vjo.darwin.core.dynamicmenu.Show("SellMenu")); _r.put('CorePrimaryNavResourceSpec_9', new vjo.darwin.core.dynamicmenu.Hide("SellMenu")); _r.put('CorePrimaryNavResourceSpec_11', new vjo.darwin.core.dynamicmenu.Hide("MyEbayMenu")); _r.put('CorePrimaryNavResourceSpec_12', new vjo.darwin.core.dynamicmenu.Stay("MyEbayMenu")); _r.put('CorePrimaryNavResourceSpec_13', new vjo.darwin.core.dynamicmenu.Show("MyEbayMenu")); _r.put('CorePrimaryNavResourceSpec_14', new vjo.darwin.core.dynamicmenu.Hide("MyEbayMenu")); _r.put('CorePrimaryNavResourceSpec_16', new vjo.darwin.core.dynamicmenu.Hide("CommunityMenu")); _r.put('CorePrimaryNavResourceSpec_17', new vjo.darwin.core.dynamicmenu.Stay("CommunityMenu")); _r.put('CorePrimaryNavResourceSpec_18', new vjo.darwin.core.dynamicmenu.Show("CommunityMenu")); _r.put('CorePrimaryNavResourceSpec_19', new vjo.darwin.core.dynamicmenu.Hide("CommunityMenu")); _r.put('CorePrimaryNavResourceSpec_21', new vjo.darwin.core.dynamicmenu.Hide("HelpMenu")); _r.put('CorePrimaryNavResourceSpec_22', new vjo.darwin.core.dynamicmenu.Stay("HelpMenu")); _r.put('CorePrimaryNavResourceSpec_23', new vjo.darwin.core.dynamicmenu.Show("HelpMenu")); _r.put('CorePrimaryNavResourceSpec_24', new vjo.darwin.core.dynamicmenu.Hide("HelpMenu")); _d.add('Buy-menu','mouseout',_r.get('CorePrimaryNavResourceSpec_1'));_d.add('Buy-menu','mouseover',_r.get('CorePrimaryNavResourceSpec_2'));_d.add('Buy','mouseover',_r.get('CorePrimaryNavResourceSpec_3'));_d.add('Buy','mouseout',_r.get('CorePrimaryNavResourceSpec_4'));_d.add('Sell-menu','mouseout',_r.get('CorePrimaryNavResourceSpec_6'));_d.add('Sell-menu','mouseover',_r.get('CorePrimaryNavResourceSpec_7'));_d.add('Sell','mouseover',_r.get('CorePrimaryNavResourceSpec_8'));_d.add('Sell','mouseout',_r.get('CorePrimaryNavResourceSpec_9'));_d.add('MyEbay-menu','mouseout',_r.get('CorePrimaryNavResourceSpec_11'));_d.add('MyEbay-menu','mouseover',_r.get('CorePrimaryNavResourceSpec_12'));
_d.add('MyEbay','mouseover',_r.get('CorePrimaryNavResourceSpec_13'));_d.add('MyEbay','mouseout',_r.get('CorePrimaryNavResourceSpec_14'));_d.add('Community-menu','mouseout',_r.get('CorePrimaryNavResourceSpec_16'));_d.add('Community-menu','mouseover',_r.get('CorePrimaryNavResourceSpec_17'));_d.add('Community','mouseover',_r.get('CorePrimaryNavResourceSpec_18'));_d.add('Community','mouseout',_r.get('CorePrimaryNavResourceSpec_19'));_d.add('Help-menu','mouseout',_r.get('CorePrimaryNavResourceSpec_21'));_d.add('Help-menu','mouseover',_r.get('CorePrimaryNavResourceSpec_22'));_d.add('Help','mouseover',_r.get('CorePrimaryNavResourceSpec_23'));_d.add('Help','mouseout',_r.get('CorePrimaryNavResourceSpec_24'));
})();  }};};vjo.dsf.EventDispatcher.add('body','load', new NavMenuBind());(function () {
var _r = vjo.Registry;
_r.put('BrowseCategoriesMenu',new vjo.darwin.core.dynamicmenu.DynamicMenu("BrowseCategories", "BrowseCategories-menu", "dynMenuCtr", 75, 250, 900, 800, 3, 3, 3, -10, 2, 0, "getBrowseCatsDAPData", "items", "100%", "hovered", "", "", ".ebay.com")); })();function SecNavMenuBind(){ return {handle:function (event){ (function(){
var _d=vjo.dsf.EventDispatcher;
var _r=vjo.Registry;
_r.put('CoreSecondaryNavResourceSpec_1', new vjo.darwin.core.dynamicmenu.Hide("BrowseCategoriesMenu")); _r.put('CoreSecondaryNavResourceSpec_2', new vjo.darwin.core.dynamicmenu.Stay("BrowseCategoriesMenu")); _r.put('CoreSecondaryNavResourceSpec_3', new vjo.darwin.core.dynamicmenu.Show("BrowseCategoriesMenu")); _r.put('CoreSecondaryNavResourceSpec_4', new vjo.darwin.core.dynamicmenu.Hide("BrowseCategoriesMenu")); _d.add('BrowseCategories-menu','mouseout',_r.get('CoreSecondaryNavResourceSpec_1'));_d.add('BrowseCategories-menu','mouseover',_r.get('CoreSecondaryNavResourceSpec_2'));_d.add('BrowseCategories','mouseover',_r.get('CoreSecondaryNavResourceSpec_3'));_d.add('BrowseCategories','mouseout',_r.get('CoreSecondaryNavResourceSpec_4'));})();  }};};vjo.dsf.EventDispatcher.add('body','load', new SecNavMenuBind());
// de_AT/e657i/GH-D9_EbayStatic_e657i10712761_1_de_AT
// b=10712761
