if(typeof (vjo)=="undefined"){
var vjo={};
}
vjo.global=this;
vjo.createPkg=function(_1){
var _2=_1.split("."),len=_2.length;
var _3=this.global;
for(var i=0;i<len-1&&_3&&_2[i];i++){
_3=(_3[_2[i]])?_3[_2[i]]:_3[_2[i]]={};
}
return {pkg:_3,className:(len>0)?_2[len-1]:""};
};
vjo.needs=function(){
};
vjo.needsLib=function(){
};
vjo.type=function(_5){
var _6=function(){
if(this.base){
this.base.parent=this;
}
if(this.constructs){
var rv=this.constructs.apply(this,arguments);
if(rv){
return rv;
}
}
return null;
};
_6.props=function(_8){
for(var i in _8){
if(i!="props"&&i!="protos"&&i!="inherits"&&i!="prototype"&&i!="inits"&&i!="satisfies"&&i!="satisfiers"){
_6[i]=_8[i];
}
}
return _6;
};
function createBaseMethod(_a,_b,_c){
_a.prototype.base[_c]=function(){
var _d=this.parent,supBase=(_b.prototype&&_b.prototype.base)?_b.prototype.base[_c]:null,curBase;
if(supBase){
curBase=_d.base[_c];
_d.base[_c]=supBase;
}
var _e=(this.parent)?this.parent:this;
var rv=_b.prototype[_c].apply(_e,arguments);
if(curBase){
_d.base[_c]=curBase;
}
return rv;
};
}
_6.protos=function(obj,_11){
for(var i in obj){
if(i!="base"&&(!_11||i!="constructs")){
if(_11&&_11.prototype&&_11.prototype[i]&&typeof obj[i]=="function"){
createBaseMethod(_6,_11,i);
}
if((!_11&&!_6.prototype[i])&&_6.prototype.base&&_6.prototype.base[i]){
_6.prototype[i]=function(){
_6.prototype.base[i].apply(this,arguments);
};
}else{
if(!(_11&&_6.prototype[i])){
_6.prototype[i]=obj[i];
}
}
}
}
return _6;
};
function createBase(clz,_14){
return (function(){
var _15=_14.prototype.base||_14,constructs=this.constructs,curBase=this.base;
if(_14.prototype.constructs&&constructs){
this.constructs=_14.prototype.constructs;
}
this.base=function(){
_15.apply(this,arguments);
};
_14.apply(this,arguments);
if(constructs){
this.constructs=constructs;
}
this.base=curBase;
});
}
_6.inherits=function(_16){
var _17=vjo.createPkg(_16);
var _18=_17.pkg[_17.className];
_6.prototype.base=createBase(_6,_18);
_6.protos(_18.prototype,_18);
_6.props(_18);
return _6;
};
_6.singleton=function(){
return _6;
};
_6.inits=function(_19){
var _1a=vjo.createPkg(_5);
if(typeof _1a.pkg[_1a.className]=="function"){
_19.call(this);
}
return _6;
};
_6.satisfies=function(_1b){
return _6;
};
_6.satisfiers=function(_1c){
return _6;
};
_6.makeFinal=function(){
return _6;
};
var _1d=vjo.createPkg(_5);
return (_1d.pkg[_1d.className])?_6:(_1d.pkg[_1d.className]=_6);
};

vjo.type("vjo.Registry").singleton().protos({constructs:function(){
this.controls=[];
},put:function(_1e,_1f){
return this.controls[_1e]=_1f;
},get:function(_20){
return this.controls[_20];
},dump:function(){
var _21=this.controls;
var _22="controls on page:\n";
for(var i in _21){
_22+="key = "+i;
_22+="controlName = "+_21[i].objtype;
_22+="\n";
}
return _22;
}}).inits(function(){
vjo.Registry=new vjo.Registry();
});

vjo.type("vjo.dsf.Event").protos({constructs:function(src,_25,_26){
this.src=src;
this.eventType=_25;
this.nativeEvent=_26;
}});

vjo.needs("vjo.dsf.Event");
vjo.type("vjo.dsf.EventDispatcher").singleton().protos({constructs:function(){
this.eventHandlers={};
this.nativeEventHandlers={};
this.unboundElems=[];
this.fCustomLoad={};
},process:function(_27,_28){
var _29=this.eventHandlers[_27];
if(!_29){
return true;
}
var _2a=_29[_28.eventType];
if(!_2a){
return true;
}
var _2b;
for(var i=0;i<_2a.length;i++){
var _2d=_2a[i].handle(_28);
if(_2d&&_2d.objType=="dsf_Message"){
if(vjo.dsf.ServiceEngine){
var cb=this.createRequest(_2d);
window.setTimeout(cb,1);
}
if(_2d.returnData===false){
_2b=false;
}
}else{
if(_2b!=false&&typeof _2d!="undefined"){
_2b=_2d;
}
}
}
return _2b;
},createRequest:function(msg){
return function(){
vjo.dsf.ServiceEngine.handleRequest(msg);
};
},register:function(id,_31,_32){
if(!id||!_31||!_32){
return this;
}else{
if(typeof _32.handle!="function"){
if(typeof _32=="function"){
var _33=_32;
var obj={handle:function(){
return _33.apply(this,arguments);
}};
_32=obj;
}else{
return this;
}
}
}
var _35=this.eventHandlers[id];
if(!_35){
_35=this.eventHandlers[id]={};
}
if(!_35[_31]){
_35[_31]=[];
}
var len=_35[_31].length;
_35[_31][len]=_32;
return _32;
},unregister:function(id,_38){
if(!this.eventHandlers[id]){
return;
}
this.eventHandlers[id][_38]=[];
},registerNative:function(_39,_3a,_3b){
var id=(_39==window)?"body":_39.id;
var _3d=this.nativeEventHandlers[id];
if(!_3d){
_3d=this.nativeEventHandlers[id]={};
}
if(!_3d[_3a]){
_3d[_3a]=[];
}
var len=_3d[_3a].length;
_3d[_3a][len]=_3b;
},add:function(id,_40,_41){
if(!id||!_40||!_41){
return this;
}
var b=this.isBound(id,_40),rv=this.register(id,_40,_41);
if(!b){
var b=this.bind(id,_40);
if(b==null){
var len=this.unboundElems.length;
this.unboundElems[len]=id;
}
}
return rv;
},addEventListener:function(_44,_45,_46,_47,_48){
var scp=_47||vjo.global;
if(typeof _44=="string"){
_44=document.getElementById(_44);
}
if(!_44){
return false;
}
var _4a=function(_4b){
var ev=window.event||_4b;
var rv=_46.call(scp,ev);
if(rv===false){
vjo.dsf.EventDispatcher.stopEvent(ev);
}
if(typeof rv!="undefined"){
return rv;
}
};
if(window.addEventListener){
_44.addEventListener(_45,_4a,_48||false);
this.registerNative(_44,_45,_4a);
return _4a;
}else{
if(window.attachEvent){
_44.attachEvent("on"+_45,_4a);
this.registerNative(_44,_45,_4a);
return _4a;
}
}
_44["on"+_45]=_46;
return false;
},bind:function(id,_4f){
var _50=document.getElementById(id);
if(id=="body"||_50==document.body){
_50=document.body;
if(_4f=="load"||_4f=="unload"){
var rv=this.addEventListener(window,_4f,function(){
var oED=vjo.dsf.EventDispatcher;
if(typeof oED.fCustomLoad[_4f]=="function"){
oED.fCustomLoad[_4f]();
}
oED[_4f]("body");
oED.unregister("body",_4f);
oED.fCustomLoad={};
});
if(rv===false){
if(_50.vjLoadSet){
return this;
}else{
_50.vjLoadSet=true;
var _53=window["on"+_4f]||"";
if(_53){
this.fCustomLoad[_4f]=_53;
}
}
}
return this;
}
}
if(_50){
this.addEventListener(_50,_4f,function(_54){
return vjo.dsf.EventDispatcher[_4f](this,_54||window.event);
},_50);
return this;
}
return null;
},reBind:function(){
var eH=this.eventHandlers,uE=this.unboundElems,len=uE.length,tmp=[];
for(var i=0;i<len;i++){
var id=uE[i],hdls=eH[id];
if(hdls){
for(var _58 in hdls){
if(!this.hasBinding(id,_58)){
var rv=this.bind(id,_58);
if(rv==null){
tmp[tmp.length]=id;
}
}
}
}
}
this.unboundElems=tmp;
},isBound:function(id,_5b){
var _5c=this.eventHandlers[id];
return (_5c&&_5c[_5b]&&_5c[_5b].length>0)?true:false;
},hasBinding:function(id,_5e){
var nEH=this.nativeEventHandlers;
if(nEH[id]&&nEH[id][_5e]){
var aH=nEH[id][_5e],len=aH.length,rv=false;
for(var i=0;i<len;i++){
var str=aH[i].toString();
if(str&&str.indexOf("vjo.dsf.EventDispatcher")!=-1){
return true;
}
}
}
return false;
},removeEventListener:function(_63,_64,_65){
if(!_63||!_64){
return;
}else{
if(typeof _63=="string"){
_63=document.getElementById(_63);
}
}
if(window.addEventListener&&_65){
_63.removeEventListener(_64,_65,false);
}else{
if(window.attachEvent&&_65){
_63.detachEvent("on"+_64,_65);
}else{
_63["on"+_64]=null;
}
}
},detachNativeHandlers:function(_66,_67){
var id=(_66==window)?"body":_66.id;
var _69=this.nativeEventHandlers[id];
if(_69&&_69[_67]){
var h=_69[_67];
for(var i=0;i<h.length;i++){
this.removeEventListener(_66,_67,_69[_67][i]);
}
_69[_67]=[];
}
},detachHandler:function(id,_6d,_6e){
var _6f=this.eventHandlers[id];
if(!_6f||!_6f[_6d]){
return;
}
var h=[],len=_6f[_6d].length;
for(var i=0;i<len;i++){
if(_6e!=_6f[_6d][i]){
h[h.length]=_6f[_6d][i];
}
}
this.eventHandlers[id][_6d]=h;
},detachHandlers:function(id,_73){
this.unregister(id,_73);
var _74=document.getElementById(id);
if(id=="body"){
_74=window;
}
if(_74){
this.detachNativeHandlers(_74,_73);
}
},stopEvent:function(evt){
this.stopPropagation(evt);
this.preventDefault(evt);
},stopPropagation:function(evt){
if(evt.stopPropagation){
evt.stopPropagation();
}else{
evt.cancelBubble=true;
}
},preventDefault:function(evt){
if(evt.preventDefault){
evt.preventDefault();
}else{
evt.returnValue=false;
}
},target:function(_78){
return this.resolveTextNode((_78.target)?_78.target:_78.srcElement);
},relatedTarget:function(_79){
if(_79.relatedTarget){
return this.resolveTextNode(_79.relatedTarget);
}else{
if((_79.type=="mouseover")&&_79.fromElement){
return this.resolveTextNode(_79.fromElement);
}else{
if((_79.type=="mouseout")&&_79.toElement){
return this.resolveTextNode(_79.toElement);
}else{
return null;
}
}
}
},resolveTextNode:function(_7a){
return (_7a&&(_7a.nodeType==3))?_7a.parentNode:_7a;
},cleanUp:function(){
var _7b=this.nativeEventHandlers;
for(var id in _7b){
for(var ev in _7b[id]){
this.detachHandlers(id,ev,true);
}
}
},getId:function(src,id){
var _80=id;
if(_80===null||!_80){
_80=src.id;
}
return _80;
},getBodyId:function(src,id){
var _83=this.getId(src,id);
if(!_83||src==document.body){
_83="body";
}
return _83;
},load:function(src,_85){
var id=this.getBodyId(src);
var rv=this.process(id,new vjo.dsf.Event(src,"load",_85));
if(id==="body"){
this.unregister("body","load");
}
return rv;
},unload:function(src,_89){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"unload",_89));
},change:function(src,_8b){
return this.process(this.getId(src),new vjo.dsf.Event(src,"change",_8b));
},submit:function(src,_8d){
return this.process(this.getId(src),new vjo.dsf.Event(src,"submit",_8d));
},reset:function(src,_8f){
return this.process(this.getId(src),new vjo.dsf.Event(src,"reset",_8f));
},select:function(src,_91){
return this.process(this.getId(src),new vjo.dsf.Event(src,"select",_91));
},blur:function(src,_93){
return this.process(this.getId(src),new vjo.dsf.Event(src,"blur",_93));
},focus:function(src,_95){
return this.process(this.getId(src),new vjo.dsf.Event(src,"focus",_95));
},keydown:function(src,_97){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"keydown",_97));
},keypress:function(src,_99){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"keypress",_99));
},keyup:function(src,_9b){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"keyup",_9b));
},click:function(src,_9d){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"click",_9d));
},dblclick:function(src,_9f){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"dblclick",_9f));
},mousedown:function(src,_a1){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"mousedown",_a1));
},mousemove:function(src,_a3){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"mousemove",_a3));
},mouseout:function(src,_a5){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"mouseout",_a5));
},mouseover:function(src,_a7){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"mouseover",_a7));
},mouseup:function(src,_a9){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"mouseup",_a9));
}}).inits(function(){
vjo.dsf.EventDispatcher=new vjo.dsf.EventDispatcher();
vjo.dsf.EventDispatcher.addEventListener(window,"load",function(){
vjo.dsf.EventDispatcher.addEventListener(window,"unload",function(){
vjo.dsf.EventDispatcher.cleanUp();
});
});
});

String.prototype.has=function(_aa){
return (this.indexOf(_aa)!=-1);
};
String.prototype.hasArg=function(_ab){
var a=_ab,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;
};

String.prototype.hex2Dec=function(){
return parseInt(this,16);
};

Number.prototype.dec2Hex=function(){
return parseInt(this,10).toString(16);
};

vjo.needs("vjo.dsf.typeextensions.string.Comparison");
vjo.needs("vjo.dsf.typeextensions.string.HexToDecimal");
vjo.needs("vjo.dsf.typeextensions.number.DecimalToHex");
vjo.type("vjo.dsf.cookie.VjCookieJar").props({Default_Cookie_Format:{"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"/","escapedValue":true},DP_Cookie_Format:{"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"/","bUseExp":true,"startDelim":"b"},Session_Cookie_Format:{"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"=","escapedValue":true,"startDelim":"^"},DS_Cookie_Format:{"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"/"},sPath:"/",aConversionMap:{"reg":["dp1","reg"],"recent_vi":["ebay","lvmn"],"ebaysignin":["ebay","sin"],"p":["dp1","p"],"etfc":["dp1","etfc"],"keepmesignin":["dp1","kms"],"ItemList":["ebay","wl"],"BackToList":["s","BIBO_BACK_TO_LIST"]},aFormatMap:{},sCOMPAT:"10",sCONVER:"01",sSTRICT:"00",sModesCookie:"ebay",sModesCookielet:"cv",readCookie:function(_b7,_b8){
var rv=this.readCookieObj(_b7,_b8).value;
return (rv)?unescape(rv):"";
},createDefaultCookieBean:function(_ba,_bb){
var _bc={};
_bc.name=_ba;
_bc.cookieletname=_bb;
_bc.value="";
_bc.maxage=0;
_bc.rawcookievalue="";
_bc.mode="";
return _bc;
},readCookieObj:function(_bd,_be){
var _bf=this.createDefaultCookieBean(_bd,_be);
this.update();
this.checkConversionMap(_bf);
_bf.rawcookievalue=this.aCookies[_bf.name];
if(!_bf.name||!_bf.rawcookievalue){
_bf.value="";
}else{
if(!_bf.cookieletname){
this.readCookieInternal(_bf);
}else{
this.readCookieletInternal(_bf);
}
}
return (typeof (_bf)!="undefined")?_bf:"";
},checkConversionMap:function(_c0){
var _c1=this.aConversionMap[_c0.name];
if(_c1){
_c0.mode=this.getMode(_c0.name);
_c0.name=_c1[0];
_c0.cookieletname=_c1[1];
}
},readCookieInternal:function(_c2){
_c2.value=_c2.rawcookievalue;
return _c2;
},readCookieletInternal:function(_c3){
var _c4=this.getCookielet(_c3.name,_c3.cookieletname,_c3.rawcookievalue);
var _c5=this.getFormat(_c3.name);
if(_c4&&_c5.bUseExp){
var _c6=_c4;
_c4=_c4.substring(0,_c4.length-8);
if(_c6.length>8){
_c3.maxage=_c6.substring(_c6.length-8);
}
}
_c3.value=_c4;
if(_c3.mode==this.sCOMPAT){
_c3.value=_c3.rawcookievalue;
}
return _c3;
},readMultiLineCookie:function(_c7,_c8){
if(!_c7||!_c8){
return "";
}
var val,r="";
var _ca=this.aConversionMap[_c7];
if(_ca){
val=this.readCookieObj(_ca[0],_ca[1]).value||"";
}
if(val){
r=this.getCookielet(_c7,_c8,val)||"";
}
return (typeof (r)!="undefined")?r:"";
},writeCookie:function(_cb,_cc,_cd){
var _ce=this.aConversionMap[_cb];
if(_ce){
this.writeCookielet(_ce[0],_ce[1],_cc,_cd);
return;
}
var _cf=this.getFormat(_cb);
if(_cc&&_cf.escapedValue){
_cc=escape(_cc);
}
this.writeRawCookie(_cb,_cc,_cd);
},writeRawCookie:function(_d0,_d1,_d2){
if(_d0&&(_d1!==undefined)){
if((isNaN(_d1)&&_d1.length<4000)||(_d1+"").length<4000){
if(typeof _d2=="number"){
_d2=this.getExpDate(_d2);
}
var _d3=_d2?new Date(_d2):new Date(this.getExpDate(730));
var _d4=this.getFormat(_d0);
var _d5=this.sCookieDomain;
var dd=document.domain;
if(!dd.has(_d5)){
var _d7=dd.indexOf(".ebay.");
if(_d7>0){
this.sCookieDomain=dd.substring(_d7);
}
}
if(document.cookie){
document.cookie=_d0+"="+(_d1||"")+((_d2||_d4.bUseExp)?"; expires="+_d3.toGMTString():"")+"; domain="+this.sCookieDomain+"; path="+this.sPath;
}
}
}
},writeCookieEx:function(_d8,_d9,_da){
this.writeCookie(_d8,_d9,this.getExpDate(_da));
},writeCookielet:function(_db,_dc,_dd,_de,_df){
if(_db&&_dc){
this.update();
var _e0=this.getFormat(_db);
if(_e0.bUseExp&&_dd){
if(typeof _de=="number"){
_de=this.getExpDate(_de);
}
var _e1=_de?new Date(_de):new Date(this.getExpDate(730));
var _e2=Date.UTC(_e1.getUTCFullYear(),_e1.getUTCMonth(),_e1.getUTCDate());
_e2=Math.floor(_e2/1000);
_dd+=_e2.dec2Hex();
}
var val=this.createCookieValue(_db,_dc,_dd);
this.writeRawCookie(_db,val,_df);
}
},writeMultiLineCookie:function(_e4,_e5,_e6,_e7,_e8){
this.update();
var val=this.createCookieValue(_e4,_e5,_e6);
if(val){
var _ea=this.aConversionMap[_e4];
if(_ea){
this.writeCookielet(_ea[0],_ea[1],val,_e7,_e8);
}
}
},getBitFlag:function(_eb,_ec){
_eb=parseInt(_eb,10);
var b=_eb.toString(2),r=_eb?b.charAt(b.length-_ec-1):"";
return (r=="1")?1:0;
},setBitFlag:function(_ee,_ef,_f0){
var b="",p,i,e,l;
_ee=parseInt(_ee,10);
if(_ee){
b=_ee.toString(2);
}
l=b.length;
if(l<_ef){
e=_ef-l;
for(i=0;i<=e;i++){
b="0"+b;
}
}
p=b.length-_ef-1;
return parseInt(b.substring(0,p)+_f0+b.substring(p+1),2);
},createCookieValue:function(_f2,_f3,_f4){
var _f5=this.aConversionMap[_f2],format=this.getFormat(_f2),mode=this.getMode(_f2),val;
if(_f5&&(mode==this.sSTRICT||mode==this.sCONVER)){
val=this.readCookieObj(_f5[0],_f5[1]).value||"";
}else{
val=this.aCookies[_f2]||"";
}
if(format){
var _f6=this.getCookieletArray(val,format);
_f6[_f3]=_f4;
var str="";
for(var i in _f6){
if(_f6[i]){
str+=i+format.NAME_VALUE_DELIMITER+_f6[i]+format.COOKIELET_DELIMITER;
}
}
if(str&&format.startDelim){
str=format.startDelim+str;
}
val=str;
if(format.escapedValue){
val=escape(val);
}
}
return val;
},update:function(){
var aC=document.cookie.split("; ");
this.aCookies={};
for(var i=0;i<aC.length;i++){
var sC=aC[i].split("=");
var _fc=this.getFormat(sC[0]),cv=sC[1],sd=_fc.startDelim;
if(sd&&cv&&cv.indexOf(sd)===0){
sC[1]=cv.substring(sd.length,cv.length);
}
this.aCookies[sC[0]]=sC[1];
}
},getCookielet:function(_fd,_fe,_ff){
var _100=this.getFormat(_fd);
var clts=this.getCookieletArray(_ff,_100);
return clts[_fe]||"";
},getFormat:function(_102){
return this.aFormatMap[_102]||vjo.dsf.cookie.VjCookieJar.Default_Cookie_Format;
},getCookieletArray:function(_103,_104){
var rv=[],val=_103||"";
if(_104.escapedValue){
val=unescape(val);
}
var a=val.split(_104.COOKIELET_DELIMITER);
for(var i=0;i<a.length;i++){
var idx=a[i].indexOf(_104.NAME_VALUE_DELIMITER);
if(idx>0){
rv[a[i].substring(0,idx)]=a[i].substring(idx+1);
}
}
return rv;
},getExpDate:function(_109){
var _10a;
if(typeof _109=="number"&&_109>=0){
var d=new Date();
d.setTime(d.getTime()+(_109*24*60*60*1000));
_10a=d.toGMTString();
}
return _10a;
},getMode:function(_10c){
var h=this.readCookieObj(this.sModesCookie,this.sModesCookielet).value,b;
if(!(_10c 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;i<a.length;i++){
b=a[i].hex2Dec().toString(2)+b;
}
}else{
b=h.hex2Dec().toString(2);
}
i=0;
var l=b.length,j;
for(o in this.aConversionMap){
j=l-(2*(i+1));
f=b.substring(j,j+2).toString(10);
f=(!f)?this.sSTRICT:f;
if(_10c==o){
return (f.length==1)?"0"+f:f;
}
i++;
}
return null;
}
}}).inits(function(){
var vCJ=vjo.dsf.cookie.VjCookieJar;
vCJ.aFormatMap={"r":vCJ.Default_Cookie_Format,"dp1":vCJ.DP_Cookie_Format,"npii":vCJ.DP_Cookie_Format,"ebay":vCJ.Session_Cookie_Format,"reg":vCJ.Session_Cookie_Format,"apcCookies":this.Session_Cookie_Format,"ds2":vCJ.DS_Cookie_Format};
});

vjo.type("vjo.darwin.core.ebayheader.rtm.GlobalHeaderRtmDec");
var _oGlobalNavRTMInfo={};
_oGlobalNavRTMInfo.aRTMPlacementData=[];

String.prototype.decodeBase64=function(){
var rv=this,len=rv.length,ret="",i=0;
if(len===0){
return ret;
}
var chr1,chr2,chr3="";
var enc1,enc2,enc3,enc4="";
var _114="ABCDEFGHIJKLMNOPQRSTUVWXYZ"+"abcdefghijklmnopqrstuvwxyz"+"0123456789+/=*";
var test=new RegExp("[^A-Za-z0-9+/=*]");
if(test.exec(rv)){
return;
}
do{
enc1=_114.indexOf(rv.charAt(i++));
enc2=_114.indexOf(rv.charAt(i++));
enc3=_114.indexOf(rv.charAt(i++));
enc4=_114.indexOf(rv.charAt(i++));
chr1=(enc1<<2)|(enc2>>4);
chr2=((enc2&15)<<4)|(enc3>>2);
chr3=((enc3&3)<<6)|enc4;
ret+=String.fromCharCode(chr1);
if(!(enc3>=64)){
ret+=String.fromCharCode(chr2);
}
if(!(enc4>=64)){
ret+=String.fromCharCode(chr3);
}
chr1=chr2=chr3=enc1=enc2=enc3=enc4="";
}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.type("vjo.dsf.utils.Object").props({hitch:function(_11a,_11b){
var fcn;
if(typeof _11b=="string"){
fcn=_11a[_11b];
}else{
fcn=_11b;
}
return function(){
return fcn.apply(_11a,arguments);
};
},extend:function(_11d,_11e){
function inheritance(){
}
inheritance.prototype=_11e.prototype;
_11d.prototype=new inheritance();
_11d.prototype.constructor=_11d;
_11d.baseConstructor=_11e;
_11d.superClass=_11e.prototype;
}});

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(_11f){
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.inProcReqtHdl)!=un&&typeof (vjo.dsf.ServiceEngine.inProcReqtHdl.svcHdls)!=un&&typeof (vjo.dsf.ServiceEngine.inProcReqtHdl.svcHdls.RTM_CALLBACK_SERVICE)!=un)&&typeof (_oGlobalNavRTMInfo)!==un){
if(_11f&&_oGlobalNavRTMInfo.aRTMPlacementData.length>0){
document.write("<scr"+"ipt src=\""+_11f+"\">"+"</scr"+"ipt>");
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 oCJ=vjo.dsf.cookie.VjCookieJar,u1p=oCJ.readCookie("dp1","u1p"),u1pDecoded;
if(u1p){
u1pDecoded=u1p.decodeBase64().decodeUTF8();
}
return u1pDecoded;
},getGuid:function(){
var oCJ=vjo.dsf.cookie.VjCookieJar,guid=oCJ.readCookie("ebay","sgj");
return guid;
},hasUid:function(_124){
if(_124){
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 aPla=_oGlobalNavRTMInfo.aRTMPlacementData,data;
var _126=[],htmlIds=[],heights=[],pids=[],dblclkUrls=[],defaultUrls=[],url;
for(i=0;i<aPla.length;i++){
data=aPla[i];
_126[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(aPla.length>0){
var rtm=new vjo.darwin.core.rtm.RTMInit({"url":url,"widths":_126,"htmlIds":htmlIds,"heights":heights,"pids":pids,"dblclkUrls":dblclkUrls,"defaultUrls":defaultUrls});
rtm.invoke({});
}
}});

vjo.needs("vjo.dsf.typeextensions.string.Comparison");
String.prototype.replaceToken=function(pStr,_129,_12a){
var rv=pStr;
while(rv.has(_129)){
rv=rv.replace(_129,_12a);
}
return rv;
};
String.prototype.replaceTokensEx=function(_12c){
var rv=this,re,tkn,a=arguments,l=a.length;
for(var i=1;i<l+1;i++){
rv=this.replaceToken(rv,_12c.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.needs("vjo.dsf.typeextensions.string.Comparison");
vjo.type("vjo.dsf.client.Browser").props({init:function(){
this.bFirefox=this.bWebTV=this.bOpera=this.bNav=this.bIE=this.bSafari=this.bWin=this.bMac=this.bMacppc=this.bMactel=this.bActiveXSupported=this.bWinXp=this.bXpSp2=this.bAOL=this.bVista=false;
this.iVer=this.fVer=-1;
this.fMinorVer=0;
this.aMimeTypes=null;
var nv=navigator,agt=nv.userAgent.toLowerCase(),i=0,ver;
with(this){
if(agt.has("webtv")){
bWebTV=true;
i=agt.indexOf("webtv/")+6;
}else{
if(agt.has("firefox")){
bFirefox=true;
i=agt.lastIndexOf("firefox")+8;
}else{
if(agt.has("safari")){
bSafari=true;
i=agt.lastIndexOf("safari")+7;
}else{
if(typeof (window.opera)!="undefined"){
bOpera=true;
i=agt.lastIndexOf("opera")+6;
}else{
if(nv.appName.is("Netscape")){
bNav=true;
i=agt.lastIndexOf("/")+1;
}else{
if(agt.has("msie")){
bIE=true;
i=agt.indexOf("msie")+4;
if(agt.has("aol")||agt.has("america online")){
bAOL=true;
}
}
}
}
}
}
}
ver=bOpera?window.opera.version():agt.substring(i);
iVer=parseInt(ver);
fVer=parseFloat(ver);
fMinorVer=fVer-iVer;
bWin=agt.has("win");
bWinXp=(bWin&&agt.has("windows nt 5.1"));
bVista=(bWin&&agt.has("windows nt 6.0"));
bXpSp2=(bWinXp&&agt.has("sv1"));
bMac=agt.has("mac");
bMacppc=(bMac&&agt.hasAny("ppc","powerpc"));
bMactel=(bMac&&agt.has("intel"));
aMimeTypes=nv.mimeTypes;
bActiveXSupported=(!(bMac||bMacppc)&&(typeof (ActiveXObject)=="function"));
}
}}).inits(function(){
vjo.dsf.client.Browser.init();
});

vjo.needs("vjo.dsf.client.Browser");
vjo.type("vjo.dsf.document.Element").props({get:function(psId){
var d=document,e=null;
if(d.getElementById){
e=d.getElementById(psId);
}
if(!e&&d.all){
e=d.all[psId];
}
return e;
},toggleHideShow:function(psId,_135){
var e=this.get(psId),s,d,u="undefined";
if(e){
s=e.style;
d=s.display;
if(typeof (_135)===u){
_135=(d===""||d==="block")?false:true;
}
e.bIsShown=_135;
s.display=(_135)?"block":"none";
}
},promoteToBody:function(psId){
var e=this.get(psId),b=document.body;
if(e&&b&&e.parentNode){
e.parentNode.removeChild(e);
b.appendChild(e);
}
},toggleVisibility:function(psId,_13a){
var e=this.get(psId),v,s,u="undefined";
if(e){
s=e.style;
v=s.visibility;
if(typeof (_13a)===u){
_13a=(v==="")?false:true;
}
e.bIsVisible=_13a;
s.visibility=(_13a)?"":"hidden";
}
},toggleHideShowRow:function(psId,_13d){
var e=this.get(psId),s,d,u="undefined";
var p=vjo.dsf.client.Browser.bFirefox?"table-row":"block";
if(e){
s=e.style;
d=s.display;
if(typeof (_13d)===u){
_13d=(d===""||d===p)?false:true;
}
e.bIsShown=_13d;
s.display=(_13d)?p:"none";
}
},enable:function(psId,_141){
var e=this.get(psId);
if(e){
e.disabled=!_141;
}
},left:function(psId,_144){
return this.setLTWH(psId,_144,"Left");
},top:function(psId,_146){
return this.setLTWH(psId,_146,"Top");
},width:function(psId,_148){
return this.setLTWH(psId,_148,"Width");
},height:function(psId,_14a){
return this.setLTWH(psId,_14a,"Height");
},setLTWH:function(psId,_14c,_14d){
var e=this.get(psId);
if(e){
if((_14c!=null)&&!isNaN(parseInt(_14c))){
e.style[_14d.toLowerCase()]=_14c;
}
return e["offset"+_14d];
}
},createElement:function(name){
return document.standardCreateElement?document.standardCreateElement(name):document.createElement(name);
},containsElement:function(_150,_151){
while((_151!=null)&&(_151!=_150)&&(_151.parentNode!=null)){
_151=_151.parentNode;
}
return (_151==_150);
},getElementByTagClass:function(_152,tag,name){
if(!_152){
return;
}
var tags=_152.getElementsByTagName(tag);
for(var ndx=0;((ndx<tags.length)&&(tags[ndx].className.match(name)==null));ndx++){
}
return (ndx<tags.length)?tags[ndx]:null;
},getElementsByTagClass:function(_157,tag,name){
if(!_157){
return;
}
var _15a=new Array();
var tags=_157.getElementsByTagName(tag);
for(var ndx=0;(ndx<tags.length);ndx++){
if(tags[ndx].className.match(name)){
_15a.push(tags[ndx]);
}
}
return _15a;
}});

vjo.needs("vjo.dsf.typeextensions.string.TokenReplacement");
vjo.needs("vjo.dsf.typeextensions.string.Comparison");
vjo.needs("vjo.dsf.document.Element");
vjo.needs("vjo.dsf.cookie.VjCookieJar");
vjo.needs("vjo.dsf.utils.Object");
vjo.type("vjo.darwin.core.express.ExpressCrossLinking").protos({constructs:function(_15d,_15e,_15f,_160,_161,_162,_163){
this.sLayerId=_15d;
this.sCloseAnchorId=_15e;
this.sCartCountText=_15f;
this.aHostCoutryId=_160;
this.aHostCountryDomain=_161;
this.aHideOnParams=_162;
this.sHtmlProvider=_163;
this.sReferrer=document.referrer;
},getHost:function(){
var oCJ=vjo.dsf.cookie.VjCookieJar,df=this.sReferrer,sid=oCJ.readCookie("ebay","ecs")||"",rv="",i;
if(sid=="-1"){
return rv;
}
if(sid){
rv=this.getHostById(sid);
}else{
if((i=df.indexOf(".express."))!=-1){
df=df.substring(i+9).toLowerCase();
var f=df.indexOf("/");
if(f>0){
df=df.substring(0,f);
}
for(i in this.aHostCountryDomain){
if(this.compareHost(this.aHostCountryDomain[i],df)){
rv=this.aHostCountryDomain[i];
oCJ.writeCookielet("ebay","ecs",this.aHostCoutryId[i]);
break;
}
}
}
}
return rv.toLowerCase();
},compareHost:function(_166,_167){
var sh1=_166.toLowerCase(),sh2=_167.toLowerCase();
if(sh1.indexOf(".")==0){
sh1=sh1.substring(1);
}
if(sh2.indexOf(".")==0){
sh2=sh2.substring(1);
}
sh1=sh1.replace("/","");
sh2=sh2.replace("/","");
return (sh1==sh2);
},hideOnParams:function(){
if(this.aHideOnParams){
var _169=this.aHideOnParams;
var iLen=_169.length;
for(var i=0;i<iLen;i++){
if(document.location.href.has(_169[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(psId){
var ids=this.aHostCoutryId,i,ind=-1,o="";
for(i=0;i<ids.length;i++){
if(psId==ids[i]){
ind=i;
break;
}
}
if(ind!=-1){
o=this.aHostCountryDomain[ind];
}
return o;
},close:function(){
vjo.dsf.document.Element.toggleHideShow(this.sLayerId,false);
vjo.dsf.cookie.VjCookieJar.writeCookielet("ebay","ecs","-1");
return false;
}});

vjo.needs("vjo.dsf.client.Browser");
vjo.type("vjo.dsf.client.ActiveX").props({init:function(){
var oC=vjo.dsf.client.Browser;
if(oC.bIE){
var d=document;
dw=function(s){
d.writeln(s);
};
dw("<scr"+"ipt language=\"vbscript\" type=\"text/vbscript\">");
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("</scr"+"ipt>");
}
},isLibLoaded:function(_174){
var oC=vjo.dsf.client.Browser;
return oC.bActiveXSupported&&vbCheckActiveXControl(_174);
}}).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 oAx=vjo.dsf.client.ActiveX;
return (oAx.isLibLoaded(V1)||oAx.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(pId,_179,_17a,_17b,_17c,_17d,_17e,_17f,_180,_181,_182){
this.sId=pId;
this.iPollingInterval=_179;
this.iMaxHits=_17a;
this.iHitTimeout=_17b;
this.iServerHits=0;
this.sLastCookieletValue="";
this.sServerUrl=_17c;
if(document.location.protocol.has("https")){
_17d=_17d.replace("http://pics.","https://securepics.");
}
this.sImgServer=_17d+"/";
this.sViewItemUrl=_17e;
this.aAlertInfo=[["h:h:alt:2",_180,"icon/iconOutbid_16x16.gif"],["h:h:alt:3",_17f,"icon/iconWatchB_16x16.gif"],["h:h:alt:4",_180,"icon/iconOutbid_16x16.gif"],["h:h:alt:5",_181,"icon/iconchanceBlu_16x16.gif"],["h:h:alt:tcr",_182,"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(pVal,_185){
var oL=this.oL;
if(oL){
if(pVal.is("")&&!oL.ctrld){
return;
}
if(_185){
if(vjo.dsf.client.Browser.bFirefox){
oL.textContent=pVal;
}else{
oL.innerText=pVal;
}
}else{
oL.innerHTML=pVal;
}
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("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 _18f=cfg[at-1],imgSrv=this.sImgServer;
var _190=imgSrv+"s.gif";
var _191="<img src=\""+_190+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">|<img src=\""+_190+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">";
_191+="<img src=\""+imgSrv+_18f[2]+"?t\" style=\"vertical-align:middle\"><img src=\""+_190+"\" width=\"5\" height=\"16\" style=\"vertical-align:middle\">";
var url=this.sViewItemUrl+"&item="+ii;
_191+="<a href=\""+url+"&ssPageName="+_18f[0]+"\">"+_18f[1]+"</a>";
this.setValue(_191);
this.sLastCookieletValue=c;
}
this.fireRefreshEvent();
},fireRefreshEvent:function(_193){
if(!_193){
_193=this.iPollingInterval;
}
window.setTimeout(vjo.dsf.utils.Object.hitch(this,this.onRefresh),_193*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.");
}
}});

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(_197){
var e=_197,l=0;
while(e){
l+=e.offsetLeft;
e=e.offsetParent;
}
return l;
},getOffsetTop:function(_199){
var e=_199,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(_19d){
var u="undefined",evt=window.event||_19d,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(_19f,_1a0,_1a1){
var f,p="px",w,h,s;
if(this.check()){
w=_19f.offsetWidth;
h=_19f.offsetHeight;
w+=_1a0?_1a0:0;
h+=_1a1?_1a1: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";
}
_19f.appendChild(f);
return f;
}
},remove:function(_1a3,_1a4){
if(this.check()){
if(_1a4&&_1a4.parentElement){
_1a3.removeChild(_1a4);
}
}
},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(psId){
this.id=psId;
},handle:function(_1a7){
vjo.Registry.get(this.id).setup();
}});

vjo.type("vjo.darwin.core.dynamicmenu.Hide").satisfies("vjo.dsf.common.IJsHandler").protos({constructs:function(psId){
this.id=psId;
},handle:function(evt){
vjo.Registry.get(this.id).hide();
}});

vjo.type("vjo.darwin.core.dynamicmenu.Stay").satisfies("vjo.dsf.common.IJsHandler").protos({constructs:function(psId){
this.id=psId;
},handle:function(_1ab){
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(_1ac,_1ad,_1ae,_1af,_1b0,_1b1,_1b2,_1b3,_1b4,_1b5,_1b6,_1b7,_1b8,_1b9,_1ba,_1bb,_1bc,_1bd,_1be,_1bf){
this.iMouseOutTimer=null;
this.iMouseOverTimer=null;
this.iLeftPadding=_1b6;
this.iTopPadding=_1b7;
this.iRightPadding=_1b8;
this.sAnchorId=_1ac;
this.sContainerLayerId=_1ad;
this.sContentLayerId=_1ae;
this.iMouseOutDelay=_1af;
this.iMouseOverDelay=_1b0;
this.iHighResDocWidth=_1b1;
this.iLowResDocWidth=_1b2;
this.iHighResColumns=_1b3;
this.iMediumResColumns=_1b4;
this.iLowResColumns=_1b5;
this.sHandler=_1b9;
this.sCollName=_1ba;
this.sWidth=_1bb;
this.sAnchorMouseOverClass=_1bc;
this.sAnchorMouseOutClass=_1bd;
this.iframeShim=null;
this.sHTML=null;
this.oAnchor=null;
this.sTemplate=null;
this.sAnchorText=_1be;
this.sDomain=_1bf;
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.")){
E.promoteToBody(sContainerLayerId);
}
sHTML=getMenuHtml(noc);
if(sHTML==null){
return;
}
oL.innerHTML=sHTML;
}
iLW=oL.offsetWidth;
var oCon=GetContainerDiv(),cw,bRA=false;
if(sAnchorId=="Help"){
bRA=true;
}
if(oCon&&B.bIE&&!lh.hasAny("community","education")){
cw=oCon.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.")){
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);
}
}
}
}
}
}
}
}
var _1c5=E.get("2tabPopularProducts");
if(_1c5&&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;
}
}
}
}
}
}
if(iL>=0){
oL.style.left=(iL-1)+"px";
}
oL.style.top=(iT)+"px";
oL.style.zIndex="1000";
if(bF){
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(var1,var2){
if(var1.value.has("Everything")){
return 1;
}else{
if(var2.value.has("Everything")){
return -1;
}else{
return var1.value<var2.value?-1:(var1.value>var2.value?1:0);
}
}
},getMenuHtml:function(_1cb){
with(this){
var i,j,c,n,h,ipc,html,img="",si,sTemp=".paradise.qa.ebay.com",u,ff,ll;
var E=vjo.dsf.document.Element;
var lh=window.location.href;
si="<img src='";
if(document.location.protocol.has("https")){
si+="https://secure";
}else{
si+="http://";
}
si+="pics.ebaystatic.com/aw/pics/s.gif' height='1' width='1'  border='0' ";
var _1cf=window[sHandler];
if(!_1cf){
return;
}
var data=_1cf(),items=data[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/_1cb);
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<_1cb;j++){
h+="<td nowrap>";
if(i==0&&!E.get("EbxBrowseCategories-menu")){
h+=si+"><br/>";
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=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>";
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"))){
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<l;i++){
if(aa[i].className=="gbhdr"){
return aa[i];
}
}
},cobrandUrl:function(_1d5){
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;
}
if(cf&&typeof (cf.cobrandURL)!=u){
return cf.cobrandURL(_1d5);
}
return _1d5;
},add:function(_1d7,_1d8,_1d9){
var f,p="px",w,h,s,S=vjo.dsf.document.Shim;
if(S.check()){
w=_1d7.offsetWidth;
h=_1d7.offsetHeight;
w+=_1d8?_1d8:0;
h+=_1d9?_1d9: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";
}
_1d7.appendChild(f);
return f;
}
}});

vjo.needs("vjo.dsf.typeextensions.string.Comparison");
vjo.needs("vjo.dsf.cookie.VjCookieJar");
vjo.needs("vjo.dsf.document.Element");
vjo.type("vjo.darwin.core.ebayheader.playground.Playground").protos({constructs:function(_1db,_1dc){
this.sLayerId=_1db;
this.sHandle=_1dc;
},show:function(){
var oCJ=vjo.dsf.cookie.VjCookieJar,sbf=oCJ.readCookie("ebay","sbf"),pcon=oCJ.getBitFlag(sbf,24),l,h;
var lid=this.sLayerId,E=vjo.dsf.document.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);
}
}});


vjo.type("vjo.dsf.utils.URL").props({addArg:function(_1df,_1e0,_1e1){
if(_1df==null||_1df==undefined){
return null;
}
if(_1df.indexOf("?")<0){
_1df+="?"+_1e0+"="+_1e1;
return _1df;
}
var _1e2=this.getArgPairIfExists(_1df,_1e0);
if(_1e2!==null){
_1df=_1df.replace(_1e2,_1e0+"="+_1e1);
}else{
_1df+="&"+_1e0+"="+_1e1;
}
return _1df;
},getArg:function(_1e3,_1e4){
if(_1e3==null||_1e3==undefined){
return null;
}
if(_1e3.indexOf("?")<0){
return null;
}
var _1e5=this.getArgPairIfExists(_1e3,_1e4);
if(_1e5!==null){
return _1e5.substring(_1e5.indexOf("=")+1);
}
return null;
},getArgPairIfExists:function(_1e6,_1e7){
var _1e8=_1e6.indexOf("?");
if(_1e8<0){
return null;
}
var _1e9=_1e6;
var _1ea,argName;
while(_1e8>=0){
_1e9=_1e9.substring(_1e8+1);
_1ea=_1e9;
_1e8=_1e9.indexOf("&");
if(_1e8>=0){
_1ea=_1e9.substring(0,_1e8);
}
argName=_1ea.substring(0,_1ea.indexOf("="));
if(argName==_1e7){
return _1ea;
}
}
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(_1eb,_1ec){
this.sCid=_1eb;
this.sCidParms=_1ec;
},rewriteUrl:function(_1ed){
if(_1ed.nativeEvent==null||_1ed.nativeEvent==undefined){
return;
}
var elem=_1ed.nativeEvent.srcElement||_1ed.nativeEvent.target;
if(elem==null||elem==undefined){
return;
}
elem=this.getAnchor(elem);
if(this.sCidParms&&elem){
elem.href=vjo.dsf.utils.URL.addArg(elem.href,this.sCid,this.sCidParms);
}
},getAnchor:function(_1ef){
var e=_1ef;
if(e&&e.tagName){
if(!e.tagName.is("A")){
e=this.getAnchor(e.parentNode);
}
return e;
}
},handle:function(_1f1){
this.rewriteUrl(_1f1);
}});

vjo.type("vjo.dsf.SvcConfig").protos({constructs:function(_1f2,url){
this.url=url;
this.method=_1f2;
this.reqtMarshalling="raw";
this.respMarshalling="raw";
}});

vjo.type("vjo.dsf.Message").protos({constructs:function(_1f4){
this.objType="dsf_Message";
this.svcId=_1f4;
this.request;
this.response;
this.clientContext;
this.trspType="InProc";
this.status;
this.svcConfig;
this.returnData=true;
this.trace="";
}});

function FooterTrk() { 	return { handle : function (event) { var _d = vjo.dsf.EventDispatcher;
_d.add('glbfooter','click',new vjo.darwin.tracking.enabler.TrackingModuleEnabler('_trksid', 'm40'));
   } }; }

function NavMenuBind() { 	return { handle : function (event) { var _d = vjo.dsf.EventDispatcher;
_d.add('Buy-menu','mouseout',new vjo.darwin.core.dynamicmenu.Hide('BuyMenu'));
_d.add('Buy-menu','mouseover',new vjo.darwin.core.dynamicmenu.Stay('BuyMenu'));
_d.add('Buy','mouseover',new vjo.darwin.core.dynamicmenu.Show('BuyMenu'));
_d.add('Buy','mouseout',new vjo.darwin.core.dynamicmenu.Hide('BuyMenu'));
_d.add('Sell-menu','mouseout',new vjo.darwin.core.dynamicmenu.Hide('SellMenu'));
_d.add('Sell-menu','mouseover',new vjo.darwin.core.dynamicmenu.Stay('SellMenu'));
_d.add('Sell','mouseover',new vjo.darwin.core.dynamicmenu.Show('SellMenu'));
_d.add('Sell','mouseout',new vjo.darwin.core.dynamicmenu.Hide('SellMenu'));
_d.add('MyEbay-menu','mouseout',new vjo.darwin.core.dynamicmenu.Hide('MyEbayMenu'));
_d.add('MyEbay-menu','mouseover',new vjo.darwin.core.dynamicmenu.Stay('MyEbayMenu'));
_d.add('MyEbay','mouseover',new vjo.darwin.core.dynamicmenu.Show('MyEbayMenu'));
_d.add('MyEbay','mouseout',new vjo.darwin.core.dynamicmenu.Hide('MyEbayMenu'));
_d.add('Community-menu','mouseout',new vjo.darwin.core.dynamicmenu.Hide('CommunityMenu'));
_d.add('Community-menu','mouseover',new vjo.darwin.core.dynamicmenu.Stay('CommunityMenu'));
_d.add('Community','mouseover',new vjo.darwin.core.dynamicmenu.Show('CommunityMenu'));
_d.add('Community','mouseout',new vjo.darwin.core.dynamicmenu.Hide('CommunityMenu'));
_d.add('Help-menu','mouseout',new vjo.darwin.core.dynamicmenu.Hide('HelpMenu'));
_d.add('Help-menu','mouseover',new vjo.darwin.core.dynamicmenu.Stay('HelpMenu'));
_d.add('Help','mouseover',new vjo.darwin.core.dynamicmenu.Show('HelpMenu'));
_d.add('Help','mouseout',new vjo.darwin.core.dynamicmenu.Hide('HelpMenu'));
   } }; }
function get_Buy_menu(){
return {"items":[{"value":"<a href=\"http://hub.ebay.com/buy\">Browse Categories</a>"},{"value":"<a href=\"http://www.ebayuniversity.com/gotraining/First_Time_Bidding_And_Buying\">Help with bidding &amp; buying</a>"},{"value":"<a href=\"http://pages.ebay.com/buy/tools.html\">Buyer Tools</a>"},{"value":"<a href=\"http://reviews.ebay.com/\">Reviews &amp; Guides</a>"}]};
}
function get_Sell_menu(){
return {"items":[{"value":"<a href=\"http://sell.ebay.com/sell\">Sell an item</a>"},{"value":"<a href=\"http://pages.ebay.com/sellercentral/newsellers.html\">Getting started</a>"},{"value":"<a href=\"http://pages.ebay.com/sellercentral/whatwouldyousell/what_to_sell_house.html\">What to sell</a>"},{"value":"<a href=\"http://pages.ebay.com/sell/tools.html\">Seller tools &amp; eBay Stores</a>"},{"value":"<a href=\"http://pages.ebay.com/services/buyandsell/shipping.html\">Shipping center</a>"}]};
}
function get_MyEbay_menu(){
return {"items":[{"value":"<a href=\"http://my.ebay.com/ws/eBayISAPI.dll?MyEbay&amp;gbh=1&amp;smGHR=true\">Summary</a>"},{"value":"<a href=\"http://my.ebay.com/ws/eBayISAPI.dll?MyEbay&amp;gbh=1&amp;CurrentPage=MyeBayWatching\">Watching</a>"},{"value":"<a href=\"http://my.ebay.com/ws/eBayISAPI.dll?MyEbay&amp;gbh=1&amp;CurrentPage=MyeBayBidding\">Bidding</a>"},{"value":"<a href=\"http://my.ebay.com/ws/eBayISAPI.dll?MyEbay&amp;gbh=1&amp;CurrentPage=MyeBaySelling&amp;smGHR=true\">Selling</a>"},{"value":"<a href=\"http://my.ebay.com/ws/eBayISAPI.dll?MyEbay&amp;gbh=1&amp;CurrentPage=MyeBayAllFavorites\">Favorites</a>"}]};
}
function get_Community_menu(){
return {"items":[{"value":"<a href=\"http://www2.ebay.com/aw/marketing.shtml\">News</a>"},{"value":"<a href=\"http://pages.ebay.com/community/answercenter/index.html\">Answer Center</a>"},{"value":"<a href=\"http://pages.ebay.com/community/boards/index.html\">Workshops/Discussion Forums</a>"},{"value":"<a href=\"http://neighborhoods.ebay.com\">Neighborhoods</a>"},{"value":"<a href=\"http://myworld.ebay.com/\">My World</a>"},{"value":"<a href=\"http://blogs.ebay.com/\">eBay Blogs</a>"},{"value":"<a href=\"http://groups.ebay.com/index.jspa?categoryID=1&amp;redirected=1\">Groups</a>"},{"value":"<a href=\"http://pages.ebay.com/givingworks/index.html\">eBay Giving Works</a>"}]};
}
function get_Help_menu(){
return {"items":[{"value":"<a href=\"http://pages.ebay.com/help/index.html\">Help Topics</a>"},{"value":"<a href=\"http://pages.ebay.com/education/index.html\">Learning Center</a>"},{"value":"<a href=\"http://pages.ebay.com/securitycenter/index.html\">Security &amp; Resolution Center</a>"},{"value":"<a href=\"http://pages.ebay.com/university/index.html\">eBay University</a>"},{"value":"<a href=\"http://pages.ebay.com/help/contact_us/_base/index.html\">Contact Us</a>"}]};
}

function SecNavMenuBind() { 	return { handle : function (event) { var _d = vjo.dsf.EventDispatcher;
_d.add('BrowseCategories-menu','mouseout',new vjo.darwin.core.dynamicmenu.Hide('BrowseCategoriesMenu'));
_d.add('BrowseCategories-menu','mouseover',new vjo.darwin.core.dynamicmenu.Stay('BrowseCategoriesMenu'));
_d.add('BrowseCategories','mouseover',new vjo.darwin.core.dynamicmenu.Show('BrowseCategoriesMenu'));
_d.add('BrowseCategories','mouseout',new vjo.darwin.core.dynamicmenu.Hide('BrowseCategoriesMenu'));
   } }; }

vjo.needs("vjo.dsf.document.Element");
vjo.type("vjo.dsf.document.Select").props({addOption:function(_212,_213,_214){
var e=_212;
if(e){
var o=new Option(_214,_213,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(_217,_218,_219,_21a){
this.sDropdownId=_217;
this.sHandler=_218;
this.sCollName=_219;
this.iCondNo=_21a;
},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;i<l;i++){
c=col[i];
S.addOption(e,c.id,c.value);
}
}
}
}
}});


(function(){var _d = vjo.dsf.EventDispatcher;
_d.add('body','load',function(event) { return vjo.Registry.get('category0').fill();  });
})();
function HeaderTrk() { 	return { handle : function (event) { var _d = vjo.dsf.EventDispatcher;
_d.add('BrowseCategories-menu','click',new vjo.darwin.tracking.enabler.TrackingModuleEnabler('_trksid', 'm37'));
_d.add('gnheader','click',new vjo.darwin.tracking.enabler.TrackingModuleEnabler('_trksid', 'm37'));
   } }; }
vjo.needs("vjo.dsf.utils.URL");
vjo.type("vjo.darwin.core.greetings.VjGreetingsServer").props({handleClick:function(pUrl,_210){
var elem=_210.srcElement||_210.target;
if(elem){
elem.href=vjo.dsf.utils.URL.addArg(pUrl,"ru",escape(document.location.href));
}
}});

/* compspec addJsCompRegistration*/ 
vjo.Registry.put('FooterTrackingCompSpecGenerator_0', new vjo.darwin.tracking.enabler.TrackingModuleEnabler('_trksid', 'm40'));
/* end comp spec*/

vjo.dsf.EventDispatcher.add('body','load', new FooterTrk());
/* compspec addJsCompRegistration*/ 
vjo.Registry.put('BuyMenu', new vjo.darwin.core.dynamicmenu.DynamicMenu('Buy', 'Buy-menu', 'dynMenuCtr', 75, 250, 900, 800, 1, 1, 1, 5, 1, 0, 'get_Buy_menu', 'items', '', 'hovered', '', '', ''));vjo.Registry.put('CorePrimaryNavResourceSpec_1', new vjo.darwin.core.dynamicmenu.Hide('BuyMenu'));vjo.Registry.put('CorePrimaryNavResourceSpec_2', new vjo.darwin.core.dynamicmenu.Stay('BuyMenu'));vjo.Registry.put('CorePrimaryNavResourceSpec_3', new vjo.darwin.core.dynamicmenu.Show('BuyMenu'));vjo.Registry.put('CorePrimaryNavResourceSpec_4', new vjo.darwin.core.dynamicmenu.Hide('BuyMenu'));vjo.Registry.put('SellMenu', new vjo.darwin.core.dynamicmenu.DynamicMenu('Sell', 'Sell-menu', 'dynMenuCtr', 75, 250, 900, 800, 1, 1, 1, 1, 1, 0, 'get_Sell_menu', 'items', '', 'hovered', '', '', ''));vjo.Registry.put('CorePrimaryNavResourceSpec_6', new vjo.darwin.core.dynamicmenu.Hide('SellMenu'));vjo.Registry.put('CorePrimaryNavResourceSpec_7', new vjo.darwin.core.dynamicmenu.Stay('SellMenu'));vjo.Registry.put('CorePrimaryNavResourceSpec_8', new vjo.darwin.core.dynamicmenu.Show('SellMenu'));vjo.Registry.put('CorePrimaryNavResourceSpec_9', new vjo.darwin.core.dynamicmenu.Hide('SellMenu'));vjo.Registry.put('MyEbayMenu', new vjo.darwin.core.dynamicmenu.DynamicMenu('MyEbay', 'MyEbay-menu', 'dynMenuCtr', 75, 250, 900, 800, 1, 1, 1, 1, 1, 0, 'get_MyEbay_menu', 'items', '', 'hovered', '', '', ''));vjo.Registry.put('CorePrimaryNavResourceSpec_11', new vjo.darwin.core.dynamicmenu.Hide('MyEbayMenu'));vjo.Registry.put('CorePrimaryNavResourceSpec_12', new vjo.darwin.core.dynamicmenu.Stay('MyEbayMenu'));vjo.Registry.put('CorePrimaryNavResourceSpec_13', new vjo.darwin.core.dynamicmenu.Show('MyEbayMenu'));vjo.Registry.put('CorePrimaryNavResourceSpec_14', new vjo.darwin.core.dynamicmenu.Hide('MyEbayMenu'));vjo.Registry.put('CommunityMenu', new vjo.darwin.core.dynamicmenu.DynamicMenu('Community', 'Community-menu', 'dynMenuCtr', 75, 250, 900, 800, 1, 1, 1, 1, 1, 0, 'get_Community_menu', 'items', '', 'hovered', '', '', ''));vjo.Registry.put('CorePrimaryNavResourceSpec_16', new vjo.darwin.core.dynamicmenu.Hide('CommunityMenu'));vjo.Registry.put('CorePrimaryNavResourceSpec_17', new vjo.darwin.core.dynamicmenu.Stay('CommunityMenu'));vjo.Registry.put('CorePrimaryNavResourceSpec_18', new vjo.darwin.core.dynamicmenu.Show('CommunityMenu'));vjo.Registry.put('CorePrimaryNavResourceSpec_19', new vjo.darwin.core.dynamicmenu.Hide('CommunityMenu'));vjo.Registry.put('HelpMenu', new vjo.darwin.core.dynamicmenu.DynamicMenu('Help', 'Help-menu', 'dynMenuCtr', 75, 250, 900, 800, 1, 1, 1, 1, 1, 0, 'get_Help_menu', 'items', '', 'hovered', '', '', ''));vjo.Registry.put('CorePrimaryNavResourceSpec_21', new vjo.darwin.core.dynamicmenu.Hide('HelpMenu'));vjo.Registry.put('CorePrimaryNavResourceSpec_22', new vjo.darwin.core.dynamicmenu.Stay('HelpMenu'));vjo.Registry.put('CorePrimaryNavResourceSpec_23', new vjo.darwin.core.dynamicmenu.Show('HelpMenu'));vjo.Registry.put('CorePrimaryNavResourceSpec_24', new vjo.darwin.core.dynamicmenu.Hide('HelpMenu'));
/* end comp spec*/

vjo.dsf.EventDispatcher.add('body','load', new NavMenuBind());
/* compspec addJsCompRegistration*/ 
vjo.Registry.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'));vjo.Registry.put('CoreSecondaryNavResourceSpec_1', new vjo.darwin.core.dynamicmenu.Hide('BrowseCategoriesMenu'));vjo.Registry.put('CoreSecondaryNavResourceSpec_2', new vjo.darwin.core.dynamicmenu.Stay('BrowseCategoriesMenu'));vjo.Registry.put('CoreSecondaryNavResourceSpec_3', new vjo.darwin.core.dynamicmenu.Show('BrowseCategoriesMenu'));vjo.Registry.put('CoreSecondaryNavResourceSpec_4', new vjo.darwin.core.dynamicmenu.Hide('BrowseCategoriesMenu'));
/* end comp spec*/

vjo.dsf.EventDispatcher.add('body','load', new SecNavMenuBind());
/* compspec addJsCompRegistration*/ 
vjo.Registry.put('category0', new vjo.darwin.core.dynamicdropdown.DynamicDropdown('category0', 'getBrowseCategoriesData', 'items', 1));
/* end comp spec*/

/* compspec addJsCompRegistration*/ 
vjo.Registry.put('HeaderTrackingCompSpecGenerator_0', new vjo.darwin.tracking.enabler.TrackingModuleEnabler('_trksid', 'm37'));vjo.Registry.put('HeaderTrackingCompSpecGenerator_1', new vjo.darwin.tracking.enabler.TrackingModuleEnabler('_trksid', 'm37'));
/* end comp spec*/

vjo.dsf.EventDispatcher.add('body','load', new HeaderTrk());

// en_US/e539/GlobalNavVjo23_Ebay_e5395716368_1_en_US
// b=5716368