if(typeof (vjo)=="undefined"){ var vjo={}; } vjo.global=this; vjo._bScope=null; vjo.createPkg=function(_1){ var _2=_1.split("."),len=_2.length; var _3=this.global; for(var i=0;i0)?_2[len-1]:""}; }; vjo.needs=function(_5,_6){ if(!_5){ return; } if(!vjo._bScope){ vjo._bScope={}; } var _7=vjo.createPkg(_5); if(_7.pkg[_7.className]){ if(typeof _6=="string"&&_6!=""){ vjo._bScope[_6]=_7.pkg[_7.className]; }else{ vjo._bScope[_7.className]=_7.pkg[_7.className]; } } }; vjo.needsLib=function(){ }; vjo.type=function(_8){ var _9=function(){ this.b=_9.b; if(this.base){ this.base.parent=this; } if(this.constructs){ var rv=this.constructs.apply(this,arguments); if(rv){ return rv; } } return null; }; _9.props=function(_b){ for(var i in _b){ if(i!="props"&&i!="protos"&&i!="inherits"&&i!="prototype"&&i!="inits"&&i!="satisfies"&&i!="satisfiers"&&i!="b"){ _9[i]=_b[i]; } } return _9; }; function createBaseMethod(_d,_e,_f){ _d.prototype.base[_f]=function(){ var _10=this.parent,supBase=(_e.prototype&&_e.prototype.base)?_e.prototype.base[_f]:null,curBase; if(supBase){ curBase=_10.base[_f]; _10.base[_f]=supBase; } var scp=(this.parent)?this.parent:this; var rv=_e.prototype[_f].apply(scp,arguments); if(curBase){ _10.base[_f]=curBase; } return rv; }; } _9.protos=function(obj,_14){ for(var i in obj){ if(i!="base"&&i!="b"&&(!_14||i!="constructs")){ if(_14&&_14.prototype&&_14.prototype[i]&&typeof obj[i]=="function"){ createBaseMethod(_9,_14,i); } if((!_14&&!_9.prototype[i])&&_9.prototype.base&&_9.prototype.base[i]){ _9.prototype[i]=function(){ _9.prototype.base[i].apply(this,arguments); }; }else{ if(!(_14&&_9.prototype[i])){ _9.prototype[i]=obj[i]; } } } } return _9; }; function createBase(clz,_17){ return (function(){ var _18=_17.prototype.base||_17,constructs=this.constructs,curBase=this.base; if(_17.prototype.constructs&&constructs){ this.constructs=_17.prototype.constructs; } this.base=function(){ _18.apply(this,arguments); }; _17.apply(this,arguments); if(constructs){ this.constructs=constructs; } this.base=curBase; }); } _9.inherits=function(_19){ var _1a=vjo.createPkg(_19); var _1b=_1a.pkg[_1a.className]; _9.prototype.base=createBase(_9,_1b); _9.protos(_1b.prototype,_1b); _9.props(_1b); return _9; }; _9.singleton=function(){ return _9; }; _9.inits=function(_1c){ var _1d=vjo.createPkg(_8); if(typeof _1d.pkg[_1d.className]=="function"){ _1c.call(this); } return _9; }; _9.satisfies=function(_1e){ return _9; }; _9.satisfiers=function(_1f){ return _9; }; _9.makeFinal=function(){ return _9; }; _9.b=vjo._bScope; vjo._bScope=null; if(!_8){ return _9; } var _20=vjo.createPkg(_8); return (_20.pkg[_20.className])?_9:(_20.pkg[_20.className]=_9); }; vjo.type("vjo.Registry").singleton().protos({constructs:function(){ this.controls=[]; },put:function(_1,_2){ this.controls[_1]=_2; if(this.isKeyValid(_1)){ this["_"+_1]=this.controls[_1]; } return this.controls[_1]; },get:function(_3){ return this.controls[_3]; },dump:function(){ var _4=this.controls; var _5="controls on page:\n"; for(var i in _4){ _5+="key = "+i; _5+="controlName = "+_4[i].objtype; _5+="\n"; } return _5; },isKeyValid:function(_7){ if(typeof _7!="string"){ return false; } return /^([a-zA-Z0-9_$]+)$/.test(_7); }}).inits(function(){ vjo.Registry=new vjo.Registry(); }); vjo.type("vjo.dsf.Event").protos({constructs:function(_1,_2,_3){ this.src=_1; this.eventType=_2; this.nativeEvent=_3; }}); vjo.type("vjo.dsf.Element").props({get:function(_1){ var d=document,e=null; if(typeof (d.getElementById)!="undefined"){ e=d.getElementById(_1); } if(!e&&d.all){ e=d.all[_1]; } return e; },toggleHideShow:function(_3,_4){ var e=this.get(_3),s,d,u="undefined"; if(e){ s=e.style; d=s.display; if(typeof (_4)===u){ _4=(d===""||d==="block")?false:true; } e.bIsShown=_4; s.display=(_4)?"block":"none"; } },promoteToBody:function(_6){ var e=this.get(_6),b=document.body; if(e&&b&&e.parentNode){ e.parentNode.removeChild(e); b.appendChild(e); } },toggleVisibility:function(_8,_9){ var e=this.get(_8),v,s,u="undefined"; if(e){ s=e.style; v=s.visibility; if(typeof (_9)===u){ _9=(v==="")?false:true; } e.bIsVisible=_9; s.visibility=(_9)?"":"hidden"; } },enable:function(_b,_c){ var e=this.get(_b); if(e){ e.disabled=!_c; } },left:function(_e,_f){ return this.setLTWH(_e,_f,"Left"); },top:function(_10,_11){ return this.setLTWH(_10,_11,"Top"); },width:function(_12,_13){ return this.setLTWH(_12,_13,"Width"); },height:function(_14,_15){ return this.setLTWH(_14,_15,"Height"); },setLTWH:function(_16,_17,_18){ var e=this.get(_16); if(e){ if((_17!=null)&&!isNaN(parseInt(_17))){ e.style[_18.toLowerCase()]=_17; } return e["offset"+_18]; } },createElement:function(_1a){ return document.standardCreateElement?document.standardCreateElement(_1a):document.createElement(_1a); },containsElement:function(_1b,_1c){ while((_1c!=null)&&(_1c!=_1b)&&(_1c.parentNode!=null)){ _1c=_1c.parentNode; } return (_1c==_1b); },getElementByTagClass:function(_1d,tag,_1f){ var _20=_1d.getElementsByTagName(tag); for(var ndx=0;((ndx<_20.length)&&(_20[ndx].className.match(_1f)==null));ndx++){ } return (ndx<_20.length)?_20[ndx]:null; },getElementsByTagClass:function(_22,tag,_24){ var _25=new Array(); var _26=_22.getElementsByTagName(tag); for(var ndx=0;(ndx<_26.length);ndx++){ if(_26[ndx].className.match(_24)){ _25.push(_26[ndx]); } } return _25; }}); vjo.needs("vjo.dsf.Event"); vjo.needs("vjo.dsf.Element"); vjo.type("vjo.dsf.EventDispatcher").singleton().protos({constructs:function(){ this.eventHandlers={}; this.nativeEventHandlers={}; this.unboundElems=[]; this.fCustomLoad={}; },process:function(_1,_2){ var _3=this.eventHandlers[_1]; if(!_3){ return true; } var _4=_3[_2.eventType]; if(!_4){ return true; } var _5; for(var i=0;i<_4.length;i++){ var _7=_4[i].handle(_2); if(_7&&_7.objType=="dsf_Message"){ if(vjo.dsf.ServiceEngine){ vjo.dsf.ServiceEngine.handleRequest(_7); } if(_7.returnData===false){ _5=false; } }else{ if(_5!=false&&typeof _7!="undefined"){ _5=_7; } } } return _5; },register:function(id,_9,_a,_b){ if(!id||!_9||!_a){ return this; }else{ if(typeof _a.handle!="function"){ if(typeof _a=="function"){ var _c=_a,scp=_b||this; var _d={handle:function(){ return _c.apply(scp,arguments); }}; _a=_d; }else{ return this; } } } var _e=this.eventHandlers[id]; if(!_e){ _e=this.eventHandlers[id]={}; } if(!_e[_9]){ _e[_9]=[]; } var _f=_e[_9].length; _e[_9][_f]=_a; return _a; },unregister:function(id,_11){ if(!this.eventHandlers[id]){ return; } this.eventHandlers[id][_11]=[]; },registerNative:function(_12,_13,_14){ var id=(_12==window)?"body":_12.id; var _16=this.nativeEventHandlers[id]; if(!_16){ _16=this.nativeEventHandlers[id]={}; } if(!_16[_13]){ _16[_13]=[]; } var len=_16[_13].length; _16[_13][len]=_14; },add:function(id,_19,_1a,_1b){ if(!id||!_19||!_1a){ return this; } var b=this.isBound(id,_19),rv=this.register(id,_19,_1a,_1b); if(!b){ var b=this.bind(id,_19); if(b==null){ var len=this.unboundElems.length; this.unboundElems[len]=id; } } return rv; },addEventListener:function(_1e,_1f,_20,_21,_22){ var scp=_21||vjo.global; if(typeof _1e=="string"){ _1e=this.b.Element.get(_1e); } if(!_1e){ return false; } var _24=function(_25){ var ev=window.event||_25; var rv=_20.call(scp,ev); if(rv===false){ vjo.dsf.EventDispatcher.stopEvent(ev); } if(typeof rv!="undefined"){ return rv; } }; if(window.addEventListener){ _1e.addEventListener(_1f,_24,_22||false); this.registerNative(_1e,_1f,_24); return _24; }else{ if(window.attachEvent){ _1e.attachEvent("on"+_1f,_24); this.registerNative(_1e,_1f,_24); return _24; } } _1e["on"+_1f]=_20; return false; },bind:function(id,_29){ var _2a=this.b.Element.get(id); if(id=="body"||_2a==document.body){ _2a=document.body; if(_29=="load"||_29=="unload"){ var rv=this.addEventListener(window,_29,function(){ var oED=vjo.dsf.EventDispatcher; if(typeof oED.fCustomLoad[_29]=="function"){ oED.fCustomLoad[_29](); } oED[_29]("body"); oED.unregister("body",_29); oED.fCustomLoad={}; }); if(rv===false){ if(_2a.vjLoadSet){ return this; }else{ _2a.vjLoadSet=true; var _2d=window["on"+_29]||""; if(_2d){ this.fCustomLoad[_29]=_2d; } } } return this; } } if(_2a){ this.addEventListener(_2a,_29,function(_2e){ return vjo.dsf.EventDispatcher[_29](this,_2e||window.event); },_2a); return this; } return null; },reBind:function(){ var eH=this.eventHandlers,uE=this.unboundElems,len=uE.length,tmp=[]; for(var i=0;i0)?true:false; },hasBinding:function(id,_38){ var nEH=this.nativeEventHandlers; if(nEH[id]&&nEH[id][_38]){ var aH=nEH[id][_38],len=aH.length,rv=false; for(var i=0;i",a[i]); } return rv; }; String.prototype.has=function(_1){ return (this.indexOf(_1)!=-1); }; String.prototype.hasArg=function(_2){ var a=_2,rv=false; if(typeof (a)=="string"){ rv=this.has(a); }else{ var aL=a.length; for(var j=0;j8){ _d.maxage=_10.substring(_10.length-8); } } _d.value=_e; if(_d.mode==this.sCOMPAT){ _d.value=_d.rawcookievalue; } return _d; },readMultiLineCookie:function(_11,_12){ if(!_11||!_12){ return ""; } var val,r=""; var _14=this.aConversionMap[_11]; if(_14){ val=this.readCookieObj(_14[0],_14[1]).value||""; } if(val){ r=this.getCookielet(_11,_12,val)||""; } return (typeof (r)!="undefined")?r:""; },writeCookie:function(_15,_16,_17){ var _18=this.aConversionMap[_15]; if(_18){ this.writeCookielet(_18[0],_18[1],_16,_17); return; } var _19=this.getFormat(_15); if(_16&&_19.escapedValue){ _16=encodeURIComponent(_16); } this.writeRawCookie(_15,_16,_17); },writeRawCookie:function(_1a,_1b,_1c){ if(_1a&&(_1b!==undefined)){ if((isNaN(_1b)&&_1b.length<4000)||(_1b+"").length<4000){ if(typeof _1c=="number"){ _1c=this.getExpDate(_1c); } var _1d=_1c?new Date(_1c):new Date(this.getExpDate(730)); var _1e=this.getFormat(_1a); var _1f=this.sCookieDomain; var dd=document.domain; if(!dd.has(_1f)){ var _21=dd.indexOf(".ebay."); if(_21>0){ this.sCookieDomain=dd.substring(_21); } } if(document.cookie){ document.cookie=_1a+"="+(_1b||"")+((_1c||_1e.bUseExp)?"; expires="+_1d.toGMTString():"")+"; domain="+this.sCookieDomain+"; path="+this.sPath; } } } },writeCookieEx:function(_22,_23,_24){ this.writeCookie(_22,_23,this.getExpDate(_24)); },writeCookielet:function(_25,_26,_27,_28,_29){ if(_25&&_26){ this.update(); var _2a=this.getFormat(_25); if(_2a.bUseExp&&_27){ if(typeof _28=="number"){ _28=this.getExpDate(_28); } var _2b=_28?new Date(_28):new Date(this.getExpDate(730)); var _2c=Date.UTC(_2b.getUTCFullYear(),_2b.getUTCMonth(),_2b.getUTCDate()); _2c=Math.floor(_2c/1000); _27+=_2c.dec2Hex(); } var val=this.createCookieValue(_25,_26,_27); this.writeRawCookie(_25,val,_29); } },writeMultiLineCookie:function(_2e,_2f,_30,_31,_32){ this.update(); var val=this.createCookieValue(_2e,_2f,_30); if(val){ var _34=this.aConversionMap[_2e]; if(_34){ this.writeCookielet(_34[0],_34[1],val,_31,_32); } } },getBitFlag:function(_35,_36){ _35=parseInt(_35,10); var b=_35.toString(2),r=_35?b.charAt(b.length-_36-1):""; return (r=="1")?1:0; },setBitFlag:function(_38,_39,_3a){ var b="",p,i,e,l; _38=parseInt(_38,10); if(_38){ b=_38.toString(2); } l=b.length; if(l<_39){ e=_39-l; for(i=0;i<=e;i++){ b="0"+b; } } p=b.length-_39-1; return parseInt(b.substring(0,p)+_3a+b.substring(p+1),2); },createCookieValue:function(_3c,_3d,_3e){ var _3f=this.aConversionMap[_3c],format=this.getFormat(_3c),mode=this.getMode(_3c),val; if(_3f&&(mode==this.sSTRICT||mode==this.sCONVER)){ val=this.readCookieObj(_3f[0],_3f[1]).value||""; }else{ val=this.aCookies[_3c]||""; } if(format){ var _40=this.getCookieletArray(val,format); _40[_3d]=_3e; var str=""; for(var i in _40){ if(_40[i]){ str+=i+format.NAME_VALUE_DELIMITER+_40[i]+format.COOKIELET_DELIMITER; } } if(str&&format.startDelim){ str=format.startDelim+str; } val=str; if(format.escapedValue){ val=encodeURIComponent(val); } } return val; },update:function(){ var aC=document.cookie.split("; "); this.aCookies={}; for(var i=0;i0){ rv[a[i].substring(0,idx)]=a[i].substring(idx+1); } } return rv; },getExpDate:function(_53){ var _54; if(typeof _53=="number"&&_53>=0){ var d=new Date(); d.setTime(d.getTime()+(_53*24*60*60*1000)); _54=d.toGMTString(); } return _54; },getMode:function(_56){ var h=this.readCookieObj(this.sModesCookie,this.sModesCookielet).value,b; if(!(_56 in this.aConversionMap)){ return null; } if(!h){ return ""; } if(h===0){ return this.sSTRICT; } if(h&&h!="0"){ if(h.has(".")){ var a=h.split("."); for(i=0;i0){ df=df.substring(0,f); } for(i in this.aHostCountryDomain){ if(this.compareHost(this.aHostCountryDomain[i],df)){ rv=this.aHostCountryDomain[i]; _8.writeCookielet("ebay","ecs",this.aHostCoutryId[i]); break; } } } } return rv.toLowerCase(); },compareHost:function(_a,_b){ var _c=_a.toLowerCase(),sh2=_b.toLowerCase(); if(_c.indexOf(".")==0){ _c=_c.substring(1); } if(sh2.indexOf(".")==0){ sh2=sh2.substring(1); } _c=_c.replace("/",""); sh2=sh2.replace("/",""); return (_c==sh2); },hideOnParams:function(){ if(this.aHideOnParams){ var _d=this.aHideOnParams; var _e=_d.length; for(var i=0;i<_e;i++){ if(document.location.href.has(_d[i])){ return true; } } } return false; },init:function(){ if(this.hideOnParams()){ return; } var oD=document,oCJ=vjo.dsf.cookie.VjCookieJar,sh="",l=this.sLayerId,E=vjo.dsf.document.Element; if(sh=this.getHost()){ var oL=E.get(l),ct=oCJ.readCookie("dp1","exc")||"",sc="",lh=oD.location.host; ct=ct.split(".")[2]; lh=lh.substring(lh.indexOf(".")+1); if(ct&&ct!="0"&&this.compareHost(lh,sh)){ sc=this.sCartCountText.replaceTokensEx("##n##",ct); } if(oL){ oL.innerHTML=this.sHtmlProvider.replaceTokensEx("##n##",sh,sc); E.toggleHideShow(l,true); var oCL=E.get(this.sCloseAnchorId); if(oCL){ oCL.onclick=vjo.dsf.utils.Object.hitch(this,"close"); } } } },getHostById:function(_13){ var ids=this.aHostCoutryId,i,ind=-1,o=""; for(i=0;i"); dw("\tFunction vbCheckActiveXControl (pActXName)"); dw("\t\taX = false"); dw("\t\ton error resume next"); dw("\t\taX = IsObject(CreateObject(pActXName))"); dw("\t\tvbCheckActiveXControl = aX"); dw("End Function"); dw(""); } },isLibLoaded:function(_4){ var oC=vjo.dsf.client.Browser; return oC.bActiveXSupported&&vbCheckActiveXControl(_4); }}).inits(function(){ vjo.dsf.client.ActiveX.init(); }); vjo.needs("vjo.dsf.client.ActiveX"); vjo.type("vjo.darwin.core.ebaytoolbar.VjEbayToolbarDetect").props({isEnabled:function(){ var V1="eBayToolbar.Helper",V2="eBayToolbarCommLib.IWebEvent.1"; with(this){ var _2=vjo.dsf.client.ActiveX; return (_2.isLibLoaded(V1)||_2.isLibLoaded(V2)); } }}); vjo.needs("vjo.dsf.cookie.VjCookieJar"); vjo.needs("vjo.dsf.typeextensions.string.Comparison"); vjo.needs("vjo.dsf.client.Browser"); vjo.needs("vjo.dsf.document.Element"); vjo.needs("vjo.dsf.utils.Object"); vjo.needs("vjo.darwin.core.ebaytoolbar.VjEbayToolbarDetect"); vjo.type("vjo.darwin.core.bta.BuyerTransactionAlert").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; } },setValue:function(_d,_e){ var oL=this.oL; if(oL){ if(_d.is("")&&!oL.ctrld){ return; } if(_e){ if(vjo.dsf.client.Browser.bFirefox){ oL.textContent=_d; }else{ oL.innerText=_d; } }else{ oL.innerHTML=_d; } 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 _18=cfg[at-1],imgSrv=this.sImgServer; var _19=imgSrv+"../s.gif"; var _1a="|"; _1a+=""; var url=this.sViewItemUrl+"&item="+ii; _1a+=""+_18[1]+""; this.setValue(_1a); this.sLastCookieletValue=c; } this.fireRefreshEvent(); },fireRefreshEvent:function(_1c){ if(!_1c){ _1c=this.iPollingInterval; } window.setTimeout(vjo.dsf.utils.Object.hitch(this,this.onRefresh),_1c*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.fireRefreshEvent(this.iHitTimeout); }else{ this.setValue(""); oCJ.writeCookielet("ebay","a2p","1111111101111111111."); } }}); vjo.type("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]; }}); vjo.needs("vjo.dsf.client.Browser"); vjo.type("vjo.dsf.document.Shim").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; } },remove:function(_5,_6){ if(this.check()){ if(_6&&_6.parentNode){ _6.parentNode.removeChild(_6); } } },check:function(){ var B=vjo.dsf.client.Browser; return (B.bIE||B.bFirefox); }}); vjo.type("vjo.darwin.core.dynamicmenu.Show").satisfies("vjo.dsf.common.IJsHandler").protos({constructs:function(_1){ this.id=_1; },handle:function(_2){ vjo.Registry.get(this.id).setup(); }}); vjo.type("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(); }}); vjo.type("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(); }}); vjo.needs("vjo.dsf.document.Element"); vjo.needs("vjo.dsf.document.Positioning"); vjo.needs("vjo.dsf.document.Shim"); vjo.needs("vjo.dsf.utils.Object"); vjo.needs("vjo.dsf.client.Browser"); vjo.needs("vjo.darwin.core.dynamicmenu.Show"); vjo.needs("vjo.darwin.core.dynamicmenu.Hide"); vjo.needs("vjo.darwin.core.dynamicmenu.Stay"); vjo.type("vjo.darwin.core.dynamicmenu.DynamicMenu").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; if(this.sAnchorId=="Help"){ this.iLeftPadding-=5; } this.oCobrand=null; },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; 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; iT=P.getOffsetTop(oA)+(oA.offsetHeight)+iTopPadding; 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 _18=GetContainerDiv(),cw,bRA=false; if(sAnchorId=="Help"){ bRA=true; } if(_18&&B.bIE&&!lh.hasAny("community","education")){ cw=_18.offsetWidth; 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.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(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(lh.hasAny("m6n.")){ if(B.bFirefox){ iAL=P.getOffsetLeft(oA); }else{ iAL+=15; } } } } } } } } } } var _1a=E.get("2tabPopularProducts"); if(_1a&&B.bIE){ iAL=P.getOffsetLeft(oA); } if((((iWW-iAL-iLW)<=10)&&iWW>iLW)||(iWW<(vjo.dsf.document.Positioning.getOffsetLeft(oA)+iAW+iLW))||bRA||bE){ iL=iAL+iAW-iLW; }else{ iL=iAL; } 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.")&&lh.hasAny("shop.","local.","catalog.")&&B.bIE){ iL+=15; iT-=2; } } } } } } } if(bF){ oL.style.left=(iL>=0)?(iL-1)+"px":"14px"; oL.style.top=(iT)+"px"; 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||B.bFirefox){ 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(vjo.dsf.utils.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){ vjo.dsf.document.Shim.remove(E.get(sContainerLayerId),iframeShim); } } },clear:function(){ clearTimeout(this.iMouseOutTimer); },sortByValue:function(_1e,_1f){ if(_1e.value.has("Everything")){ return 1; }else{ if(_1f.value.has("Everything")){ return -1; }else{ return _1e.value<_1f.value?-1:(_1e.value>_1f.value?1:0); } } },getMenuHtml:function(_20){ with(this){ var i,j,c,n,h,ipc,html,img="",si,sTemp=".paradise.qa.ebay.com",sTemp2=".qa.ebay.com",u,ff,ll,sTemp3=".no-pool-name.qa.ebay.com"; var E=vjo.dsf.document.Element; var lh=window.location.href; si="
"; img=si+" id='"+sContainerLayerId+"-spacer'>"; } n=i+(j)*ipc; c=items[n]; if(c){ if(typeof (c.url)!="undefined"){ u=sDomain?c.url.replace(sTemp,sDomain):c.url; u=sDomain?c.url.replace(sTemp2,sDomain):c.url; u=sDomain?c.url.replace(sTemp3,sDomain):c.url; u=cobrandUrl(u); h+=""; h+=c.value; h+=""; }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+=" "; } h+=""; } h+=""; } h+=""; html=h; if(sTemplate){ html=sTemplate.replace("##1##",h).replace("##2##",img); } return html; } },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; if(e.offsetParent){ l=e.offsetLeft; while(e=e.offsetParent){ if(!e.id.toLowerCase().has("maincontent")&&!e.className.has("pagecontainer")){ l+=e.offsetLeft; } if(((e.className.is("pnav")||e.innerHTML.has("snav"))&&ex)&&e.offsetLeft!=0&&(!lh.hasAny("community","sitemap","/help/","/education/","blogs","feedback","my"))){ return l; }else{ if((e.className.is("pnav")||e.innerHTML.has("snav"))&&e.offsetLeft!=0&&oCl.bFirefox&&lh.has(".hk")&&(!lh.has("community")&&!bH)){ return l; }else{ if((e.className.is("pnav")||e.innerHTML.has("snav"))&&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=0){ _b=_b.substring(_a+1); _c=_b; _a=_b.indexOf("&"); if(_a>=0){ _c=_b.substring(0,_a); } argName=_c.substring(0,_c.indexOf("=")); if(argName==_9){ return _c; } } return null; }}); vjo.needs("vjo.dsf.utils.URL"); vjo.needs("vjo.dsf.typeextensions.string.Comparison"); vjo.type("vjo.darwin.tracking.enabler.TrackingModuleEnabler").satisfies("vjo.dsf.common.IJsHandler").protos({constructs:function(_1,_2){ this.sCid=_1; this.sCidParms=_2; },rewriteUrl:function(_3){ if(_3.nativeEvent==null||_3.nativeEvent==undefined){ return; } var _4=_3.nativeEvent.srcElement||_3.nativeEvent.target; if(_4==null||_4==undefined){ return; } _4=this.getAnchor(_4); if(this.sCidParms&&_4&&!_4.href.has("javascript:")){ _4.href=vjo.dsf.utils.URL.addArg(_4.href,this.sCid,this.sCidParms); } },getAnchor:function(_5){ var e=_5; if(e&&e.tagName){ if(!e.tagName.is("A")){ e=this.getAnchor(e.parentNode); } return e; } },handle:function(_7){ this.rewriteUrl(_7); }}); vjo.type("vjo.dsf.SvcConfig").protos({constructs:function(_1,_2){ this.objType="dsf_SvcConfig"; this.url=_2; this.method=_1; this.reqtMarshalling="raw"; this.respMarshalling="raw"; this.async=true; this.timeout=0; }}); vjo.type("vjo.dsf.Message").protos({constructs:function(_1){ this.objType="dsf_Message"; this.svcId=_1; this.request; this.response; this.rawRequest=""; this.clientContext={}; this.trspType="InProc"; this.status; this.svcConfig; this.returnData=true; this.trace=""; }}); function FooterTrk() { return { handle : function (event) { (function(){ var _d = vjo.dsf.EventDispatcher; var _r = vjo.Registry; _r.put('FooterTrackingCompSpecGenerator_0', new vjo.darwin.tracking.enabler.TrackingModuleEnabler("_trksid", "m40")); _d.add('glbfooter','click',_r.get('FooterTrackingCompSpecGenerator_0'));})(); } }; } function get_Buy_menu(){ return {"items":[{"value":"Browse Categories"},{"value":"Help with bidding & buying"},{"value":"Buyer Tools"},{"value":"Reviews & Guides"}]}; } function get_Sell_menu(){ return {"items":[{"value":"Sell an item"},{"value":"Getting started"},{"value":"What to sell"},{"value":"Seller tools & eBay Stores"},{"value":"Shipping center"}]}; } function get_MyEbay_menu(){ return {"items":[{"value":"Summary"},{"value":"Watching"},{"value":"Bidding"},{"value":"Selling"},{"value":"Favorites"}]}; } function get_Community_menu(){ return {"items":[{"value":"News"},{"value":"Answer Center"},{"value":"Workshops/Discussion Forums"},{"value":"Neighborhoods"},{"value":"Groups"}]}; } function get_Help_menu(){ return {"items":[{"value":"Help Topics"},{"value":"Learning Center"},{"value":"Security & Resolution Center"},{"value":"eBay University"},{"value":"Contact Us"}]}; } 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')); })(); } }; } 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.needs("vjo.dsf.document.Element"); vjo.type("vjo.dsf.document.Select").props({addOption:function(_1,_2,_3){ var e=_1; if(e){ var o=new Option(_3,_2,false,false),os; os=e.options; os[os.length]=o; } }}); vjo.needs("vjo.dsf.document.Element"); vjo.needs("vjo.dsf.document.Select"); vjo.type("vjo.darwin.core.dynamicdropdown.DynamicDropdown").protos({constructs:function(_1,_2,_3,_4){ this.sDropdownId=_1; this.sHandler=_2; this.sCollName=_3; this.iCondNo=_4; },fill:function(){ var e,h,d,col,i,l,c,D=vjo.dsf.document,E=D.Element,S=D.Select; with(this){ e=E.get(sDropdownId); if(e&&typeof (e.length)!="undefined"){ e=e[0]; } if(e&&e.options){ if(iCondNo==-1||e.options.length<=iCondNo){ h=window[sHandler]; if(!h){ return; } d=h(),col=d[sCollName],l=col.length; for(i=0;i0){ var _a=_9-_6+_7; if(_a<0){ return true; } } } return false; },getClientOffset:function(_b){ var _c; var _d=vjo.dsf.cookie.VjCookieJar.readCookie("ebay","cos"); if(_d!==null&&_d.length>0){ _c=parseInt(_d,16)*1000; }else{ _c=1800000; } return _c; },IsValidRate:function(_e){ var R=parseInt(_e,10); return (R>0&&R<100)?R:null; },GetRate:function(cv){ var ar=cv.split(":"); return ar.length>3?ar[2]:null; }}); vjo.needs("vjo.dsf.document.Element"); vjo.needs("vjo.dsf.EventDispatcher"); vjo.type("vjo.darwin.core.greetings.Sandbox").props({init:function(){ var l=vjo.dsf.document.Element.get("registerLink"),s="https://scgi.sandbox.ebay.com/ws/eBayISAPI.dll?RegisterEnterInfo",t="https://developer.ebay.com/DevZone/sandboxuser/Default.aspx"; if(l){ if(l.href==s){ l.href=t; } } }}).inits(function(){ vjo.dsf.EventDispatcher.addEventListener(window,"load",function(){ vjo.darwin.core.greetings.Sandbox.init(); }); }); vjo.needs("vjo.dsf.utils.URL"); vjo.needs("vjo.darwin.core.greetings.Sandbox"); vjo.type("vjo.darwin.core.greetings.VjGreetingsServer").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)); } }}); var _oGlobalNavRTMInfo={}; _oGlobalNavRTMInfo.aRTMPlacementData=[]; String.prototype.decodeBase64=function(){ var rv=this,len=rv.length,ret="",i=0; if(len===0){ return ret; } var _2,chr2,chr3=""; var _3,enc2,enc3,enc4=""; var _4="ABCDEFGHIJKLMNOPQRSTUVWXYZ"+"abcdefghijklmnopqrstuvwxyz"+"0123456789+/=*"; var _5=new RegExp("[^A-Za-z0-9+/=*]"); if(_5.exec(rv)){ return; } do{ _3=_4.indexOf(rv.charAt(i++)); enc2=_4.indexOf(rv.charAt(i++)); enc3=_4.indexOf(rv.charAt(i++)); enc4=_4.indexOf(rv.charAt(i++)); _2=(_3<<2)|(enc2>>4); chr2=((enc2&15)<<4)|(enc3>>2); chr3=((enc3&3)<<6)|enc4; ret+=String.fromCharCode(_2); if(!(enc3>=64)){ ret+=String.fromCharCode(chr2); } if(!(enc4>=64)){ ret+=String.fromCharCode(chr3); } _2=chr2=chr3=_3=enc2=enc3=enc4=""; }while(i191)&&(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.needs("vjo.dsf.typeextensions.string.Decode"); vjo.needs("vjo.dsf.cookie.VjCookieJar"); vjo.needs("vjo.dsf.utils.Object"); vjo.type("vjo.darwin.core.ebayheader.rtm.GlobalHeaderRtmCall").props({iTimer:null,submitRTMCall:function(_1){ var un="undefined"; if(!(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(_1&&_oGlobalNavRTMInfo.aRTMPlacementData.length>0){ document.write(""+""); this.iTimer=window.setInterval(vjo.dsf.utils.Object.hitch(this,"init"),1); } }else{ if(_oGlobalNavRTMInfo.aRTMPlacementData.length>0){ var lh=window.location.href; if(lh.hasAny("shop.","icatalog.")){ this.init(); } } } },getUid:function(){ var _4=vjo.dsf.cookie.VjCookieJar,u1p=_4.readCookie("dp1","u1p"),u1pDecoded; if(u1p){ u1pDecoded=u1p.decodeBase64().decodeUTF8(); } return u1pDecoded; },getGuid:function(){ var _5=vjo.dsf.cookie.VjCookieJar,guid=_5.readCookie("ebay","sgj"); return guid; },hasUid:function(_6){ if(_6){ 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 _7=_oGlobalNavRTMInfo.aRTMPlacementData,data; var _8=[],htmlIds=[],heights=[],pids=[],dblclkUrls=[],defaultUrls=[],url; for(i=0;i<_7.length;i++){ data=_7[i]; _8[i]=data.maxWidth; htmlIds[i]=data.htmlId; heights[i]=data.maxHeight; pids[i]=data.pid; dblclkUrls[i]=data.dblclkUrl; defaultUrls[i]=data.defaultUrl; 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(_7.length>0){ var _9=new vjo.darwin.core.rtm.RTMInit({"url":url,"widths":_8,"htmlIds":htmlIds,"heights":heights,"pids":pids,"dblclkUrls":dblclkUrls,"defaultUrls":defaultUrls}); _9.invoke({}); } }}); vjo.needs("vjo.dsf.cookie.VjCookieJar"); vjo.type("vjo.darwin.tracking.rover.Rover").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){ var _4=parseInt(_3.maxage,16)*1000; if(_4>0){ var _5=_4-_1+_2; var _6=15552000000; if(_5>_6||_5<0){ vjo.dsf.cookie.VjCookieJar.writeCookielet("npii","tpim",""); } } } },getClientOffset:function(_7){ var _8; var _9=vjo.dsf.cookie.VjCookieJar.readCookie("ebay","cos"); if(_9!==null&&_9.length>0){ _8=parseInt(_9,16)*1000; }else{ if(typeof (svrGMT)!=="undefined"){ _8=_7-svrGMT; var _a=Math.round(_8/1000); if(!isNaN(_a)){ vjo.dsf.cookie.VjCookieJar.writeCookielet("ebay","cos",_a.toString(16)); } } } if(isNaN(_a)){ _8=1800000; } return _8; }}); /* compspec addJsCompRegistration*/ /* end comp spec*/ vjo.dsf.EventDispatcher.add('body','load', new FooterTrk()); /* compspec addJsCompRegistration*/ (function () { var _r = vjo.Registry; function _c0 (psAnchorId,psContainerLayerId,piLeftPadding,psJSONDataHandler) { return new vjo.darwin.core.dynamicmenu.DynamicMenu(psAnchorId,psContainerLayerId,"dynMenuCtr",75,250,900,800,1,1,1,piLeftPadding,1,0,psJSONDataHandler,"items","","hovered","","",""); } _r.put('BuyMenu', _c0("Buy","Buy-menu",5,"get_Buy_menu")); _r.put('SellMenu', _c0("Sell","Sell-menu",1,"get_Sell_menu")); _r.put('MyEbayMenu', _c0("MyEbay","MyEbay-menu",1,"get_MyEbay_menu")); _r.put('CommunityMenu', _c0("Community","Community-menu",1,"get_Community_menu")); _r.put('HelpMenu', _c0("Help","Help-menu",1,"get_Help_menu")); })(); /* end comp spec*/ vjo.dsf.EventDispatcher.add('body','load', new NavMenuBind()); /* compspec addJsCompRegistration*/ (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, 7, 0, "getBrowseCategoriesData", "items", "100%", "hovered", "", "", ".ebay.com")); })(); /* end comp spec*/ vjo.dsf.EventDispatcher.add('body','load', new SecNavMenuBind()); /* compspec addJsCompRegistration*/ (function () { var _r = vjo.Registry; _r.put('category0', new vjo.darwin.core.dynamicdropdown.DynamicDropdown("category0", "getBrowseCategoriesData", "items", 1)); })(); /* end comp spec*/ /* compspec addJsCompRegistration*/ /* end comp spec*/ vjo.dsf.EventDispatcher.add('body','load', new HeaderTrk()); // en_US/e563/GlobalNavVjo23_Ebay_e5636525367_1_en_US // b=6525367