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(offset,date){
offset=offset?offset:0;
d=date?date:new Date();
var _19df6=d.getTime();
var _19df7=d.getTimezoneOffset()*60000;
var utc=_19df6+_19df7;
return new Date(utc+(3600000*offset));
};
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(_19df9,_19dfa){
var rv=this.readCookieObj(_19df9,_19dfa).value;
return (rv)?unescape(rv):"";
};
VjCookieJar.createDefaultCookieBean=function(_19dfc,_19dfd){
var cookie={};
cookie.name=_19dfc;
cookie.cookieletname=_19dfd;
cookie.value="";
cookie.maxage=0;
cookie.rawcookievalue="";
cookie.mode="";
return cookie;
};
VjCookieJar.readCookieObj=function(_19dff,_19e00){
var cookie=this.createDefaultCookieBean(_19dff,_19e00);
this.update();
this.checkConversionMap(cookie);
cookie.rawcookievalue=this.aCookies[cookie.name];
if(!cookie.name||!cookie.rawcookievalue){
cookie.value="";
}else{
if(!cookie.cookieletname){
this.readCookieInternal(cookie);
}else{
this.readCookieletInternal(cookie);
}
}
return (typeof (cookie)!="undefined")?cookie:"";
};
VjCookieJar.checkConversionMap=function(cookie){
var cmap=this.aConversionMap[cookie.name];
if(cmap){
cookie.mode=this.getMode(cookie.name);
cookie.name=cmap[0];
cookie.cookieletname=cmap[1];
}
};
VjCookieJar.readCookieInternal=function(cookie){
cookie.value=cookie.rawcookievalue;
return cookie;
};
VjCookieJar.readCookieletInternal=function(cookie){
var clet=this.getCookielet(cookie.name,cookie.cookieletname,cookie.rawcookievalue);
var format=this.getFormat(cookie.name);
if(clet&&format.bUseExp){
clet=clet.substring(0,clet.length-8);
}
cookie.value=clet;
if(cookie.mode==this.sCOMPAT){
cookie.value=cookie.rawcookievalue;
}
return cookie;
};
VjCookieJar.readMultiLineCookie=function(_19e08,_19e09){
if(!_19e08||!_19e09){
return "";
}
var val,r="";
var cmap=this.aConversionMap[_19e08];
if(cmap){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}
if(val){
r=this.getCookielet(_19e08,_19e09,val)||"";
}
return (typeof (r)!="undefined")?r:"";
};
VjCookieJar.writeCookie=function(_19e0c,psVal,psExp){
var cmap=this.aConversionMap[_19e0c];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],psVal,psExp);
return;
}
var format=this.getFormat(_19e0c);
if(psVal&&format.escapedValue){
psVal=escape(psVal);
}
this.writeRawCookie(_19e0c,psVal,psExp);
};
VjCookieJar.writeRawCookie=function(_19e11,psVal,psExp){
if(_19e11&&(psVal!==undefined)){
if((isNaN(psVal)&&psVal.length<4000)||(psVal+"").length<4000){
if(typeof psExp=="number"){
psExp=this.getExpDate(psExp);
}
var _19e14=psExp?new Date(psExp):new Date(this.getExpDate(730));
var format=this.getFormat(_19e11);
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=_19e11+"="+(psVal||"")+((psExp||format.bUseExp)?"; expires="+_19e14.toGMTString():"")+"; domain="+this.sCookieDomain+"; path="+this.sPath;
}
}
}
};
VjCookieJar.writeCookieEx=function(_19e19,psVal,piDays){
this.writeCookie(_19e19,psVal,this.getExpDate(piDays));
};
VjCookieJar.writeCookielet=function(_19e1c,_19e1d,psVal,psExp,_19e20){
if(_19e1c&&_19e1d){
this.update();
var format=this.getFormat(_19e1c);
if(format.bUseExp&&psVal){
if(typeof psExp=="number"){
psExp=this.getExpDate(psExp);
}
var _19e22=psExp?new Date(psExp):new Date(this.getExpDate(730));
var _19e23=Date.UTC(_19e22.getUTCFullYear(),_19e22.getUTCMonth(),_19e22.getUTCDate());
_19e23=Math.floor(_19e23/1000);
psVal+=_19e23.dec2Hex();
}
var val=this.createCookieValue(_19e1c,_19e1d,psVal);
this.writeRawCookie(_19e1c,val,_19e20);
}
};
VjCookieJar.writeMultiLineCookie=function(_19e25,_19e26,psVal,psExp,_19e29){
this.update();
var val=this.createCookieValue(_19e25,_19e26,psVal);
if(val){
var cmap=this.aConversionMap[_19e25];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],val,psExp,_19e29);
}
}
};
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(psName,psKey,psVal){
var cmap=this.aConversionMap[psName],format=this.getFormat(psName),mode=this.getMode(psName),val;
if(cmap&&(mode==this.sSTRICT||mode==this.sCONVER)){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}else{
val=this.aCookies[psName]||"";
}
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 format=this.getFormat(sC[0]),cv=sC[1],sd=format.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(_19e3e,_19e3f,psVal){
var format=this.getFormat(_19e3e);
var clts=this.getCookieletArray(psVal,format);
return clts[_19e3f]||"";
};
VjCookieJar.getFormat=function(_19e43){
return this.aFormatMap[_19e43]||VjCookieJar.Default_Cookie_Format;
};
VjCookieJar.getCookieletArray=function(psVal,_19e45){
var rv=[],val=psVal||"";
if(_19e45.escapedValue){
val=unescape(val);
}
var a=val.split(_19e45.COOKIELET_DELIMITER);
for(var i=0;i<a.length;i++){
var idx=a[i].indexOf(_19e45.NAME_VALUE_DELIMITER);
if(idx>0){
rv[a[i].substring(0,idx)]=a[i].substring(idx+1);
}
}
return rv;
};
VjCookieJar.getExpDate=function(piDays){
var _19e4b;
if(typeof piDays=="number"&&piDays>=0){
var d=new Date();
d.setTime(d.getTime()+(piDays*24*60*60*1000));
_19e4b=d.toGMTString();
}
return _19e4b;
};
VjCookieJar.getMode=function(_19e4d){
var h=this.readCookieObj(this.sModesCookie,this.sModesCookielet).value,b;
if(!(_19e4d 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(_19e4d==o){
return (f.length==1)?"0"+f:f;
}
i++;
}
return null;
}
};
VjUtils={};
VjUtils.isString=function(wh){
return (typeof wh=="string");
};
VjUtils.hitch=function(_19e52,method){
var fcn;
if(VjUtils.isString(method)){
fcn=_19e52[method];
}else{
fcn=method;
}
return function(){
return fcn.apply(_19e52,arguments);
};
};
VjUtils.extend=function(_19e55,_19e56){
function inheritance(){
}
inheritance.prototype=_19e56.prototype;
_19e55.prototype=new inheritance();
_19e55.prototype.constructor=_19e55;
_19e55.baseConstructor=_19e56;
_19e55.superClass=_19e56.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 scrOfX=0,scrOfY=0;
if(typeof (window.pageYOffset)=="number"){
scrOfY=window.pageYOffset;
scrOfX=window.pageXOffset;
}else{
if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){
scrOfY=document.body.scrollTop;
scrOfX=document.body.scrollLeft;
}else{
if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){
scrOfY=document.documentElement.scrollTop;
scrOfX=document.documentElement.scrollLeft;
}
}
}
return [scrOfX,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(_19e61,_19e62,_19e63,_19e64,_19e65,_19e66,_19e67,_19e68,_19e69,_19e6a,_19e6b,_19e6c,_19e6d,_19e6e,_19e6f,_19e70,_19e71,_19e72,_19e73,_19e74){
this.iMouseOutTimer=null;
this.iMouseOverTimer=null;
this.iLeftPadding=_19e6b;
this.iTopPadding=_19e6c;
this.iRightPadding=_19e6d;
this.sAnchorId=_19e61;
this.sContainerLayerId=_19e62;
this.sContentLayerId=_19e63;
this.iMouseOutDelay=_19e64;
this.iMouseOverDelay=_19e65;
this.iHighResDocWidth=_19e66;
this.iLowResDocWidth=_19e67;
this.iHighResColumns=_19e68;
this.iMediumResColumns=_19e69;
this.iLowResColumns=_19e6a;
this.sHandler=_19e6e;
this.sCollName=_19e6f;
this.sWidth=_19e70;
this.sAnchorMouseOverClass=_19e71;
this.sAnchorMouseOutClass=_19e72;
this.iframeShim=null;
this.sHTML=null;
this.oAnchor=null;
this.sTemplate=null;
this.sAnchorText=_19e73;
this.sDomain=_19e74;
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(_19e7b){
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 _19e7d=window[sHandler];
if(!_19e7d){
return;
}
var data=_19e7d(),items=data[sCollName],l=items.length;
ipc=Math.ceil(l/_19e7b);
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<_19e7b;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,_19e8a,_19e8b){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
var w=node.offsetWidth,h=node.offsetHeight;
w+=_19e8a?_19e8a:0;
h+=_19e8b?_19e8b:0;
var iframe=document.createElement("IFRAME");
iframe.style.width=w+"px";
iframe.style.height=h+"px";
iframe.style.filter="chroma(color='white')";
iframe.frameBorder=0;
iframe.style.position="absolute";
iframe.style.left="0px";
iframe.style.top="0px";
iframe.style.zIndex="-1";
iframe.style.filter="Alpha(Opacity=\"0\")";
node.appendChild(iframe);
return iframe;
};
DynamicMenu.prototype.removeLayerShim=function(_19e8f,iframe){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
if(iframe&&iframe.parentElement){
_19e8f.removeChild(iframe);
}
};
function getOffsetTop(elm){
var _19e93=elm.offsetTop;
var _19e94=elm.offsetParent;
while(_19e94!==null){
_19e93+=_19e94.offsetTop;
_19e94=_19e94.offsetParent;
}
return _19e93;
}
function getOffsetLeft(elm){
var _19e96=elm.offsetLeft;
var _19e97=elm.offsetParent;
while(_19e97!==null){
_19e96+=_19e97.offsetLeft;
_19e97=_19e97.offsetParent;
}
return _19e96;
}
var VjLayerUtils={};
VjLayerUtils.matchColumnHeight=function(_19e98,_19e99,aDivs){
var px="px";
var _19e9c=document.getElementById(_19e98);
var _19e9d=_19e9c.offsetHeight;
var _19e9e=Math.max(_19e9d,_19e99);
for(var i=0;i<aDivs.length;i++){
document.getElementById(aDivs[i]).style.height=_19e9e+px;
}
};
VjLayerUtils.addLayerShim=function(node){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
var iframe=document.createElement("IFRAME");
iframe.style.width=node.offsetWidth+"px";
iframe.style.height=node.offsetHeight+"px";
iframe.style.filter="chroma(color='white')";
iframe.frameBorder=0;
iframe.style.position="absolute";
iframe.style.left="0px";
iframe.style.top="0px";
iframe.style.zIndex="-1";
iframe.style.filter="Alpha(Opacity=\"0\")";
node.appendChild(iframe);
return iframe;
};
VjLayerUtils.removeLayerShim=function(_19ea3,iframe){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
if(iframe&&iframe.parentElement){
_19ea3.removeChild(iframe);
}
};
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(_19eb3,_19eb4){
this.sLayerId=_19eb3;
this.sHandle=_19eb4;
}
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(_19eba,show){
var elem=getElementById(_19eba);
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(_19ebe,_19ebf){
var rv=this.readCookieObj(_19ebe,_19ebf).value;
return (rv)?unescape(rv):"";
};
VjCookieJar.createDefaultCookieBean=function(_19ec1,_19ec2){
var cookie={};
cookie.name=_19ec1;
cookie.cookieletname=_19ec2;
cookie.value="";
cookie.maxage=0;
cookie.rawcookievalue="";
cookie.mode="";
return cookie;
};
VjCookieJar.readCookieObj=function(_19ec4,_19ec5){
var cookie=this.createDefaultCookieBean(_19ec4,_19ec5);
this.update();
this.checkConversionMap(cookie);
cookie.rawcookievalue=this.aCookies[cookie.name];
if(!cookie.name||!cookie.rawcookievalue){
cookie.value="";
}else{
if(!cookie.cookieletname){
this.readCookieInternal(cookie);
}else{
this.readCookieletInternal(cookie);
}
}
return (typeof (cookie)!="undefined")?cookie:"";
};
VjCookieJar.checkConversionMap=function(cookie){
var cmap=this.aConversionMap[cookie.name];
if(cmap){
cookie.mode=this.getMode(cookie.name);
cookie.name=cmap[0];
cookie.cookieletname=cmap[1];
}
};
VjCookieJar.readCookieInternal=function(cookie){
cookie.value=cookie.rawcookievalue;
return cookie;
};
VjCookieJar.readCookieletInternal=function(cookie){
var clet=this.getCookielet(cookie.name,cookie.cookieletname,cookie.rawcookievalue);
var format=this.getFormat(cookie.name);
if(clet&&format.bUseExp){
clet=clet.substring(0,clet.length-8);
}
cookie.value=clet;
if(cookie.mode==this.sCOMPAT){
cookie.value=cookie.rawcookievalue;
}
return cookie;
};
VjCookieJar.readMultiLineCookie=function(_19ecd,_19ece){
if(!_19ecd||!_19ece){
return "";
}
var val,r="";
var cmap=this.aConversionMap[_19ecd];
if(cmap){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}
if(val){
r=this.getCookielet(_19ecd,_19ece,val)||"";
}
return (typeof (r)!="undefined")?r:"";
};
VjCookieJar.writeCookie=function(_19ed1,psVal,psExp){
var cmap=this.aConversionMap[_19ed1];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],psVal,psExp);
return;
}
var format=this.getFormat(_19ed1);
if(psVal&&format.escapedValue){
psVal=escape(psVal);
}
this.writeRawCookie(_19ed1,psVal,psExp);
};
VjCookieJar.writeRawCookie=function(_19ed6,psVal,psExp){
if(_19ed6&&(psVal!==undefined)){
if((isNaN(psVal)&&psVal.length<4000)||(psVal+"").length<4000){
if(typeof psExp=="number"){
psExp=this.getExpDate(psExp);
}
var _19ed9=psExp?new Date(psExp):new Date(this.getExpDate(730));
var format=this.getFormat(_19ed6);
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=_19ed6+"="+(psVal||"")+((psExp||format.bUseExp)?"; expires="+_19ed9.toGMTString():"")+"; domain="+this.sCookieDomain+"; path="+this.sPath;
}
}
}
};
VjCookieJar.writeCookieEx=function(_19ede,psVal,piDays){
this.writeCookie(_19ede,psVal,this.getExpDate(piDays));
};
VjCookieJar.writeCookielet=function(_19ee1,_19ee2,psVal,psExp,_19ee5){
if(_19ee1&&_19ee2){
this.update();
var format=this.getFormat(_19ee1);
if(format.bUseExp&&psVal){
if(typeof psExp=="number"){
psExp=this.getExpDate(psExp);
}
var _19ee7=psExp?new Date(psExp):new Date(this.getExpDate(730));
var _19ee8=Date.UTC(_19ee7.getUTCFullYear(),_19ee7.getUTCMonth(),_19ee7.getUTCDate());
_19ee8=Math.floor(_19ee8/1000);
psVal+=_19ee8.dec2Hex();
}
var val=this.createCookieValue(_19ee1,_19ee2,psVal);
this.writeRawCookie(_19ee1,val,_19ee5);
}
};
VjCookieJar.writeMultiLineCookie=function(_19eea,_19eeb,psVal,psExp,_19eee){
this.update();
var val=this.createCookieValue(_19eea,_19eeb,psVal);
if(val){
var cmap=this.aConversionMap[_19eea];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],val,psExp,_19eee);
}
}
};
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(psName,psKey,psVal){
var cmap=this.aConversionMap[psName],format=this.getFormat(psName),mode=this.getMode(psName),val;
if(cmap&&(mode==this.sSTRICT||mode==this.sCONVER)){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}else{
val=this.aCookies[psName]||"";
}
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 format=this.getFormat(sC[0]),cv=sC[1],sd=format.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(_19f03,_19f04,psVal){
var format=this.getFormat(_19f03);
var clts=this.getCookieletArray(psVal,format);
return clts[_19f04]||"";
};
VjCookieJar.getFormat=function(_19f08){
return this.aFormatMap[_19f08]||VjCookieJar.Default_Cookie_Format;
};
VjCookieJar.getCookieletArray=function(psVal,_19f0a){
var rv=[],val=psVal||"";
if(_19f0a.escapedValue){
val=unescape(val);
}
var a=val.split(_19f0a.COOKIELET_DELIMITER);
for(var i=0;i<a.length;i++){
var idx=a[i].indexOf(_19f0a.NAME_VALUE_DELIMITER);
if(idx>0){
rv[a[i].substring(0,idx)]=a[i].substring(idx+1);
}
}
return rv;
};
VjCookieJar.getExpDate=function(piDays){
var _19f10;
if(typeof piDays=="number"&&piDays>=0){
var d=new Date();
d.setTime(d.getTime()+(piDays*24*60*60*1000));
_19f10=d.toGMTString();
}
return _19f10;
};
VjCookieJar.getMode=function(_19f12){
var h=this.readCookieObj(this.sModesCookie,this.sModesCookielet).value,b;
if(!(_19f12 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(_19f12==o){
return (f.length==1)?"0"+f:f;
}
i++;
}
return null;
}
};
VjURL={};
VjURL.addArg=function(psUrl,_19f17,_19f18){
if(psUrl==null||psUrl==undefined){
return null;
}
if(psUrl.indexOf("?")<0){
psUrl+="?"+_19f17+"="+_19f18;
return psUrl;
}
var _19f19=this.getArgPairIfExists(psUrl,_19f17);
if(_19f19!==null){
psUrl.replace(_19f19,_19f17+"="+_19f18);
}else{
psUrl+="&"+_19f17+"="+_19f18;
}
return psUrl;
};
VjURL.getArg=function(psUrl,_19f1b){
if(psUrl==null||psUrl==undefined){
return null;
}
if(psUrl.indexOf("?")<0){
return null;
}
var _19f1c=this.getArgPairIfExists(psUrl,_19f1b);
if(_19f1c!==null){
return _19f1c.substring(_19f1c.indexOf("=")+1);
}
return null;
};
VjURL.getArgPairIfExists=function(psUrl,_19f1e){
var _19f1f=psUrl.indexOf("?");
if(_19f1f<0){
return null;
}
var _19f20=psUrl;
var _19f21,argName;
while(_19f1f>=0){
_19f20=_19f20.substring(_19f1f+1);
_19f21=_19f20;
_19f1f=_19f20.indexOf("&");
if(_19f1f>=0){
_19f21=_19f20.substring(0,_19f1f);
}
argName=_19f21.substring(0,_19f21.indexOf("="));
if(argName==_19f1e){
return _19f21;
}
}
return null;
};
function TrackingModuleEnabler(psCid,_19f23){
this.sCid=psCid;
this.sCidParms=_19f23;
}
TrackingModuleEnabler.prototype.rewriteUrl=function(pEvent){
if(pEvent.nativeEvent==null||pEvent.nativeEvent==undefined){
return;
}
var elem=pEvent.nativeEvent.srcElement||pEvent.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(pEvent){
this.rewriteUrl(pEvent);
};
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 _19f2b=this.eventHandlers[srcId];
if(!_19f2b){
return true;
}
var _19f2c=_19f2b[event.eventType];
if(!_19f2c){
return true;
}
var _19f2d=true;
for(var i=0;i<_19f2c.length;i++){
var _19f2f=_19f2c[i].handle(event);
if(_19f2f&&_19f2f.objType=="dsf_Message"){
if(typeof (svcEngine)!="undefined"&&svcEngine.handleRequest(_19f2f)===false){
_19f2d=false;
}
}else{
if(_19f2f===false){
_19f2d=false;
}
}
}
return _19f2d;
};
dsf_EventDispatcher.prototype.register=function(id,_19f31,_19f32){
var srcId=id;
if(!this.eventHandlers[srcId]){
this.eventHandlers[srcId]=[];
}
var _19f34=this.eventHandlers[srcId];
if(!_19f34[_19f31]){
_19f34[_19f31]=[];
}
var _19f35=_19f34[_19f31];
_19f35[_19f35.length]=_19f32;
};
dsf_EventDispatcher.prototype.attachHandlerToElement=function(id,_19f37,_19f38){
eventDispatcher.register(id,_19f37,_19f38);
var _19f39=document.getElementById(id);
if(id=="body"){
_19f39=document.body;
if(_19f37=="onload"||_19f37=="onunload"){
if(_19f39.vjLoadSet){
return this;
}else{
_19f39.vjLoadSet=true;
var _19f3a=window[_19f37]||"";
if(_19f3a){
this.fCustomLoad[_19f37]=_19f3a;
}
}
window[_19f37]=function(){
if(typeof eventDispatcher.fCustomLoad[_19f37]=="function"){
eventDispatcher.fCustomLoad[_19f37]();
}
eventDispatcher[_19f37](document.body);
eventDispatcher.fCustomLoad={};
};
return this;
}
}
if(_19f39){
_19f39[_19f37]=function(event){
return eventDispatcher[_19f37](this,event||window.event);
};
}
return this;
};
dsf_EventDispatcher.prototype.detachHandlers=function(id,_19f3d){
var srcId=id;
if(!this.eventHandlers[srcId]){
return;
}
var _19f3f=this.eventHandlers[srcId];
if(_19f3f[_19f3d]){
_19f3f[_19f3d]=[];
}
var _19f40=document.getElementById(id);
if(id=="body"){
_19f40=document.body;
if(_19f3d=="onload"||_19f3d=="onunload"||_19f3d=="onclick"){
window[_19f3d]=null;
}
}
if(_19f40){
_19f40[_19f3d]=null;
}
};
function dsf_Event(src,_19f42,pEvent){
this.src=src;
this.eventType=_19f42;
this.nativeEvent=pEvent;
}
function dsf_SvcConfig(method,url){
this.url=url;
this.method=method;
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,pEvent){
return this.process(this.getBodyId(src),new dsf_Event(src,"onload",pEvent));
};
dsf_EventDispatcher.prototype.onunload=function(src,pEvent){
return this.process(this.getBodyId(src),new dsf_Event(src,"onunload",pEvent));
};
dsf_EventDispatcher.prototype.onchange=function(src,pEvent){
return this.process(this.getId(src),new dsf_Event(src,"onchange",pEvent));
};
dsf_EventDispatcher.prototype.onsubmit=function(src,pEvent){
return this.process(this.getId(src),new dsf_Event(src,"onsubmit",pEvent));
};
dsf_EventDispatcher.prototype.onreset=function(src,pEvent){
return this.process(this.getId(src),new dsf_Event(src,"onreset",pEvent));
};
dsf_EventDispatcher.prototype.onselect=function(src,pEvent){
return this.process(this.getId(src),new dsf_Event(src,"onselect",pEvent));
};
dsf_EventDispatcher.prototype.onblur=function(src,pEvent){
return this.process(this.getId(src),new dsf_Event(src,"onblur",pEvent));
};
dsf_EventDispatcher.prototype.onfocus=function(src,pEvent){
return this.process(this.getId(src),new dsf_Event(src,"onfocus",pEvent));
};
dsf_EventDispatcher.prototype.onkeydown=function(src,pEvent){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeydown",pEvent));
};
dsf_EventDispatcher.prototype.onkeypress=function(src,pEvent){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeypress",pEvent));
};
dsf_EventDispatcher.prototype.onkeyup=function(src,pEvent){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeyup",pEvent));
};
dsf_EventDispatcher.prototype.onclick=function(src,pEvent){
return this.process(this.getBodyId(src),new dsf_Event(src,"onclick",pEvent));
};
dsf_EventDispatcher.prototype.ondblclick=function(src,pEvent){
return this.process(this.getBodyId(src),new dsf_Event(src,"ondblclick",pEvent));
};
dsf_EventDispatcher.prototype.onmousedown=function(src,pEvent){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmousedown",pEvent));
};
dsf_EventDispatcher.prototype.onmousemove=function(src,pEvent){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmousemove",pEvent));
};
dsf_EventDispatcher.prototype.onmouseout=function(src,pEvent){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseout",pEvent));
};
dsf_EventDispatcher.prototype.onmouseover=function(src,pEvent){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseover",pEvent));
};
dsf_EventDispatcher.prototype.onmouseup=function(src,pEvent){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseup",pEvent));
};
function dsf_EventHandler(_19f71){
this.eventTypes=_19f71;
this.srcId="";
}
dsf_EventHandler.prototype.handle=function(event){
if(this.handleEvent===null){
alert("all derived event handlers need to have a handleEvent method");
}
var answer=this.handleEvent(event);
if(answer===null){
return true;
}
};
dsf_EventHandler.prototype.attachTo=function(id){
eventDispatcher.register(this,id);
var _19f75=this.eventTypes;
var _19f76=document.getElementById(id);
for(var i=0;i<_19f75.length;i++){
var _19f78=_19f75[i];
if(_19f76[_19f78]!==null){
continue;
}
_19f76[_19f78]=function(){
return eventDispatcher[_19f78](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,_19f7b){
this.controls[psKey]=_19f7b;
};
VjComponentRegistry.prototype.get=function(psKey){
return this.controls[psKey];
};
VjComponentRegistry.prototype.dump=function(){
var _19f7d=this.controls;
var string="controls on page:\n";
for(var i in _19f7d){
string+="key = "+i;
string+="controlName = "+_19f7d[i].objtype;
string+="\n";
}
return string;
};
var oRegistry;
if(typeof (oRegistry)=="undefined"){
oRegistry=new VjComponentRegistry();
}
function VjLanguageSwitchOnClickHandler(psSrc,_19f81){
this.sSrc=psSrc||"";
this.sTarget=_19f81||"";
}
VjLanguageSwitchOnClickHandler.prototype.handle=function(event){
var sURL=(typeof (MyeBayCurrentPageURL)!="undefined"&&MyeBayCurrentPageURL&&MyeBayCurrentPageURL!="")?MyeBayCurrentPageURL:document.location.href;
var url="",i=sURL.indexOf("://");
if(i!=-1){
url=sURL.substring(0,i+3);
var tmp=sURL.substring(i+3);
var end=(tmp.indexOf("/")!=-1)?tmp.indexOf("/"):tmp.length;
url+=tmp.substring(0,end).toLowerCase()+tmp.substring(end);
}else{
url=sURL;
}
url=url.replace(this.sSrc.toLowerCase(),this.sTarget.toLowerCase());
document.location.href=url;
if(window.event){
window.event.cancelBubble=true;
}
return false;
};
function get_Buy_menu(){
return {"items":[{"value":"<a href=\"http://pages.cafr.ebay.ca/education/buying.html\">Comment acheter</a>"},{"value":"<a href=\"http://reviews.cafr.ebay.ca/\">Critiques et guides </a>"},{"value":"<a href=\"http://pulse.cafr.ebay.ca/\">En ce moment sur eBay</a>"},{"value":"<a href=\"http://stores.cafr.ebay.ca/\">Boutiques eBay</a>"},{"value":"<a href=\"http://pages.cafr.ebay.ca/wantitnow/index.html\">Objets d\xe9sir\xe9s</a>"}]};
}
function get_Sell_menu(){
return {"items":[{"value":"<a href=\"http://pages.cafr.ebay.ca/education/selling.html\">Comment vendre</a>"},{"value":"<a href=\"http://pages.cafr.ebay.ca/sellercentral/index.html\">Ventes</a>"},{"value":"<a href=\"http://pages.cafr.ebay.ca/sell/tools.html\">Outils de vente</a>"},{"value":"<a href=\"http://pages.cafr.ebay.ca/help/sellerguide/shipping/index.html\">Centre d'exp\xe9dition</a>"},{"value":"<a href=\"http://pages.cafr.ebay.ca/storefronts/start.html\">Ouvrir une boutique eBay</a>"}]};
}
function get_MyEbay_menu(){
return {"items":[{"value":"<a href=\"http://my.cafr.ebay.ca/ws/eBayISAPI.dll?MyEbay&amp;smGHR=true\">R\xe9capitulatif</a>"},{"value":"<a href=\"http://my.cafr.ebay.ca/ws/eBayISAPI.dll?MyEbay&amp;CurrentPage=MyeBayWatching\">Objets \xe0 suivre</a>"},{"value":"<a href=\"http://my.cafr.ebay.ca/ws/eBayISAPI.dll?MyEbay&amp;CurrentPage=MyeBayBidding\">Ench\xe8res en cours</a>"},{"value":"<a href=\"http://my.cafr.ebay.ca/ws/eBayISAPI.dll?MyEbay&amp;CurrentPage=MyeBaySelling&amp;smGHR=true\">Mes ventes</a>"},{"value":"<a href=\"http://my.cafr.ebay.ca/ws/eBayISAPI.dll?MyEbay&amp;CurrentPage=MyeBayAllFavorites\">Mes favoris</a>"}]};
}
function get_Community_menu(){
return {"items":[{"value":"<a href=\"http://www2.ebay.com/aw/marketing-cafr.shtml\">Nouveaut\xe9s</a>"},{"value":"<a href=\"http://pages.cafr.ebay.ca/community/answercenter/index.html\">Forum Questions-R\xe9ponses</a>"},{"value":"<a href=\"http://pages.cafr.ebay.ca/community/chat/index.html\">Forums</a>"},{"value":"<a href=\"http://blogs.cafr.ebay.ca/\">Blogues eBay</a>"}]};
}
function get_Help_menu(){
return {"items":[{"value":"<a href=\"http://pages.cafr.ebay.ca/help/index.html\">Rubriques d'aide</a>"},{"value":"<a href=\"http://pages.cafr.ebay.ca/education/index.html\">Centre de formation</a>"},{"value":"<a href=\"http://pages.cafr.ebay.ca/securitycenter/index.html\">Espace d\xe9di\xe9 \xe0 la S\xe9curit\xe9 sur eBay</a>"},{"value":"<a href=\"http://pages.cafr.ebay.ca/help/contact_us/_base/index.html\">Communiquez avec nous </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(_19f89,_19f8a,_19f8b,_19f8c){
this.sDropdownId=_19f89;
this.sHandler=_19f8a;
this.sCollName=_19f8b;
this.iCondNo=_19f8c;
}
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(_19f8e,psName,psText){
var e=_19f8e;
if(e){
var o=new Option(psText,psName,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,pToken,pRepl){
var rv=pStr;
while(rv.has(pToken)){
rv=rv.replace(pToken,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(_19fa4){
var rv=this,re,tkn,a=arguments,l=a.length;
for(var i=1;i<l+1;i++){
rv=this.replaceToken(rv,_19fa4.replace("n",(i)),a[i]);
}
return rv;
};
VjGreetings={};
VjGreetings.writePersonalHeader=function(_19fa7,_19fa8,_19fa9,_19faa,_19fab,_19fac,_19fad,_19fae,_19faf,_19fb0,psIcon,_19fb2,pAlert,_19fb4,pRU,pRUVal){
var u1p=VjCookieJar.readCookie("dp1","u1p"),s="",sinLink="",soutLink="",regLink="",un="undefined";
if(!u1p||typeof (u1p)==un){
s=typeof (_19fb0)!=un?_19fb0:"";
document.write(s);
return;
}
var _19fb8=u1p.decodeBase64().decodeUTF8(),v1=VjCookieJar.readCookie("ebay","sin"),v2=VjCookieJar.readCookie("dp1","kms");
if(typeof (_19fb8)==un){
return;
}
if(parseInt(pRU,0)===1){
_19fa8=VjURL.addArg(_19fa8,"ru",pRUVal?pRUVal: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=pAlert;
}else{
sA=_19fb4;
}
sA=sA.replaceTokensEx("##n##",a);
}
_19fb2=_19fb2.replaceTokensEx("##n##",sA);
if(_19fb8.has("@@__@@__@@")){
s+=typeof (_19fad)!=un?_19fad:"";
sinLink="<a tabindex=\"-1\" href=\""+_19fa8+"\" >"+_19fa7+"</a>";
regLink="<a tabindex=\"-1\" href=\""+_19faa+"\" >"+_19fa9+"</a>";
s=s.replaceTokensEx("##n##",sinLink,regLink);
}else{
if((v1&&v1.is("in"))||(v2&&v2.is("in"))){
if(bp){
if(ba){
s=psIcon+"&nbsp;";
}
s+=typeof (_19fae)!=un?_19fae:"";
soutLink="<a tabindex=\"-1\" href=\""+_19fac+"\" >"+_19fab+"</a>";
s=s.replaceTokensEx("##n##",_19fb8,soutLink);
s+=_19fb2;
}else{
s=_19fb0;
}
}else{
if(ba){
s=psIcon+"&nbsp;";
}
s+=typeof (_19faf)!=un?_19faf:"";
sinLink="<a tabindex=\"-1\" href=\""+_19fa8+"\" >"+_19fa7+"</a>";
s=s.replaceTokensEx("##n##",_19fb8,sinLink);
s+=_19fb2;
}
}
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,pToken,pRepl){
var rv=pStr;
while(rv.has(pToken)){
rv=rv.replace(pToken,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(_19fc8){
var rv=this,re,tkn,a=arguments,l=a.length;
for(var i=1;i<l+1;i++){
rv=this.replaceToken(rv,_19fc8.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(_19fd8,show){
var elem=getElementById(_19fd8);
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(_19fdc,_19fdd,_19fde,_19fdf,_19fe0,_19fe1,_19fe2){
this.sLayerId=_19fdc;
this.sCloseAnchorId=_19fdd;
this.sCartCountText=_19fde;
this.aHostCoutryId=_19fdf;
this.aHostCountryDomain=_19fe0;
this.aHideOnParams=_19fe1;
this.sHtmlProvider=_19fe2;
}
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 _19fe8=this.aHideOnParams;
var iLen=_19fe8.length;
for(var i=0;i<iLen;i++){
if(document.location.href.has(_19fe8[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 _19fed=window[this.sHtmlProvider];
if(!_19fed){
return;
}
oL.innerHTML=_19fed().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\">Vous avez quitt\xe9 eBay Express.</td><td align=\"left\" nowrap=\"nowrap\"><a href=\"http://www.express.##1##/\">Magasinez encore sur 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\">Panier##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(_19ff9,method){
var fcn;
if(VjUtils.isString(method)){
fcn=_19ff9[method];
}else{
fcn=method;
}
return function(){
return fcn.apply(_19ff9,arguments);
};
};
VjUtils.extend=function(_19ffc,_19ffd){
function inheritance(){
}
inheritance.prototype=_19ffd.prototype;
_19ffc.prototype=new inheritance();
_19ffc.prototype.constructor=_19ffc;
_19ffc.baseConstructor=_19ffd;
_19ffc.superClass=_19ffd.prototype;
};
function BuyerTransactionAlert(pId,_19fff,_1a000,_1a001,_1a002,_1a003,_1a004,_1a005,_1a006,_1a007,_1a008){
this.sId=pId;
this.iPollingInterval=_19fff;
this.iMaxHits=_1a000;
this.iHitTimeout=_1a001;
this.iServerHits=0;
this.sLastCookieletValue="";
this.sServerUrl=_1a002;
if(document.location.protocol.has("https")){
_1a003=_1a003.replace("http://pics.","https://securepics.");
}
this.sImgServer=_1a003+"/";
this.sViewItemUrl=_1a004;
this.aAlertInfo=[["h:h:alt:2",_1a006,"icon/iconOutbid_16x16.gif"],["h:h:alt:3",_1a005,"icon/iconWatchB_16x16.gif"],["h:h:alt:4",_1a006,"icon/iconOutbid_16x16.gif"],["h:h:alt:5",_1a007,"icon/iconchanceBlu_16x16.gif"],["h:h:alt:tcr",_1a008,"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,_1a00b){
var oL=this.oL;
if(oL){
if(pVal.is("")&&!oL.ctrld){
return;
}
if(_1a00b){
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 _1a014=cfg[at-1],imgSrv=this.sImgServer;
var _1a015=imgSrv+"s.gif";
var sHTML="<img src=\""+_1a015+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">|<img src=\""+_1a015+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">";
sHTML+="<img src=\""+imgSrv+_1a014[2]+"?t\" style=\"vertical-align:middle\"><img src=\""+_1a015+"\" width=\"5\" height=\"16\" style=\"vertical-align:middle\">";
var url=this.sViewItemUrl+"&item="+ii;
sHTML+="<a href=\""+url+"&ssPageName="+_1a014[0]+"\">"+_1a014[1]+"</a>";
this.setValue(sHTML);
this.sLastCookieletValue=c;
}
this.fireRefreshEvent();
};
BuyerTransactionAlert.prototype.fireRefreshEvent=function(_1a018){
if(!_1a018){
_1a018=this.iPollingInterval;
}
window.setTimeout(VjUtils.hitch(this,this.onRefresh),_1a018*1000);
};
BuyerTransactionAlert.prototype.onCookieExpire=function(){
var signin=VjCookieJar.readCookie("ebaysignin");
if(!signin.has("in")){
return;
}
if(document.location.href.has("https:")){
return;
}
if(this.iServerHits<this.iMaxHits){
this.iServerHits++;
var ct=new Date();
ct=ct.getTime();
this.setValue("<img height=\"1\" width=\"1\" src=\""+this.sServerUrl+"&clientTime="+ct+"\" style=\"visibility:hidden;vertical-align:middle\">");
this.fireRefreshEvent(this.iHitTimeout);
}else{
this.setValue("");
VjCookieJar.writeCookielet("ebay","a2p","1111111101111111111.");
}
};
function toggleVisibility(_1a01b,show){
var elem=getElementById(_1a01b);
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());

// fr_CA/v/GlobalNav_EbayStatic_v_1_fr_CA
// b=5000484