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(_f618,date){
_f618=_f618?_f618:0;
d=date?date:new Date();
var _f61a=d.getTime();
var _f61b=d.getTimezoneOffset()*60000;
var utc=_f61a+_f61b;
return new Date(utc+(3600000*_f618));
};
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(_f61d,_f61e){
var rv=this.readCookieObj(_f61d,_f61e).value;
return (rv)?unescape(rv):"";
};
VjCookieJar.createDefaultCookieBean=function(_f620,_f621){
var _f622={};
_f622.name=_f620;
_f622.cookieletname=_f621;
_f622.value="";
_f622.maxage=0;
_f622.rawcookievalue="";
_f622.mode="";
return _f622;
};
VjCookieJar.readCookieObj=function(_f623,_f624){
var _f625=this.createDefaultCookieBean(_f623,_f624);
this.update();
this.checkConversionMap(_f625);
_f625.rawcookievalue=this.aCookies[_f625.name];
if(!_f625.name||!_f625.rawcookievalue){
_f625.value="";
}else{
if(!_f625.cookieletname){
this.readCookieInternal(_f625);
}else{
this.readCookieletInternal(_f625);
}
}
return (typeof (_f625)!="undefined")?_f625:"";
};
VjCookieJar.checkConversionMap=function(_f626){
var cmap=this.aConversionMap[_f626.name];
if(cmap){
_f626.mode=this.getMode(_f626.name);
_f626.name=cmap[0];
_f626.cookieletname=cmap[1];
}
};
VjCookieJar.readCookieInternal=function(_f628){
_f628.value=_f628.rawcookievalue;
return _f628;
};
VjCookieJar.readCookieletInternal=function(_f629){
var clet=this.getCookielet(_f629.name,_f629.cookieletname,_f629.rawcookievalue);
var _f62b=this.getFormat(_f629.name);
if(clet&&_f62b.bUseExp){
clet=clet.substring(0,clet.length-8);
}
_f629.value=clet;
if(_f629.mode==this.sCOMPAT){
_f629.value=_f629.rawcookievalue;
}
return _f629;
};
VjCookieJar.readMultiLineCookie=function(_f62c,_f62d){
if(!_f62c||!_f62d){
return "";
}
var val,r="";
var cmap=this.aConversionMap[_f62c];
if(cmap){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}
if(val){
r=this.getCookielet(_f62c,_f62d,val)||"";
}
return (typeof (r)!="undefined")?r:"";
};
VjCookieJar.writeCookie=function(_f630,psVal,psExp){
var cmap=this.aConversionMap[_f630];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],psVal,psExp);
return;
}
var _f634=this.getFormat(_f630);
if(psVal&&_f634.escapedValue){
psVal=escape(psVal);
}
this.writeRawCookie(_f630,psVal,psExp);
};
VjCookieJar.writeRawCookie=function(_f635,psVal,psExp){
if(_f635&&(psVal!==undefined)){
if((isNaN(psVal)&&psVal.length<4000)||(psVal+"").length<4000){
if(typeof psExp=="number"){
psExp=this.getExpDate(psExp);
}
var _f638=psExp?new Date(psExp):new Date(this.getExpDate(730));
var _f639=this.getFormat(_f635);
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=_f635+"="+(psVal||"")+((psExp||_f639.bUseExp)?"; expires="+_f638.toGMTString():"")+"; domain="+this.sCookieDomain+"; path="+this.sPath;
}
}
}
};
VjCookieJar.writeCookieEx=function(_f63d,psVal,_f63f){
this.writeCookie(_f63d,psVal,this.getExpDate(_f63f));
};
VjCookieJar.writeCookielet=function(_f640,_f641,psVal,psExp,_f644){
if(_f640&&_f641){
this.update();
var _f645=this.getFormat(_f640);
if(_f645.bUseExp&&psVal){
if(typeof psExp=="number"){
psExp=this.getExpDate(psExp);
}
var _f646=psExp?new Date(psExp):new Date(this.getExpDate(730));
var _f647=Date.UTC(_f646.getUTCFullYear(),_f646.getUTCMonth(),_f646.getUTCDate());
_f647=Math.floor(_f647/1000);
psVal+=_f647.dec2Hex();
}
var val=this.createCookieValue(_f640,_f641,psVal);
this.writeRawCookie(_f640,val,_f644);
}
};
VjCookieJar.writeMultiLineCookie=function(_f649,_f64a,psVal,psExp,_f64d){
this.update();
var val=this.createCookieValue(_f649,_f64a,psVal);
if(val){
var cmap=this.aConversionMap[_f649];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],val,psExp,_f64d);
}
}
};
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(_f657,psKey,psVal){
var cmap=this.aConversionMap[_f657],format=this.getFormat(_f657),mode=this.getMode(_f657),val;
if(cmap&&(mode==this.sSTRICT||mode==this.sCONVER)){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}else{
val=this.aCookies[_f657]||"";
}
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 _f661=this.getFormat(sC[0]),cv=sC[1],sd=_f661.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(_f662,_f663,psVal){
var _f665=this.getFormat(_f662);
var clts=this.getCookieletArray(psVal,_f665);
return clts[_f663]||"";
};
VjCookieJar.getFormat=function(_f667){
return this.aFormatMap[_f667]||VjCookieJar.Default_Cookie_Format;
};
VjCookieJar.getCookieletArray=function(psVal,_f669){
var rv=[],val=psVal||"";
if(_f669.escapedValue){
val=unescape(val);
}
var a=val.split(_f669.COOKIELET_DELIMITER);
for(var i=0;i<a.length;i++){
var idx=a[i].indexOf(_f669.NAME_VALUE_DELIMITER);
if(idx>0){
rv[a[i].substring(0,idx)]=a[i].substring(idx+1);
}
}
return rv;
};
VjCookieJar.getExpDate=function(_f66e){
var _f66f;
if(typeof _f66e=="number"&&_f66e>=0){
var d=new Date();
d.setTime(d.getTime()+(_f66e*24*60*60*1000));
_f66f=d.toGMTString();
}
return _f66f;
};
VjCookieJar.getMode=function(_f671){
var h=this.readCookieObj(this.sModesCookie,this.sModesCookielet).value,b;
if(!(_f671 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(_f671==o){
return (f.length==1)?"0"+f:f;
}
i++;
}
return null;
}
};
VjUtils={};
VjUtils.isString=function(wh){
return (typeof wh=="string");
};
VjUtils.hitch=function(_f676,_f677){
var fcn;
if(VjUtils.isString(_f677)){
fcn=_f676[_f677];
}else{
fcn=_f677;
}
return function(){
return fcn.apply(_f676,arguments);
};
};
VjUtils.extend=function(_f679,_f67a){
function inheritance(){
}
inheritance.prototype=_f67a.prototype;
_f679.prototype=new inheritance();
_f679.prototype.constructor=_f679;
_f679.baseConstructor=_f67a;
_f679.superClass=_f67a.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 _f681=0,scrOfY=0;
if(typeof (window.pageYOffset)=="number"){
scrOfY=window.pageYOffset;
_f681=window.pageXOffset;
}else{
if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){
scrOfY=document.body.scrollTop;
_f681=document.body.scrollLeft;
}else{
if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){
scrOfY=document.documentElement.scrollTop;
_f681=document.documentElement.scrollLeft;
}
}
}
return [_f681,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(_f685,_f686,_f687,_f688,_f689,_f68a,_f68b,_f68c,_f68d,_f68e,_f68f,_f690,_f691,_f692,_f693,_f694,_f695,_f696,_f697,_f698){
this.iMouseOutTimer=null;
this.iMouseOverTimer=null;
this.iLeftPadding=_f68f;
this.iTopPadding=_f690;
this.iRightPadding=_f691;
this.sAnchorId=_f685;
this.sContainerLayerId=_f686;
this.sContentLayerId=_f687;
this.iMouseOutDelay=_f688;
this.iMouseOverDelay=_f689;
this.iHighResDocWidth=_f68a;
this.iLowResDocWidth=_f68b;
this.iHighResColumns=_f68c;
this.iMediumResColumns=_f68d;
this.iLowResColumns=_f68e;
this.sHandler=_f692;
this.sCollName=_f693;
this.sWidth=_f694;
this.sAnchorMouseOverClass=_f695;
this.sAnchorMouseOutClass=_f696;
this.iframeShim=null;
this.sHTML=null;
this.oAnchor=null;
this.sTemplate=null;
this.sAnchorText=_f697;
this.sDomain=_f698;
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(_f69f){
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 _f6a1=window[sHandler];
if(!_f6a1){
return;
}
var data=_f6a1(),items=data[sCollName],l=items.length;
ipc=Math.ceil(l/_f69f);
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<_f69f;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,_f6ae,_f6af){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
var w=node.offsetWidth,h=node.offsetHeight;
w+=_f6ae?_f6ae:0;
h+=_f6af?_f6af:0;
var _f6b2=document.createElement("IFRAME");
_f6b2.style.width=w+"px";
_f6b2.style.height=h+"px";
_f6b2.style.filter="chroma(color='white')";
_f6b2.frameBorder=0;
_f6b2.style.position="absolute";
_f6b2.style.left="0px";
_f6b2.style.top="0px";
_f6b2.style.zIndex="-1";
_f6b2.style.filter="Alpha(Opacity=\"0\")";
node.appendChild(_f6b2);
return _f6b2;
};
DynamicMenu.prototype.removeLayerShim=function(_f6b3,_f6b4){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
if(_f6b4&&_f6b4.parentElement){
_f6b3.removeChild(_f6b4);
}
};
function getOffsetTop(elm){
var _f6b7=elm.offsetTop;
var _f6b8=elm.offsetParent;
while(_f6b8!==null){
_f6b7+=_f6b8.offsetTop;
_f6b8=_f6b8.offsetParent;
}
return _f6b7;
}
function getOffsetLeft(elm){
var _f6ba=elm.offsetLeft;
var _f6bb=elm.offsetParent;
while(_f6bb!==null){
_f6ba+=_f6bb.offsetLeft;
_f6bb=_f6bb.offsetParent;
}
return _f6ba;
}
var VjLayerUtils={};
VjLayerUtils.matchColumnHeight=function(_f6bc,_f6bd,aDivs){
var px="px";
var _f6c0=document.getElementById(_f6bc);
var _f6c1=_f6c0.offsetHeight;
var _f6c2=Math.max(_f6c1,_f6bd);
for(var i=0;i<aDivs.length;i++){
document.getElementById(aDivs[i]).style.height=_f6c2+px;
}
};
VjLayerUtils.addLayerShim=function(node){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
var _f6c6=document.createElement("IFRAME");
_f6c6.style.width=node.offsetWidth+"px";
_f6c6.style.height=node.offsetHeight+"px";
_f6c6.style.filter="chroma(color='white')";
_f6c6.frameBorder=0;
_f6c6.style.position="absolute";
_f6c6.style.left="0px";
_f6c6.style.top="0px";
_f6c6.style.zIndex="-1";
_f6c6.style.filter="Alpha(Opacity=\"0\")";
node.appendChild(_f6c6);
return _f6c6;
};
VjLayerUtils.removeLayerShim=function(_f6c7,_f6c8){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
if(_f6c8&&_f6c8.parentElement){
_f6c7.removeChild(_f6c8);
}
};
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(_f6d7,_f6d8){
this.sLayerId=_f6d7;
this.sHandle=_f6d8;
}
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(_f6de,show){
var elem=getElementById(_f6de);
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(_f6e2,_f6e3){
var rv=this.readCookieObj(_f6e2,_f6e3).value;
return (rv)?unescape(rv):"";
};
VjCookieJar.createDefaultCookieBean=function(_f6e5,_f6e6){
var _f6e7={};
_f6e7.name=_f6e5;
_f6e7.cookieletname=_f6e6;
_f6e7.value="";
_f6e7.maxage=0;
_f6e7.rawcookievalue="";
_f6e7.mode="";
return _f6e7;
};
VjCookieJar.readCookieObj=function(_f6e8,_f6e9){
var _f6ea=this.createDefaultCookieBean(_f6e8,_f6e9);
this.update();
this.checkConversionMap(_f6ea);
_f6ea.rawcookievalue=this.aCookies[_f6ea.name];
if(!_f6ea.name||!_f6ea.rawcookievalue){
_f6ea.value="";
}else{
if(!_f6ea.cookieletname){
this.readCookieInternal(_f6ea);
}else{
this.readCookieletInternal(_f6ea);
}
}
return (typeof (_f6ea)!="undefined")?_f6ea:"";
};
VjCookieJar.checkConversionMap=function(_f6eb){
var cmap=this.aConversionMap[_f6eb.name];
if(cmap){
_f6eb.mode=this.getMode(_f6eb.name);
_f6eb.name=cmap[0];
_f6eb.cookieletname=cmap[1];
}
};
VjCookieJar.readCookieInternal=function(_f6ed){
_f6ed.value=_f6ed.rawcookievalue;
return _f6ed;
};
VjCookieJar.readCookieletInternal=function(_f6ee){
var clet=this.getCookielet(_f6ee.name,_f6ee.cookieletname,_f6ee.rawcookievalue);
var _f6f0=this.getFormat(_f6ee.name);
if(clet&&_f6f0.bUseExp){
clet=clet.substring(0,clet.length-8);
}
_f6ee.value=clet;
if(_f6ee.mode==this.sCOMPAT){
_f6ee.value=_f6ee.rawcookievalue;
}
return _f6ee;
};
VjCookieJar.readMultiLineCookie=function(_f6f1,_f6f2){
if(!_f6f1||!_f6f2){
return "";
}
var val,r="";
var cmap=this.aConversionMap[_f6f1];
if(cmap){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}
if(val){
r=this.getCookielet(_f6f1,_f6f2,val)||"";
}
return (typeof (r)!="undefined")?r:"";
};
VjCookieJar.writeCookie=function(_f6f5,psVal,psExp){
var cmap=this.aConversionMap[_f6f5];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],psVal,psExp);
return;
}
var _f6f9=this.getFormat(_f6f5);
if(psVal&&_f6f9.escapedValue){
psVal=escape(psVal);
}
this.writeRawCookie(_f6f5,psVal,psExp);
};
VjCookieJar.writeRawCookie=function(_f6fa,psVal,psExp){
if(_f6fa&&(psVal!==undefined)){
if((isNaN(psVal)&&psVal.length<4000)||(psVal+"").length<4000){
if(typeof psExp=="number"){
psExp=this.getExpDate(psExp);
}
var _f6fd=psExp?new Date(psExp):new Date(this.getExpDate(730));
var _f6fe=this.getFormat(_f6fa);
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=_f6fa+"="+(psVal||"")+((psExp||_f6fe.bUseExp)?"; expires="+_f6fd.toGMTString():"")+"; domain="+this.sCookieDomain+"; path="+this.sPath;
}
}
}
};
VjCookieJar.writeCookieEx=function(_f702,psVal,_f704){
this.writeCookie(_f702,psVal,this.getExpDate(_f704));
};
VjCookieJar.writeCookielet=function(_f705,_f706,psVal,psExp,_f709){
if(_f705&&_f706){
this.update();
var _f70a=this.getFormat(_f705);
if(_f70a.bUseExp&&psVal){
if(typeof psExp=="number"){
psExp=this.getExpDate(psExp);
}
var _f70b=psExp?new Date(psExp):new Date(this.getExpDate(730));
var _f70c=Date.UTC(_f70b.getUTCFullYear(),_f70b.getUTCMonth(),_f70b.getUTCDate());
_f70c=Math.floor(_f70c/1000);
psVal+=_f70c.dec2Hex();
}
var val=this.createCookieValue(_f705,_f706,psVal);
this.writeRawCookie(_f705,val,_f709);
}
};
VjCookieJar.writeMultiLineCookie=function(_f70e,_f70f,psVal,psExp,_f712){
this.update();
var val=this.createCookieValue(_f70e,_f70f,psVal);
if(val){
var cmap=this.aConversionMap[_f70e];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],val,psExp,_f712);
}
}
};
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(_f71c,psKey,psVal){
var cmap=this.aConversionMap[_f71c],format=this.getFormat(_f71c),mode=this.getMode(_f71c),val;
if(cmap&&(mode==this.sSTRICT||mode==this.sCONVER)){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}else{
val=this.aCookies[_f71c]||"";
}
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 _f726=this.getFormat(sC[0]),cv=sC[1],sd=_f726.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(_f727,_f728,psVal){
var _f72a=this.getFormat(_f727);
var clts=this.getCookieletArray(psVal,_f72a);
return clts[_f728]||"";
};
VjCookieJar.getFormat=function(_f72c){
return this.aFormatMap[_f72c]||VjCookieJar.Default_Cookie_Format;
};
VjCookieJar.getCookieletArray=function(psVal,_f72e){
var rv=[],val=psVal||"";
if(_f72e.escapedValue){
val=unescape(val);
}
var a=val.split(_f72e.COOKIELET_DELIMITER);
for(var i=0;i<a.length;i++){
var idx=a[i].indexOf(_f72e.NAME_VALUE_DELIMITER);
if(idx>0){
rv[a[i].substring(0,idx)]=a[i].substring(idx+1);
}
}
return rv;
};
VjCookieJar.getExpDate=function(_f733){
var _f734;
if(typeof _f733=="number"&&_f733>=0){
var d=new Date();
d.setTime(d.getTime()+(_f733*24*60*60*1000));
_f734=d.toGMTString();
}
return _f734;
};
VjCookieJar.getMode=function(_f736){
var h=this.readCookieObj(this.sModesCookie,this.sModesCookielet).value,b;
if(!(_f736 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(_f736==o){
return (f.length==1)?"0"+f:f;
}
i++;
}
return null;
}
};
VjURL={};
VjURL.addArg=function(psUrl,_f73b,_f73c){
if(psUrl==null||psUrl==undefined){
return null;
}
if(psUrl.indexOf("?")<0){
psUrl+="?"+_f73b+"="+_f73c;
return psUrl;
}
var _f73d=this.getArgPairIfExists(psUrl,_f73b);
if(_f73d!==null){
psUrl.replace(_f73d,_f73b+"="+_f73c);
}else{
psUrl+="&"+_f73b+"="+_f73c;
}
return psUrl;
};
VjURL.getArg=function(psUrl,_f73f){
if(psUrl==null||psUrl==undefined){
return null;
}
if(psUrl.indexOf("?")<0){
return null;
}
var _f740=this.getArgPairIfExists(psUrl,_f73f);
if(_f740!==null){
return _f740.substring(_f740.indexOf("=")+1);
}
return null;
};
VjURL.getArgPairIfExists=function(psUrl,_f742){
var _f743=psUrl.indexOf("?");
if(_f743<0){
return null;
}
var _f744=psUrl;
var _f745,argName;
while(_f743>=0){
_f744=_f744.substring(_f743+1);
_f745=_f744;
_f743=_f744.indexOf("&");
if(_f743>=0){
_f745=_f744.substring(0,_f743);
}
argName=_f745.substring(0,_f745.indexOf("="));
if(argName==_f742){
return _f745;
}
}
return null;
};
function TrackingModuleEnabler(psCid,_f747){
this.sCid=psCid;
this.sCidParms=_f747;
}
TrackingModuleEnabler.prototype.rewriteUrl=function(_f748){
if(_f748.nativeEvent==null||_f748.nativeEvent==undefined){
return;
}
var elem=_f748.nativeEvent.srcElement||_f748.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(_f74a){
this.rewriteUrl(_f74a);
};
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 _f74f=this.eventHandlers[srcId];
if(!_f74f){
return true;
}
var _f750=_f74f[event.eventType];
if(!_f750){
return true;
}
var _f751=true;
for(var i=0;i<_f750.length;i++){
var _f753=_f750[i].handle(event);
if(_f753&&_f753.objType=="dsf_Message"){
if(typeof (svcEngine)!="undefined"&&svcEngine.handleRequest(_f753)===false){
_f751=false;
}
}else{
if(_f753===false){
_f751=false;
}
}
}
return _f751;
};
dsf_EventDispatcher.prototype.register=function(id,_f755,_f756){
var srcId=id;
if(!this.eventHandlers[srcId]){
this.eventHandlers[srcId]=[];
}
var _f758=this.eventHandlers[srcId];
if(!_f758[_f755]){
_f758[_f755]=[];
}
var _f759=_f758[_f755];
_f759[_f759.length]=_f756;
};
dsf_EventDispatcher.prototype.attachHandlerToElement=function(id,_f75b,_f75c){
eventDispatcher.register(id,_f75b,_f75c);
var _f75d=document.getElementById(id);
if(id=="body"){
_f75d=document.body;
if(_f75b=="onload"||_f75b=="onunload"){
if(_f75d.vjLoadSet){
return this;
}else{
_f75d.vjLoadSet=true;
var _f75e=window[_f75b]||"";
if(_f75e){
this.fCustomLoad[_f75b]=_f75e;
}
}
window[_f75b]=function(){
if(typeof eventDispatcher.fCustomLoad[_f75b]=="function"){
eventDispatcher.fCustomLoad[_f75b]();
}
eventDispatcher[_f75b](document.body);
eventDispatcher.fCustomLoad={};
};
return this;
}
}
if(_f75d){
_f75d[_f75b]=function(event){
return eventDispatcher[_f75b](this,event||window.event);
};
}
return this;
};
dsf_EventDispatcher.prototype.detachHandlers=function(id,_f761){
var srcId=id;
if(!this.eventHandlers[srcId]){
return;
}
var _f763=this.eventHandlers[srcId];
if(_f763[_f761]){
_f763[_f761]=[];
}
var _f764=document.getElementById(id);
if(id=="body"){
_f764=document.body;
if(_f761=="onload"||_f761=="onunload"||_f761=="onclick"){
window[_f761]=null;
}
}
if(_f764){
_f764[_f761]=null;
}
};
function dsf_Event(src,_f766,_f767){
this.src=src;
this.eventType=_f766;
this.nativeEvent=_f767;
}
function dsf_SvcConfig(_f768,url){
this.url=url;
this.method=_f768;
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,_f772){
return this.process(this.getBodyId(src),new dsf_Event(src,"onload",_f772));
};
dsf_EventDispatcher.prototype.onunload=function(src,_f774){
return this.process(this.getBodyId(src),new dsf_Event(src,"onunload",_f774));
};
dsf_EventDispatcher.prototype.onchange=function(src,_f776){
return this.process(this.getId(src),new dsf_Event(src,"onchange",_f776));
};
dsf_EventDispatcher.prototype.onsubmit=function(src,_f778){
return this.process(this.getId(src),new dsf_Event(src,"onsubmit",_f778));
};
dsf_EventDispatcher.prototype.onreset=function(src,_f77a){
return this.process(this.getId(src),new dsf_Event(src,"onreset",_f77a));
};
dsf_EventDispatcher.prototype.onselect=function(src,_f77c){
return this.process(this.getId(src),new dsf_Event(src,"onselect",_f77c));
};
dsf_EventDispatcher.prototype.onblur=function(src,_f77e){
return this.process(this.getId(src),new dsf_Event(src,"onblur",_f77e));
};
dsf_EventDispatcher.prototype.onfocus=function(src,_f780){
return this.process(this.getId(src),new dsf_Event(src,"onfocus",_f780));
};
dsf_EventDispatcher.prototype.onkeydown=function(src,_f782){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeydown",_f782));
};
dsf_EventDispatcher.prototype.onkeypress=function(src,_f784){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeypress",_f784));
};
dsf_EventDispatcher.prototype.onkeyup=function(src,_f786){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeyup",_f786));
};
dsf_EventDispatcher.prototype.onclick=function(src,_f788){
return this.process(this.getBodyId(src),new dsf_Event(src,"onclick",_f788));
};
dsf_EventDispatcher.prototype.ondblclick=function(src,_f78a){
return this.process(this.getBodyId(src),new dsf_Event(src,"ondblclick",_f78a));
};
dsf_EventDispatcher.prototype.onmousedown=function(src,_f78c){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmousedown",_f78c));
};
dsf_EventDispatcher.prototype.onmousemove=function(src,_f78e){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmousemove",_f78e));
};
dsf_EventDispatcher.prototype.onmouseout=function(src,_f790){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseout",_f790));
};
dsf_EventDispatcher.prototype.onmouseover=function(src,_f792){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseover",_f792));
};
dsf_EventDispatcher.prototype.onmouseup=function(src,_f794){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseup",_f794));
};
function dsf_EventHandler(_f795){
this.eventTypes=_f795;
this.srcId="";
}
dsf_EventHandler.prototype.handle=function(event){
if(this.handleEvent===null){
alert("all derived event handlers need to have a handleEvent method");
}
var _f797=this.handleEvent(event);
if(_f797===null){
return true;
}
};
dsf_EventHandler.prototype.attachTo=function(id){
eventDispatcher.register(this,id);
var _f799=this.eventTypes;
var _f79a=document.getElementById(id);
for(var i=0;i<_f799.length;i++){
var _f79c=_f799[i];
if(_f79a[_f79c]!==null){
continue;
}
_f79a[_f79c]=function(){
return eventDispatcher[_f79c](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,_f79f){
this.controls[psKey]=_f79f;
};
VjComponentRegistry.prototype.get=function(psKey){
return this.controls[psKey];
};
VjComponentRegistry.prototype.dump=function(){
var _f7a1=this.controls;
var _f7a2="controls on page:\n";
for(var i in _f7a1){
_f7a2+="key = "+i;
_f7a2+="controlName = "+_f7a1[i].objtype;
_f7a2+="\n";
}
return _f7a2;
};
var oRegistry;
if(typeof (oRegistry)=="undefined"){
oRegistry=new VjComponentRegistry();
}
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(_f7a6,_f7a7,_f7a8,_f7a9){
this.sDropdownId=_f7a6;
this.sHandler=_f7a7;
this.sCollName=_f7a8;
this.iCondNo=_f7a9;
}
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(_f7ab,_f7ac,_f7ad){
var e=_f7ab;
if(e){
var o=new Option(_f7ad,_f7ac,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"));
};
function VjGreetingsServerOnClick(pUrl,_f7b3){
var elem=_f7b3.srcElement||_f7b3.target;
if(elem){
elem.href=VjURL.addArg(pUrl,"ru",escape(document.location.href));
}
}
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,_f7b9,pRepl){
var rv=pStr;
while(rv.has(_f7b9)){
rv=rv.replace(_f7b9,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(_f7be){
var rv=this,re,tkn,a=arguments,l=a.length;
for(var i=1;i<l+1;i++){
rv=this.replaceToken(rv,_f7be.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(_f7ce,show){
var elem=getElementById(_f7ce);
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(_f7d2,_f7d3,_f7d4,_f7d5,_f7d6,_f7d7,_f7d8){
this.sLayerId=_f7d2;
this.sCloseAnchorId=_f7d3;
this.sCartCountText=_f7d4;
this.aHostCoutryId=_f7d5;
this.aHostCountryDomain=_f7d6;
this.aHideOnParams=_f7d7;
this.sHtmlProvider=_f7d8;
}
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 _f7de=this.aHideOnParams;
var iLen=_f7de.length;
for(var i=0;i<iLen;i++){
if(document.location.href.has(_f7de[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 _f7e3=window[this.sHtmlProvider];
if(!_f7e3){
return;
}
oL.innerHTML=_f7e3().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 Basket##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(_f7ef,_f7f0){
var fcn;
if(VjUtils.isString(_f7f0)){
fcn=_f7ef[_f7f0];
}else{
fcn=_f7f0;
}
return function(){
return fcn.apply(_f7ef,arguments);
};
};
VjUtils.extend=function(_f7f2,_f7f3){
function inheritance(){
}
inheritance.prototype=_f7f3.prototype;
_f7f2.prototype=new inheritance();
_f7f2.prototype.constructor=_f7f2;
_f7f2.baseConstructor=_f7f3;
_f7f2.superClass=_f7f3.prototype;
};
function BuyerTransactionAlert(pId,_f7f5,_f7f6,_f7f7,_f7f8,_f7f9,_f7fa,_f7fb,_f7fc,_f7fd,_f7fe){
this.sId=pId;
this.iPollingInterval=_f7f5;
this.iMaxHits=_f7f6;
this.iHitTimeout=_f7f7;
this.iServerHits=0;
this.sLastCookieletValue="";
this.sServerUrl=_f7f8;
if(document.location.protocol.has("https")){
_f7f9=_f7f9.replace("http://pics.","https://securepics.");
}
this.sImgServer=_f7f9+"/";
this.sViewItemUrl=_f7fa;
this.aAlertInfo=[["h:h:alt:2",_f7fc,"icon/iconOutbid_16x16.gif"],["h:h:alt:3",_f7fb,"icon/iconWatchB_16x16.gif"],["h:h:alt:4",_f7fc,"icon/iconOutbid_16x16.gif"],["h:h:alt:5",_f7fd,"icon/iconchanceBlu_16x16.gif"],["h:h:alt:tcr",_f7fe,"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,_f801){
var oL=this.oL;
if(oL){
if(pVal.is("")&&!oL.ctrld){
return;
}
if(_f801){
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 _f80a=cfg[at-1],imgSrv=this.sImgServer;
var _f80b=imgSrv+"s.gif";
var sHTML="<img src=\""+_f80b+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">|<img src=\""+_f80b+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">";
sHTML+="<img src=\""+imgSrv+_f80a[2]+"?t\" style=\"vertical-align:middle\"><img src=\""+_f80b+"\" width=\"5\" height=\"16\" style=\"vertical-align:middle\">";
var url=this.sViewItemUrl+"&item="+ii;
sHTML+="<a href=\""+url+"&ssPageName="+_f80a[0]+"\">"+_f80a[1]+"</a>";
this.setValue(sHTML);
this.sLastCookieletValue=c;
}
this.fireRefreshEvent();
};
BuyerTransactionAlert.prototype.fireRefreshEvent=function(_f80e){
if(!_f80e){
_f80e=this.iPollingInterval;
}
window.setTimeout(VjUtils.hitch(this,this.onRefresh),_f80e*1000);
};
BuyerTransactionAlert.prototype.onCookieExpire=function(){
var _f80f=VjCookieJar.readCookie("ebaysignin");
if(!_f80f.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(_f811,show){
var elem=getElementById(_f811);
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_GB/e521i/GlobalNav_Ebay_e521i5000484_1_en_GB
// b=5000484
