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,_45,_46){
this.src=src;
this.eventType=_45;
this.nativeEvent=_46;
}});

vjo.needs("vjo.dsf.Event");
vjo.type("vjo.dsf.EventDispatcher").singleton().protos({constructs:function(){
this.eventHandlers={};
this.nativeEventHandlers={};
this.fCustomLoad={};
},process:function(_47,_48){
var _49=this.eventHandlers[_47];
if(!_49){
return true;
}
var _4a=_49[_48.eventType];
if(!_4a){
return true;
}
var _4b=true;
for(var i=0;i<_4a.length;i++){
var _4d=_4a[i].handle(_48);
if(_4d&&_4d.objType=="dsf_Message"){
if(vjo.dsf.ServiceEngine){
var cb=this.createRequest(_4d);
window.setTimeout(cb,1);
}
if(_4d.returnData===false){
_4b=false;
}
}else{
if(_4d===false){
_4b=false;
}
}
}
return _4b;
},createRequest:function(msg){
return function(){
vjo.dsf.ServiceEngine.handleRequest(msg);
};
},register:function(id,_51,_52){
var _53=this.eventHandlers[id];
if(!_53){
_53=this.eventHandlers[id]={};
}
if(!_53[_51]){
_53[_51]=[];
}
var len=_53[_51].length;
_53[_51][len]=_52;
},unregister:function(id,_56){
if(!this.eventHandlers[id]){
return;
}
this.eventHandlers[id][_56]=[];
},isBound:function(id,_58){
var _59=this.eventHandlers[id];
return (_59&&_59[_58]&&_59[_58].length>0)?true:false;
},registerNative:function(_5a,_5b,_5c){
var id=(_5a==window)?"body":_5a.id;
var _5e=this.nativeEventHandlers[id];
if(!_5e){
_5e=this.nativeEventHandlers[id]={};
}
if(!_5e[_5b]){
_5e[_5b]=[];
}
var len=_5e[_5b].length;
_5e[_5b][len]=_5c;
},add:function(id,_61,_62){
if(!id||!_61||!_62){
return this;
}else{
if(typeof _62.handle!="function"){
if(typeof _62=="function"){
var _63=_62;
var obj={handle:function(){
return _63.apply(this,arguments);
}};
_62=obj;
}else{
return this;
}
}
}
var b=this.isBound(id,_61);
this.register(id,_61,_62);
if(!b){
this.bind(id,_61);
}
return _62;
},addEventListener:function(_66,_67,_68,_69,_6a){
var scp=_69||vjo.global;
if(typeof _66=="string"){
_66=document.getElementById(_66);
}
if(!_66){
return false;
}
var _6c=function(_6d){
var ev=window.event||_6d;
var rv=_68.call(scp,ev);
if(rv===false){
vjo.dsf.EventDispatcher.stopEvent(ev);
}
return rv;
};
if(window.addEventListener){
_66.addEventListener(_67,_6c,_6a||false);
this.registerNative(_66,_67,_6c);
return _6c;
}else{
if(window.attachEvent){
_66.attachEvent("on"+_67,_6c);
this.registerNative(_66,_67,_6c);
return _6c;
}
}
_66["on"+_67]=_68;
return false;
},bind:function(id,_71){
var _72=document.getElementById(id);
if(id=="body"||_72==document.body){
_72=document.body;
if(_71=="load"||_71=="unload"){
var rv=this.addEventListener(window,_71,function(){
var oED=vjo.dsf.EventDispatcher;
if(typeof oED.fCustomLoad[_71]=="function"){
oED.fCustomLoad[_71]();
}
oED[_71]("body");
oED.unregister("body",_71);
oED.fCustomLoad={};
});
if(rv===false){
if(_72.vjLoadSet){
return this;
}else{
_72.vjLoadSet=true;
var _75=window["on"+_71]||"";
if(_75){
this.fCustomLoad[_71]=_75;
}
}
}
return this;
}
}
if(_72){
this.addEventListener(_72,_71,function(_76){
return vjo.dsf.EventDispatcher[_71](this,_76||window.event);
},_72);
}
return null;
},reBind:function(){
var eH=this.eventHandlers;
var nEH=this.nativeEventHandlers;
for(var id in eH){
for(var _7a in eH[id]){
if(!this.hasBinding(id,_7a)){
this.bind(id,_7a);
}
}
}
},hasBinding:function(id,_7c){
var nEH=this.nativeEventHandlers;
if(nEH[id]&&nEH[id][_7c]){
var aH=nEH[id][_7c],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(_81,_82,_83){
if(!_81||!_82){
return;
}else{
if(typeof _81=="string"){
_81=document.getElementById(_81);
}
}
if(window.addEventListener){
_81.removeEventListener(_82,_83,false);
}else{
if(window.attachEvent){
_81.detachEvent("on"+_82,_83);
}else{
_81["on"+_82]=null;
}
}
},detachNativeHandlers:function(_84,_85){
var id=(_84==window)?"body":_84.id;
var _87=this.nativeEventHandlers[id];
if(_87&&_87[_85]){
var h=_87[_85];
for(var i=0;i<h.length;i++){
this.removeEventListener(_84,_85,_87[_85][i]);
}
_87[_85]=[];
}
},detachHandler:function(id,_8b,_8c){
var _8d=this.eventHandlers[id];
if(!_8d||!_8d[_8b]){
return;
}
var h=[],len=_8d[_8b].length;
for(var i=0;i<len;i++){
if(_8c!=_8d[_8b][i]){
h[h.length]=_8d[_8b][i];
}
}
this.eventHandlers[id][_8b]=h;
},detachHandlers:function(id,_91){
this.unregister(id,_91);
var _92=document.getElementById(id);
if(id=="body"){
_92=window;
}
if(_92){
this.detachNativeHandlers(_92,_91);
}
},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(_96){
var _97=vjo.darwin.domain.finding.common.browser.DHTMLEvent;
return _97.resolveTextNode((_96.target)?_96.target:_96.srcElement);
},relatedTarget:function(_98){
var _99=vjo.darwin.domain.finding.common.browser.DHTMLEvent;
if(_98.relatedTarget){
return _99.resolveTextNode(_98.relatedTarget);
}else{
if((_98.type=="mouseover")&&_98.fromElement){
return _99.resolveTextNode(_98.fromElement);
}else{
if((_98.type=="mouseout")&&_98.toElement){
return _99.resolveTextNode(_98.toElement);
}else{
return null;
}
}
}
},resolveTextNode:function(_9a){
return (_9a&&(_9a.nodeType==3))?_9a.parentNode:_9a;
},cleanUp:function(){
var _9b=this.nativeEventHandlers;
for(var id in _9b){
for(var ev in _9b[id]){
this.detachHandlers(id,ev,true);
}
}
},getId:function(src,id){
var _a0=id;
if(_a0===null||!_a0){
_a0=src.id;
}
return _a0;
},getBodyId:function(src,id){
var _a3=this.getId(src,id);
if(!_a3||src==document.body){
_a3="body";
}
return _a3;
},load:function(src,_a5){
var id=this.getBodyId(src);
var rv=this.process(id,new vjo.dsf.Event(src,"load",_a5));
if(id==="body"){
this.unregister("body","load");
}
return rv;
},unload:function(src,_a9){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"unload",_a9));
},change:function(src,_ab){
return this.process(this.getId(src),new vjo.dsf.Event(src,"change",_ab));
},submit:function(src,_ad){
return this.process(this.getId(src),new vjo.dsf.Event(src,"submit",_ad));
},reset:function(src,_af){
return this.process(this.getId(src),new vjo.dsf.Event(src,"reset",_af));
},select:function(src,_b1){
return this.process(this.getId(src),new vjo.dsf.Event(src,"select",_b1));
},blur:function(src,_b3){
return this.process(this.getId(src),new vjo.dsf.Event(src,"blur",_b3));
},focus:function(src,_b5){
return this.process(this.getId(src),new vjo.dsf.Event(src,"focus",_b5));
},keydown:function(src,_b7){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"keydown",_b7));
},keypress:function(src,_b9){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"keypress",_b9));
},keyup:function(src,_bb){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"keyup",_bb));
},click:function(src,_bd){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"click",_bd));
},dblclick:function(src,_bf){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"dblclick",_bf));
},mousedown:function(src,_c1){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"mousedown",_c1));
},mousemove:function(src,_c3){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"mousemove",_c3));
},mouseout:function(src,_c5){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"mouseout",_c5));
},mouseover:function(src,_c7){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"mouseover",_c7));
},mouseup:function(src,_c9){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"mouseup",_c9));
}}).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(_30){
return (this.indexOf(_30)!=-1);
};
String.prototype.hasArg=function(_31){
var a=_31,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(_cd,_ce){
var rv=this.readCookieObj(_cd,_ce).value;
return (rv)?unescape(rv):"";
},createDefaultCookieBean:function(_d0,_d1){
var _d2={};
_d2.name=_d0;
_d2.cookieletname=_d1;
_d2.value="";
_d2.maxage=0;
_d2.rawcookievalue="";
_d2.mode="";
return _d2;
},readCookieObj:function(_d3,_d4){
var _d5=this.createDefaultCookieBean(_d3,_d4);
this.update();
this.checkConversionMap(_d5);
_d5.rawcookievalue=this.aCookies[_d5.name];
if(!_d5.name||!_d5.rawcookievalue){
_d5.value="";
}else{
if(!_d5.cookieletname){
this.readCookieInternal(_d5);
}else{
this.readCookieletInternal(_d5);
}
}
return (typeof (_d5)!="undefined")?_d5:"";
},checkConversionMap:function(_d6){
var _d7=this.aConversionMap[_d6.name];
if(_d7){
_d6.mode=this.getMode(_d6.name);
_d6.name=_d7[0];
_d6.cookieletname=_d7[1];
}
},readCookieInternal:function(_d8){
_d8.value=_d8.rawcookievalue;
return _d8;
},readCookieletInternal:function(_d9){
var _da=this.getCookielet(_d9.name,_d9.cookieletname,_d9.rawcookievalue);
var _db=this.getFormat(_d9.name);
if(_da&&_db.bUseExp){
var _dc=_da;
_da=_da.substring(0,_da.length-8);
if(_dc.length>8){
_d9.maxage=_dc.substring(_dc.length-8);
}
}
_d9.value=_da;
if(_d9.mode==this.sCOMPAT){
_d9.value=_d9.rawcookievalue;
}
return _d9;
},readMultiLineCookie:function(_dd,_de){
if(!_dd||!_de){
return "";
}
var val,r="";
var _e0=this.aConversionMap[_dd];
if(_e0){
val=this.readCookieObj(_e0[0],_e0[1]).value||"";
}
if(val){
r=this.getCookielet(_dd,_de,val)||"";
}
return (typeof (r)!="undefined")?r:"";
},writeCookie:function(_e1,_e2,_e3){
var _e4=this.aConversionMap[_e1];
if(_e4){
this.writeCookielet(_e4[0],_e4[1],_e2,_e3);
return;
}
var _e5=this.getFormat(_e1);
if(_e2&&_e5.escapedValue){
_e2=escape(_e2);
}
this.writeRawCookie(_e1,_e2,_e3);
},writeRawCookie:function(_e6,_e7,_e8){
if(_e6&&(_e7!==undefined)){
if((isNaN(_e7)&&_e7.length<4000)||(_e7+"").length<4000){
if(typeof _e8=="number"){
_e8=this.getExpDate(_e8);
}
var _e9=_e8?new Date(_e8):new Date(this.getExpDate(730));
var _ea=this.getFormat(_e6);
var _eb=this.sCookieDomain;
var dd=document.domain;
if(!dd.has(_eb)){
var _ed=dd.indexOf(".ebay.");
if(_ed>0){
this.sCookieDomain=dd.substring(_ed);
}
}
if(document.cookie){
document.cookie=_e6+"="+(_e7||"")+((_e8||_ea.bUseExp)?"; expires="+_e9.toGMTString():"")+"; domain="+this.sCookieDomain+"; path="+this.sPath;
}
}
}
},writeCookieEx:function(_ee,_ef,_f0){
this.writeCookie(_ee,_ef,this.getExpDate(_f0));
},writeCookielet:function(_f1,_f2,_f3,_f4,_f5){
if(_f1&&_f2){
this.update();
var _f6=this.getFormat(_f1);
if(_f6.bUseExp&&_f3){
if(typeof _f4=="number"){
_f4=this.getExpDate(_f4);
}
var _f7=_f4?new Date(_f4):new Date(this.getExpDate(730));
var _f8=Date.UTC(_f7.getUTCFullYear(),_f7.getUTCMonth(),_f7.getUTCDate());
_f8=Math.floor(_f8/1000);
_f3+=_f8.dec2Hex();
}
var val=this.createCookieValue(_f1,_f2,_f3);
this.writeRawCookie(_f1,val,_f5);
}
},writeMultiLineCookie:function(_fa,_fb,_fc,_fd,_fe){
this.update();
var val=this.createCookieValue(_fa,_fb,_fc);
if(val){
var cmap=this.aConversionMap[_fa];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],val,_fd,_fe);
}
}
},getBitFlag:function(_101,_102){
_101=parseInt(_101,10);
var b=_101.toString(2),r=_101?b.charAt(b.length-_102-1):"";
return (r=="1")?1:0;
},setBitFlag:function(_104,_105,_106){
var b="",p,i,e,l;
_104=parseInt(_104,10);
if(_104){
b=_104.toString(2);
}
l=b.length;
if(l<_105){
e=_105-l;
for(i=0;i<=e;i++){
b="0"+b;
}
}
p=b.length-_105-1;
return parseInt(b.substring(0,p)+_106+b.substring(p+1),2);
},createCookieValue:function(_108,_109,_10a){
var cmap=this.aConversionMap[_108],format=this.getFormat(_108),mode=this.getMode(_108),val;
if(cmap&&(mode==this.sSTRICT||mode==this.sCONVER)){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}else{
val=this.aCookies[_108]||"";
}
if(format){
var clts=this.getCookieletArray(val,format);
clts[_109]=_10a;
var str="";
for(var i in clts){
if(clts[i]){
str+=i+format.NAME_VALUE_DELIMITER+clts[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 _112=this.getFormat(sC[0]),cv=sC[1],sd=_112.startDelim;
if(sd&&cv&&cv.indexOf(sd)===0){
sC[1]=cv.substring(sd.length,cv.length);
}
this.aCookies[sC[0]]=sC[1];
}
},getCookielet:function(_113,_114,_115){
var _116=this.getFormat(_113);
var clts=this.getCookieletArray(_115,_116);
return clts[_114]||"";
},getFormat:function(_118){
return this.aFormatMap[_118]||vjo.dsf.cookie.VjCookieJar.Default_Cookie_Format;
},getCookieletArray:function(_119,_11a){
var rv=[],val=_119||"";
if(_11a.escapedValue){
val=unescape(val);
}
var a=val.split(_11a.COOKIELET_DELIMITER);
for(var i=0;i<a.length;i++){
var idx=a[i].indexOf(_11a.NAME_VALUE_DELIMITER);
if(idx>0){
rv[a[i].substring(0,idx)]=a[i].substring(idx+1);
}
}
return rv;
},getExpDate:function(_11f){
var _120;
if(typeof _11f=="number"&&_11f>=0){
var d=new Date();
d.setTime(d.getTime()+(_11f*24*60*60*1000));
_120=d.toGMTString();
}
return _120;
},getMode:function(_122){
var h=this.readCookieObj(this.sModesCookie,this.sModesCookielet).value,b;
if(!(_122 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(_122==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 _12a="ABCDEFGHIJKLMNOPQRSTUVWXYZ"+"abcdefghijklmnopqrstuvwxyz"+"0123456789+/=*";
var test=new RegExp("[^A-Za-z0-9+/=*]");
if(test.exec(rv)){
return;
}
do{
enc1=_12a.indexOf(rv.charAt(i++));
enc2=_12a.indexOf(rv.charAt(i++));
enc3=_12a.indexOf(rv.charAt(i++));
enc4=_12a.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(_130,_131){
var fcn;
if(typeof _131=="string"){
fcn=_130[_131];
}else{
fcn=_131;
}
return function(){
return fcn.apply(_130,arguments);
};
},extend:function(_133,_134){
function inheritance(){
}
inheritance.prototype=_134.prototype;
_133.prototype=new inheritance();
_133.prototype.constructor=_133;
_133.baseConstructor=_134;
_133.superClass=_134.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(_135){
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(_135&&_oGlobalNavRTMInfo.aRTMPlacementData.length>0){
document.write("<scr"+"ipt src=\""+_135+"\">"+"</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(_13a){
if(_13a){
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 _13c=[],htmlIds=[],heights=[],pids=[],dblclkUrls=[],defaultUrls=[],url;
for(i=0;i<aPla.length;i++){
data=aPla[i];
_13c[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":_13c,"htmlIds":htmlIds,"heights":heights,"pids":pids,"dblclkUrls":dblclkUrls,"defaultUrls":defaultUrls});
rtm.invoke({});
}
}});

vjo.needs("vjo.dsf.typeextensions.string.Comparison");
String.prototype.replaceToken=function(pStr,_13f,_140){
var rv=pStr;
while(rv.has(_13f)){
rv=rv.replace(_13f,_140);
}
return rv;
};
String.prototype.replaceTokensEx=function(_142){
var rv=this,re,tkn,a=arguments,l=a.length;
for(var i=1;i<l+1;i++){
rv=this.replaceToken(rv,_142.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,_14b){
var e=this.get(psId),s,d,u="undefined";
if(e){
s=e.style;
d=s.display;
if(typeof (_14b)===u){
_14b=(d===""||d==="block")?false:true;
}
e.bIsShown=_14b;
s.display=(_14b)?"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,_150){
var e=this.get(psId),v,s,u="undefined";
if(e){
s=e.style;
v=s.visibility;
if(typeof (_150)===u){
_150=(v==="")?false:true;
}
e.bIsVisible=_150;
s.visibility=(_150)?"":"hidden";
}
},toggleHideShowRow:function(psId,_153){
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 (_153)===u){
_153=(d===""||d===p)?false:true;
}
e.bIsShown=_153;
s.display=(_153)?p:"none";
}
},enable:function(psId,_157){
var e=this.get(psId);
if(e){
e.disabled=!_157;
}
},left:function(psId,_15a){
return this.setLTWH(psId,_15a,"Left");
},top:function(psId,_15c){
return this.setLTWH(psId,_15c,"Top");
},width:function(psId,_15e){
return this.setLTWH(psId,_15e,"Width");
},height:function(psId,_160){
return this.setLTWH(psId,_160,"Height");
},setLTWH:function(psId,_162,_163){
var e=this.get(psId);
if(e){
if((_162!=null)&&!isNaN(parseInt(_162))){
e.style[_163.toLowerCase()]=_162;
}
return e["offset"+_163];
}
},createElement:function(name){
return document.standardCreateElement?document.standardCreateElement(name):document.createElement(name);
},containsElement:function(_166,_167){
while((_167!=null)&&(_167!=_166)&&(_167.parentNode!=null)){
_167=_167.parentNode;
}
return (_167==_166);
},getElementByTagClass:function(_168,tag,name){
var tags=_168.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(_16d,tag,name){
var _170=new Array();
var tags=_16d.getElementsByTagName(tag);
for(var ndx=0;(ndx<tags.length);ndx++){
if(tags[ndx].className.match(name)){
_170.push(tags[ndx]);
}
}
return _170;
}});

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(_173,_174,_175,_176,_177,_178,_179){
this.sLayerId=_173;
this.sCloseAnchorId=_174;
this.sCartCountText=_175;
this.aHostCoutryId=_176;
this.aHostCountryDomain=_177;
this.aHideOnParams=_178;
this.sHtmlProvider=_179;
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(_17c,_17d){
var sh1=_17c.toLowerCase(),sh2=_17d.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 _17f=this.aHideOnParams;
var iLen=_17f.length;
for(var i=0;i<iLen;i++){
if(document.location.href.has(_17f[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(_18a){
var oC=vjo.dsf.client.Browser;
return oC.bActiveXSupported&&vbCheckActiveXControl(_18a);
}}).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,_18f,_190,_191,_192,_193,_194,_195,_196,_197,_198){
this.sId=pId;
this.iPollingInterval=_18f;
this.iMaxHits=_190;
this.iHitTimeout=_191;
this.iServerHits=0;
this.sLastCookieletValue="";
this.sServerUrl=_192;
if(document.location.protocol.has("https")){
_193=_193.replace("http://pics.","https://securepics.");
}
this.sImgServer=_193+"/";
this.sViewItemUrl=_194;
this.aAlertInfo=[["h:h:alt:2",_196,"icon/iconOutbid_16x16.gif"],["h:h:alt:3",_195,"icon/iconWatchB_16x16.gif"],["h:h:alt:4",_196,"icon/iconOutbid_16x16.gif"],["h:h:alt:5",_197,"icon/iconchanceBlu_16x16.gif"],["h:h:alt:tcr",_198,"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,_19b){
var oL=this.oL;
if(oL){
if(pVal.is("")&&!oL.ctrld){
return;
}
if(_19b){
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 _1a5=cfg[at-1],imgSrv=this.sImgServer;
var _1a6=imgSrv+"s.gif";
var _1a7="<img src=\""+_1a6+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">|<img src=\""+_1a6+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">";
_1a7+="<img src=\""+imgSrv+_1a5[2]+"?t\" style=\"vertical-align:middle\"><img src=\""+_1a6+"\" width=\"5\" height=\"16\" style=\"vertical-align:middle\">";
var url=this.sViewItemUrl+"&item="+ii;
_1a7+="<a href=\""+url+"&ssPageName="+_1a5[0]+"\">"+_1a5[1]+"</a>";
this.setValue(_1a7);
this.sLastCookieletValue=c;
}
this.fireRefreshEvent();
},fireRefreshEvent:function(_1a9){
if(!_1a9){
_1a9=this.iPollingInterval;
}
window.setTimeout(vjo.dsf.utils.Object.hitch(this,this.onRefresh),_1a9*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(_1ad){
var e=_1ad,l=0;
while(e){
l+=e.offsetLeft;
e=e.offsetParent;
}
return l;
},getOffsetTop:function(_1af){
var e=_1af,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(_1b3){
var u="undefined",evt=window.event||_1b3,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(_1b5,_1b6,_1b7){
var f,p="px",w,h,s;
if(this.check()){
w=_1b5.offsetWidth;
h=_1b5.offsetHeight;
w+=_1b6?_1b6:0;
h+=_1b7?_1b7: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\")";
_1b5.appendChild(f);
return f;
}
},remove:function(_1b9,_1ba){
if(this.check()){
if(_1ba&&_1ba.parentElement){
_1b9.removeChild(_1ba);
}
}
},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(_1bd){
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(_1c1){
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(_1c2,_1c3,_1c4,_1c5,_1c6,_1c7,_1c8,_1c9,_1ca,_1cb,_1cc,_1cd,_1ce,_1cf,_1d0,_1d1,_1d2,_1d3,_1d4,_1d5){
this.iMouseOutTimer=null;
this.iMouseOverTimer=null;
this.iLeftPadding=_1cc;
this.iTopPadding=_1cd;
this.iRightPadding=_1ce;
this.sAnchorId=_1c2;
this.sContainerLayerId=_1c3;
this.sContentLayerId=_1c4;
this.iMouseOutDelay=_1c5;
this.iMouseOverDelay=_1c6;
this.iHighResDocWidth=_1c7;
this.iLowResDocWidth=_1c8;
this.iHighResColumns=_1c9;
this.iMediumResColumns=_1ca;
this.iLowResColumns=_1cb;
this.sHandler=_1cf;
this.sCollName=_1d0;
this.sWidth=_1d1;
this.sAnchorMouseOverClass=_1d2;
this.sAnchorMouseOutClass=_1d3;
this.iframeShim=null;
this.sHTML=null;
this.oAnchor=null;
this.sTemplate=null;
this.sAnchorText=_1d4;
this.sDomain=_1d5;
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(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){
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 _1db=E.get("2tabPopularProducts");
if(_1db&&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(_1e1){
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 _1e5=window[sHandler];
if(!_1e5){
return;
}
var data=_1e5(),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/_1e1);
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<_1e1;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(_1eb){
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(_1eb);
}
return _1eb;
},add:function(_1ed,_1ee,_1ef){
var f,p="px",w,h,s,S=vjo.dsf.document.Shim;
if(S.check()){
w=_1ed.offsetWidth;
h=_1ed.offsetHeight;
w+=_1ee?_1ee:0;
h+=_1ef?_1ef: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";
}
_1ed.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(_1f1,_1f2){
this.sLayerId=_1f1;
this.sHandle=_1f2;
},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(_24,_25,_26){
if(_24==null||_24==undefined){
return null;
}
if(_24.indexOf("?")<0){
_24+="?"+_25+"="+_26;
return _24;
}
var _27=this.getArgPairIfExists(_24,_25);
if(_27!==null){
_24=_24.replace(_27,_25+"="+_26);
}else{
_24+="&"+_25+"="+_26;
}
return _24;
},getArg:function(_28,_29){
if(_28==null||_28==undefined){
return null;
}
if(_28.indexOf("?")<0){
return null;
}
var _2a=this.getArgPairIfExists(_28,_29);
if(_2a!==null){
return _2a.substring(_2a.indexOf("=")+1);
}
return null;
},getArgPairIfExists:function(_2b,_2c){
var _2d=_2b.indexOf("?");
if(_2d<0){
return null;
}
var _2e=_2b;
var _2f,argName;
while(_2d>=0){
_2e=_2e.substring(_2d+1);
_2f=_2e;
_2d=_2e.indexOf("&");
if(_2d>=0){
_2f=_2e.substring(0,_2d);
}
argName=_2f.substring(0,_2f.indexOf("="));
if(argName==_2c){
return _2f;
}
}
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(_3d,_3e){
this.sCid=_3d;
this.sCidParms=_3e;
},rewriteUrl:function(_3f){
if(_3f.nativeEvent==null||_3f.nativeEvent==undefined){
return;
}
var _40=_3f.nativeEvent.srcElement||_3f.nativeEvent.target;
if(_40==null||_40==undefined){
return;
}
_40=this.getAnchor(_40);
if(this.sCidParms&&_40){
_40.href=vjo.dsf.utils.URL.addArg(_40.href,this.sCid,this.sCidParms);
}
},getAnchor:function(_41){
var e=_41;
if(e&&e.tagName){
if(!e.tagName.is("A")){
e=this.getAnchor(e.parentNode);
}
return e;
}
},handle:function(_43){
this.rewriteUrl(_43);
}});

vjo.type("vjo.dsf.SvcConfig").protos({constructs:function(_ca,url){
this.url=url;
this.method=_ca;
this.reqtMarshalling="raw";
this.respMarshalling="raw";
}});

vjo.type("vjo.dsf.Message").protos({constructs:function(_cc){
this.objType="dsf_Message";
this.svcId=_cc;
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.fr/buy\">Acheter</a>"},{"value":"<a href=\"http://pages.ebay.fr/education/commencer-a-acheter.html\">Comment acheter ?</a>"},{"value":"<a href=\"http://avis-membres.ebay.fr/\">Avis et guides d'achat</a>"},{"value":"<a href=\"http://cadeaux.ebay.fr/moteur/\">Bo\xeete \xe0 cadeaux</a>"},{"value":"<a href=\"http://listings.ebay.fr/_W0QQfclZ3QQlotrZ4QQsacatZQ2d1QQsalocationZlicQQsocmdZListingCategoryList\">Affaires de derni\xe8re minute</a>"}]};
}
function get_Sell_menu(){
return {"items":[{"value":"<a href=\"http://sell.ebay.fr/sell\">Vendre</a>"},{"value":"<a href=\"http://pages.ebay.fr/education/commencer-a-vendre.html\">Comment vendre ?</a>"},{"value":"<a href=\"http://pages.ebay.fr/livraison/index.html\">Livraison</a>"},{"value":"<a href=\"http://pages.ebay.fr/outils-vendeurs/index.html\">Outils de vente</a>"},{"value":"<a href=\"http://pages.ebay.fr/professionnels/index.html\">Espace Professionnels</a>"}]};
}
function get_MyEbay_menu(){
return {"items":[{"value":"<a href=\"http://my.ebay.fr/ws/eBayISAPI.dll?MyEbay&amp;gbh=1\">Mon eBay</a>"},{"value":"<a href=\"http://my.ebay.fr/ws/eBayISAPI.dll?MyEbay&amp;gbh=1&amp;CurrentPage=MyeBayBidding\">Ench\xe8res en cours</a>"},{"value":"<a href=\"http://my.ebay.fr/ws/eBayISAPI.dll?MyEbay&amp;gbh=1&amp;CurrentPage=MyeBayAllFavorites\">Mes favoris</a>"},{"value":"<a href=\"http://my.ebay.fr/ws/eBayISAPI.dll?MyEbay&amp;gbh=1&amp;CurrentPage=MyeBaySelling&amp;smGHR=true\">Ventes en cours</a>"},{"value":"<a href=\"http://my.ebay.fr/ws/eBayISAPI.dll?MyEbay&amp;gbh=1&amp;CurrentPage=MyeBayMyMessages&amp;ssPageName=STRK:ME:LNLK\">Mes messages</a>"}]};
}
function get_Community_menu(){
return {"items":[{"value":"<a href=\"http://hub.ebay.fr/community\">Communaut\xe9</a>"},{"value":"<a href=\"http://www2.ebay.com/aw/marketing-fr.shtml\">Actualit\xe9s eBay</a>"},{"value":"<a href=\"http://pages.ebay.fr/community/chat/index.html\">Forums de discussion</a>"},{"value":"<a href=\"http://myworld.ebay.fr/\">Mon Monde eBay</a>"},{"value":"<a href=\"http://cadeaux.ebay.fr/insolite\">Objets insolites sur eBay</a>"},{"value":"<a href=\"http://blogs.ebay.fr/\">Blogs eBay</a>"}]};
}
function get_Help_menu(){
return {"items":[{"value":"<a href=\"http://pages.ebay.fr/help\">Aide</a>"},{"value":"<a href=\"http://questions-reponses.ebay.fr/\">Questions et R\xe9ponses</a>"},{"value":"<a href=\"http://pages.ebay.fr/education/index.html\">eBay expliqu\xe9</a>"},{"value":"<a href=\"http://pages.ebay.fr/la-securite-sur-ebay/index.html\">Espace S\xe9curit\xe9</a>"},{"value":"<a href=\"http://pages.ebay.fr/help/sell/fees.html\">Frais eBay</a>"},{"value":"<a href=\"http://pages.ebay.fr/help/contact_us/_base/index.html\">Nous contacter</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(_1f5,_1f6,_1f7){
var e=_1f5;
if(e){
var o=new Option(_1f7,_1f6,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(_1fa,_1fb,_1fc,_1fd){
this.sDropdownId=_1fa;
this.sHandler=_1fb;
this.sCollName=_1fc;
this.iCondNo=_1fd;
},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,_22a){
var elem=_22a.srcElement||_22a.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());

// fr_FR/e537i/GlobalNavVjo23_Ebay_e537i5622348_1_fr_FR
// b=5622348