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.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;
}
}
};
_6.props=function(_8){
for(var i in _8){
if(i!="props"&&i!="protos"&&i!="inherits"&&i!="prototype"&&i!="inits"&&i!="satisfies"&&i!="satisfiers"){
_6[i]=_8[i];
}
}
return _6;
};
function createBaseMethod(_a,_b,_c){
_a.prototype.base[_c]=function(){
var _d=this.parent,supBase=(_b.prototype&&_b.prototype.base)?_b.prototype.base[_c]:null,curBase;
if(supBase){
curBase=_d.base[_c];
_d.base[_c]=supBase;
}
var _e=(this.parent)?this.parent:this;
var rv=_b.prototype[_c].apply(_e,arguments);
if(curBase){
_d.base[_c]=curBase;
}
return rv;
};
}
_6.protos=function(obj,_11){
for(var i in obj){
if(i!="base"&&(!_11||i!="constructs")){
if(_11&&_11.prototype&&_11.prototype[i]&&typeof obj[i]=="function"){
createBaseMethod(_6,_11,i);
}
if((!_11&&!_6.prototype[i])&&_6.prototype.base&&_6.prototype.base[i]){
_6.prototype[i]=function(){
_6.prototype.base[i].apply(this,arguments);
};
}else{
if(!(_11&&_6.prototype[i])){
_6.prototype[i]=obj[i];
}
}
}
}
return _6;
};
function createBase(clz,_14){
return (function(){
var _15=_14.prototype.base||_14,constructs=this.constructs,curBase=this.base;
if(_14.prototype.constructs&&constructs){
this.constructs=_14.prototype.constructs;
}
this.base=function(){
_15.apply(this,arguments);
};
_14.apply(this,arguments);
if(constructs){
this.constructs=constructs;
}
this.base=curBase;
});
}
_6.inherits=function(_16){
var _17=vjo.createPkg(_16);
var _18=_17.pkg[_17.className];
_6.prototype.base=createBase(_6,_18);
_6.protos(_18.prototype,_18);
_6.props(_18);
return _6;
};
_6.singleton=function(){
return _6;
};
_6.inits=function(_19){
var _1a=vjo.createPkg(_5);
if(typeof _1a.pkg[_1a.className]=="function"){
_19.call(this);
}
return _6;
};
_6.satisfies=function(_1b){
return _6;
};
_6.satisfiers=function(_1c){
return _6;
};
_6.makeFinal=function(){
return _6;
};
var _1d=vjo.createPkg(_5);
return (_1d.pkg[_1d.className])?_6:(_1d.pkg[_1d.className]=_6);
};

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

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

vjo.needs("vjo.dsf.Event");
vjo.type("vjo.dsf.EventDispatcher").singleton().protos({constructs:function(){
this.eventHandlers={};
this.nativeEventHandlers={};
this.fCustomLoad={};
this.bLoaded=false;
},process:function(_27,_28){
var _29=this.eventHandlers[_27];
if(!_29){
return true;
}
var _2a=_29[_28.eventType];
if(!_2a){
return true;
}
var _2b=true;
for(var i=0;i<_2a.length;i++){
var _2d=_2a[i].handle(_28);
if(_2d&&_2d.objType=="dsf_Message"){
if(vjo.dsf.ServiceEngine&&vjo.dsf.ServiceEngine.handleRequest(_2d)===false){
_2b=false;
}
}else{
if(_2d===false){
_2b=false;
}
}
}
return _2b;
},register:function(id,_2f,_30){
var _31=this.eventHandlers[id];
if(!_31){
_31=this.eventHandlers[id]={};
}
if(!_31[_2f]){
_31[_2f]=[];
}
var len=_31[_2f].length;
_31[_2f][len]=_30;
},isRegistered:function(id,_34){
var _35=this.eventHandlers[id];
return (_35&&_35[_34]&&_35[_34].length>0)?true:false;
},registerNative:function(_36,_37,_38){
var id=(_36==window)?"body":_36.id;
var _3a=this.nativeEventHandlers[id];
if(!_3a){
_3a=this.nativeEventHandlers[id]={};
}
if(!_3a[_37]){
_3a[_37]=[];
}
var len=_3a[_37].length;
_3a[_37][len]=_38;
},add:function(id,_3d,_3e){
if(!id||!_3d||!_3e||(typeof _3e.handle!="function")){
return this;
}
var b=this.isRegistered(id,_3d);
this.register(id,_3d,_3e);
if(!b){
this.bind(id,_3d);
}
return this;
},addEventListener:function(_40,_41,_42,_43,_44){
var scp=_43||vjo.global;
var _46=function(_47){
var ev=window.event||_47;
var rv=_42.call(scp,ev);
if(rv===false){
vjo.dsf.EventDispatcher.stopEvent(ev);
}
return rv;
};
if(window.addEventListener){
_40.addEventListener(_41,_46,_44||false);
this.registerNative(_40,_41,_46);
return _46;
}else{
if(window.attachEvent){
_40.attachEvent("on"+_41,_46);
this.registerNative(_40,_41,_46);
return _46;
}
}
_40["on"+_41]=_42;
return false;
},bind:function(id,_4b){
var _4c=document.getElementById(id);
if(id=="body"||_4c==document.body){
_4c=document.body;
if(_4b=="load"||_4b=="unload"){
var rv=this.addEventListener(window,_4b,function(){
var oED=vjo.dsf.EventDispatcher;
if(typeof oED.fCustomLoad[_4b]=="function"){
oED.fCustomLoad[_4b]();
}
if(!oED.bLoaded){
oED[_4b]("body");
}
oED.fCustomLoad={};
});
if(rv===false){
if(_4c.vjLoadSet){
return this;
}else{
_4c.vjLoadSet=true;
var _4f=window["on"+_4b]||"";
if(_4f){
this.fCustomLoad[_4b]=_4f;
}
}
}
return this;
}
}
if(_4c){
this.addEventListener(_4c,_4b,function(_50){
return vjo.dsf.EventDispatcher[_4b](this,_50||window.event);
},_4c);
}
},reBind:function(){
var eH=this.eventHandlers;
var nEH=this.nativeEventHandlers;
for(var id in eH){
for(var _54 in eH[id]){
if(!this.hasBinding(id,_54)){
this.bind(id,_54);
}
}
}
},hasBinding:function(id,_56){
var nEH=this.nativeEventHandlers;
if(nEH[id]&&nEH[id][_56]){
var aH=nEH[id][_56],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(_5b,_5c,_5d){
if(!_5b||!_5c){
return;
}
if(window.addEventListener){
_5b.removeEventListener(_5c,_5d,false);
}else{
if(window.attachEvent){
_5b.detachEvent("on"+_5c,_5d);
}else{
_5b["on"+_5c]=null;
}
}
},detachNativeHandlers:function(_5e,_5f){
var _60=this.nativeEventHandlers[_5e.id];
if(_60&&_60[_5f]){
var h=_60[_5f];
for(var i=0;i<h.length;i++){
this.removeEventListener(_5e,_5f,_60[_5f][i]);
}
_60[_5f]=[];
}
},detachHandlers:function(id,_64){
var _65=id;
if(!this.eventHandlers[_65]){
return;
}
this.eventHandlers[_65][_64]=[];
var _66=document.getElementById(id);
if(id=="body"){
_66=window;
}
if(_66){
this.detachNativeHandlers(_66,_64);
}
},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 _6a=this.nativeEventHandlers;
for(var id in _6a){
for(var ev in _6a[id]){
this.detachHandlers(id,ev);
}
}
},getId:function(src,id){
var _6f=id;
if(_6f===null||!_6f){
_6f=src.id;
}
return _6f;
},getBodyId:function(src,id){
var _72=this.getId(src,id);
if(!_72||src==document.body){
_72="body";
}
return _72;
},load:function(src,_74){
var id=this.getBodyId(src);
var rv=this.process(id,new vjo.dsf.Event(src,"load",_74));
this.bLoaded=(id==="body")?true:this.bLoaded;
return rv;
},unload:function(src,_78){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"unload",_78));
},change:function(src,_7a){
return this.process(this.getId(src),new vjo.dsf.Event(src,"change",_7a));
},submit:function(src,_7c){
return this.process(this.getId(src),new vjo.dsf.Event(src,"submit",_7c));
},reset:function(src,_7e){
return this.process(this.getId(src),new vjo.dsf.Event(src,"reset",_7e));
},select:function(src,_80){
return this.process(this.getId(src),new vjo.dsf.Event(src,"select",_80));
},blur:function(src,_82){
return this.process(this.getId(src),new vjo.dsf.Event(src,"blur",_82));
},focus:function(src,_84){
return this.process(this.getId(src),new vjo.dsf.Event(src,"focus",_84));
},keydown:function(src,_86){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"keydown",_86));
},keypress:function(src,_88){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"keypress",_88));
},keyup:function(src,_8a){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"keyup",_8a));
},click:function(src,_8c){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"click",_8c));
},dblclick:function(src,_8e){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"dblclick",_8e));
},mousedown:function(src,_90){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"mousedown",_90));
},mousemove:function(src,_92){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"mousemove",_92));
},mouseout:function(src,_94){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"mouseout",_94));
},mouseover:function(src,_96){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"mouseover",_96));
},mouseup:function(src,_98){
return this.process(this.getBodyId(src),new vjo.dsf.Event(src,"mouseup",_98));
}}).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(_99,_9a,_9b){
var rv=_99;
while(rv.has(_9a)){
rv=rv.replace(_9a,_9b);
}
return rv;
};
String.prototype.replaceTokensEx=function(_9d){
var rv=this,re,tkn,a=arguments,l=a.length;
for(var i=1;i<l+1;i++){
rv=this.replaceToken(rv,_9d.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(_a2){
return (this.indexOf(_a2)!=-1);
};
String.prototype.hasArg=function(_a3){
var a=_a3,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(_af){
var d=document,e=null;
if(d.getElementById){
e=d.getElementById(_af);
}
if(!e&&d.all){
e=d.all[_af];
}
return e;
},toggleHideShow:function(_b1,_b2){
var e=this.get(_b1),s,d,u="undefined";
if(e){
s=e.style;
d=s.display;
if(typeof (_b2)===u){
_b2=(d===""||d==="block")?false:true;
}
s.display=(_b2)?"block":"none";
}
},toggleVisibility:function(_b4,_b5){
var e=this.get(_b4),v,s,u="undefined";
if(e){
s=e.style;
v=s.visibility;
if(typeof (_b5)===u){
_b5=(v==="")?false:true;
}
s.visibility=(_b5)?"":"hidden";
}
},enable:function(_b7,_b8){
var e=this.get(_b7);
if(e){
e.disabled=!_b8;
}
},left:function(_ba,_bb){
return this.setLTWH(_ba,_bb,"Left");
},top:function(_bc,_bd){
return this.setLTWH(_bc,_bd,"Top");
},width:function(_be,_bf){
return this.setLTWH(_be,_bf,"Width");
},height:function(_c0,_c1){
return this.setLTWH(_c0,_c1,"Height");
},setLTWH:function(_c2,_c3,_c4){
var e=this.get(_c2);
if(e){
if((_c3!=null)&&!isNaN(parseInt(_c3))){
e.style[_c4.toLowerCase()]=_c3;
}
return e["offset"+_c4];
}
}});

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(_c6,_c7){
var rv=this.readCookieObj(_c6,_c7).value;
return (rv)?unescape(rv):"";
},createDefaultCookieBean:function(_c9,_ca){
var _cb={};
_cb.name=_c9;
_cb.cookieletname=_ca;
_cb.value="";
_cb.maxage=0;
_cb.rawcookievalue="";
_cb.mode="";
return _cb;
},readCookieObj:function(_cc,_cd){
var _ce=this.createDefaultCookieBean(_cc,_cd);
this.update();
this.checkConversionMap(_ce);
_ce.rawcookievalue=this.aCookies[_ce.name];
if(!_ce.name||!_ce.rawcookievalue){
_ce.value="";
}else{
if(!_ce.cookieletname){
this.readCookieInternal(_ce);
}else{
this.readCookieletInternal(_ce);
}
}
return (typeof (_ce)!="undefined")?_ce:"";
},checkConversionMap:function(_cf){
var _d0=this.aConversionMap[_cf.name];
if(_d0){
_cf.mode=this.getMode(_cf.name);
_cf.name=_d0[0];
_cf.cookieletname=_d0[1];
}
},readCookieInternal:function(_d1){
_d1.value=_d1.rawcookievalue;
return _d1;
},readCookieletInternal:function(_d2){
var _d3=this.getCookielet(_d2.name,_d2.cookieletname,_d2.rawcookievalue);
var _d4=this.getFormat(_d2.name);
if(_d3&&_d4.bUseExp){
var _d5=_d3;
_d3=_d3.substring(0,_d3.length-8);
if(_d5.length>8){
_d2.maxage=_d5.substring(_d5.length-8);
}
}
_d2.value=_d3;
if(_d2.mode==this.sCOMPAT){
_d2.value=_d2.rawcookievalue;
}
return _d2;
},readMultiLineCookie:function(_d6,_d7){
if(!_d6||!_d7){
return "";
}
var val,r="";
var _d9=this.aConversionMap[_d6];
if(_d9){
val=this.readCookieObj(_d9[0],_d9[1]).value||"";
}
if(val){
r=this.getCookielet(_d6,_d7,val)||"";
}
return (typeof (r)!="undefined")?r:"";
},writeCookie:function(_da,_db,_dc){
var _dd=this.aConversionMap[_da];
if(_dd){
this.writeCookielet(_dd[0],_dd[1],_db,_dc);
return;
}
var _de=this.getFormat(_da);
if(_db&&_de.escapedValue){
_db=escape(_db);
}
this.writeRawCookie(_da,_db,_dc);
},writeRawCookie:function(_df,_e0,_e1){
if(_df&&(_e0!==undefined)){
if((isNaN(_e0)&&_e0.length<4000)||(_e0+"").length<4000){
if(typeof _e1=="number"){
_e1=this.getExpDate(_e1);
}
var _e2=_e1?new Date(_e1):new Date(this.getExpDate(730));
var _e3=this.getFormat(_df);
var _e4=this.sCookieDomain;
var dd=document.domain;
if(!dd.has(_e4)){
var _e6=dd.indexOf(".ebay.");
if(_e6>0){
this.sCookieDomain=dd.substring(_e6);
}
}
if(document.cookie){
document.cookie=_df+"="+(_e0||"")+((_e1||_e3.bUseExp)?"; expires="+_e2.toGMTString():"")+"; domain="+this.sCookieDomain+"; path="+this.sPath;
}
}
}
},writeCookieEx:function(_e7,_e8,_e9){
this.writeCookie(_e7,_e8,this.getExpDate(_e9));
},writeCookielet:function(_ea,_eb,_ec,_ed,_ee){
if(_ea&&_eb){
this.update();
var _ef=this.getFormat(_ea);
if(_ef.bUseExp&&_ec){
if(typeof _ed=="number"){
_ed=this.getExpDate(_ed);
}
var _f0=_ed?new Date(_ed):new Date(this.getExpDate(730));
var _f1=Date.UTC(_f0.getUTCFullYear(),_f0.getUTCMonth(),_f0.getUTCDate());
_f1=Math.floor(_f1/1000);
_ec+=_f1.dec2Hex();
}
var val=this.createCookieValue(_ea,_eb,_ec);
this.writeRawCookie(_ea,val,_ee);
}
},writeMultiLineCookie:function(_f3,_f4,_f5,_f6,_f7){
this.update();
var val=this.createCookieValue(_f3,_f4,_f5);
if(val){
var _f9=this.aConversionMap[_f3];
if(_f9){
this.writeCookielet(_f9[0],_f9[1],val,_f6,_f7);
}
}
},getBitFlag:function(_fa,_fb){
_fa=parseInt(_fa,10);
var b=_fa.toString(2),r=_fa?b.charAt(b.length-_fb-1):"";
return (r=="1")?1:0;
},setBitFlag:function(_fd,_fe,_ff){
var b="",p,i,e,l;
_fd=parseInt(_fd,10);
if(_fd){
b=_fd.toString(2);
}
l=b.length;
if(l<_fe){
e=_fe-l;
for(i=0;i<=e;i++){
b="0"+b;
}
}
p=b.length-_fe-1;
return parseInt(b.substring(0,p)+_ff+b.substring(p+1),2);
},createCookieValue:function(_101,_102,_103){
var cmap=this.aConversionMap[_101],format=this.getFormat(_101),mode=this.getMode(_101),val;
if(cmap&&(mode==this.sSTRICT||mode==this.sCONVER)){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}else{
val=this.aCookies[_101]||"";
}
if(format){
var clts=this.getCookieletArray(val,format);
clts[_102]=_103;
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 _10b=this.getFormat(sC[0]),cv=sC[1],sd=_10b.startDelim;
if(sd&&cv&&cv.indexOf(sd)===0){
sC[1]=cv.substring(sd.length,cv.length);
}
this.aCookies[sC[0]]=sC[1];
}
},getCookielet:function(_10c,_10d,_10e){
var _10f=this.getFormat(_10c);
var clts=this.getCookieletArray(_10e,_10f);
return clts[_10d]||"";
},getFormat:function(_111){
return this.aFormatMap[_111]||vjo.dsf.cookie.VjCookieJar.Default_Cookie_Format;
},getCookieletArray:function(_112,_113){
var rv=[],val=_112||"";
if(_113.escapedValue){
val=unescape(val);
}
var a=val.split(_113.COOKIELET_DELIMITER);
for(var i=0;i<a.length;i++){
var idx=a[i].indexOf(_113.NAME_VALUE_DELIMITER);
if(idx>0){
rv[a[i].substring(0,idx)]=a[i].substring(idx+1);
}
}
return rv;
},getExpDate:function(_118){
var _119;
if(typeof _118=="number"&&_118>=0){
var d=new Date();
d.setTime(d.getTime()+(_118*24*60*60*1000));
_119=d.toGMTString();
}
return _119;
},getMode:function(_11b){
var h=this.readCookieObj(this.sModesCookie,this.sModesCookielet).value,b;
if(!(_11b 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(_11b==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(_120,_121){
var fcn;
if(typeof _121=="string"){
fcn=_120[_121];
}else{
fcn=_121;
}
return function(){
return fcn.apply(_120,arguments);
};
},extend:function(_123,_124){
function inheritance(){
}
inheritance.prototype=_124.prototype;
_123.prototype=new inheritance();
_123.prototype.constructor=_123;
_123.baseConstructor=_124;
_123.superClass=_124.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(_125,_126,_127,_128,_129,_12a,_12b){
this.sLayerId=_125;
this.sCloseAnchorId=_126;
this.sCartCountText=_127;
this.aHostCoutryId=_128;
this.aHostCountryDomain=_129;
this.aHideOnParams=_12a;
this.sHtmlProvider=_12b;
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(_12e,_12f){
var sh1=_12e.toLowerCase(),sh2=_12f.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 _131=this.aHideOnParams;
var iLen=_131.length;
for(var i=0;i<iLen;i++){
if(document.location.href.has(_131[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(_13d){
var oC=vjo.dsf.client.Browser;
return oC.bActiveXSupported&&vbCheckActiveXControl(_13d);
}}).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,_142,_143,_144,_145,_146,_147,_148,_149,_14a,_14b){
this.sId=pId;
this.iPollingInterval=_142;
this.iMaxHits=_143;
this.iHitTimeout=_144;
this.iServerHits=0;
this.sLastCookieletValue="";
this.sServerUrl=_145;
if(document.location.protocol.has("https")){
_146=_146.replace("http://pics.","https://securepics.");
}
this.sImgServer=_146+"/";
this.sViewItemUrl=_147;
this.aAlertInfo=[["h:h:alt:2",_149,"icon/iconOutbid_16x16.gif"],["h:h:alt:3",_148,"icon/iconWatchB_16x16.gif"],["h:h:alt:4",_149,"icon/iconOutbid_16x16.gif"],["h:h:alt:5",_14a,"icon/iconchanceBlu_16x16.gif"],["h:h:alt:tcr",_14b,"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,_14e){
var oL=this.oL;
if(oL){
if(pVal.is("")&&!oL.ctrld){
return;
}
if(_14e){
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 _158=cfg[at-1],imgSrv=this.sImgServer;
var _159=imgSrv+"s.gif";
var _15a="<img src=\""+_159+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">|<img src=\""+_159+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">";
_15a+="<img src=\""+imgSrv+_158[2]+"?t\" style=\"vertical-align:middle\"><img src=\""+_159+"\" width=\"5\" height=\"16\" style=\"vertical-align:middle\">";
var url=this.sViewItemUrl+"&item="+ii;
_15a+="<a href=\""+url+"&ssPageName="+_158[0]+"\">"+_158[1]+"</a>";
this.setValue(_15a);
this.sLastCookieletValue=c;
}
this.fireRefreshEvent();
},fireRefreshEvent:function(_15c){
if(!_15c){
_15c=this.iPollingInterval;
}
window.setTimeout(vjo.dsf.utils.Object.hitch(this,this.onRefresh),_15c*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(_160){
var e=_160,l=0;
while(e){
l+=e.offsetLeft;
e=e.offsetParent;
}
return l;
},getOffsetTop:function(_162){
var e=_162,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(_166){
var u="undefined",evt=window.event||_166,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(_168,_169,_16a){
var f,p="px",w,h,s;
if(this.check()){
w=_168.offsetWidth;
h=_168.offsetHeight;
w+=_169?_169:0;
h+=_16a?_16a: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\")";
_168.appendChild(f);
return f;
}
},remove:function(_16c,_16d){
if(this.check()){
if(_16d&&_16d.parentElement){
_16c.removeChild(_16d);
}
}
},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(_170){
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(_174){
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(_175,_176,_177,_178,_179,_17a,_17b,_17c,_17d,_17e,_17f,_180,_181,_182,_183,_184,_185,_186,_187,_188){
this.iMouseOutTimer=null;
this.iMouseOverTimer=null;
this.iLeftPadding=_17f;
this.iTopPadding=_180;
this.iRightPadding=_181;
this.sAnchorId=_175;
this.sContainerLayerId=_176;
this.sContentLayerId=_177;
this.iMouseOutDelay=_178;
this.iMouseOverDelay=_179;
this.iHighResDocWidth=_17a;
this.iLowResDocWidth=_17b;
this.iHighResColumns=_17c;
this.iMediumResColumns=_17d;
this.iLowResColumns=_17e;
this.sHandler=_182;
this.sCollName=_183;
this.sWidth=_184;
this.sAnchorMouseOverClass=_185;
this.sAnchorMouseOutClass=_186;
this.iframeShim=null;
this.sHTML=null;
this.oAnchor=null;
this.sTemplate=null;
this.sAnchorText=_187;
this.sDomain=_188;
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;
}
}
var bE=(sAnchorId=="EbxBrowseCategories")?true:false;
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);
}else{
if(bE&&((typeof (pageName)!="undefined")?pageName.has("KP_HomePage"):false)){
iAL=P.getOffsetLeft(oA);
}
}
}
}
}
}
var _18e=E.get("2tabPopularProducts");
if(_18e&&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;
}
}
}
}
}
}
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(_192){
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='";
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 _195=window[sHandler];
if(!_195){
return;
}
var data=_195(),items=data[sCollName],l=items.length;
ipc=Math.ceil(l/_192);
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<_192;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("\"")+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(_19b){
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(_19b);
}
return _19b;
}});

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(_19d,_19e){
this.sLayerId=_19d;
this.sHandle=_19e;
},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(_1a1,_1a2,_1a3){
if(_1a1==null||_1a1==undefined){
return null;
}
if(_1a1.indexOf("?")<0){
_1a1+="?"+_1a2+"="+_1a3;
return _1a1;
}
var _1a4=this.getArgPairIfExists(_1a1,_1a2);
if(_1a4!==null){
_1a1.replace(_1a4,_1a2+"="+_1a3);
}else{
_1a1+="&"+_1a2+"="+_1a3;
}
return _1a1;
},getArg:function(_1a5,_1a6){
if(_1a5==null||_1a5==undefined){
return null;
}
if(_1a5.indexOf("?")<0){
return null;
}
var _1a7=this.getArgPairIfExists(_1a5,_1a6);
if(_1a7!==null){
return _1a7.substring(_1a7.indexOf("=")+1);
}
return null;
},getArgPairIfExists:function(_1a8,_1a9){
var _1aa=_1a8.indexOf("?");
if(_1aa<0){
return null;
}
var _1ab=_1a8;
var _1ac,argName;
while(_1aa>=0){
_1ab=_1ab.substring(_1aa+1);
_1ac=_1ab;
_1aa=_1ab.indexOf("&");
if(_1aa>=0){
_1ac=_1ab.substring(0,_1aa);
}
argName=_1ac.substring(0,_1ac.indexOf("="));
if(argName==_1a9){
return _1ac;
}
}
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(_1ad,_1ae){
this.sCid=_1ad;
this.sCidParms=_1ae;
},rewriteUrl:function(_1af){
if(_1af.nativeEvent==null||_1af.nativeEvent==undefined){
return;
}
var elem=_1af.nativeEvent.srcElement||_1af.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(_1b1){
var e=_1b1;
if(e&&e.tagName){
if(!e.tagName.is("A")){
e=this.getAnchor(e.parentNode);
}
return e;
}
},handle:function(_1b3){
this.rewriteUrl(_1b3);
}});

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

vjo.type("vjo.dsf.Message").protos({constructs:function(_1b6){
this.objType="dsf_Message";
this.svcId=_1b6;
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://yobitches.com/\">Home</a>"},{"value":"<a href=\"http://http://yobitches.com/work/\">Work History</a>"},{"value":"<a href=\"http://yobitches.com/portfolio/\">Portfolio</a>"},{"value":"<a href=\"http://yobitches.com/video/\">Video</a>"},{"value":"<a href=\"http://yobitches.com/contact/\">Contact Me</a>"}]};
}
function get_Sell_menu(){
return {"items":[{"value":"<a href=\"http://yobitches.com/\">Home</a>"},{"value":"<a href=\"http://http://yobitches.com/work/\">Work History</a>"},{"value":"<a href=\"http://yobitches.com/portfolio/\">Portfolio</a>"},{"value":"<a href=\"http://yobitches.com/video/\">Video</a>"},{"value":"<a href=\"http://yobitches.com/contact/\">Contact Me</a>"}]};
}
function get_MyEbay_menu(){
return {"items":[{"value":"<a href=\"http://yobitches.com/\">Home</a>"},{"value":"<a href=\"http://http://yobitches.com/work/\">Work History</a>"},{"value":"<a href=\"http://yobitches.com/portfolio/\">Portfolio</a>"},{"value":"<a href=\"http://yobitches.com/video/\">Video</a>"},{"value":"<a href=\"http://yobitches.com/contact/\">Contact Me</a>"}]};
}
function get_Community_menu(){
return {"items":[{"value":"<a href=\"http://yobitches.com/\">Home</a>"},{"value":"<a href=\"http://http://yobitches.com/work/\">Work History</a>"},{"value":"<a href=\"http://yobitches.com/portfolio/\">Portfolio</a>"},{"value":"<a href=\"http://yobitches.com/video/\">Video</a>"},{"value":"<a href=\"http://yobitches.com/contact/\">Contact Me</a>"}]};
}
function get_Help_menu(){
return {"items":[{"value":"<a href=\"http://yobitches.com/\">Home</a>"},{"value":"<a href=\"http://http://yobitches.com/work/\">Work History</a>"},{"value":"<a href=\"http://yobitches.com/portfolio/\">Portfolio</a>"},{"value":"<a href=\"http://yobitches.com/video/\">Video</a>"},{"value":"<a href=\"http://yobitches.com/contact/\">Contact Me</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(_1dd,_1de,_1df){
var e=_1dd;
if(e){
var o=new Option(_1df,_1de,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(_1e2,_1e3,_1e4,_1e5){
this.sDropdownId=_1e2;
this.sHandler=_1e3;
this.sCollName=_1e4;
this.iCondNo=_1e5;
},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());


/* 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/e525/GlobalNavVjo23_Ebay_e5255110694_1_en_US
// b=5110694