if(typeof (vjo)=="undefined"){
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.extendMethod=function(_5,_6,_7){
_5.prototype.base[_7]=function(){
var m=(this.parent.superinst)?this.parent.superinst[_7]:_6;
return m.apply(this.parent,arguments);
};
};
vjo.needs=function(){
};
vjo.needsLib=function(){
};
vjo.type=function(_9){
var _a=function(){
if(this.superclz){
var fn=function(){
};
fn.prototype=this.superclz.prototype;
this.superinst=new fn();
}
if(this.base){
this.base.parent=this;
}
if(this.constructs){
this.constructs.apply(this,arguments);
}
};
_a.props=function(_c){
for(var i in _c){
if(i!="props"&&i!="protos"&&i!="inherits"&&i!="prototype"&&i!="inits"&&i!="satisfies"&&i!="satisfiers"){
_a[i]=_c[i];
}
}
return _a;
};
_a.protos=function(_e,_f){
for(var i in _e){
if(i!="superclz"&&i!="superinst"&&i!="base"&&(!_f||i!="constructs")){
if(_f&&typeof _e[i]=="function"){
vjo.extendMethod(_a,_e[i],i);
}
if(!_f&&!_a.prototype[i]&&_a.prototype.base&&_a.prototype.base[i]){
_a.prototype[i]=function(){
_a.prototype.base[i].apply(this,arguments);
};
}else{
_a.prototype[i]=_e[i];
}
}
}
return _a;
};
_a.inherits=function(_11){
var _12=vjo.createPkg(_11);
var _13=_12.pkg[_12.className];
_a.prototype.superclz=_13;
_a.prototype.base=function(){
if(!this.superinst){
var fn=function(){
};
fn.prototype=this.superclz.prototype;
this.superinst=new fn();
}
if(this.superinst.constructs){
this.superinst.constructs.apply(this,arguments);
}
};
_a.protos(_13.prototype,true);
_a.props(_13);
return _a;
};
_a.singleton=function(){
return _a;
};
_a.inits=function(_15){
var _16=vjo.createPkg(_9);
if(typeof _16.pkg[_16.className]=="function"){
_15.call(this);
}
return _a;
};
_a.satisfies=function(_17){
return _a;
};
_a.satisfiers=function(_18){
return _a;
};
_a.makeFinal=function(){
return _a;
};
var _19=vjo.createPkg(_9);
return (_19.pkg[_19.className])?_a:(_19.pkg[_19.className]=_a);
};

vjo.type("vjo.Registry").singleton().protos({constructs:function(){
this.controls=[];
},put:function(_1a,_1b){
return this.controls[_1a]=_1b;
},get:function(_1c){
return this.controls[_1c];
},dump:function(){
var _1d=this.controls;
var _1e="controls on page:\n";
for(var i in _1d){
_1e+="key = "+i;
_1e+="controlName = "+_1d[i].objtype;
_1e+="\n";
}
return _1e;
}}).inits(function(){
vjo.Registry=new vjo.Registry();
});

vjo.type("vjo.dsf.Event").protos({constructs:function(src,_21,_22){
this.src=src;
this.eventType=_21;
this.nativeEvent=_22;
}});

vjo.needs("vjo.dsf.Event");
vjo.type("vjo.dsf.EventDispatcher").singleton().protos({constructs:function(){
this.eventHandlers={};
this.nativeEventHandlers={};
this.fCustomLoad={};
this.bLoaded=false;
},process:function(_23,_24){
var _25=this.eventHandlers[_23];
if(!_25){
return true;
}
var _26=_25[_24.eventType];
if(!_26){
return true;
}
var _27=true;
for(var i=0;i<_26.length;i++){
var _29=_26[i].handle(_24);
if(_29&&_29.objType=="dsf_Message"){
if(vjo.dsf.ServiceEngine&&vjo.dsf.ServiceEngine.handleRequest(_29)===false){
_27=false;
}
}else{
if(_29===false){
_27=false;
}
}
}
return _27;
},register:function(id,_2b,_2c){
var _2d=this.eventHandlers[id];
if(!_2d){
_2d=this.eventHandlers[id]={};
}
if(!_2d[_2b]){
_2d[_2b]=[];
}
var len=_2d[_2b].length;
_2d[_2b][len]=_2c;
},isRegistered:function(id,_30){
var _31=this.eventHandlers[id];
return (_31&&_31[_30]&&_31[_30].length>0)?true:false;
},registerNative:function(_32,_33,_34){
var id=(_32==window)?"body":_32.id;
var _36=this.nativeEventHandlers[id];
if(!_36){
_36=this.nativeEventHandlers[id]={};
}
if(!_36[_33]){
_36[_33]=[];
}
var len=_36[_33].length;
_36[_33][len]=_34;
},add:function(id,_39,_3a){
if(!id||!_39||!_3a||(typeof _3a.handle!="function")){
return this;
}
var b=this.isRegistered(id,_39);
this.register(id,_39,_3a);
if(!b){
this.bind(id,_39);
}
return this;
},addEventListener:function(_3c,_3d,_3e,_3f,_40){
var scp=_3f||vjo.global;
var _42=function(_43){
var ev=window.event||_43;
var rv=_3e.call(scp,ev);
if(rv===false){
vjo.dsf.EventDispatcher.stopEvent(ev);
}
return rv;
};
if(window.addEventListener){
_3c.addEventListener(_3d,_42,_40||false);
this.registerNative(_3c,_3d,_42);
return _42;
}else{
if(window.attachEvent){
_3c.attachEvent("on"+_3d,_42);
this.registerNative(_3c,_3d,_42);
return _42;
}
}
_3c["on"+_3d]=_3e;
return false;
},bind:function(id,_47){
var _48=document.getElementById(id);
if(id=="body"||_48==document.body){
_48=document.body;
if(_47=="load"||_47=="unload"){
var rv=this.addEventListener(window,_47,function(){
var oED=vjo.dsf.EventDispatcher;
if(typeof oED.fCustomLoad[_47]=="function"){
oED.fCustomLoad[_47]();
}
if(!oED.bLoaded){
oED[_47]("body");
}
oED.fCustomLoad={};
});
if(rv===false){
if(_48.vjLoadSet){
return this;
}else{
_48.vjLoadSet=true;
var _4b=window["on"+_47]||"";
if(_4b){
this.fCustomLoad[_47]=_4b;
}
}
}
return this;
}
}
if(_48){
this.addEventListener(_48,_47,function(_4c){
return vjo.dsf.EventDispatcher[_47](this,_4c||window.event);
},_48);
}
},reBind:function(){
var eH=this.eventHandlers;
var nEH=this.nativeEventHandlers;
for(var id in eH){
for(var _50 in eH[id]){
if(!this.hasBinding(id,_50)){
this.bind(id,_50);
}
}
}
},hasBinding:function(id,_52){
var nEH=this.nativeEventHandlers;
if(nEH[id]&&nEH[id][_52]){
var aH=nEH[id][_52],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(_57,_58,_59){
if(!_57||!_58){
return;
}
if(window.addEventListener){
_57.removeEventListener(_58,_59,false);
}else{
if(window.attachEvent){
_57.detachEvent("on"+_58,_59);
}else{
_57["on"+_58]=null;
}
}
},detachNativeHandlers:function(_5a,_5b){
var _5c=this.nativeEventHandlers[_5a.id];
if(_5c&&_5c[_5b]){
var h=_5c[_5b];
for(var i=0;i<h.length;i++){
this.removeEventListener(_5a,_5b,_5c[_5b][i]);
}
_5c[_5b]=[];
}
},detachHandlers:function(id,_60){
var _61=id;
if(!this.eventHandlers[_61]){
return;
}
this.eventHandlers[_61][_60]=[];
var _62=document.getElementById(id);
if(id=="body"){
_62=window;
}
if(_62){
this.detachNativeHandlers(_62,_60);
}
},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;
}
},cleanUp:function(){
var _66=this.nativeEventHandlers;
for(var id in _66){
for(var ev in _66[id]){
this.detachHandlers(id,ev);
}
}
},getId:function(src,id){
var _6b=id;
if(_6b===null||!_6b){
_6b=src.id;
}
return _6b;
},getBodyId:function(src,id){
var _6e=this.getId(src,id);
if(!_6e||src==document.body){
_6e="body";
}
return _6e;
},load:function(src,_70){
var id=this.getBodyId(src);
var rv=this.process(id,new vjo.dsf.Event(src,"load",_70));
this.bLoaded=(id==="body")?true:this.bLoaded;
return rv;
},unload:function(src,_74){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"unload",_74));
},change:function(src,_76){
return this.process(this.getId(src),new vjo.dsf.Event(src,"change",_76));
},submit:function(src,_78){
return this.process(this.getId(src),new vjo.dsf.Event(src,"submit",_78));
},reset:function(src,_7a){
return this.process(this.getId(src),new vjo.dsf.Event(src,"reset",_7a));
},select:function(src,_7c){
return this.process(this.getId(src),new vjo.dsf.Event(src,"select",_7c));
},blur:function(src,_7e){
return this.process(this.getId(src),new vjo.dsf.Event(src,"blur",_7e));
},focus:function(src,_80){
return this.process(this.getId(src),new vjo.dsf.Event(src,"focus",_80));
},keydown:function(src,_82){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"keydown",_82));
},keypress:function(src,_84){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"keypress",_84));
},keyup:function(src,_86){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"keyup",_86));
},click:function(src,_88){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"click",_88));
},dblclick:function(src,_8a){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"dblclick",_8a));
},mousedown:function(src,_8c){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"mousedown",_8c));
},mousemove:function(src,_8e){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"mousemove",_8e));
},mouseout:function(src,_90){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"mouseout",_90));
},mouseover:function(src,_92){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"mouseover",_92));
},mouseup:function(src,_94){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"mouseup",_94));
}}).inits(function(){
vjo.dsf.EventDispatcher=new vjo.dsf.EventDispatcher();
vjo.dsf.EventDispatcher.addEventListener(window,"unload",function(){
vjo.dsf.EventDispatcher.cleanUp();
});
});

vjo.needs("vjo.dsf.typeextensions.string.Comparison");
String.prototype.replaceToken=function(_95,_96,_97){
var rv=_95;
while(rv.has(_96)){
rv=rv.replace(_96,_97);
}
return rv;
};
String.prototype.replaceTokensEx=function(_99){
var rv=this,re,tkn,a=arguments,l=a.length;
for(var i=1;i<l+1;i++){
rv=this.replaceToken(rv,_99.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;
};

String.prototype.has=function(_9e){
return (this.indexOf(_9e)!=-1);
};
String.prototype.hasArg=function(_9f){
var a=_9f,rv=false;
if(typeof (a)=="string"){
rv=this.has(a);
}else{
var aL=a.length;
for(var j=0;j<aL&&!rv;j++){
rv=this.has(a[j]);
}
}
return rv;
};
String.prototype.hasAny=function(){
var a=arguments,l=a.length,rv=false;
for(var i=0;i<l&&!rv;i++){
rv=this.hasArg(a[i]);
}
return rv;
};
String.prototype.hasAll=function(){
var a=arguments,l=a.length;
for(var i=0;i<l;i++){
if(!this.hasArg(a[i])){
return false;
}
}
return true;
};
String.prototype.is=function(s){
return (this==s);
};
String.prototype.isAny=function(){
var a=arguments,l=a.length,rv=false,aL;
for(var i=0;i<l&&!rv;i++){
if(typeof (a[i])=="string"){
rv=(this==a[i]);
}else{
aL=a[i].length;
for(var j=0;j<aL&&!rv;j++){
rv=(this==a[i][j]);
}
}
}
return rv;
};

vjo.type("vjo.dsf.document.Element").props({get:function(_ab){
var d=document,e=null;
if(d.getElementById){
e=d.getElementById(_ab);
}
if(!e&&d.all){
e=d.all[_ab];
}
return e;
},toggleHideShow:function(_ad,_ae){
var e=this.get(_ad),s,d,u="undefined";
if(e){
s=e.style;
d=s.display;
if(typeof (_ae)===u){
_ae=(d===""||d==="block")?false:true;
}
s.display=(_ae)?"block":"none";
}
},toggleVisibility:function(_b0,_b1){
var e=this.get(_b0),v,s,u="undefined";
if(e){
s=e.style;
v=s.visibility;
if(typeof (_b1)===u){
_b1=(v==="")?false:true;
}
s.visibility=(_b1)?"":"hidden";
}
},enable:function(_b3,_b4){
var e=this.get(_b3);
if(e){
e.disabled=!_b4;
}
},left:function(_b6,_b7){
return this.setLTWH(_b6,_b7,"Left");
},top:function(_b8,_b9){
return this.setLTWH(_b8,_b9,"Top");
},width:function(_ba,_bb){
return this.setLTWH(_ba,_bb,"Width");
},height:function(_bc,_bd){
return this.setLTWH(_bc,_bd,"Height");
},setLTWH:function(_be,_bf,_c0){
var e=this.get(_be);
if(e){
if((_bf!=null)&&!isNaN(parseInt(_bf))){
e.style[_c0.toLowerCase()]=_bf;
}
return e["offset"+_c0];
}
}});

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(_c2,_c3){
var rv=this.readCookieObj(_c2,_c3).value;
return (rv)?unescape(rv):"";
},createDefaultCookieBean:function(_c5,_c6){
var _c7={};
_c7.name=_c5;
_c7.cookieletname=_c6;
_c7.value="";
_c7.maxage=0;
_c7.rawcookievalue="";
_c7.mode="";
return _c7;
},readCookieObj:function(_c8,_c9){
var _ca=this.createDefaultCookieBean(_c8,_c9);
this.update();
this.checkConversionMap(_ca);
_ca.rawcookievalue=this.aCookies[_ca.name];
if(!_ca.name||!_ca.rawcookievalue){
_ca.value="";
}else{
if(!_ca.cookieletname){
this.readCookieInternal(_ca);
}else{
this.readCookieletInternal(_ca);
}
}
return (typeof (_ca)!="undefined")?_ca:"";
},checkConversionMap:function(_cb){
var _cc=this.aConversionMap[_cb.name];
if(_cc){
_cb.mode=this.getMode(_cb.name);
_cb.name=_cc[0];
_cb.cookieletname=_cc[1];
}
},readCookieInternal:function(_cd){
_cd.value=_cd.rawcookievalue;
return _cd;
},readCookieletInternal:function(_ce){
var _cf=this.getCookielet(_ce.name,_ce.cookieletname,_ce.rawcookievalue);
var _d0=this.getFormat(_ce.name);
if(_cf&&_d0.bUseExp){
var _d1=_cf;
_cf=_cf.substring(0,_cf.length-8);
if(_d1.length>8){
_ce.maxage=_d1.substring(_d1.length-8);
}
}
_ce.value=_cf;
if(_ce.mode==this.sCOMPAT){
_ce.value=_ce.rawcookievalue;
}
return _ce;
},readMultiLineCookie:function(_d2,_d3){
if(!_d2||!_d3){
return "";
}
var val,r="";
var _d5=this.aConversionMap[_d2];
if(_d5){
val=this.readCookieObj(_d5[0],_d5[1]).value||"";
}
if(val){
r=this.getCookielet(_d2,_d3,val)||"";
}
return (typeof (r)!="undefined")?r:"";
},writeCookie:function(_d6,_d7,_d8){
var _d9=this.aConversionMap[_d6];
if(_d9){
this.writeCookielet(_d9[0],_d9[1],_d7,_d8);
return;
}
var _da=this.getFormat(_d6);
if(_d7&&_da.escapedValue){
_d7=escape(_d7);
}
this.writeRawCookie(_d6,_d7,_d8);
},writeRawCookie:function(_db,_dc,_dd){
if(_db&&(_dc!==undefined)){
if((isNaN(_dc)&&_dc.length<4000)||(_dc+"").length<4000){
if(typeof _dd=="number"){
_dd=this.getExpDate(_dd);
}
var _de=_dd?new Date(_dd):new Date(this.getExpDate(730));
var _df=this.getFormat(_db);
var _e0=this.sCookieDomain;
var dd=document.domain;
if(!dd.has(_e0)){
var _e2=dd.indexOf(".ebay.");
if(_e2>0){
this.sCookieDomain=dd.substring(_e2);
}
}
if(document.cookie){
document.cookie=_db+"="+(_dc||"")+((_dd||_df.bUseExp)?"; expires="+_de.toGMTString():"")+"; domain="+this.sCookieDomain+"; path="+this.sPath;
}
}
}
},writeCookieEx:function(_e3,_e4,_e5){
this.writeCookie(_e3,_e4,this.getExpDate(_e5));
},writeCookielet:function(_e6,_e7,_e8,_e9,_ea){
if(_e6&&_e7){
this.update();
var _eb=this.getFormat(_e6);
if(_eb.bUseExp&&_e8){
if(typeof _e9=="number"){
_e9=this.getExpDate(_e9);
}
var _ec=_e9?new Date(_e9):new Date(this.getExpDate(730));
var _ed=Date.UTC(_ec.getUTCFullYear(),_ec.getUTCMonth(),_ec.getUTCDate());
_ed=Math.floor(_ed/1000);
_e8+=_ed.dec2Hex();
}
var val=this.createCookieValue(_e6,_e7,_e8);
this.writeRawCookie(_e6,val,_ea);
}
},writeMultiLineCookie:function(_ef,_f0,_f1,_f2,_f3){
this.update();
var val=this.createCookieValue(_ef,_f0,_f1);
if(val){
var _f5=this.aConversionMap[_ef];
if(_f5){
this.writeCookielet(_f5[0],_f5[1],val,_f2,_f3);
}
}
},getBitFlag:function(_f6,_f7){
_f6=parseInt(_f6,10);
var b=_f6.toString(2),r=_f6?b.charAt(b.length-_f7-1):"";
return (r=="1")?1:0;
},setBitFlag:function(_f9,_fa,_fb){
var b="",p,i,e,l;
_f9=parseInt(_f9,10);
if(_f9){
b=_f9.toString(2);
}
l=b.length;
if(l<_fa){
e=_fa-l;
for(i=0;i<=e;i++){
b="0"+b;
}
}
p=b.length-_fa-1;
return parseInt(b.substring(0,p)+_fb+b.substring(p+1),2);
},createCookieValue:function(_fd,_fe,_ff){
var cmap=this.aConversionMap[_fd],format=this.getFormat(_fd),mode=this.getMode(_fd),val;
if(cmap&&(mode==this.sSTRICT||mode==this.sCONVER)){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}else{
val=this.aCookies[_fd]||"";
}
if(format){
var clts=this.getCookieletArray(val,format);
clts[_fe]=_ff;
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 _107=this.getFormat(sC[0]),cv=sC[1],sd=_107.startDelim;
if(sd&&cv&&cv.indexOf(sd)===0){
sC[1]=cv.substring(sd.length,cv.length);
}
this.aCookies[sC[0]]=sC[1];
}
},getCookielet:function(_108,_109,_10a){
var _10b=this.getFormat(_108);
var clts=this.getCookieletArray(_10a,_10b);
return clts[_109]||"";
},getFormat:function(_10d){
return this.aFormatMap[_10d]||vjo.dsf.cookie.VjCookieJar.Default_Cookie_Format;
},getCookieletArray:function(_10e,_10f){
var rv=[],val=_10e||"";
if(_10f.escapedValue){
val=unescape(val);
}
var a=val.split(_10f.COOKIELET_DELIMITER);
for(var i=0;i<a.length;i++){
var idx=a[i].indexOf(_10f.NAME_VALUE_DELIMITER);
if(idx>0){
rv[a[i].substring(0,idx)]=a[i].substring(idx+1);
}
}
return rv;
},getExpDate:function(_114){
var _115;
if(typeof _114=="number"&&_114>=0){
var d=new Date();
d.setTime(d.getTime()+(_114*24*60*60*1000));
_115=d.toGMTString();
}
return _115;
},getMode:function(_117){
var h=this.readCookieObj(this.sModesCookie,this.sModesCookielet).value,b;
if(!(_117 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(_117==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.dsf.utils.Object").props({hitch:function(_11c,_11d){
var fcn;
if(typeof _11d=="string"){
fcn=_11c[_11d];
}else{
fcn=_11d;
}
return function(){
return fcn.apply(_11c,arguments);
};
},extend:function(_11f,_120){
function inheritance(){
}
inheritance.prototype=_120.prototype;
_11f.prototype=new inheritance();
_11f.prototype.constructor=_11f;
_11f.baseConstructor=_120;
_11f.superClass=_120.prototype;
}});

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(_121,_122,_123,_124,_125,_126,_127){
this.sLayerId=_121;
this.sCloseAnchorId=_122;
this.sCartCountText=_123;
this.aHostCoutryId=_124;
this.aHostCountryDomain=_125;
this.aHideOnParams=_126;
this.sHtmlProvider=_127;
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(_12a,_12b){
var sh1=_12a.toLowerCase(),sh2=_12b.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 _12d=this.aHideOnParams;
var iLen=_12d.length;
for(var i=0;i<iLen;i++){
if(document.location.href.has(_12d[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.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.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(_139){
var oC=vjo.dsf.client.Browser;
return oC.bActiveXSupported&&vbCheckActiveXControl(_139);
}}).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,_13e,_13f,_140,_141,_142,_143,_144,_145,_146,_147){
this.sId=pId;
this.iPollingInterval=_13e;
this.iMaxHits=_13f;
this.iHitTimeout=_140;
this.iServerHits=0;
this.sLastCookieletValue="";
this.sServerUrl=_141;
if(document.location.protocol.has("https")){
_142=_142.replace("http://pics.","https://securepics.");
}
this.sImgServer=_142+"/";
this.sViewItemUrl=_143;
this.aAlertInfo=[["h:h:alt:2",_145,"icon/iconOutbid_16x16.gif"],["h:h:alt:3",_144,"icon/iconWatchB_16x16.gif"],["h:h:alt:4",_145,"icon/iconOutbid_16x16.gif"],["h:h:alt:5",_146,"icon/iconchanceBlu_16x16.gif"],["h:h:alt:tcr",_147,"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,_14a){
var oL=this.oL;
if(oL){
if(pVal.is("")&&!oL.ctrld){
return;
}
if(_14a){
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 _154=cfg[at-1],imgSrv=this.sImgServer;
var _155=imgSrv+"s.gif";
var _156="<img src=\""+_155+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">|<img src=\""+_155+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">";
_156+="<img src=\""+imgSrv+_154[2]+"?t\" style=\"vertical-align:middle\"><img src=\""+_155+"\" width=\"5\" height=\"16\" style=\"vertical-align:middle\">";
var url=this.sViewItemUrl+"&item="+ii;
_156+="<a href=\""+url+"&ssPageName="+_154[0]+"\">"+_154[1]+"</a>";
this.setValue(_156);
this.sLastCookieletValue=c;
}
this.fireRefreshEvent();
},fireRefreshEvent:function(_158){
if(!_158){
_158=this.iPollingInterval;
}
window.setTimeout(vjo.dsf.utils.Object.hitch(this,this.onRefresh),_158*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(_15c){
var e=_15c,l=0;
while(e){
l+=e.offsetLeft;
e=e.offsetParent;
}
return l;
},getOffsetTop:function(_15e){
var e=_15e,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(_162){
var u="undefined",evt=window.event||_162,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(_164,_165,_166){
var f,p="px",w,h,s;
if(this.check()){
w=_164.offsetWidth;
h=_164.offsetHeight;
w+=_165?_165:0;
h+=_166?_166: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\")";
_164.appendChild(f);
return f;
}
},remove:function(_168,_169){
if(this.check()){
if(_169&&_169.parentElement){
_168.removeChild(_169);
}
}
},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(_16c){
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(_170){
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(_171,_172,_173,_174,_175,_176,_177,_178,_179,_17a,_17b,_17c,_17d,_17e,_17f,_180,_181,_182,_183,_184){
this.iMouseOutTimer=null;
this.iMouseOverTimer=null;
this.iLeftPadding=_17b;
this.iTopPadding=_17c;
this.iRightPadding=_17d;
this.sAnchorId=_171;
this.sContainerLayerId=_172;
this.sContentLayerId=_173;
this.iMouseOutDelay=_174;
this.iMouseOverDelay=_175;
this.iHighResDocWidth=_176;
this.iLowResDocWidth=_177;
this.iHighResColumns=_178;
this.iMediumResColumns=_179;
this.iLowResColumns=_17a;
this.sHandler=_17e;
this.sCollName=_17f;
this.sWidth=_180;
this.sAnchorMouseOverClass=_181;
this.sAnchorMouseOutClass=_182;
this.iframeShim=null;
this.sHTML=null;
this.oAnchor=null;
this.sTemplate=null;
this.sAnchorText=_183;
this.sDomain=_184;
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;
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;
}
}
if(lh.has("securitycenter")&&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.")){
iAL=P.getOffsetLeft(oA);
}
}
}
}
}
var _189=E.get("2tabPopularProducts");
if(_189&&B.bIE){
iAL=P.getOffsetLeft(oA);
}
if((((iWW-iAL-iLW)<=10)&&iWW>iLW)||(iWW<(P.getOffsetLeft(oA)+iAW+iLW))||bRA){
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;
}
}
}
}
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=S.add(oL,12);
}else{
iframeShim=S.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);
},getMenuHtml:function(_18c){
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;
si="<img src='http://pics.ebaystatic.com/aw/pics/s.gif' height='1' width='1'  border='0' ";
var _18f=window[sHandler];
if(!_18f){
return;
}
var data=_18f(),items=data[sCollName],l=items.length;
ipc=Math.ceil(l/_18c);
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<_18c;j++){
h+="<td nowrap>";
if(i==0){
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("\"")+1;
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(_195){
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(_195);
}
return _195;
}});

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(_197,_198){
this.sLayerId=_197;
this.sHandle=_198;
},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);
}
}});

function getPlaygroundHtml(){ return "<div class=\"playgrnd\"><span class=\"g-nav caption\"><img src=\"http://pics.ebaystatic.com/aw/pics/feedback/playground/imgbouncingball.gif\" height=\"16\" width=\"20\"><a href=\"http://playground.ebay.com/?enterPlayground=true\">You're on the Playground</a><span class=\"pipe\"> | </span></span><span class=\"g-nav\"><a href=\"http://playground.ebay.com/FAQs\">About the Playground</a><span class=\"pipe\"> | </span><a href=\"http://survey.ebay.com/survey/ebay/eby07042\">Give us your opinion</a><span class=\"pipe\"> | </span><a href=\"http://playground.ebay.com/?enterEbay=true\">Go to the regular eBay site</a></span></div>";}

vjo.type("vjo.dsf.utils.URL").props({addArg:function(_19b,_19c,_19d){
if(_19b==null||_19b==undefined){
return null;
}
if(_19b.indexOf("?")<0){
_19b+="?"+_19c+"="+_19d;
return _19b;
}
var _19e=this.getArgPairIfExists(_19b,_19c);
if(_19e!==null){
_19b.replace(_19e,_19c+"="+_19d);
}else{
_19b+="&"+_19c+"="+_19d;
}
return _19b;
},getArg:function(_19f,_1a0){
if(_19f==null||_19f==undefined){
return null;
}
if(_19f.indexOf("?")<0){
return null;
}
var _1a1=this.getArgPairIfExists(_19f,_1a0);
if(_1a1!==null){
return _1a1.substring(_1a1.indexOf("=")+1);
}
return null;
},getArgPairIfExists:function(_1a2,_1a3){
var _1a4=_1a2.indexOf("?");
if(_1a4<0){
return null;
}
var _1a5=_1a2;
var _1a6,argName;
while(_1a4>=0){
_1a5=_1a5.substring(_1a4+1);
_1a6=_1a5;
_1a4=_1a5.indexOf("&");
if(_1a4>=0){
_1a6=_1a5.substring(0,_1a4);
}
argName=_1a6.substring(0,_1a6.indexOf("="));
if(argName==_1a3){
return _1a6;
}
}
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(_1a7,_1a8){
this.sCid=_1a7;
this.sCidParms=_1a8;
},rewriteUrl:function(_1a9){
if(_1a9.nativeEvent==null||_1a9.nativeEvent==undefined){
return;
}
var elem=_1a9.nativeEvent.srcElement||_1a9.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(_1ab){
var e=_1ab;
if(e&&e.tagName){
if(!e.tagName.is("A")){
e=this.getAnchor(e.parentNode);
}
return e;
}
},handle:function(_1ad){
this.rewriteUrl(_1ad);
}});

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

vjo.type("vjo.dsf.Message").protos({constructs:function(_1b0){
this.objType="dsf_Message";
this.svcId=_1b0;
this.request;
this.response;
this.clientContext;
this.trspType="InProc";
this.status;
this.svcConfig;
this.returnData=true;
this.trace="";
}});

function FooterTrk() { 	return { handle : function (event) { vjo.dsf.EventDispatcher.add('glbfooter','click',new vjo.darwin.tracking.enabler.TrackingModuleEnabler('_trksid', 'm40'));
 } }; }

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\">Announcements</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\">Discussion Forums</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>"}]};}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 NavMenuBind() { 	return { handle : function (event) { vjo.dsf.EventDispatcher.add('Buy-menu','mouseout',new vjo.darwin.core.dynamicmenu.Hide('BuyMenu'));
vjo.dsf.EventDispatcher.add('Buy-menu','mouseover',new vjo.darwin.core.dynamicmenu.Stay('BuyMenu'));
vjo.dsf.EventDispatcher.add('Buy','mouseover',new vjo.darwin.core.dynamicmenu.Show('BuyMenu'));
vjo.dsf.EventDispatcher.add('Buy','mouseout',new vjo.darwin.core.dynamicmenu.Hide('BuyMenu'));
vjo.dsf.EventDispatcher.add('Sell-menu','mouseout',new vjo.darwin.core.dynamicmenu.Hide('SellMenu'));
vjo.dsf.EventDispatcher.add('Sell-menu','mouseover',new vjo.darwin.core.dynamicmenu.Stay('SellMenu'));
vjo.dsf.EventDispatcher.add('Sell','mouseover',new vjo.darwin.core.dynamicmenu.Show('SellMenu'));
vjo.dsf.EventDispatcher.add('Sell','mouseout',new vjo.darwin.core.dynamicmenu.Hide('SellMenu'));
vjo.dsf.EventDispatcher.add('MyEbay-menu','mouseout',new vjo.darwin.core.dynamicmenu.Hide('MyEbayMenu'));
vjo.dsf.EventDispatcher.add('MyEbay-menu','mouseover',new vjo.darwin.core.dynamicmenu.Stay('MyEbayMenu'));
vjo.dsf.EventDispatcher.add('MyEbay','mouseover',new vjo.darwin.core.dynamicmenu.Show('MyEbayMenu'));
vjo.dsf.EventDispatcher.add('MyEbay','mouseout',new vjo.darwin.core.dynamicmenu.Hide('MyEbayMenu'));
vjo.dsf.EventDispatcher.add('Community-menu','mouseout',new vjo.darwin.core.dynamicmenu.Hide('CommunityMenu'));
vjo.dsf.EventDispatcher.add('Community-menu','mouseover',new vjo.darwin.core.dynamicmenu.Stay('CommunityMenu'));
vjo.dsf.EventDispatcher.add('Community','mouseover',new vjo.darwin.core.dynamicmenu.Show('CommunityMenu'));
vjo.dsf.EventDispatcher.add('Community','mouseout',new vjo.darwin.core.dynamicmenu.Hide('CommunityMenu'));
vjo.dsf.EventDispatcher.add('Help-menu','mouseout',new vjo.darwin.core.dynamicmenu.Hide('HelpMenu'));
vjo.dsf.EventDispatcher.add('Help-menu','mouseover',new vjo.darwin.core.dynamicmenu.Stay('HelpMenu'));
vjo.dsf.EventDispatcher.add('Help','mouseover',new vjo.darwin.core.dynamicmenu.Show('HelpMenu'));
vjo.dsf.EventDispatcher.add('Help','mouseout',new vjo.darwin.core.dynamicmenu.Hide('HelpMenu'));
 } }; }
function SecNavMenuBind() { 	return { handle : function (event) { vjo.dsf.EventDispatcher.add('BrowseCategories-menu','mouseout',new vjo.darwin.core.dynamicmenu.Hide('BrowseCategoriesMenu'));
vjo.dsf.EventDispatcher.add('BrowseCategories-menu','mouseover',new vjo.darwin.core.dynamicmenu.Stay('BrowseCategoriesMenu'));
vjo.dsf.EventDispatcher.add('BrowseCategories','mouseover',new vjo.darwin.core.dynamicmenu.Show('BrowseCategoriesMenu'));
vjo.dsf.EventDispatcher.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(_1d6,_1d7,_1d8){
var e=_1d6;
if(e){
var o=new Option(_1d8,_1d7,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(_1db,_1dc,_1dd,_1de){
this.sDropdownId=_1db;
this.sHandler=_1dc;
this.sCollName=_1dd;
this.iCondNo=_1de;
},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 jsEvt0() { 	return { handle : function (event) { return vjo.Registry.get('category0').fill(); } }; }
vjo.dsf.EventDispatcher.add('body','load',jsEvt0());

function HeaderTrk() { 	return { handle : function (event) { vjo.dsf.EventDispatcher.add('BrowseCategories-menu','click',new vjo.darwin.tracking.enabler.TrackingModuleEnabler('_trksid', 'm37'));
vjo.dsf.EventDispatcher.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,_1d4){
var elem=_1d4.srcElement||_1d4.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/e523/GlobalNavVjo23_Ebay_e5235035450_1_en_US
// b=5035450