String.prototype.has=function(pStr){
return (this.indexOf(pStr)!=-1);
};
String.prototype.hasArg=function(pArg){
var a=pArg,rv=false;
if(typeof (a)=="string"){
rv=this.has(a);
}else{
var aL=a.length;
for(var j=0;j<aL&&!rv;j++){
rv=this.has(a[j]);
}
}
return rv;
};
String.prototype.hasAny=function(){
var a=arguments,l=a.length,rv=false;
for(var i=0;i<l&&!rv;i++){
rv=this.hasArg(a[i]);
}
return rv;
};
String.prototype.hasAll=function(){
var a=arguments,l=a.length;
for(var i=0;i<l;i++){
if(!this.hasArg(a[i])){
return false;
}
}
return true;
};
String.prototype.is=function(s){
return (this==s);
};
String.prototype.isAny=function(){
var a=arguments,l=a.length,rv=false,aL;
for(var i=0;i<l&&!rv;i++){
if(typeof (a[i])=="string"){
rv=(this==a[i]);
}else{
aL=a[i].length;
for(var j=0;j<aL&&!rv;j++){
rv=(this==a[i][j]);
}
}
}
return rv;
};
String.prototype.hex2Dec=function(){
return parseInt(this,16);
};
Number.prototype.dec2Hex=function(){
return parseInt(this,10).toString(16);
};
VjDateUtils={};
VjDateUtils.getTimeZoneDate=function(_37eb,date){
_37eb=_37eb?_37eb:0;
d=date?date:new Date();
var _37ed=d.getTime();
var _37ee=d.getTimezoneOffset()*60000;
var utc=_37ed+_37ee;
return new Date(utc+(3600000*_37eb));
};
if(typeof VjCookieJar=="undefined"){
VjCookieJar={aCookies:{},sCookieDomain:".ebay.com"};
}
VjCookieJar.Default_Cookie_Format={"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"/","escapedValue":true};
VjCookieJar.DP_Cookie_Format={"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"/","bUseExp":true,"startDelim":"b"};
VjCookieJar.Session_Cookie_Format={"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"=","escapedValue":true,"startDelim":"^"};
VjCookieJar.DS_Cookie_Format={"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"/"};
VjCookieJar.sPath="/";
VjCookieJar.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"]};
VjCookieJar.aFormatMap={"r":VjCookieJar.Default_Cookie_Format,"dp1":VjCookieJar.DP_Cookie_Format,"npii":VjCookieJar.DP_Cookie_Format,"ebay":VjCookieJar.Session_Cookie_Format,"reg":VjCookieJar.Session_Cookie_Format,"apcCookies":VjCookieJar.Session_Cookie_Format,"ds2":VjCookieJar.DS_Cookie_Format};
VjCookieJar.sCOMPAT="10";
VjCookieJar.sCONVER="01";
VjCookieJar.sSTRICT="00";
VjCookieJar.sModesCookie="ebay";
VjCookieJar.sModesCookielet="cv";
VjCookieJar.readCookie=function(_37f0,_37f1){
var rv=this.readCookieObj(_37f0,_37f1).value;
return (rv)?unescape(rv):"";
};
VjCookieJar.createDefaultCookieBean=function(_37f3,_37f4){
var _37f5={};
_37f5.name=_37f3;
_37f5.cookieletname=_37f4;
_37f5.value="";
_37f5.maxage=0;
_37f5.rawcookievalue="";
_37f5.mode="";
return _37f5;
};
VjCookieJar.readCookieObj=function(_37f6,_37f7){
var _37f8=this.createDefaultCookieBean(_37f6,_37f7);
this.update();
this.checkConversionMap(_37f8);
_37f8.rawcookievalue=this.aCookies[_37f8.name];
if(!_37f8.name||!_37f8.rawcookievalue){
_37f8.value="";
}else{
if(!_37f8.cookieletname){
this.readCookieInternal(_37f8);
}else{
this.readCookieletInternal(_37f8);
}
}
return (typeof (_37f8)!="undefined")?_37f8:"";
};
VjCookieJar.checkConversionMap=function(_37f9){
var cmap=this.aConversionMap[_37f9.name];
if(cmap){
_37f9.mode=this.getMode(_37f9.name);
_37f9.name=cmap[0];
_37f9.cookieletname=cmap[1];
}
};
VjCookieJar.readCookieInternal=function(_37fb){
_37fb.value=_37fb.rawcookievalue;
return _37fb;
};
VjCookieJar.readCookieletInternal=function(_37fc){
var clet=this.getCookielet(_37fc.name,_37fc.cookieletname,_37fc.rawcookievalue);
var _37fe=this.getFormat(_37fc.name);
if(clet&&_37fe.bUseExp){
clet=clet.substring(0,clet.length-8);
}
_37fc.value=clet;
if(_37fc.mode==this.sCOMPAT){
_37fc.value=_37fc.rawcookievalue;
}
return _37fc;
};
VjCookieJar.readMultiLineCookie=function(_37ff,_3800){
if(!_37ff||!_3800){
return "";
}
var val,r="";
var cmap=this.aConversionMap[_37ff];
if(cmap){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}
if(val){
r=this.getCookielet(_37ff,_3800,val)||"";
}
return (typeof (r)!="undefined")?r:"";
};
VjCookieJar.writeCookie=function(_3803,psVal,psExp){
var cmap=this.aConversionMap[_3803];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],psVal,psExp);
return;
}
var _3807=this.getFormat(_3803);
if(psVal&&_3807.escapedValue){
psVal=escape(psVal);
}
this.writeRawCookie(_3803,psVal,psExp);
};
VjCookieJar.writeRawCookie=function(_3808,psVal,psExp){
if(_3808&&(psVal!==undefined)){
if((isNaN(psVal)&&psVal.length<4000)||(psVal+"").length<4000){
if(typeof psExp=="number"){
psExp=this.getExpDate(psExp);
}
var _380b=psExp?new Date(psExp):new Date(this.getExpDate(730));
var _380c=this.getFormat(_3808);
var sHost=this.sCookieDomain;
var dd=document.domain;
if(!dd.has(sHost)){
var index=dd.indexOf(".ebay.");
if(index>0){
this.sCookieDomain=dd.substring(index);
}
}
if(document.cookie){
document.cookie=_3808+"="+(psVal||"")+((psExp||_380c.bUseExp)?"; expires="+_380b.toGMTString():"")+"; domain="+this.sCookieDomain+"; path="+this.sPath;
}
}
}
};
VjCookieJar.writeCookieEx=function(_3810,psVal,_3812){
this.writeCookie(_3810,psVal,this.getExpDate(_3812));
};
VjCookieJar.writeCookielet=function(_3813,_3814,psVal,psExp,_3817){
if(_3813&&_3814){
this.update();
var _3818=this.getFormat(_3813);
if(_3818.bUseExp&&psVal){
if(typeof psExp=="number"){
psExp=this.getExpDate(psExp);
}
var _3819=psExp?new Date(psExp):new Date(this.getExpDate(730));
var _381a=Date.UTC(_3819.getUTCFullYear(),_3819.getUTCMonth(),_3819.getUTCDate());
_381a=Math.floor(_381a/1000);
psVal+=_381a.dec2Hex();
}
var val=this.createCookieValue(_3813,_3814,psVal);
this.writeRawCookie(_3813,val,_3817);
}
};
VjCookieJar.writeMultiLineCookie=function(_381c,_381d,psVal,psExp,_3820){
this.update();
var val=this.createCookieValue(_381c,_381d,psVal);
if(val){
var cmap=this.aConversionMap[_381c];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],val,psExp,_3820);
}
}
};
VjCookieJar.getBitFlag=function(piDec,piPos){
piDec=parseInt(piDec,10);
var b=piDec.toString(2),r=piDec?b.charAt(b.length-piPos-1):"";
return (r=="1")?1:0;
};
VjCookieJar.setBitFlag=function(piDec,piPos,piVal){
var b="",p,i,e,l;
piDec=parseInt(piDec,10);
if(piDec){
b=piDec.toString(2);
}
l=b.length;
if(l<piPos){
e=piPos-l;
for(i=0;i<=e;i++){
b="0"+b;
}
}
p=b.length-piPos-1;
return parseInt(b.substring(0,p)+piVal+b.substring(p+1),2);
};
VjCookieJar.createCookieValue=function(_382a,psKey,psVal){
var cmap=this.aConversionMap[_382a],format=this.getFormat(_382a),mode=this.getMode(_382a),val;
if(cmap&&(mode==this.sSTRICT||mode==this.sCONVER)){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}else{
val=this.aCookies[_382a]||"";
}
if(format){
var clts=this.getCookieletArray(val,format);
clts[psKey]=psVal;
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;
};
VjCookieJar.update=function(){
var aC=document.cookie.split("; ");
this.aCookies={};
for(var i=0;i<aC.length;i++){
var sC=aC[i].split("=");
var _3834=this.getFormat(sC[0]),cv=sC[1],sd=_3834.startDelim;
if(sd&&cv&&cv.indexOf(sd)==0){
sC[1]=cv.substring(sd.length,cv.length);
}
this.aCookies[sC[0]]=sC[1];
}
};
VjCookieJar.getCookielet=function(_3835,_3836,psVal){
var _3838=this.getFormat(_3835);
var clts=this.getCookieletArray(psVal,_3838);
return clts[_3836]||"";
};
VjCookieJar.getFormat=function(_383a){
return this.aFormatMap[_383a]||VjCookieJar.Default_Cookie_Format;
};
VjCookieJar.getCookieletArray=function(psVal,_383c){
var rv=[],val=psVal||"";
if(_383c.escapedValue){
val=unescape(val);
}
var a=val.split(_383c.COOKIELET_DELIMITER);
for(var i=0;i<a.length;i++){
var idx=a[i].indexOf(_383c.NAME_VALUE_DELIMITER);
if(idx>0){
rv[a[i].substring(0,idx)]=a[i].substring(idx+1);
}
}
return rv;
};
VjCookieJar.getExpDate=function(_3841){
var _3842;
if(typeof _3841=="number"&&_3841>=0){
var d=new Date();
d.setTime(d.getTime()+(_3841*24*60*60*1000));
_3842=d.toGMTString();
}
return _3842;
};
VjCookieJar.getMode=function(_3844){
var h=this.readCookieObj(this.sModesCookie,this.sModesCookielet).value,b;
if(!(_3844 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(_3844==o){
return (f.length==1)?"0"+f:f;
}
i++;
}
return null;
}
};
VjUtils={};
VjUtils.isString=function(wh){
return (typeof wh=="string");
};
VjUtils.hitch=function(_3849,_384a){
var fcn;
if(VjUtils.isString(_384a)){
fcn=_3849[_384a];
}else{
fcn=_384a;
}
return function(){
return fcn.apply(_3849,arguments);
};
};
VjUtils.extend=function(_384c,_384d){
function inheritance(){
}
inheritance.prototype=_384d.prototype;
_384c.prototype=new inheritance();
_384c.prototype.constructor=_384c;
_384c.baseConstructor=_384d;
_384c.superClass=_384d.prototype;
};
VjWindowUtils={};
VjWindowUtils.getBrowserWindowHeight=function(){
var s=self;
var d=document;
var de=d.documentElement;
if(s.innerHeight){
return s.innerHeight;
}else{
if(de&&de.clientHeight){
return de.clientHeight;
}
}
return d.body.clientHeight;
};
VjWindowUtils.getBrowserWindowWidth=function(){
var s=self;
var d=document;
var de=d.documentElement;
if(s.innerWidth){
return s.innerWidth;
}else{
if(de&&de.clientWidth){
return de.clientWidth;
}
}
return d.body.clientWidth;
};
VjWindowUtils.getScrollXY=function(){
var _3854=0,scrOfY=0;
if(typeof (window.pageYOffset)=="number"){
scrOfY=window.pageYOffset;
_3854=window.pageXOffset;
}else{
if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){
scrOfY=document.body.scrollTop;
_3854=document.body.scrollLeft;
}else{
if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){
scrOfY=document.documentElement.scrollTop;
_3854=document.documentElement.scrollLeft;
}
}
}
return [_3854,scrOfY];
};
function ExpressHandler(){
}
ExpressHandler.prototype.handle=function(event){
oRegistry.get("expressCompId").init();
};
var VjClient={};
VjClient.getBrowserObj=function(){
this.bFirefox=this.bWebTV=this.bOpera=this.bNav=this.bIE=this.bSafari=this.bWin=this.bMac=this.bMacppc=this.bActiveXLibLoaded=this.bActiveXSupported=this.bWinXp=this.bXpSp2=this.bAOL=false;
this.init=function(){
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"));
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&&(typeof (ActiveXObject)=="function"));
}
};
this.init();
return this;
};
function BtaHandler(){
}
BtaHandler.prototype.handle=function(event){
oRegistry.get("bta").onRefresh();
};
function DynamicMenu(_3858,_3859,_385a,_385b,_385c,_385d,_385e,_385f,_3860,_3861,_3862,_3863,_3864,_3865,_3866,_3867,_3868,_3869,_386a,_386b){
this.iMouseOutTimer=null;
this.iMouseOverTimer=null;
this.iLeftPadding=_3862;
this.iTopPadding=_3863;
this.iRightPadding=_3864;
this.sAnchorId=_3858;
this.sContainerLayerId=_3859;
this.sContentLayerId=_385a;
this.iMouseOutDelay=_385b;
this.iMouseOverDelay=_385c;
this.iHighResDocWidth=_385d;
this.iLowResDocWidth=_385e;
this.iHighResColumns=_385f;
this.iMediumResColumns=_3860;
this.iLowResColumns=_3861;
this.sHandler=_3865;
this.sCollName=_3866;
this.sWidth=_3867;
this.sAnchorMouseOverClass=_3868;
this.sAnchorMouseOutClass=_3869;
this.iframeShim=null;
this.sHTML=null;
this.oAnchor=null;
this.sTemplate=null;
this.sAnchorText=_386a;
this.sDomain=_386b;
this.getAnchor=function(){
with(this){
if(oAnchor==null){
var oCl=VjClient.getBrowserObj(),a=getElementById(sAnchorId),t=sAnchorText;
if(t){
(oCl.bFirefox)?a.textContent=t:a.innerText=t;
}
oAnchor=a;
}
return oAnchor;
}
};
if(this.sAnchorId=="Help"){
this.iLeftPadding-=5;
}
}
DynamicMenu.prototype.showDynamicMenu=function(){
var oL,oA,iL,iT,iWW,noc,iAL,iAW,iLW,op,oSI,bF=false,t,lh=window.location.href,agt=navigator.userAgent.toLowerCase();
with(this){
clearMouseOutTimer();
if(sTemplate==null){
t=getElementById(sContentLayerId);
if(t){
sTemplate=t.innerHTML;
}
}
oL=getElementById(sContainerLayerId);
if(oL){
op=oL.offsetParent;
}
oA=getAnchor();
iAL=DynamicMenuGetOffsetLeft(oA);
iAW=oA.offsetWidth;
iT=getOffsetTop(oA)+(oA.offsetHeight)+iTopPadding;
iWW=VjWindowUtils.getBrowserWindowWidth();
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&&document.all&&!lh.hasAny("community","education")){
cw=oCon.offsetWidth;
if((iAL+iLW)>cw){
bRA=true;
}
}
if(lh.has("securitycenter")&&lh.has(".hk")){
iAL=getOffsetLeft(oA);
}else{
if(lh.hasAny("securitycentre","contact_ebay")&&lh.has(".au")){
iAL=getOffsetLeft(oA);
}else{
if((typeof (pageName)!="undefined")?pageName.has("CCHP_"):false){
iAL=getOffsetLeft(oA);
}else{
if(lh.hasAny("/buy/")){
iAL=getOffsetLeft(oA);
}else{
if(lh.hasAny("pages.",".html",".shtml")){
iAL=getOffsetLeft(oA);
}
}
}
}
}
var oTemp=getElementById("2tabPopularProducts");
if(oTemp&&document.all){
iAL=getOffsetLeft(oA);
}
if((((iWW-iAL-iLW)<=10)&&iWW>iLW)||(iWW<(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")&&document.all){
iL+=10;
}else{
if(lh.has("feedback")&&lh.has(".hk")&&agt.has("firefox")){
iL+=7;
}else{
if(lh.has("my.")&&agt.has("firefox")){
iL-=7;
}else{
if(lh.has("myworld")&&document.all){
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=addLayerShim(oL,12);
}else{
iframeShim=addLayerShim(oL);
}
}else{
if(agt.hasAny("msie","firefox")){
oL.appendChild(iframeShim);
}
}
oSI=getElementById(sContainerLayerId+"-spacer");
if(oSI&&bF){
oSI.width=iLW-12;
}
iMouseOverTimer=setTimeout(VjUtils.hitch(this,"show"),iMouseOverDelay);
}
};
DynamicMenu.prototype.show=function(){
var oA;
with(this){
oA=getAnchor();
if(oA){
oA.className=sAnchorMouseOverClass;
}
toggleVisibility(sContainerLayerId,true);
}
};
DynamicMenu.prototype.startMouseOutTimer=function(){
with(this){
clearTimeout(iMouseOverTimer);
iMouseOutTimer=setTimeout(VjUtils.hitch(this,"close"),iMouseOutDelay);
}
};
DynamicMenu.prototype.close=function(){
var oA;
with(this){
oA=getAnchor();
if(oA){
oA.className=sAnchorMouseOutClass;
}
toggleVisibility(sContainerLayerId,false);
if(iframeShim){
removeLayerShim(getElementById(sContainerLayerId),iframeShim);
}
}
};
DynamicMenu.prototype.clearMouseOutTimer=function(){
clearTimeout(this.iMouseOutTimer);
};
DynamicMenu.prototype.getMenuHtml=function(_3872){
with(this){
var i,j,c,n,h,ipc,html,img="",si,sTemp=".paradise.qa.ebay.com";
si="<img src='http://pics.ebaystatic.com/aw/pics/s.gif' height='1' width='1'  border='0' ";
var _3874=window[sHandler];
if(!_3874){
return;
}
var data=_3874(),items=data[sCollName],l=items.length;
ipc=Math.ceil(l/_3872);
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<_3872;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"){
h+="<a href='"+(sDomain?c.url.replace(sTemp,sDomain):c.url)+"'>";
h+=c.value;
h+="</a>";
}else{
h+=c.value;
}
}else{
h+="&nbsp;";
}
h+="</td>";
}
h+="</tr>";
}
h+="</table>";
html=h;
if(sTemplate){
html=sTemplate.replace("##1##",h).replace("##2##",img);
}
return html;
}
};
function DynamicMenuMouseOutHandler(psId){
this.id=psId;
}
DynamicMenuMouseOutHandler.prototype.handle=function(event){
oRegistry.get(this.id).startMouseOutTimer();
};
function DynamicMenuClearMouseOutHandler(psId){
this.id=psId;
}
DynamicMenuClearMouseOutHandler.prototype.handle=function(event){
oRegistry.get(this.id).clearMouseOutTimer();
};
function DynamicShowMenuHandler(psId){
this.id=psId;
}
DynamicShowMenuHandler.prototype.handle=function(event){
oRegistry.get(this.id).showDynamicMenu();
};
function DynamicMenuGetOffsetLeft(e){
var l=0,oCl=VjClient.getBrowserObj(),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;
}
function GetContainerDiv(){
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];
}
}
}
DynamicMenu.prototype.addLayerShim=function(node,_3881,_3882){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
var w=node.offsetWidth,h=node.offsetHeight;
w+=_3881?_3881:0;
h+=_3882?_3882:0;
var _3885=document.createElement("IFRAME");
_3885.style.width=w+"px";
_3885.style.height=h+"px";
_3885.style.filter="chroma(color='white')";
_3885.frameBorder=0;
_3885.style.position="absolute";
_3885.style.left="0px";
_3885.style.top="0px";
_3885.style.zIndex="-1";
_3885.style.filter="Alpha(Opacity=\"0\")";
node.appendChild(_3885);
return _3885;
};
DynamicMenu.prototype.removeLayerShim=function(_3886,_3887){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
if(_3887&&_3887.parentElement){
_3886.removeChild(_3887);
}
};
function getOffsetTop(elm){
var _388a=elm.offsetTop;
var _388b=elm.offsetParent;
while(_388b!==null){
_388a+=_388b.offsetTop;
_388b=_388b.offsetParent;
}
return _388a;
}
function getOffsetLeft(elm){
var _388d=elm.offsetLeft;
var _388e=elm.offsetParent;
while(_388e!==null){
_388d+=_388e.offsetLeft;
_388e=_388e.offsetParent;
}
return _388d;
}
var VjLayerUtils={};
VjLayerUtils.matchColumnHeight=function(_388f,_3890,aDivs){
var px="px";
var _3893=document.getElementById(_388f);
var _3894=_3893.offsetHeight;
var _3895=Math.max(_3894,_3890);
for(var i=0;i<aDivs.length;i++){
document.getElementById(aDivs[i]).style.height=_3895+px;
}
};
VjLayerUtils.addLayerShim=function(node){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
var _3899=document.createElement("IFRAME");
_3899.style.width=node.offsetWidth+"px";
_3899.style.height=node.offsetHeight+"px";
_3899.style.filter="chroma(color='white')";
_3899.frameBorder=0;
_3899.style.position="absolute";
_3899.style.left="0px";
_3899.style.top="0px";
_3899.style.zIndex="-1";
_3899.style.filter="Alpha(Opacity=\"0\")";
node.appendChild(_3899);
return _3899;
};
VjLayerUtils.removeLayerShim=function(_389a,_389b){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
if(_389b&&_389b.parentElement){
_389a.removeChild(_389b);
}
};
String.prototype.has=function(pStr){
return (this.indexOf(pStr)!=-1);
};
String.prototype.hasArg=function(pArg){
var a=pArg,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;
};
function Playground(_38aa,_38ab){
this.sLayerId=_38aa;
this.sHandle=_38ab;
}
Playground.prototype.show=function(){
var oCJ=VjCookieJar,sbf=oCJ.readCookie("ebay","sbf"),pcon=oCJ.getBitFlag(sbf,24),l,h;
var lid=this.sLayerId;
if(pcon){
l=getElementById(lid);
h=window[this.sHandle];
if(h&&l){
l.innerHTML=h();
toggleHideShow(lid,true);
}
}else{
toggleHideShow(lid,false);
}
};
function getElementById(pId){
var elem=null;
var doc=window.document;
if(doc.getElementById){
elem=doc.getElementById(pId);
}else{
if(doc.all){
elem=doc.all(pId);
}
}
return elem;
}
function toggleHideShow(_38b1,show){
var elem=getElementById(_38b1);
if(elem===null){
return;
}
var vis=elem.style.display;
if(show===undefined){
elem.style.display=(vis==="")?"none":"block";
}else{
elem.style.display=(show)?"block":"none";
}
}
if(typeof VjCookieJar=="undefined"){
VjCookieJar={aCookies:{},sCookieDomain:".ebay.com"};
}
VjCookieJar.Default_Cookie_Format={"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"/","escapedValue":true};
VjCookieJar.DP_Cookie_Format={"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"/","bUseExp":true,"startDelim":"b"};
VjCookieJar.Session_Cookie_Format={"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"=","escapedValue":true,"startDelim":"^"};
VjCookieJar.DS_Cookie_Format={"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"/"};
VjCookieJar.sPath="/";
VjCookieJar.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"]};
VjCookieJar.aFormatMap={"r":VjCookieJar.Default_Cookie_Format,"dp1":VjCookieJar.DP_Cookie_Format,"npii":VjCookieJar.DP_Cookie_Format,"ebay":VjCookieJar.Session_Cookie_Format,"reg":VjCookieJar.Session_Cookie_Format,"apcCookies":VjCookieJar.Session_Cookie_Format,"ds2":VjCookieJar.DS_Cookie_Format};
VjCookieJar.sCOMPAT="10";
VjCookieJar.sCONVER="01";
VjCookieJar.sSTRICT="00";
VjCookieJar.sModesCookie="ebay";
VjCookieJar.sModesCookielet="cv";
VjCookieJar.readCookie=function(_38b5,_38b6){
var rv=this.readCookieObj(_38b5,_38b6).value;
return (rv)?unescape(rv):"";
};
VjCookieJar.createDefaultCookieBean=function(_38b8,_38b9){
var _38ba={};
_38ba.name=_38b8;
_38ba.cookieletname=_38b9;
_38ba.value="";
_38ba.maxage=0;
_38ba.rawcookievalue="";
_38ba.mode="";
return _38ba;
};
VjCookieJar.readCookieObj=function(_38bb,_38bc){
var _38bd=this.createDefaultCookieBean(_38bb,_38bc);
this.update();
this.checkConversionMap(_38bd);
_38bd.rawcookievalue=this.aCookies[_38bd.name];
if(!_38bd.name||!_38bd.rawcookievalue){
_38bd.value="";
}else{
if(!_38bd.cookieletname){
this.readCookieInternal(_38bd);
}else{
this.readCookieletInternal(_38bd);
}
}
return (typeof (_38bd)!="undefined")?_38bd:"";
};
VjCookieJar.checkConversionMap=function(_38be){
var cmap=this.aConversionMap[_38be.name];
if(cmap){
_38be.mode=this.getMode(_38be.name);
_38be.name=cmap[0];
_38be.cookieletname=cmap[1];
}
};
VjCookieJar.readCookieInternal=function(_38c0){
_38c0.value=_38c0.rawcookievalue;
return _38c0;
};
VjCookieJar.readCookieletInternal=function(_38c1){
var clet=this.getCookielet(_38c1.name,_38c1.cookieletname,_38c1.rawcookievalue);
var _38c3=this.getFormat(_38c1.name);
if(clet&&_38c3.bUseExp){
clet=clet.substring(0,clet.length-8);
}
_38c1.value=clet;
if(_38c1.mode==this.sCOMPAT){
_38c1.value=_38c1.rawcookievalue;
}
return _38c1;
};
VjCookieJar.readMultiLineCookie=function(_38c4,_38c5){
if(!_38c4||!_38c5){
return "";
}
var val,r="";
var cmap=this.aConversionMap[_38c4];
if(cmap){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}
if(val){
r=this.getCookielet(_38c4,_38c5,val)||"";
}
return (typeof (r)!="undefined")?r:"";
};
VjCookieJar.writeCookie=function(_38c8,psVal,psExp){
var cmap=this.aConversionMap[_38c8];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],psVal,psExp);
return;
}
var _38cc=this.getFormat(_38c8);
if(psVal&&_38cc.escapedValue){
psVal=escape(psVal);
}
this.writeRawCookie(_38c8,psVal,psExp);
};
VjCookieJar.writeRawCookie=function(_38cd,psVal,psExp){
if(_38cd&&(psVal!==undefined)){
if((isNaN(psVal)&&psVal.length<4000)||(psVal+"").length<4000){
if(typeof psExp=="number"){
psExp=this.getExpDate(psExp);
}
var _38d0=psExp?new Date(psExp):new Date(this.getExpDate(730));
var _38d1=this.getFormat(_38cd);
var sHost=this.sCookieDomain;
var dd=document.domain;
if(!dd.has(sHost)){
var index=dd.indexOf(".ebay.");
if(index>0){
this.sCookieDomain=dd.substring(index);
}
}
if(document.cookie){
document.cookie=_38cd+"="+(psVal||"")+((psExp||_38d1.bUseExp)?"; expires="+_38d0.toGMTString():"")+"; domain="+this.sCookieDomain+"; path="+this.sPath;
}
}
}
};
VjCookieJar.writeCookieEx=function(_38d5,psVal,_38d7){
this.writeCookie(_38d5,psVal,this.getExpDate(_38d7));
};
VjCookieJar.writeCookielet=function(_38d8,_38d9,psVal,psExp,_38dc){
if(_38d8&&_38d9){
this.update();
var _38dd=this.getFormat(_38d8);
if(_38dd.bUseExp&&psVal){
if(typeof psExp=="number"){
psExp=this.getExpDate(psExp);
}
var _38de=psExp?new Date(psExp):new Date(this.getExpDate(730));
var _38df=Date.UTC(_38de.getUTCFullYear(),_38de.getUTCMonth(),_38de.getUTCDate());
_38df=Math.floor(_38df/1000);
psVal+=_38df.dec2Hex();
}
var val=this.createCookieValue(_38d8,_38d9,psVal);
this.writeRawCookie(_38d8,val,_38dc);
}
};
VjCookieJar.writeMultiLineCookie=function(_38e1,_38e2,psVal,psExp,_38e5){
this.update();
var val=this.createCookieValue(_38e1,_38e2,psVal);
if(val){
var cmap=this.aConversionMap[_38e1];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],val,psExp,_38e5);
}
}
};
VjCookieJar.getBitFlag=function(piDec,piPos){
piDec=parseInt(piDec,10);
var b=piDec.toString(2),r=piDec?b.charAt(b.length-piPos-1):"";
return (r=="1")?1:0;
};
VjCookieJar.setBitFlag=function(piDec,piPos,piVal){
var b="",p,i,e,l;
piDec=parseInt(piDec,10);
if(piDec){
b=piDec.toString(2);
}
l=b.length;
if(l<piPos){
e=piPos-l;
for(i=0;i<=e;i++){
b="0"+b;
}
}
p=b.length-piPos-1;
return parseInt(b.substring(0,p)+piVal+b.substring(p+1),2);
};
VjCookieJar.createCookieValue=function(_38ef,psKey,psVal){
var cmap=this.aConversionMap[_38ef],format=this.getFormat(_38ef),mode=this.getMode(_38ef),val;
if(cmap&&(mode==this.sSTRICT||mode==this.sCONVER)){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}else{
val=this.aCookies[_38ef]||"";
}
if(format){
var clts=this.getCookieletArray(val,format);
clts[psKey]=psVal;
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;
};
VjCookieJar.update=function(){
var aC=document.cookie.split("; ");
this.aCookies={};
for(var i=0;i<aC.length;i++){
var sC=aC[i].split("=");
var _38f9=this.getFormat(sC[0]),cv=sC[1],sd=_38f9.startDelim;
if(sd&&cv&&cv.indexOf(sd)==0){
sC[1]=cv.substring(sd.length,cv.length);
}
this.aCookies[sC[0]]=sC[1];
}
};
VjCookieJar.getCookielet=function(_38fa,_38fb,psVal){
var _38fd=this.getFormat(_38fa);
var clts=this.getCookieletArray(psVal,_38fd);
return clts[_38fb]||"";
};
VjCookieJar.getFormat=function(_38ff){
return this.aFormatMap[_38ff]||VjCookieJar.Default_Cookie_Format;
};
VjCookieJar.getCookieletArray=function(psVal,_3901){
var rv=[],val=psVal||"";
if(_3901.escapedValue){
val=unescape(val);
}
var a=val.split(_3901.COOKIELET_DELIMITER);
for(var i=0;i<a.length;i++){
var idx=a[i].indexOf(_3901.NAME_VALUE_DELIMITER);
if(idx>0){
rv[a[i].substring(0,idx)]=a[i].substring(idx+1);
}
}
return rv;
};
VjCookieJar.getExpDate=function(_3906){
var _3907;
if(typeof _3906=="number"&&_3906>=0){
var d=new Date();
d.setTime(d.getTime()+(_3906*24*60*60*1000));
_3907=d.toGMTString();
}
return _3907;
};
VjCookieJar.getMode=function(_3909){
var h=this.readCookieObj(this.sModesCookie,this.sModesCookielet).value,b;
if(!(_3909 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(_3909==o){
return (f.length==1)?"0"+f:f;
}
i++;
}
return null;
}
};
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>";
}
VjURL={};
VjURL.addArg=function(psUrl,_390e,_390f){
if(psUrl==null||psUrl==undefined){
return null;
}
if(psUrl.indexOf("?")<0){
psUrl+="?"+_390e+"="+_390f;
return psUrl;
}
var _3910=this.getArgPairIfExists(psUrl,_390e);
if(_3910!==null){
psUrl.replace(_3910,_390e+"="+_390f);
}else{
psUrl+="&"+_390e+"="+_390f;
}
return psUrl;
};
VjURL.getArg=function(psUrl,_3912){
if(psUrl==null||psUrl==undefined){
return null;
}
if(psUrl.indexOf("?")<0){
return null;
}
var _3913=this.getArgPairIfExists(psUrl,_3912);
if(_3913!==null){
return _3913.substring(_3913.indexOf("=")+1);
}
return null;
};
VjURL.getArgPairIfExists=function(psUrl,_3915){
var _3916=psUrl.indexOf("?");
if(_3916<0){
return null;
}
var _3917=psUrl;
var _3918,argName;
while(_3916>=0){
_3917=_3917.substring(_3916+1);
_3918=_3917;
_3916=_3917.indexOf("&");
if(_3916>=0){
_3918=_3917.substring(0,_3916);
}
argName=_3918.substring(0,_3918.indexOf("="));
if(argName==_3915){
return _3918;
}
}
return null;
};
function TrackingModuleEnabler(psCid,_391a){
this.sCid=psCid;
this.sCidParms=_391a;
}
TrackingModuleEnabler.prototype.rewriteUrl=function(_391b){
if(_391b.nativeEvent==null||_391b.nativeEvent==undefined){
return;
}
var elem=_391b.nativeEvent.srcElement||_391b.nativeEvent.target;
if(elem==null||elem==undefined){
return;
}
elem=this.getAnchor(elem);
if(this.sCidParms&&elem){
elem.href=VjURL.addArg(elem.href,this.sCid,this.sCidParms);
}
};
TrackingModuleEnabler.prototype.handle=function(_391d){
this.rewriteUrl(_391d);
};
TrackingModuleEnabler.prototype.getAnchor=function(pElem){
var e=pElem;
if(e&&e.tagName){
if(!e.tagName.is("A")){
e=this.getAnchor(e.parentNode);
}
return e;
}
};
var dsf_debug=true;
function dsf_EventDispatcher(){
this.eventHandlers=Object();
this.fCustomLoad={};
}
dsf_EventDispatcher.prototype.process=function(srcId,event){
var _3922=this.eventHandlers[srcId];
if(!_3922){
return true;
}
var _3923=_3922[event.eventType];
if(!_3923){
return true;
}
var _3924=true;
for(var i=0;i<_3923.length;i++){
var _3926=_3923[i].handle(event);
if(_3926&&_3926.objType=="dsf_Message"){
if(typeof (svcEngine)!="undefined"&&svcEngine.handleRequest(_3926)===false){
_3924=false;
}
}else{
if(_3926===false){
_3924=false;
}
}
}
return _3924;
};
dsf_EventDispatcher.prototype.register=function(id,_3928,_3929){
var srcId=id;
if(!this.eventHandlers[srcId]){
this.eventHandlers[srcId]=[];
}
var _392b=this.eventHandlers[srcId];
if(!_392b[_3928]){
_392b[_3928]=[];
}
var _392c=_392b[_3928];
_392c[_392c.length]=_3929;
};
dsf_EventDispatcher.prototype.attachHandlerToElement=function(id,_392e,_392f){
eventDispatcher.register(id,_392e,_392f);
var _3930=document.getElementById(id);
if(id=="body"){
_3930=document.body;
if(_392e=="onload"||_392e=="onunload"){
if(_3930.vjLoadSet){
return this;
}else{
_3930.vjLoadSet=true;
var _3931=window[_392e]||"";
if(_3931){
this.fCustomLoad[_392e]=_3931;
}
}
window[_392e]=function(){
if(typeof eventDispatcher.fCustomLoad[_392e]=="function"){
eventDispatcher.fCustomLoad[_392e]();
}
eventDispatcher[_392e](document.body);
eventDispatcher.fCustomLoad={};
};
return this;
}
}
if(_3930){
_3930[_392e]=function(event){
return eventDispatcher[_392e](this,event||window.event);
};
}
return this;
};
dsf_EventDispatcher.prototype.detachHandlers=function(id,_3934){
var srcId=id;
if(!this.eventHandlers[srcId]){
return;
}
var _3936=this.eventHandlers[srcId];
if(_3936[_3934]){
_3936[_3934]=[];
}
var _3937=document.getElementById(id);
if(id=="body"){
_3937=document.body;
if(_3934=="onload"||_3934=="onunload"||_3934=="onclick"){
window[_3934]=null;
}
}
if(_3937){
_3937[_3934]=null;
}
};
function dsf_Event(src,_3939,_393a){
this.src=src;
this.eventType=_3939;
this.nativeEvent=_393a;
}
function dsf_SvcConfig(_393b,url){
this.url=url;
this.method=_393b;
this.reqtMarshalling="raw";
this.respMarshalling="raw";
}
function dsf_Message(svcId){
this.objType="dsf_Message";
this.svcId=svcId;
this.request;
this.response;
this.clientContext;
this.trspType="InProc";
this.status;
this.svcConfig;
this.returnData=true;
this.trace="";
}
dsf_EventDispatcher.prototype.getId=function(src,id){
var srcId=id;
if(srcId===null||!srcId){
srcId=src.id;
}
return srcId;
};
dsf_EventDispatcher.prototype.getBodyId=function(src,id){
var srcId=this.getId(src,id);
if(!srcId){
srcId="body";
}
return srcId;
};
dsf_EventDispatcher.prototype.onload=function(src,_3945){
return this.process(this.getBodyId(src),new dsf_Event(src,"onload",_3945));
};
dsf_EventDispatcher.prototype.onunload=function(src,_3947){
return this.process(this.getBodyId(src),new dsf_Event(src,"onunload",_3947));
};
dsf_EventDispatcher.prototype.onchange=function(src,_3949){
return this.process(this.getId(src),new dsf_Event(src,"onchange",_3949));
};
dsf_EventDispatcher.prototype.onsubmit=function(src,_394b){
return this.process(this.getId(src),new dsf_Event(src,"onsubmit",_394b));
};
dsf_EventDispatcher.prototype.onreset=function(src,_394d){
return this.process(this.getId(src),new dsf_Event(src,"onreset",_394d));
};
dsf_EventDispatcher.prototype.onselect=function(src,_394f){
return this.process(this.getId(src),new dsf_Event(src,"onselect",_394f));
};
dsf_EventDispatcher.prototype.onblur=function(src,_3951){
return this.process(this.getId(src),new dsf_Event(src,"onblur",_3951));
};
dsf_EventDispatcher.prototype.onfocus=function(src,_3953){
return this.process(this.getId(src),new dsf_Event(src,"onfocus",_3953));
};
dsf_EventDispatcher.prototype.onkeydown=function(src,_3955){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeydown",_3955));
};
dsf_EventDispatcher.prototype.onkeypress=function(src,_3957){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeypress",_3957));
};
dsf_EventDispatcher.prototype.onkeyup=function(src,_3959){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeyup",_3959));
};
dsf_EventDispatcher.prototype.onclick=function(src,_395b){
return this.process(this.getBodyId(src),new dsf_Event(src,"onclick",_395b));
};
dsf_EventDispatcher.prototype.ondblclick=function(src,_395d){
return this.process(this.getBodyId(src),new dsf_Event(src,"ondblclick",_395d));
};
dsf_EventDispatcher.prototype.onmousedown=function(src,_395f){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmousedown",_395f));
};
dsf_EventDispatcher.prototype.onmousemove=function(src,_3961){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmousemove",_3961));
};
dsf_EventDispatcher.prototype.onmouseout=function(src,_3963){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseout",_3963));
};
dsf_EventDispatcher.prototype.onmouseover=function(src,_3965){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseover",_3965));
};
dsf_EventDispatcher.prototype.onmouseup=function(src,_3967){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseup",_3967));
};
function dsf_EventHandler(_3968){
this.eventTypes=_3968;
this.srcId="";
}
dsf_EventHandler.prototype.handle=function(event){
if(this.handleEvent===null){
alert("all derived event handlers need to have a handleEvent method");
}
var _396a=this.handleEvent(event);
if(_396a===null){
return true;
}
};
dsf_EventHandler.prototype.attachTo=function(id){
eventDispatcher.register(this,id);
var _396c=this.eventTypes;
var _396d=document.getElementById(id);
for(var i=0;i<_396c.length;i++){
var _396f=_396c[i];
if(_396d[_396f]!==null){
continue;
}
_396d[_396f]=function(){
return eventDispatcher[_396f](this);
};
}
return this;
};
var eventDispatcher;
if(typeof (eventDispatcher)=="undefined"){
eventDispatcher=new dsf_EventDispatcher();
}
function FooterTrk(){
}
FooterTrk.prototype.handle=function(event){
eventDispatcher.attachHandlerToElement("glbfooter","onclick",new TrackingModuleEnabler("_trksid","m40"));
};
function VjComponentRegistry(){
this.controls=[];
}
VjComponentRegistry.prototype.put=function(psKey,_3972){
this.controls[psKey]=_3972;
};
VjComponentRegistry.prototype.get=function(psKey){
return this.controls[psKey];
};
VjComponentRegistry.prototype.dump=function(){
var _3974=this.controls;
var _3975="controls on page:\n";
for(var i in _3974){
_3975+="key = "+i;
_3975+="controlName = "+_3974[i].objtype;
_3975+="\n";
}
return _3975;
};
var oRegistry;
if(typeof (oRegistry)=="undefined"){
oRegistry=new VjComponentRegistry();
}
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;smGHR=true\">Summary</a>"},{"value":"<a href=\"http://my.ebay.com/ws/eBayISAPI.dll?MyEbay&amp;CurrentPage=MyeBayWatching\">Watching</a>"},{"value":"<a href=\"http://my.ebay.com/ws/eBayISAPI.dll?MyEbay&amp;CurrentPage=MyeBayBidding\">Bidding</a>"},{"value":"<a href=\"http://my.ebay.com/ws/eBayISAPI.dll?MyEbay&amp;CurrentPage=MyeBaySelling&amp;smGHR=true\">Selling</a>"},{"value":"<a href=\"http://my.ebay.com/ws/eBayISAPI.dll?MyEbay&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(){
}
NavMenuBind.prototype.handle=function(event){
eventDispatcher.attachHandlerToElement("Buy-menu","onmouseout",new DynamicMenuMouseOutHandler("BuyMenu"));
eventDispatcher.attachHandlerToElement("Buy-menu","onmouseover",new DynamicMenuClearMouseOutHandler("BuyMenu"));
eventDispatcher.attachHandlerToElement("Buy","onmouseover",new DynamicShowMenuHandler("BuyMenu"));
eventDispatcher.attachHandlerToElement("Buy","onmouseout",new DynamicMenuMouseOutHandler("BuyMenu"));
eventDispatcher.attachHandlerToElement("Sell-menu","onmouseout",new DynamicMenuMouseOutHandler("SellMenu"));
eventDispatcher.attachHandlerToElement("Sell-menu","onmouseover",new DynamicMenuClearMouseOutHandler("SellMenu"));
eventDispatcher.attachHandlerToElement("Sell","onmouseover",new DynamicShowMenuHandler("SellMenu"));
eventDispatcher.attachHandlerToElement("Sell","onmouseout",new DynamicMenuMouseOutHandler("SellMenu"));
eventDispatcher.attachHandlerToElement("MyEbay-menu","onmouseout",new DynamicMenuMouseOutHandler("MyEbayMenu"));
eventDispatcher.attachHandlerToElement("MyEbay-menu","onmouseover",new DynamicMenuClearMouseOutHandler("MyEbayMenu"));
eventDispatcher.attachHandlerToElement("MyEbay","onmouseover",new DynamicShowMenuHandler("MyEbayMenu"));
eventDispatcher.attachHandlerToElement("MyEbay","onmouseout",new DynamicMenuMouseOutHandler("MyEbayMenu"));
eventDispatcher.attachHandlerToElement("Community-menu","onmouseout",new DynamicMenuMouseOutHandler("CommunityMenu"));
eventDispatcher.attachHandlerToElement("Community-menu","onmouseover",new DynamicMenuClearMouseOutHandler("CommunityMenu"));
eventDispatcher.attachHandlerToElement("Community","onmouseover",new DynamicShowMenuHandler("CommunityMenu"));
eventDispatcher.attachHandlerToElement("Community","onmouseout",new DynamicMenuMouseOutHandler("CommunityMenu"));
eventDispatcher.attachHandlerToElement("Help-menu","onmouseout",new DynamicMenuMouseOutHandler("HelpMenu"));
eventDispatcher.attachHandlerToElement("Help-menu","onmouseover",new DynamicMenuClearMouseOutHandler("HelpMenu"));
eventDispatcher.attachHandlerToElement("Help","onmouseover",new DynamicShowMenuHandler("HelpMenu"));
eventDispatcher.attachHandlerToElement("Help","onmouseout",new DynamicMenuMouseOutHandler("HelpMenu"));
};
function SecNavMenuBind(){
}
SecNavMenuBind.prototype.handle=function(event){
eventDispatcher.attachHandlerToElement("BrowseCategories-menu","onmouseout",new DynamicMenuMouseOutHandler("BrowseCategoriesMenu"));
eventDispatcher.attachHandlerToElement("BrowseCategories-menu","onmouseover",new DynamicMenuClearMouseOutHandler("BrowseCategoriesMenu"));
eventDispatcher.attachHandlerToElement("BrowseCategories","onmouseover",new DynamicShowMenuHandler("BrowseCategoriesMenu"));
eventDispatcher.attachHandlerToElement("BrowseCategories","onmouseout",new DynamicMenuMouseOutHandler("BrowseCategoriesMenu"));
};
function DynamicDropdown(_3979,_397a,_397b,_397c){
this.sDropdownId=_3979;
this.sHandler=_397a;
this.sCollName=_397b;
this.iCondNo=_397c;
}
DynamicDropdown.prototype.fill=function(){
var e,h,d,col,i,l,c,b=false;
with(this){
e=getElementById(sDropdownId);
if(e){
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];
createOption(e,c.id,c.value);
}
}
}
}
};
DynamicDropdown.prototype.createOption=function(_397e,_397f,_3980){
var e=_397e;
if(e){
var o=new Option(_3980,_397f,false,false),os;
os=e.options;
os[os.length]=o;
}
};
function DynDropHandler_category0(){
}
DynDropHandler_category0.prototype.handle=function(event){
oRegistry.get("category0").fill();
};
eventDispatcher.attachHandlerToElement("body","onload",new DynDropHandler_category0());
function HeaderTrk(){
}
HeaderTrk.prototype.handle=function(event){
eventDispatcher.attachHandlerToElement("BrowseCategories-menu","onclick",new TrackingModuleEnabler("_trksid","m37"));
eventDispatcher.attachHandlerToElement("gnheader","onclick",new TrackingModuleEnabler("_trksid","m37"));
};
String.prototype.decodeBase64=function(){
var rv=this,len=rv.length,ret="",i=0;
var chr1,chr2,chr3="";
var enc1,enc2,enc3,enc4="";
var aChar="ABCDEFGHIJKLMNOPQRSTUVWXYZ"+"abcdefghijklmnopqrstuvwxyz"+"0123456789+/=*";
var test=new RegExp("[^A-Za-z0-9+/=*]");
if(test.exec(rv)){
return;
}
do{
enc1=aChar.indexOf(rv.charAt(i++));
enc2=aChar.indexOf(rv.charAt(i++));
enc3=aChar.indexOf(rv.charAt(i++));
enc4=aChar.indexOf(rv.charAt(i++));
chr1=(enc1<<2)|(enc2>>4);
chr2=((enc2&15)<<4)|(enc3>>2);
chr3=((enc3&3)<<6)|enc4;
ret+=String.fromCharCode(chr1);
if(!(enc3>=64)){
ret+=String.fromCharCode(chr2);
}
if(!(enc4>=64)){
ret+=String.fromCharCode(chr3);
}
chr1=chr2=chr3=enc1=enc2=enc3=enc4="";
}while(i<len);
return ret;
};
String.prototype.decodeUTF8=function(){
var s=this,len=s.length;
var rs="";
var i=0;
var c=0,c1=0,c2=0;
while(i<len){
c=s.charCodeAt(i);
if(c<128){
rs+=String.fromCharCode(c);
i++;
}else{
if((c>191)&&(c<224)){
c2=s.charCodeAt(i+1);
rs+=String.fromCharCode(((c&31)<<6)|(c2&63));
i+=2;
}else{
c2=s.charCodeAt(i+1);
c3=s.charCodeAt(i+2);
rs+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));
i+=3;
}
}
}
return rs;
};
String.prototype.replaceToken=function(pStr,_398f,pRepl){
var rv=pStr;
while(rv.has(_398f)){
rv=rv.replace(_398f,pRepl);
}
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.replaceTokensEx=function(_3994){
var rv=this,re,tkn,a=arguments,l=a.length;
for(var i=1;i<l+1;i++){
rv=this.replaceToken(rv,_3994.replace("n",(i)),a[i]);
}
return rv;
};
VjGreetings={};
VjGreetings.writePersonalHeader=function(_3997,_3998,_3999,_399a,_399b,_399c,_399d,_399e,_399f,_39a0,_39a1,_39a2,_39a3,_39a4,pRU,_39a6){
var u1p=VjCookieJar.readCookie("dp1","u1p"),s="",sinLink="",soutLink="",regLink="",un="undefined";
if(!u1p||typeof (u1p)==un){
s=typeof (_39a0)!=un?_39a0:"";
document.write(s);
return;
}
var _39a8=u1p.decodeBase64().decodeUTF8(),v1=VjCookieJar.readCookie("ebay","sin"),v2=VjCookieJar.readCookie("dp1","kms");
if(typeof (_39a8)==un){
return;
}
if(parseInt(pRU,0)===1){
_3998=VjURL.addArg(_3998,"ru",_39a6?_39a6:escape(document.location.href));
}
var a=VjCookieJar.readCookie("dp1","a1p"),ba,bp;
ba=a&&a>0;
bp=VjGreetings.isUserPersonalized();
var sA="";
if(ba){
if(a==1){
sA=_39a3;
}else{
sA=_39a4;
}
sA=sA.replaceTokensEx("##n##",a);
}
_39a2=_39a2.replaceTokensEx("##n##",sA);
if(_39a8.has("@@__@@__@@")){
s+=typeof (_399d)!=un?_399d:"";
sinLink="<a tabindex=\"-1\" href=\""+_3998+"\" >"+_3997+"</a>";
regLink="<a tabindex=\"-1\" href=\""+_399a+"\" >"+_3999+"</a>";
s=s.replaceTokensEx("##n##",sinLink,regLink);
}else{
if((v1&&v1.is("in"))||(v2&&v2.is("in"))){
if(bp){
if(ba){
s=_39a1+"&nbsp;";
}
s+=typeof (_399e)!=un?_399e:"";
soutLink="<a tabindex=\"-1\" href=\""+_399c+"\" >"+_399b+"</a>";
s=s.replaceTokensEx("##n##",_39a8,soutLink);
s+=_39a2;
}else{
s=_39a0;
}
}else{
if(ba){
s=_39a1+"&nbsp;";
}
s+=typeof (_399f)!=un?_399f:"";
sinLink="<a tabindex=\"-1\" href=\""+_3998+"\" >"+_3997+"</a>";
s=s.replaceTokensEx("##n##",_39a8,sinLink);
s+=_39a2;
}
}
document.write(s);
};
VjGreetings.isUserPersonalized=function(){
var cId=VjCookieJar.readCookie("cid");
var pCd=VjCookieJar.readCookie("dp1","pcid");
if(pCd){
if(cId){
cId=unescape(cId);
var hCd=cId;
var Inx=cId.indexOf("#");
if(Inx===-1&&cId.length>8){
return false;
}
if(Inx!==-1){
hCd=cId.substring(Inx+1,cId.length);
}
if(hCd===pCd){
VjCookieJar.writeCookie("cid",cId,365);
return true;
}else{
return false;
}
}
return false;
}
return true;
};
function getElementById(pId){
var elem=null;
var doc=window.document;
if(doc.getElementById){
elem=doc.getElementById(pId);
}else{
if(doc.all){
elem=doc.all(pId);
}
}
return elem;
}
String.prototype.replaceToken=function(pStr,_39b3,pRepl){
var rv=pStr;
while(rv.has(_39b3)){
rv=rv.replace(_39b3,pRepl);
}
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.replaceTokensEx=function(_39b8){
var rv=this,re,tkn,a=arguments,l=a.length;
for(var i=1;i<l+1;i++){
rv=this.replaceToken(rv,_39b8.replace("n",(i)),a[i]);
}
return rv;
};
String.prototype.has=function(pStr){
return (this.indexOf(pStr)!=-1);
};
String.prototype.hasArg=function(pArg){
var a=pArg,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;
};
function toggleHideShow(_39c8,show){
var elem=getElementById(_39c8);
if(elem===null){
return;
}
var vis=elem.style.display;
if(show===undefined){
elem.style.display=(vis==="")?"none":"block";
}else{
elem.style.display=(show)?"block":"none";
}
}
function ExpressCrossLinking(_39cc,_39cd,_39ce,_39cf,_39d0,_39d1,_39d2){
this.sLayerId=_39cc;
this.sCloseAnchorId=_39cd;
this.sCartCountText=_39ce;
this.aHostCoutryId=_39cf;
this.aHostCountryDomain=_39d0;
this.aHideOnParams=_39d1;
this.sHtmlProvider=_39d2;
}
ExpressCrossLinking.prototype.getHost=function(){
var oCJ=VjCookieJar,df=document.referrer,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();
};
ExpressCrossLinking.prototype.compareHost=function(pStr1,pStr2){
var sh1=pStr1.toLowerCase(),sh2=pStr2.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);
};
ExpressCrossLinking.prototype.hideOnParams=function(){
if(this.aHideOnParams){
var _39d8=this.aHideOnParams;
var iLen=_39d8.length;
for(var i=0;i<iLen;i++){
if(document.location.href.has(_39d8[i])){
return true;
}
}
}
return false;
};
ExpressCrossLinking.prototype.init=function(){
if(this.hideOnParams()){
return;
}
var oD=document,oCJ=VjCookieJar,sh="",l=this.sLayerId;
if(sh=this.getHost()){
var oL=getElementById(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){
var _39dd=window[this.sHtmlProvider];
if(!_39dd){
return;
}
oL.innerHTML=_39dd().replaceTokensEx("##n##",sh,sc);
toggleHideShow(l,true);
var oCL=getElementById(this.sCloseAnchorId);
if(oCL){
oCL.onclick=VjUtils.hitch(this,"close");
}
}
}
};
ExpressCrossLinking.prototype.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;
};
ExpressCrossLinking.prototype.close=function(){
toggleHideShow(this.sLayerId,false);
VjCookieJar.writeCookielet("ebay","ecs","-1");
return false;
};
oRegistry.put("expressCompId",new ExpressCrossLinking("divCrossLink","b_close","(##1##)",new Array("0","1","77","3"),new Array("ebay.com","ebay.com","ebay.de","ebay.co.uk"),new Array("from=R44","fromZR44"),"get_expCrossLink_data"));
eventDispatcher.attachHandlerToElement("body","onload",new ExpressHandler());
function get_expCrossLink_data(){
return "<table class=\"clTable\" align=\"center\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#EDF9FF\"><tr valign=\"middle\"><td width=\"36\" class=\"clCell\"><img src=\"http://pics.ebaystatic.com/aw/pics/icon/iconInfo_16x16.gif\" height=\"16\" width=\"16\" align=\"middle\"></td><td width=\"80%\" nowrap=\"nowrap\" class=\"clMsg\">You've left eBay Express.</td><td align=\"left\" nowrap=\"nowrap\"><a href=\"http://www.express.##1##/\">Shop again on eBay Express</a><span class=\"clSep\">|</span><img src=\"http://pics.ebaystatic.com/aw/pics/express/icons/iconCart_15x10.gif\" height=\"10\" width=\"15\" align=\"bottom\" alt=\"\"><a href=\"http://cart.express.##1##/ws/eBayISAPI.dll?ExpressCart&amp;action.view=&amp;from=Header\">Shopping Cart##2##</a></td><td width=\"135\" nowrap=\"nowrap\" class=\"clLogo\"><img src=\"http://pics.ebaystatic.com/aw/pics/express/logos/logoExpress_95x39.gif\" height=\"39\" width=\"95\" align=\"top\" alt=\"\"></td><td nowrap=\"nowrap\" width=\"26\" align=\"left\"><a href=\"#1\" id=\"b_close\"><img src=\"http://pics.ebaystatic.com/aw/pics/buttons/btnExpressClose.gif\" height=\"16\" width=\"16\" align=\"middle\" border=\"0\" alt=\"\"></a></td></tr></table>";
}
var VjActiveX={};
VjActiveX.init=function(){
var oC=VjClient.getBrowserObj();
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>");
}
};
VjActiveX.isLibLoaded=function(pName){
var oC=VjClient.getBrowserObj();
return oC.bIE&&!oC.bMac&&vbCheckActiveXControl(pName);
};
VjActiveX.init();
var VjEbayToolbarDetect={};
VjEbayToolbarDetect.isEnabled=function(){
var V1="eBayToolbar.Helper",V2="eBayToolbarCommLib.IWebEvent.1";
with(this){
var oC=VjClient.getBrowserObj(),oAx=VjActiveX;
return (!(oC.bMac||oC.bMacppc)||!oC.bIE)&&(oAx.isLibLoaded(V1)||oAx.isLibLoaded(V2));
}
};
VjUtils={};
VjUtils.isString=function(wh){
return (typeof wh=="string");
};
VjUtils.hitch=function(_39e9,_39ea){
var fcn;
if(VjUtils.isString(_39ea)){
fcn=_39e9[_39ea];
}else{
fcn=_39ea;
}
return function(){
return fcn.apply(_39e9,arguments);
};
};
VjUtils.extend=function(_39ec,_39ed){
function inheritance(){
}
inheritance.prototype=_39ed.prototype;
_39ec.prototype=new inheritance();
_39ec.prototype.constructor=_39ec;
_39ec.baseConstructor=_39ed;
_39ec.superClass=_39ed.prototype;
};
function BuyerTransactionAlert(pId,_39ef,_39f0,_39f1,_39f2,_39f3,_39f4,_39f5,_39f6,_39f7,_39f8){
this.sId=pId;
this.iPollingInterval=_39ef;
this.iMaxHits=_39f0;
this.iHitTimeout=_39f1;
this.iServerHits=0;
this.sLastCookieletValue="";
this.sServerUrl=_39f2;
if(document.location.protocol.has("https")){
_39f3=_39f3.replace("http://pics.","https://securepics.");
}
this.sImgServer=_39f3+"/";
this.sViewItemUrl=_39f4;
this.aAlertInfo=[["h:h:alt:2",_39f6,"icon/iconOutbid_16x16.gif"],["h:h:alt:3",_39f5,"icon/iconWatchB_16x16.gif"],["h:h:alt:4",_39f6,"icon/iconOutbid_16x16.gif"],["h:h:alt:5",_39f7,"icon/iconchanceBlu_16x16.gif"],["h:h:alt:tcr",_39f8,"icon/iconMailBlue_16x16.gif"]];
var c,oC=VjClient.getBrowserObj();
if((oC.bNav&&oC.iVer<7)||(oC.bOpera&&(oC.iVer+oC.fMinorVer)<0.5)||(oC.bIE&&oC.iVer<5)){
return;
}
c=VjCookieJar.readCookie("ebaysignin");
if(!c||!c.is("in")){
return;
}
c=VjCookieJar.readCookie("dp1","a1p");
if(c&&c.length>0&&parseInt(c)>0){
return;
}
if(VjEbayToolbarDetect.isEnabled()){
return;
}
}
BuyerTransactionAlert.prototype.setValue=function(pVal,_39fb){
var oL=this.oL;
if(oL){
if(pVal.is("")&&!oL.ctrld){
return;
}
if(_39fb){
if(VjClient.getBrowserObj().bFirefox){
oL.textContent=pVal;
}else{
oL.innerText=pVal;
}
}else{
oL.innerHTML=pVal;
}
oL.ctrld=1;
}
};
BuyerTransactionAlert.prototype.onRefresh=function(){
if(!this.oL){
this.oL=getElementById(this.sId);
}
if(!this.oL){
return;
}
var c=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(VjUtils.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 _3a04=cfg[at-1],imgSrv=this.sImgServer;
var _3a05=imgSrv+"s.gif";
var sHTML="<img src=\""+_3a05+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">|<img src=\""+_3a05+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">";
sHTML+="<img src=\""+imgSrv+_3a04[2]+"?t\" style=\"vertical-align:middle\"><img src=\""+_3a05+"\" width=\"5\" height=\"16\" style=\"vertical-align:middle\">";
var url=this.sViewItemUrl+"&item="+ii;
sHTML+="<a href=\""+url+"&ssPageName="+_3a04[0]+"\">"+_3a04[1]+"</a>";
this.setValue(sHTML);
this.sLastCookieletValue=c;
}
this.fireRefreshEvent();
};
BuyerTransactionAlert.prototype.fireRefreshEvent=function(_3a08){
if(!_3a08){
_3a08=this.iPollingInterval;
}
window.setTimeout(VjUtils.hitch(this,this.onRefresh),_3a08*1000);
};
BuyerTransactionAlert.prototype.onCookieExpire=function(){
var _3a09=VjCookieJar.readCookie("ebaysignin");
if(!_3a09.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("");
VjCookieJar.writeCookielet("ebay","a2p","1111111101111111111.");
}
};
function toggleVisibility(_3a0b,show){
var elem=getElementById(_3a0b);
if(elem===null){
return;
}
var vis=elem.style.visibility;
if(show===undefined){
elem.style.visibility=(vis==="")?"hidden":"";
}else{
elem.style.visibility=(show)?"":"hidden";
}
}
eventDispatcher.attachHandlerToElement("body","onload",new FooterTrk());
oRegistry.put("BuyMenu",new DynamicMenu("Buy","Buy-menu","dynMenuCtr",75,250,900,800,1,1,1,5,1,0,"get_Buy_menu","items","","","","",""));
oRegistry.put("SellMenu",new DynamicMenu("Sell","Sell-menu","dynMenuCtr",75,250,900,800,1,1,1,1,1,0,"get_Sell_menu","items","","","","",""));
oRegistry.put("MyEbayMenu",new DynamicMenu("MyEbay","MyEbay-menu","dynMenuCtr",75,250,900,800,1,1,1,1,1,0,"get_MyEbay_menu","items","","","","",""));
oRegistry.put("CommunityMenu",new DynamicMenu("Community","Community-menu","dynMenuCtr",75,250,900,800,1,1,1,1,1,0,"get_Community_menu","items","","","","",""));
oRegistry.put("HelpMenu",new DynamicMenu("Help","Help-menu","dynMenuCtr",75,250,900,800,1,1,1,1,1,0,"get_Help_menu","items","","","","",""));
eventDispatcher.attachHandlerToElement("body","onload",new NavMenuBind());
oRegistry.put("BrowseCategoriesMenu",new DynamicMenu("BrowseCategories","BrowseCategories-menu","dynMenuCtr",75,250,900,800,3,3,3,-10,7,0,"getBrowseCategoriesData","items","100%","","","",".ebay.com"));
eventDispatcher.attachHandlerToElement("body","onload",new SecNavMenuBind());
oRegistry.put("category0",new DynamicDropdown("category0","getBrowseCategoriesData","items",1));
eventDispatcher.attachHandlerToElement("body","onload",new HeaderTrk());

// en_US_MAIN/v/GlobalNav_EbayStatic_v_1_en_US_MAIN
// b=4945786