
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.dsf.typeextensions.string.Comparison").endType();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;j<aL&&!rv;j++){rv=this.has(a[j]);}}
return rv;};String.prototype.hasAny=function(){var a=arguments,l=a.length,rv=false;for(var i=0;i<l&&!rv;i++){rv=this.hasArg(a[i]);}
return rv;};String.prototype.hasAll=function(){var a=arguments,l=a.length;for(var i=0;i<l;i++){if(!this.hasArg(a[i])){return false;}}
return true;};String.prototype.is=function(s){return(this==s);};String.prototype.isAny=function(){var a=arguments,l=a.length,rv=false,aL;for(var i=0;i<l&&!rv;i++){if(typeof(a[i])=="string"){rv=(this==a[i]);}else{aL=a[i].length;for(var j=0;j<aL&&!rv;j++){rv=(this==a[i][j]);}}}
return rv;};

vjo.ctype("vjo.darwin.core.ebaytoolbar.VjEbayToolbarDetect").needs(["vjo.dsf.client.ActiveX","vjo.dsf.utils.Bit","vjo.dsf.cookie.VjCookieJar"]).props({isEnabled:function(){return false;},rw:function(_1,_2){return;}}).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.dsf.utils.Object","vjo.darwin.core.ebaytoolbar.VjEbayToolbarDetect"]).protos({sId:null,oL: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;}},isEnabled:function(){var V1="eBayToolbar.Helper",V2="eBayToolbarCommLib.IWebEvent.1";with(this){var _f=vj$.ActiveX;return(_f.isLibLoaded(V1)||_f.isLibLoaded(V2));}},setValue:function(_10,_11){var oL=this.oL;if(oL){if(_10.is("")&&!oL.ctrld){return;}
if(_11){if(vjo.dsf.client.Browser.bFirefox){oL.textContent=_10;}else{oL.innerText=_10;}}else{oL.innerHTML=_10;}
oL.ctrld=1;}},onRefreshHdl:function(){var t=this;return function(){t.onRefresh();};},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.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 _1c=cfg[at-1],imgSrv=this.sImgServer;var _1d=imgSrv+"s.gif";var _1e="<img src=\""+_1d+"\" alt=\"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">|<img src=\""+_1d+"\" alt=\"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">";_1e+="<img src=\""+imgSrv+_1c[2]+"?t\" alt=\"\" style=\"vertical-align:middle\"><img src=\""+_1d+"\" alt=\"\" width=\"5\" height=\"16\" style=\"vertical-align:middle\">";var url=this.sViewItemUrl+"&item="+ii;_1e+="<a href=\""+url+"&ssPageName="+_1c[0]+"\">"+_1c[1]+"</a>";this.setValue(_1e);this.sLastCookieletValue=c;}
this.fireRefreshEvent();},fireRefreshEvent:function(_20){if(!_20){_20=this.iPollingInterval;}
window.setTimeout(vjo.dsf.utils.Object.hitch(this,this.onRefresh),_20*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\" alt=\"\">");this.fireRefreshEvent(this.iHitTimeout);}else{this.setValue("");oCJ.writeCookielet("ebay","a2p","1111111101111111111.");}}}).endType();

vjo.ctype("vjo.dsf.document.Shim").needs("vjo.dsf.client.Browser").props({add:function(_1,_2,_3){var f,p="px",w,h,s;if(this.check()){w=_1.offsetWidth;h=_1.offsetHeight;w+=_2?_2:0;h+=_3?_3:0;f=document.createElement("IFRAME");s=f.style;s.width=w+p;s.height=h+p;s.filter="chroma(color='white')";f.frameBorder=0;s.position="absolute";s.left="0"+p;s.top="0"+p;s.zIndex="-1";s.filter="Alpha(Opacity=\"0\")";if(document.location.protocol=="https:"){f.src="https://securepics.ebaystatic.com/aw/pics/s.gif";}
_1.appendChild(f);return f;}
return null;},remove:function(_6,_7){if(this.check()){if(_7&&_7.parentNode){_7.parentNode.removeChild(_7);}}},check:function(){var B=vjo.dsf.client.Browser;return(B.bIE||B.bFirefox);}}).endType();

vjo.itype("vjo.dsf.common.IJsHandler").protos({handle:function(_1){}}).endType();

vjo.ctype("vjo.darwin.core.dynamicmenu.Show").needs("vjo.dsf.utils.JsLoader").satisfies("vjo.dsf.common.IJsHandler").protos({constructs:function(_1){this.id=_1;},handle:function(_2){var _3=vjo.Registry.get(this.id),url=_3.getHandlerSource(),handler=_3.getHandler();if(url!==null&&typeof(window[handler])=="undefined"){this.vj$.JsLoader.load(url,_3.setup,_3);}else{_3.setup();}}}).endType();

vjo.ctype("vjo.darwin.core.dynamicmenu.Hide").satisfies("vjo.dsf.common.IJsHandler").protos({constructs:function(_1){this.id=_1;},handle:function(_2){vjo.Registry.get(this.id).hide();}}).endType();

vjo.ctype("vjo.darwin.core.dynamicmenu.Stay").satisfies("vjo.dsf.common.IJsHandler").protos({constructs:function(_1){this.id=_1;},handle:function(_2){vjo.Registry.get(this.id).clear();}}).endType();

vjo.ctype("vjo.darwin.core.dynamicmenu.DynamicMenu").needs(["vjo.dsf.Element","vjo.dsf.document.Positioning","vjo.dsf.document.Shim","vjo.dsf.utils.Object","vjo.dsf.client.Browser","vjo.darwin.core.dynamicmenu.Show","vjo.darwin.core.dynamicmenu.Hide","vjo.darwin.core.dynamicmenu.Stay"]).protos({iMouseOutTimer:0,iMouseOverTimer:0,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,oCobrand:null,constructs:function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f,_10,_11,_12,_13,_14){this.iLeftPadding=_b;this.iTopPadding=_c;this.iRightPadding=_d;this.sAnchorId=_1;this.sContainerLayerId=_2;this.sContentLayerId=_3;this.iMouseOutDelay=_4;this.iMouseOverDelay=_5;this.iHighResDocWidth=_6;this.iLowResDocWidth=_7;this.iHighResColumns=_8;this.iMediumResColumns=_9;this.iLowResColumns=_a;this.sHandler=_e;this.sCollName=_f;this.sWidth=_10;this.sAnchorMouseOverClass=_11;this.sAnchorMouseOutClass=_12;this.iframeShim=null;this.sHTML=null;this.oAnchor=null;this.sTemplate=null;this.sAnchorText=_13;this.sDomain=_14;this.sHandlerSource=null;if(this.sAnchorId=="Help"){this.iLeftPadding-=5;}
this.oCobrand=null;},setHandlerSource:function(url){if(url){this.sHandlerSource=url;}},getHandlerSource:function(){return this.sHandlerSource;},getHandler:function(){return this.sHandler;},setup:function(){var oL,oA,iL,iT,iWW,noc,iAL,iAW,iLW,op,oSI,bF=false,t,lh=window.location.href;var vd=vjo.dsf,D=vd.document,E=vd.Element,P=D.Positioning,S=D.Shim,B=vd.client.Browser;var O=vd.utils.Object;var _24=0;var _25=false;with(this){clear();if(sTemplate==null){t=E.get(sContentLayerId);if(t){sTemplate=t.innerHTML;}}
oL=E.get(sContainerLayerId);if(oL){op=oL.offsetParent;}
oA=E.get(sAnchorId);iAL=DynamicMenuGetOffsetLeft(oA);iAW=oA.offsetWidth;if(oA.parentNode&&oA.parentNode.id&&oA.parentNode.id.has("item")){oA=oA.parentNode;}
iT=P.getOffsetTop(oA)+(oA.offsetHeight);iWW=P.getClientWidth();if(typeof(iWW)=="undefined"){iWW=800;}
if(iWW>iHighResDocWidth){noc=iHighResColumns;}else{if(iWW>iLowResDocWidth&&iWW<=iHighResDocWidth){noc=iMediumResColumns;}else{if(iWW<=iLowResDocWidth){noc=iLowResColumns;}else{noc=5;}}}
if(sHTML==null){bF=true;if(B.bFirefox&&!lh.has("motors.")&&!lh.hasAny("shop.","local.","catalog.")){E.promoteToBody(sContainerLayerId);}
sHTML=getMenuHtml(noc);if(sHTML==null){return;}
oL.innerHTML=sHTML;}
iLW=oL.offsetWidth;var _26=GetContainerDiv(),cw,bRA=false;if(sAnchorId=="Help"){bRA=true;}
if(_26&&B.bIE&&!lh.hasAny("community","education")){cw=_26.offsetWidth+P.getOffsetLeft(_26);if((iAL+iLW)>cw){bRA=true;}}
var bE=(sAnchorId=="EbxBrowseCategories")?true:false;if(lh.hasAny("securitycenter","payments.")&&lh.has(".hk")){iAL=P.getOffsetLeft(oA);}else{if(lh.hasAny("securitycentre","contact_ebay")&&lh.has(".au")){iAL=P.getOffsetLeft(oA);}else{if((typeof(pageName)!="undefined")?pageName.has("CCHP_"):false){iAL=P.getOffsetLeft(oA);}else{if(lh.hasAll("pages.","ebaymotors")){}else{if(lh.hasAny("/buy/")){iAL=P.getOffsetLeft(oA);}else{if(lh.hasAny("pages.",".html",".shtml","cgi.","tools.ebay.de","neighborhoods.","themenwelten.","neighbourhoods.","motors.ebay.co.uk","motors.uk.","ebaymotors.at","motors.at.","motors.ebay.de","motors.de.")){iAL=P.getOffsetLeft(oA);}else{if((lh.hasAny("annonces.")||lh.hasAny("www.ebay.fr")||lh.hasAny("www.fr"))&&!(B.bIE&&B.iVer==6)){iAL=P.getOffsetLeft(oA);}else{if(typeof(bCenterAlignedPage)!="undefined"&&bCenterAlignedPage){iAL=P.getOffsetLeft(oA);}else{if(bE&&((typeof(pageName)!="undefined")?pageName.has("KP_HomePage"):false)){iAL=P.getOffsetLeft(oA);}else{if(sAnchorId=="StoreBrowseCats"&&lh.has("stores.")){iAL=P.getOffsetLeft(oA);}else{if(typeof(pageName)!="undefined"&&pageName=="HomePagePortal"){iAL=P.getOffsetLeft(oA);}}}}}}}}}}}
var _28=E.get("2tabPopularProducts");if(_28&&B.bIE){iAL=P.getOffsetLeft(oA);}
var _29=false;if(lh.hasAny(".fr.","ebay.fr")&&sAnchorId=="Community"){_29=true;}
if(!_29&&((((iWW-iAL-iLW)<=10)&&iWW>iLW)||(iWW<(P.getOffsetLeft(oA)+iAW+iLW))||bRA||bE)){_24=iAW-iLW;iL=iAL+iAW-iLW;}else{iL=iAL;}
if(_29){iL-=5;}
if(sAnchorId=="Buy"||sAnchorId=="BrowseCategories"){_25=true;}
if(sAnchorId=="Buy"||sAnchorId=="Sell"||sAnchorId=="MyEbay"||sAnchorId=="OV"){iL=iAL;}
iL+=iLeftPadding;if(lh.has("securitycentre")&&lh.has(".sg")&&B.bIE){iL+=10;}else{if(lh.has("feedback")&&lh.has(".hk")&&B.bFirefox){iL+=7;}else{if(lh.has("my.")&&B.bFirefox){iL-=7;}else{if(lh.has("myworld")&&B.bIE){iL+=10;}else{if(bE){var sn=E.get("dynamicmenu-snavW");iT=P.getOffsetTop(sn)+(sn.offsetHeight)+iTopPadding;if(B.bFirefox){iL+=2;}
if(B.bIE&&((typeof(pageName)!="undefined")?pageName.has("KP_HomePage"):false)){iL-=9;}}else{if(lh.has("search.")&&sAnchorId=="BrowseCategories"&&B.bIE&&B.iVer==7){iL+=22;iT-=2;}else{if(!lh.has("motors.shop.")&&B.bIE){if(lh.has("shop.")){if(sAnchorId=="BrowseCategories"){iL+=5;}}else{if(lh.hasAny("catalog.")){iL+=15;iT-=2;}}}else{if(lh.has("hub.motors.")&&B.bIE&&B.iVer>6){iL-=8;}}}}}}}}
if(bF){oL.style.left=(iL>=0)?(iL-1)+"px":"14px";oL.style.top=(iT)+"px";if((typeof(this.vj$.DynamicMenu.bUnified)!="undefined"&&this.vj$.DynamicMenu.bUnified)||lh.has("deals.")||lh.has("stores.")||lh.has("contact")||lh.has("catalog.")||(lh.has("resolutioncenter.")&&B.bIE&&B.iVer>6)){oL.style.position="absolute";var p1=P.getOffsetLeft(document.getElementById(sAnchorId));oL.style.left=(p1+_24+this.iLeftPadding)+"px";E.promoteToBody(oL.id);}
oL.style.zIndex="1000";if(lh.has("motors")||sAnchorId=="BrowseCategories"&&!lh.has("myworld")){iframeShim=this.add(oL,12);}else{iframeShim=this.add(oL);}}else{if(B.bIE){oL.appendChild(iframeShim);}}
oSI=E.get(sContainerLayerId+"-spacer");if(oSI&&bF){oSI.width=iLW-12;}
iMouseOverTimer=setTimeout(O.hitch(this,"show"),iMouseOverDelay);}},show:function(){var oA,E=vjo.dsf.Element;with(this){oA=E.get(sAnchorId);if(oA){oA.className=sAnchorMouseOverClass;}
E.toggleVisibility(sContainerLayerId,true);}},hide:function(){with(this){clearTimeout(iMouseOverTimer);iMouseOutTimer=setTimeout(vj$.Object.hitch(this,"close"),iMouseOutDelay);}},close:function(){var oA,E=vjo.dsf.Element;with(this){oA=E.get(sAnchorId);if(oA){oA.className=sAnchorMouseOutClass;}
E.toggleVisibility(sContainerLayerId,false);if(iframeShim){vj$.Shim.remove(E.get(sContainerLayerId),iframeShim);}}},clear:function(){clearTimeout(this.iMouseOutTimer);},sortByValue:function(_30,_31){if(_30.value.has("Everything")){return 1;}else{if(_31.value.has("Everything")){return-1;}else{return _30.value<_31.value?-1:(_30.value>_31.value?1:0);}}},getMenuHtml:function(_32){with(this){var i,j,c,n,h,ipc,_39,_3a=".paradise.qa.ebay.com",sTemp2=".qa.ebay.com",u,ff,ll,sTemp3=".no-pool-name.qa.ebay.com";var E=vj$.Element;var lh=window.location.href;var _3d=window[sHandler];if(!_3d){return;}
var _3e=_3d(),items=_3e[sCollName],l=items.length;if(sAnchorId=="BrowseCategories"&&lh.has("ebay.com/")){for(i=0;i<l;i++){if(items[i].value.has("eBay Motors")){items[i].value="Cars, Boats, Vehicles & Parts";items[i].url="http://www.motors.ebay.com";items.sort(sortByValue);break;}}}
ipc=Math.ceil(l/_32);h="<table bgcolor='white' border='0' cellpadding='0' cellspacing='0'";if(this.sWidth!=""){h+=" width='"+sWidth+"'";}
h+=">";for(i=0;i<ipc;i++){h+="<tr>";for(j=0;j<_32;j++){h+="<td nowrap>";n=i+(j)*ipc;c=items[n];if(c){if(typeof(c.url)!="undefined"){u=c.url;if(sDomain){if(c.url.indexOf(_3a)!=-1){u=c.url.replace(_3a,sDomain);}else{if(c.url.indexOf(sTemp3)!=-1){u=c.url.replace(sTemp3,sDomain);}else{if(c.url.indexOf(sTemp2)!=-1){u=c.url.replace(sTemp2,sDomain);}}}}
u=cobrandUrl(u);h+="<a href='"+u+"'>";h+=c.value;h+="</a>";}else{u=c.value;ff=u.indexOf("href=\"");if(ff==-1){h+=u;}else{ff+=6;ll=u.lastIndexOf("\"");u=u.substr(ff,ll-ff);h+=c.value.substr(0,ff)+cobrandUrl(u)+c.value.substr(ll);}}}else{h+="&nbsp;";}
h+="</td>";}
h+="</tr>";}
h+="</table>";_39=h;if(sTemplate){_39=sTemplate.replace("##1##",h);}
return _39;}},DynamicMenuGetOffsetLeft:function(e){var l=0,oCl=vjo.dsf.client.Browser,ex=(oCl.bIE||oCl.bSafari),lh=window.location.href;var bH=(typeof(isHomepage)!="undefined")?isHomepage:false;var _42=false;if(e.offsetParent){l=e.offsetLeft;while(e=e.offsetParent){if(!_42){_42=e.innerHTML.has("snav");}
if(!e.id.toLowerCase().has("maincontent")&&!e.className.has("pagecontainer")){l+=e.offsetLeft;}
if(((e.className.is("pnav")||_42)&&ex)&&e.offsetLeft!=0&&(!lh.hasAny("signin.","shop.","community","communaute","sitemap","/help/","/education/","blogs","feedback","my"))){return l;}else{if((e.className.is("pnav")||_42)&&e.offsetLeft!=0&&oCl.bFirefox&&lh.has(".hk")&&(!lh.has("community")&&!bH)){return l;}else{if((e.className.is("pnav")||_42)&&e.offsetLeft!=0&&oCl.bIE&&lh.has(".au")&&lh.hasAny("/help/")){return l;}}}}}
return l;},GetContainerDiv:function(){var d=document,aa,i,l;if(d.getElementsByTagName){aa=d.getElementsByTagName("div");}else{if(d.all){aa=d.all;}}
l=aa.length;for(i=0;i<l;i++){if(aa[i].className=="gbhdr"){return aa[i];}}},cobrandUrl:function(_44){var lh=window.location.href;if(!lh.has("sandbox.")){return _44;}
var u="undefined",cc,cf;if(this.oCobrand==null&&typeof(ebay)!=u&&typeof(ebay.oDocument)!=u){cc=ebay.oDocument._getControl("cobrandCollection");if(cc){cf=cc._getControl("cobrandFunctions");this.oCobrand=cf;}}else{cf=this.oCobrand;}
var lc=(_44.substring(_44.length)!="/")?"/":"";if(cf&&typeof(cf.cobrandURL)!=u){return cf.cobrandURL(_44+lc);}else{if(typeof(vjo.darwin.core.cobrand)!=u&&typeof(vjo.darwin.core.cobrand.EbaySandbox)!=u){return vjo.darwin.core.cobrand.EbaySandbox.cobrandURL(_44);}}
return _44;},add:function(_48,_49,_4a){var f,p="px",w,h,s,S=vjo.dsf.document.Shim;if(vjo.dsf.client.Browser.bIE){w=_48.offsetWidth;h=_48.offsetHeight;w+=_49?_49:0;h+=_4a?_4a:0;f=document.createElement("IFRAME");s=f.style;s.width=w+p;s.height=h+p;s.filter="chroma(color='white')";f.frameBorder=0;s.position="absolute";s.left="0"+p;s.top="0"+p;s.zIndex="-1";s.filter="Alpha(Opacity=\"0\")";if(document.location.protocol.has("https")){f.src="https://securepics.ebaystatic.com/aw/pics/s.gif";}
_48.appendChild(f);return f;}},replaceJSONDataHandler:function(_4d,_4e){if(_4d!=null){this.sHandler=_4d;}
if(_4e!=null){this.sDomain=_4e;}}}).props({bUnified:false,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({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","vjo.dsf.utils.DecimalToHex"]).props({init:function(){this.vj$.VjCookieJar.writeCookielet("dp1","tzo",this.vj$.DecimalToHex.dec2Hex(new Date().getTimezoneOffset()));}}).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.ctype("vjo.darwin.core.ebayheader.rover.FooterRover").needs("vjo.dsf.cookie.VjCookieJar").needs("vjo.dsf.assembly.VjClientAssemblerRequest").props({VA:vjo.dsf.assembly.VjClientAssembler,command:null,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(var i=0;i<_5;i++){this.createImage(_4[i]);}
this.setCookieExpiration(_4[_5]);}},createImage:function(_7){if(_7&&_7.length>1){var _8=document.createElement("IMG");_8.width="1";_8.height="1";_8.src=_7;_8.alt="";document.body.appendChild(_8);}},setCookieExpiration:function(_9){if(typeof _9=="number"&&_9>0){vjo.dsf.cookie.VjCookieJar.writeCookielet("dp1","idm","1",_9/86400,"");}}}).endType();

