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(_cd3a,date){
_cd3a=_cd3a?_cd3a:0;
d=date?date:new Date();
var _cd3c=d.getTime();
var _cd3d=d.getTimezoneOffset()*60000;
var utc=_cd3c+_cd3d;
return new Date(utc+(3600000*_cd3a));
};
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(_cd3f,_cd40){
var rv=this.readCookieObj(_cd3f,_cd40).value;
return (rv)?unescape(rv):"";
};
VjCookieJar.createDefaultCookieBean=function(_cd42,_cd43){
var _cd44={};
_cd44.name=_cd42;
_cd44.cookieletname=_cd43;
_cd44.value="";
_cd44.maxage=0;
_cd44.rawcookievalue="";
_cd44.mode="";
return _cd44;
};
VjCookieJar.readCookieObj=function(_cd45,_cd46){
var _cd47=this.createDefaultCookieBean(_cd45,_cd46);
this.update();
this.checkConversionMap(_cd47);
_cd47.rawcookievalue=this.aCookies[_cd47.name];
if(!_cd47.name||!_cd47.rawcookievalue){
_cd47.value="";
}else{
if(!_cd47.cookieletname){
this.readCookieInternal(_cd47);
}else{
this.readCookieletInternal(_cd47);
}
}
return (typeof (_cd47)!="undefined")?_cd47:"";
};
VjCookieJar.checkConversionMap=function(_cd48){
var cmap=this.aConversionMap[_cd48.name];
if(cmap){
_cd48.mode=this.getMode(_cd48.name);
_cd48.name=cmap[0];
_cd48.cookieletname=cmap[1];
}
};
VjCookieJar.readCookieInternal=function(_cd4a){
_cd4a.value=_cd4a.rawcookievalue;
return _cd4a;
};
VjCookieJar.readCookieletInternal=function(_cd4b){
var clet=this.getCookielet(_cd4b.name,_cd4b.cookieletname,_cd4b.rawcookievalue);
var _cd4d=this.getFormat(_cd4b.name);
if(clet&&_cd4d.bUseExp){
clet=clet.substring(0,clet.length-8);
}
_cd4b.value=clet;
if(_cd4b.mode==this.sCOMPAT){
_cd4b.value=_cd4b.rawcookievalue;
}
return _cd4b;
};
VjCookieJar.readMultiLineCookie=function(_cd4e,_cd4f){
if(!_cd4e||!_cd4f){
return "";
}
var val,r="";
var cmap=this.aConversionMap[_cd4e];
if(cmap){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}
if(val){
r=this.getCookielet(_cd4e,_cd4f,val)||"";
}
return (typeof (r)!="undefined")?r:"";
};
VjCookieJar.writeCookie=function(_cd52,psVal,psExp){
var cmap=this.aConversionMap[_cd52];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],psVal,psExp);
return;
}
var _cd56=this.getFormat(_cd52);
if(psVal&&_cd56.escapedValue){
psVal=escape(psVal);
}
this.writeRawCookie(_cd52,psVal,psExp);
};
VjCookieJar.writeRawCookie=function(_cd57,psVal,psExp){
if(_cd57&&(psVal!==undefined)){
if((isNaN(psVal)&&psVal.length<4000)||(psVal+"").length<4000){
if(typeof psExp=="number"){
psExp=this.getExpDate(psExp);
}
var _cd5a=psExp?new Date(psExp):new Date(this.getExpDate(730));
var _cd5b=this.getFormat(_cd57);
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=_cd57+"="+(psVal||"")+((psExp||_cd5b.bUseExp)?"; expires="+_cd5a.toGMTString():"")+"; domain="+this.sCookieDomain+"; path="+this.sPath;
}
}
}
};
VjCookieJar.writeCookieEx=function(_cd5f,psVal,_cd61){
this.writeCookie(_cd5f,psVal,this.getExpDate(_cd61));
};
VjCookieJar.writeCookielet=function(_cd62,_cd63,psVal,psExp,_cd66){
if(_cd62&&_cd63){
this.update();
var _cd67=this.getFormat(_cd62);
if(_cd67.bUseExp&&psVal){
if(typeof psExp=="number"){
psExp=this.getExpDate(psExp);
}
var _cd68=psExp?new Date(psExp):new Date(this.getExpDate(730));
var _cd69=Date.UTC(_cd68.getUTCFullYear(),_cd68.getUTCMonth(),_cd68.getUTCDate());
_cd69=Math.floor(_cd69/1000);
psVal+=_cd69.dec2Hex();
}
var val=this.createCookieValue(_cd62,_cd63,psVal);
this.writeRawCookie(_cd62,val,_cd66);
}
};
VjCookieJar.writeMultiLineCookie=function(_cd6b,_cd6c,psVal,psExp,_cd6f){
this.update();
var val=this.createCookieValue(_cd6b,_cd6c,psVal);
if(val){
var cmap=this.aConversionMap[_cd6b];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],val,psExp,_cd6f);
}
}
};
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(_cd79,psKey,psVal){
var cmap=this.aConversionMap[_cd79],format=this.getFormat(_cd79),mode=this.getMode(_cd79),val;
if(cmap&&(mode==this.sSTRICT||mode==this.sCONVER)){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}else{
val=this.aCookies[_cd79]||"";
}
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 _cd83=this.getFormat(sC[0]),cv=sC[1],sd=_cd83.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(_cd84,_cd85,psVal){
var _cd87=this.getFormat(_cd84);
var clts=this.getCookieletArray(psVal,_cd87);
return clts[_cd85]||"";
};
VjCookieJar.getFormat=function(_cd89){
return this.aFormatMap[_cd89]||VjCookieJar.Default_Cookie_Format;
};
VjCookieJar.getCookieletArray=function(psVal,_cd8b){
var rv=[],val=psVal||"";
if(_cd8b.escapedValue){
val=unescape(val);
}
var a=val.split(_cd8b.COOKIELET_DELIMITER);
for(var i=0;i<a.length;i++){
var idx=a[i].indexOf(_cd8b.NAME_VALUE_DELIMITER);
if(idx>0){
rv[a[i].substring(0,idx)]=a[i].substring(idx+1);
}
}
return rv;
};
VjCookieJar.getExpDate=function(_cd90){
var _cd91;
if(typeof _cd90=="number"&&_cd90>=0){
var d=new Date();
d.setTime(d.getTime()+(_cd90*24*60*60*1000));
_cd91=d.toGMTString();
}
return _cd91;
};
VjCookieJar.getMode=function(_cd93){
var h=this.readCookieObj(this.sModesCookie,this.sModesCookielet).value,b;
if(!(_cd93 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(_cd93==o){
return (f.length==1)?"0"+f:f;
}
i++;
}
return null;
}
};
VjUtils={};
VjUtils.isString=function(wh){
return (typeof wh=="string");
};
VjUtils.hitch=function(_cd98,_cd99){
var fcn;
if(VjUtils.isString(_cd99)){
fcn=_cd98[_cd99];
}else{
fcn=_cd99;
}
return function(){
return fcn.apply(_cd98,arguments);
};
};
VjUtils.extend=function(_cd9b,_cd9c){
function inheritance(){
}
inheritance.prototype=_cd9c.prototype;
_cd9b.prototype=new inheritance();
_cd9b.prototype.constructor=_cd9b;
_cd9b.baseConstructor=_cd9c;
_cd9b.superClass=_cd9c.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 _cda3=0,scrOfY=0;
if(typeof (window.pageYOffset)=="number"){
scrOfY=window.pageYOffset;
_cda3=window.pageXOffset;
}else{
if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){
scrOfY=document.body.scrollTop;
_cda3=document.body.scrollLeft;
}else{
if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){
scrOfY=document.documentElement.scrollTop;
_cda3=document.documentElement.scrollLeft;
}
}
}
return [_cda3,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(_cda7,_cda8,_cda9,_cdaa,_cdab,_cdac,_cdad,_cdae,_cdaf,_cdb0,_cdb1,_cdb2,_cdb3,_cdb4,_cdb5,_cdb6,_cdb7,_cdb8,_cdb9,_cdba){
this.iMouseOutTimer=null;
this.iMouseOverTimer=null;
this.iLeftPadding=_cdb1;
this.iTopPadding=_cdb2;
this.iRightPadding=_cdb3;
this.sAnchorId=_cda7;
this.sContainerLayerId=_cda8;
this.sContentLayerId=_cda9;
this.iMouseOutDelay=_cdaa;
this.iMouseOverDelay=_cdab;
this.iHighResDocWidth=_cdac;
this.iLowResDocWidth=_cdad;
this.iHighResColumns=_cdae;
this.iMediumResColumns=_cdaf;
this.iLowResColumns=_cdb0;
this.sHandler=_cdb4;
this.sCollName=_cdb5;
this.sWidth=_cdb6;
this.sAnchorMouseOverClass=_cdb7;
this.sAnchorMouseOutClass=_cdb8;
this.iframeShim=null;
this.sHTML=null;
this.oAnchor=null;
this.sTemplate=null;
this.sAnchorText=_cdb9;
this.sDomain=_cdba;
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(_cdc1){
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 _cdc3=window[sHandler];
if(!_cdc3){
return;
}
var data=_cdc3(),items=data[sCollName],l=items.length;
ipc=Math.ceil(l/_cdc1);
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<_cdc1;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,_cdd0,_cdd1){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
var w=node.offsetWidth,h=node.offsetHeight;
w+=_cdd0?_cdd0:0;
h+=_cdd1?_cdd1:0;
var _cdd4=document.createElement("IFRAME");
_cdd4.style.width=w+"px";
_cdd4.style.height=h+"px";
_cdd4.style.filter="chroma(color='white')";
_cdd4.frameBorder=0;
_cdd4.style.position="absolute";
_cdd4.style.left="0px";
_cdd4.style.top="0px";
_cdd4.style.zIndex="-1";
_cdd4.style.filter="Alpha(Opacity=\"0\")";
node.appendChild(_cdd4);
return _cdd4;
};
DynamicMenu.prototype.removeLayerShim=function(_cdd5,_cdd6){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
if(_cdd6&&_cdd6.parentElement){
_cdd5.removeChild(_cdd6);
}
};
function getOffsetTop(elm){
var _cdd9=elm.offsetTop;
var _cdda=elm.offsetParent;
while(_cdda!==null){
_cdd9+=_cdda.offsetTop;
_cdda=_cdda.offsetParent;
}
return _cdd9;
}
function getOffsetLeft(elm){
var _cddc=elm.offsetLeft;
var _cddd=elm.offsetParent;
while(_cddd!==null){
_cddc+=_cddd.offsetLeft;
_cddd=_cddd.offsetParent;
}
return _cddc;
}
var VjLayerUtils={};
VjLayerUtils.matchColumnHeight=function(_cdde,_cddf,aDivs){
var px="px";
var _cde2=document.getElementById(_cdde);
var _cde3=_cde2.offsetHeight;
var _cde4=Math.max(_cde3,_cddf);
for(var i=0;i<aDivs.length;i++){
document.getElementById(aDivs[i]).style.height=_cde4+px;
}
};
VjLayerUtils.addLayerShim=function(node){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
var _cde8=document.createElement("IFRAME");
_cde8.style.width=node.offsetWidth+"px";
_cde8.style.height=node.offsetHeight+"px";
_cde8.style.filter="chroma(color='white')";
_cde8.frameBorder=0;
_cde8.style.position="absolute";
_cde8.style.left="0px";
_cde8.style.top="0px";
_cde8.style.zIndex="-1";
_cde8.style.filter="Alpha(Opacity=\"0\")";
node.appendChild(_cde8);
return _cde8;
};
VjLayerUtils.removeLayerShim=function(_cde9,_cdea){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
if(_cdea&&_cdea.parentElement){
_cde9.removeChild(_cdea);
}
};
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(_cdf9,_cdfa){
this.sLayerId=_cdf9;
this.sHandle=_cdfa;
}
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(_ce00,show){
var elem=getElementById(_ce00);
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(_ce04,_ce05){
var rv=this.readCookieObj(_ce04,_ce05).value;
return (rv)?unescape(rv):"";
};
VjCookieJar.createDefaultCookieBean=function(_ce07,_ce08){
var _ce09={};
_ce09.name=_ce07;
_ce09.cookieletname=_ce08;
_ce09.value="";
_ce09.maxage=0;
_ce09.rawcookievalue="";
_ce09.mode="";
return _ce09;
};
VjCookieJar.readCookieObj=function(_ce0a,_ce0b){
var _ce0c=this.createDefaultCookieBean(_ce0a,_ce0b);
this.update();
this.checkConversionMap(_ce0c);
_ce0c.rawcookievalue=this.aCookies[_ce0c.name];
if(!_ce0c.name||!_ce0c.rawcookievalue){
_ce0c.value="";
}else{
if(!_ce0c.cookieletname){
this.readCookieInternal(_ce0c);
}else{
this.readCookieletInternal(_ce0c);
}
}
return (typeof (_ce0c)!="undefined")?_ce0c:"";
};
VjCookieJar.checkConversionMap=function(_ce0d){
var cmap=this.aConversionMap[_ce0d.name];
if(cmap){
_ce0d.mode=this.getMode(_ce0d.name);
_ce0d.name=cmap[0];
_ce0d.cookieletname=cmap[1];
}
};
VjCookieJar.readCookieInternal=function(_ce0f){
_ce0f.value=_ce0f.rawcookievalue;
return _ce0f;
};
VjCookieJar.readCookieletInternal=function(_ce10){
var clet=this.getCookielet(_ce10.name,_ce10.cookieletname,_ce10.rawcookievalue);
var _ce12=this.getFormat(_ce10.name);
if(clet&&_ce12.bUseExp){
clet=clet.substring(0,clet.length-8);
}
_ce10.value=clet;
if(_ce10.mode==this.sCOMPAT){
_ce10.value=_ce10.rawcookievalue;
}
return _ce10;
};
VjCookieJar.readMultiLineCookie=function(_ce13,_ce14){
if(!_ce13||!_ce14){
return "";
}
var val,r="";
var cmap=this.aConversionMap[_ce13];
if(cmap){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}
if(val){
r=this.getCookielet(_ce13,_ce14,val)||"";
}
return (typeof (r)!="undefined")?r:"";
};
VjCookieJar.writeCookie=function(_ce17,psVal,psExp){
var cmap=this.aConversionMap[_ce17];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],psVal,psExp);
return;
}
var _ce1b=this.getFormat(_ce17);
if(psVal&&_ce1b.escapedValue){
psVal=escape(psVal);
}
this.writeRawCookie(_ce17,psVal,psExp);
};
VjCookieJar.writeRawCookie=function(_ce1c,psVal,psExp){
if(_ce1c&&(psVal!==undefined)){
if((isNaN(psVal)&&psVal.length<4000)||(psVal+"").length<4000){
if(typeof psExp=="number"){
psExp=this.getExpDate(psExp);
}
var _ce1f=psExp?new Date(psExp):new Date(this.getExpDate(730));
var _ce20=this.getFormat(_ce1c);
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=_ce1c+"="+(psVal||"")+((psExp||_ce20.bUseExp)?"; expires="+_ce1f.toGMTString():"")+"; domain="+this.sCookieDomain+"; path="+this.sPath;
}
}
}
};
VjCookieJar.writeCookieEx=function(_ce24,psVal,_ce26){
this.writeCookie(_ce24,psVal,this.getExpDate(_ce26));
};
VjCookieJar.writeCookielet=function(_ce27,_ce28,psVal,psExp,_ce2b){
if(_ce27&&_ce28){
this.update();
var _ce2c=this.getFormat(_ce27);
if(_ce2c.bUseExp&&psVal){
if(typeof psExp=="number"){
psExp=this.getExpDate(psExp);
}
var _ce2d=psExp?new Date(psExp):new Date(this.getExpDate(730));
var _ce2e=Date.UTC(_ce2d.getUTCFullYear(),_ce2d.getUTCMonth(),_ce2d.getUTCDate());
_ce2e=Math.floor(_ce2e/1000);
psVal+=_ce2e.dec2Hex();
}
var val=this.createCookieValue(_ce27,_ce28,psVal);
this.writeRawCookie(_ce27,val,_ce2b);
}
};
VjCookieJar.writeMultiLineCookie=function(_ce30,_ce31,psVal,psExp,_ce34){
this.update();
var val=this.createCookieValue(_ce30,_ce31,psVal);
if(val){
var cmap=this.aConversionMap[_ce30];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],val,psExp,_ce34);
}
}
};
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(_ce3e,psKey,psVal){
var cmap=this.aConversionMap[_ce3e],format=this.getFormat(_ce3e),mode=this.getMode(_ce3e),val;
if(cmap&&(mode==this.sSTRICT||mode==this.sCONVER)){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}else{
val=this.aCookies[_ce3e]||"";
}
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 _ce48=this.getFormat(sC[0]),cv=sC[1],sd=_ce48.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(_ce49,_ce4a,psVal){
var _ce4c=this.getFormat(_ce49);
var clts=this.getCookieletArray(psVal,_ce4c);
return clts[_ce4a]||"";
};
VjCookieJar.getFormat=function(_ce4e){
return this.aFormatMap[_ce4e]||VjCookieJar.Default_Cookie_Format;
};
VjCookieJar.getCookieletArray=function(psVal,_ce50){
var rv=[],val=psVal||"";
if(_ce50.escapedValue){
val=unescape(val);
}
var a=val.split(_ce50.COOKIELET_DELIMITER);
for(var i=0;i<a.length;i++){
var idx=a[i].indexOf(_ce50.NAME_VALUE_DELIMITER);
if(idx>0){
rv[a[i].substring(0,idx)]=a[i].substring(idx+1);
}
}
return rv;
};
VjCookieJar.getExpDate=function(_ce55){
var _ce56;
if(typeof _ce55=="number"&&_ce55>=0){
var d=new Date();
d.setTime(d.getTime()+(_ce55*24*60*60*1000));
_ce56=d.toGMTString();
}
return _ce56;
};
VjCookieJar.getMode=function(_ce58){
var h=this.readCookieObj(this.sModesCookie,this.sModesCookielet).value,b;
if(!(_ce58 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(_ce58==o){
return (f.length==1)?"0"+f:f;
}
i++;
}
return null;
}
};
VjURL={};
VjURL.addArg=function(psUrl,_ce5d,_ce5e){
if(psUrl==null||psUrl==undefined){
return null;
}
if(psUrl.indexOf("?")<0){
psUrl+="?"+_ce5d+"="+_ce5e;
return psUrl;
}
var _ce5f=this.getArgPairIfExists(psUrl,_ce5d);
if(_ce5f!==null){
psUrl.replace(_ce5f,_ce5d+"="+_ce5e);
}else{
psUrl+="&"+_ce5d+"="+_ce5e;
}
return psUrl;
};
VjURL.getArg=function(psUrl,_ce61){
if(psUrl==null||psUrl==undefined){
return null;
}
if(psUrl.indexOf("?")<0){
return null;
}
var _ce62=this.getArgPairIfExists(psUrl,_ce61);
if(_ce62!==null){
return _ce62.substring(_ce62.indexOf("=")+1);
}
return null;
};
VjURL.getArgPairIfExists=function(psUrl,_ce64){
var _ce65=psUrl.indexOf("?");
if(_ce65<0){
return null;
}
var _ce66=psUrl;
var _ce67,argName;
while(_ce65>=0){
_ce66=_ce66.substring(_ce65+1);
_ce67=_ce66;
_ce65=_ce66.indexOf("&");
if(_ce65>=0){
_ce67=_ce66.substring(0,_ce65);
}
argName=_ce67.substring(0,_ce67.indexOf("="));
if(argName==_ce64){
return _ce67;
}
}
return null;
};
function TrackingModuleEnabler(psCid,_ce69){
this.sCid=psCid;
this.sCidParms=_ce69;
}
TrackingModuleEnabler.prototype.rewriteUrl=function(_ce6a){
if(_ce6a.nativeEvent==null||_ce6a.nativeEvent==undefined){
return;
}
var elem=_ce6a.nativeEvent.srcElement||_ce6a.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(_ce6c){
this.rewriteUrl(_ce6c);
};
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 _ce71=this.eventHandlers[srcId];
if(!_ce71){
return true;
}
var _ce72=_ce71[event.eventType];
if(!_ce72){
return true;
}
var _ce73=true;
for(var i=0;i<_ce72.length;i++){
var _ce75=_ce72[i].handle(event);
if(_ce75&&_ce75.objType=="dsf_Message"){
if(typeof (svcEngine)!="undefined"&&svcEngine.handleRequest(_ce75)===false){
_ce73=false;
}
}else{
if(_ce75===false){
_ce73=false;
}
}
}
return _ce73;
};
dsf_EventDispatcher.prototype.register=function(id,_ce77,_ce78){
var srcId=id;
if(!this.eventHandlers[srcId]){
this.eventHandlers[srcId]=[];
}
var _ce7a=this.eventHandlers[srcId];
if(!_ce7a[_ce77]){
_ce7a[_ce77]=[];
}
var _ce7b=_ce7a[_ce77];
_ce7b[_ce7b.length]=_ce78;
};
dsf_EventDispatcher.prototype.attachHandlerToElement=function(id,_ce7d,_ce7e){
eventDispatcher.register(id,_ce7d,_ce7e);
var _ce7f=document.getElementById(id);
if(id=="body"){
_ce7f=document.body;
if(_ce7d=="onload"||_ce7d=="onunload"){
if(_ce7f.vjLoadSet){
return this;
}else{
_ce7f.vjLoadSet=true;
var _ce80=window[_ce7d]||"";
if(_ce80){
this.fCustomLoad[_ce7d]=_ce80;
}
}
window[_ce7d]=function(){
if(typeof eventDispatcher.fCustomLoad[_ce7d]=="function"){
eventDispatcher.fCustomLoad[_ce7d]();
}
eventDispatcher[_ce7d](document.body);
eventDispatcher.fCustomLoad={};
};
return this;
}
}
if(_ce7f){
_ce7f[_ce7d]=function(event){
return eventDispatcher[_ce7d](this,event||window.event);
};
}
return this;
};
dsf_EventDispatcher.prototype.detachHandlers=function(id,_ce83){
var srcId=id;
if(!this.eventHandlers[srcId]){
return;
}
var _ce85=this.eventHandlers[srcId];
if(_ce85[_ce83]){
_ce85[_ce83]=[];
}
var _ce86=document.getElementById(id);
if(id=="body"){
_ce86=document.body;
if(_ce83=="onload"||_ce83=="onunload"||_ce83=="onclick"){
window[_ce83]=null;
}
}
if(_ce86){
_ce86[_ce83]=null;
}
};
function dsf_Event(src,_ce88,_ce89){
this.src=src;
this.eventType=_ce88;
this.nativeEvent=_ce89;
}
function dsf_SvcConfig(_ce8a,url){
this.url=url;
this.method=_ce8a;
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,_ce94){
return this.process(this.getBodyId(src),new dsf_Event(src,"onload",_ce94));
};
dsf_EventDispatcher.prototype.onunload=function(src,_ce96){
return this.process(this.getBodyId(src),new dsf_Event(src,"onunload",_ce96));
};
dsf_EventDispatcher.prototype.onchange=function(src,_ce98){
return this.process(this.getId(src),new dsf_Event(src,"onchange",_ce98));
};
dsf_EventDispatcher.prototype.onsubmit=function(src,_ce9a){
return this.process(this.getId(src),new dsf_Event(src,"onsubmit",_ce9a));
};
dsf_EventDispatcher.prototype.onreset=function(src,_ce9c){
return this.process(this.getId(src),new dsf_Event(src,"onreset",_ce9c));
};
dsf_EventDispatcher.prototype.onselect=function(src,_ce9e){
return this.process(this.getId(src),new dsf_Event(src,"onselect",_ce9e));
};
dsf_EventDispatcher.prototype.onblur=function(src,_cea0){
return this.process(this.getId(src),new dsf_Event(src,"onblur",_cea0));
};
dsf_EventDispatcher.prototype.onfocus=function(src,_cea2){
return this.process(this.getId(src),new dsf_Event(src,"onfocus",_cea2));
};
dsf_EventDispatcher.prototype.onkeydown=function(src,_cea4){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeydown",_cea4));
};
dsf_EventDispatcher.prototype.onkeypress=function(src,_cea6){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeypress",_cea6));
};
dsf_EventDispatcher.prototype.onkeyup=function(src,_cea8){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeyup",_cea8));
};
dsf_EventDispatcher.prototype.onclick=function(src,_ceaa){
return this.process(this.getBodyId(src),new dsf_Event(src,"onclick",_ceaa));
};
dsf_EventDispatcher.prototype.ondblclick=function(src,_ceac){
return this.process(this.getBodyId(src),new dsf_Event(src,"ondblclick",_ceac));
};
dsf_EventDispatcher.prototype.onmousedown=function(src,_ceae){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmousedown",_ceae));
};
dsf_EventDispatcher.prototype.onmousemove=function(src,_ceb0){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmousemove",_ceb0));
};
dsf_EventDispatcher.prototype.onmouseout=function(src,_ceb2){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseout",_ceb2));
};
dsf_EventDispatcher.prototype.onmouseover=function(src,_ceb4){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseover",_ceb4));
};
dsf_EventDispatcher.prototype.onmouseup=function(src,_ceb6){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseup",_ceb6));
};
function dsf_EventHandler(_ceb7){
this.eventTypes=_ceb7;
this.srcId="";
}
dsf_EventHandler.prototype.handle=function(event){
if(this.handleEvent===null){
alert("all derived event handlers need to have a handleEvent method");
}
var _ceb9=this.handleEvent(event);
if(_ceb9===null){
return true;
}
};
dsf_EventHandler.prototype.attachTo=function(id){
eventDispatcher.register(this,id);
var _cebb=this.eventTypes;
var _cebc=document.getElementById(id);
for(var i=0;i<_cebb.length;i++){
var _cebe=_cebb[i];
if(_cebc[_cebe]!==null){
continue;
}
_cebc[_cebe]=function(){
return eventDispatcher[_cebe](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,_cec1){
this.controls[psKey]=_cec1;
};
VjComponentRegistry.prototype.get=function(psKey){
return this.controls[psKey];
};
VjComponentRegistry.prototype.dump=function(){
var _cec3=this.controls;
var _cec4="controls on page:\n";
for(var i in _cec3){
_cec4+="key = "+i;
_cec4+="controlName = "+_cec3[i].objtype;
_cec4+="\n";
}
return _cec4;
};
var oRegistry;
if(typeof (oRegistry)=="undefined"){
oRegistry=new VjComponentRegistry();
}
function get_Buy_menu(){
return {"items":[{"value":"<a href=\"http://pages.ebay.com.au/education/learn-to-buy.html\">How to Buy</a>"},{"value":"<a href=\"http://reviews.ebay.com.au/\">Guides</a>"},{"value":"<a href=\"http://pulse.ebay.com.au/\">eBay Pulse</a>"},{"value":"<a href=\"http://stores.ebay.com.au/\">eBay Stores</a>"},{"value":"<a href=\"http://pages.ebay.com.au/wantitnow/about.html\">Want It Now</a>"}]};
}
function get_Sell_menu(){
return {"items":[{"value":"<a href=\"http://pages.ebay.com.au/education/learn-to-sell-basics-selling-guide.html\">How to Sell</a>"},{"value":"<a href=\"http://pages.ebay.com.au/education/learn-to-sell-tools-comparison.html\">Seller Tools</a>"},{"value":"<a href=\"http://pages.ebay.com.au/education/learn-to-sell-stores-overview.html\">Open an eBay Store</a>"},{"value":"<a href=\"http://pages.ebay.com.au/education/learn-to-sell-overview.html\">Advanced Seller Education</a>"},{"value":"<a href=\"http://cgi6.ebay.com.au/ws/eBayISAPI.dll?SolutionsDirectory\">Solutions Directory</a>"}]};
}
function get_MyEbay_menu(){
return {"items":[{"value":"<a href=\"http://pages.ebay.com.au/buyandsell/myebay/index.html\">All About My eBay</a>"},{"value":"<a href=\"http://my.ebay.com.au/ws/eBayISAPI.dll?MyEbay&amp;CurrentPage=MyeBayMyAccounts\">My Account</a>"},{"value":"<a href=\"http://my.ebay.com.au/ws/eBayISAPI.dll?MyEbay&amp;CurrentPage=MyeBayMyMessages\">My Messages</a>"},{"value":"<a href=\"http://my.ebay.com.au/ws/eBayISAPI.dll?MyEbay&amp;CurrentPage=MyeBayAllFavorites\">Favourites</a>"},{"value":"<a href=\"http://my.ebay.com.au/ws/eBayISAPI.dll?MarketingToolsSummary\">Marketing Tools</a>"}]};
}
function get_Community_menu(){
return {"items":[{"value":"<a href=\"http://www2.ebay.com/aw/marketing-au.shtml\">Announcement Board</a>"},{"value":"<a href=\"http://pages.ebay.com.au/services/forum/feedback.html\">Feedback Forum</a>"},{"value":"<a href=\"http://pages.ebay.com.au/community/chat/index.html\">Discussion Boards</a>"},{"value":"<a href=\"http://cgi3.ebay.com.au/ws/eBayISAPI.dll?AboutMeLogin\">About Me</a>"},{"value":"<a href=\"http://blogs.ebay.com.au/\">eBay Blogs</a>"}]};
}
function get_Help_menu(){
return {"items":[{"value":"<a href=\"http://pages.ebay.com.au/help/index.html\">Help Topics</a>"},{"value":"<a href=\"http://pages.ebay.com.au/community/answercenter/index.html\">Answer Centre</a>"},{"value":"<a href=\"http://pages.ebay.com.au/education/index.html\">Education Centre</a>"},{"value":"<a href=\"http://pages.ebay.com.au/securitycenter/index.html\">Security Centre</a>"},{"value":"<a href=\"http://pages.ebay.com.au/contact_ebay.html\">Contact Us</a>"}]};
}
function NavMenuBind(){
}
NavMenuBind.prototype.handle=function(event){
eventDispatcher.attachHandlerToElement("Buy-menu","onmouseout",new DynamicMenuMouseOutHandler("BuyMenu"));
eventDispatcher.attachHandlerToElement("Buy-menu","onmouseover",new DynamicMenuClearMouseOutHandler("BuyMenu"));
eventDispatcher.attachHandlerToElement("Buy","onmouseover",new DynamicShowMenuHandler("BuyMenu"));
eventDispatcher.attachHandlerToElement("Buy","onmouseout",new DynamicMenuMouseOutHandler("BuyMenu"));
eventDispatcher.attachHandlerToElement("Sell-menu","onmouseout",new DynamicMenuMouseOutHandler("SellMenu"));
eventDispatcher.attachHandlerToElement("Sell-menu","onmouseover",new DynamicMenuClearMouseOutHandler("SellMenu"));
eventDispatcher.attachHandlerToElement("Sell","onmouseover",new DynamicShowMenuHandler("SellMenu"));
eventDispatcher.attachHandlerToElement("Sell","onmouseout",new DynamicMenuMouseOutHandler("SellMenu"));
eventDispatcher.attachHandlerToElement("MyEbay-menu","onmouseout",new DynamicMenuMouseOutHandler("MyEbayMenu"));
eventDispatcher.attachHandlerToElement("MyEbay-menu","onmouseover",new DynamicMenuClearMouseOutHandler("MyEbayMenu"));
eventDispatcher.attachHandlerToElement("MyEbay","onmouseover",new DynamicShowMenuHandler("MyEbayMenu"));
eventDispatcher.attachHandlerToElement("MyEbay","onmouseout",new DynamicMenuMouseOutHandler("MyEbayMenu"));
eventDispatcher.attachHandlerToElement("Community-menu","onmouseout",new DynamicMenuMouseOutHandler("CommunityMenu"));
eventDispatcher.attachHandlerToElement("Community-menu","onmouseover",new DynamicMenuClearMouseOutHandler("CommunityMenu"));
eventDispatcher.attachHandlerToElement("Community","onmouseover",new DynamicShowMenuHandler("CommunityMenu"));
eventDispatcher.attachHandlerToElement("Community","onmouseout",new DynamicMenuMouseOutHandler("CommunityMenu"));
eventDispatcher.attachHandlerToElement("Help-menu","onmouseout",new DynamicMenuMouseOutHandler("HelpMenu"));
eventDispatcher.attachHandlerToElement("Help-menu","onmouseover",new DynamicMenuClearMouseOutHandler("HelpMenu"));
eventDispatcher.attachHandlerToElement("Help","onmouseover",new DynamicShowMenuHandler("HelpMenu"));
eventDispatcher.attachHandlerToElement("Help","onmouseout",new DynamicMenuMouseOutHandler("HelpMenu"));
};
function SecNavMenuBind(){
}
SecNavMenuBind.prototype.handle=function(event){
eventDispatcher.attachHandlerToElement("BrowseCategories-menu","onmouseout",new DynamicMenuMouseOutHandler("BrowseCategoriesMenu"));
eventDispatcher.attachHandlerToElement("BrowseCategories-menu","onmouseover",new DynamicMenuClearMouseOutHandler("BrowseCategoriesMenu"));
eventDispatcher.attachHandlerToElement("BrowseCategories","onmouseover",new DynamicShowMenuHandler("BrowseCategoriesMenu"));
eventDispatcher.attachHandlerToElement("BrowseCategories","onmouseout",new DynamicMenuMouseOutHandler("BrowseCategoriesMenu"));
};
function DynamicDropdown(_cec8,_cec9,_ceca,_cecb){
this.sDropdownId=_cec8;
this.sHandler=_cec9;
this.sCollName=_ceca;
this.iCondNo=_cecb;
}
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(_cecd,_cece,_cecf){
var e=_cecd;
if(e){
var o=new Option(_cecf,_cece,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,_ced5){
var elem=_ced5.srcElement||_ced5.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,_cedb,pRepl){
var rv=pStr;
while(rv.has(_cedb)){
rv=rv.replace(_cedb,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(_cee0){
var rv=this,re,tkn,a=arguments,l=a.length;
for(var i=1;i<l+1;i++){
rv=this.replaceToken(rv,_cee0.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(_cef0,show){
var elem=getElementById(_cef0);
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(_cef4,_cef5,_cef6,_cef7,_cef8,_cef9,_cefa){
this.sLayerId=_cef4;
this.sCloseAnchorId=_cef5;
this.sCartCountText=_cef6;
this.aHostCoutryId=_cef7;
this.aHostCountryDomain=_cef8;
this.aHideOnParams=_cef9;
this.sHtmlProvider=_cefa;
}
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 _cf00=this.aHideOnParams;
var iLen=_cf00.length;
for(var i=0;i<iLen;i++){
if(document.location.href.has(_cf00[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 _cf05=window[this.sHtmlProvider];
if(!_cf05){
return;
}
oL.innerHTML=_cf05().replaceTokensEx("##n##",sh,sc);
toggleHideShow(l,true);
var oCL=getElementById(this.sCloseAnchorId);
if(oCL){
oCL.onclick=VjUtils.hitch(this,"close");
}
}
}
};
ExpressCrossLinking.prototype.getHostById=function(psId){
var ids=this.aHostCoutryId,i,ind=-1,o="";
for(i=0;i<ids.length;i++){
if(psId==ids[i]){
ind=i;
break;
}
}
if(ind!=-1){
o=this.aHostCountryDomain[ind];
}
return o;
};
ExpressCrossLinking.prototype.close=function(){
toggleHideShow(this.sLayerId,false);
VjCookieJar.writeCookielet("ebay","ecs","-1");
return false;
};
oRegistry.put("expressCompId",new ExpressCrossLinking("divCrossLink","b_close","(##1##)",new Array("0","1","77","3"),new Array("ebay.com","ebay.com","ebay.de","ebay.co.uk"),new Array("from=R44","fromZR44"),"get_expCrossLink_data"));
eventDispatcher.attachHandlerToElement("body","onload",new ExpressHandler());
function get_expCrossLink_data(){
return "<table class=\"clTable\" align=\"center\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#EDF9FF\"><tr valign=\"middle\"><td width=\"36\" class=\"clCell\"><img src=\"http://pics.ebaystatic.com/aw/pics/icon/iconInfo_16x16.gif\" height=\"16\" width=\"16\" align=\"middle\"></td><td width=\"80%\" nowrap=\"nowrap\" class=\"clMsg\">You've left eBay Express.</td><td align=\"left\" nowrap=\"nowrap\"><a href=\"http://www.express.##1##/\">Shop again on eBay Express</a><span class=\"clSep\">|</span><img src=\"http://pics.ebaystatic.com/aw/pics/express/icons/iconCart_15x10.gif\" height=\"10\" width=\"15\" align=\"bottom\" alt=\"\"><a href=\"http://cart.express.##1##/ws/eBayISAPI.dll?ExpressCart&amp;action.view=&amp;from=Header\">Shopping Cart##2##</a></td><td width=\"135\" nowrap=\"nowrap\" class=\"clLogo\"><img src=\"http://pics.ebaystatic.com/aw/pics/express/logos/logoExpress_95x39.gif\" height=\"39\" width=\"95\" align=\"top\" alt=\"\"></td><td nowrap=\"nowrap\" width=\"26\" align=\"left\"><a href=\"#1\" id=\"b_close\"><img src=\"http://pics.ebaystatic.com/aw/pics/buttons/btnExpressClose.gif\" height=\"16\" width=\"16\" align=\"middle\" border=\"0\" alt=\"\"></a></td></tr></table>";
}
var VjActiveX={};
VjActiveX.init=function(){
var oC=VjClient.getBrowserObj();
if(oC.bIE){
var d=document;
dw=function(s){
d.writeln(s);
};
dw("<scr"+"ipt language=\"vbscript\" type=\"text/vbscript\">");
dw("\tFunction vbCheckActiveXControl (pActXName)");
dw("\t\taX = false");
dw("\t\ton error resume next");
dw("\t\taX = IsObject(CreateObject(pActXName))");
dw("\t\tvbCheckActiveXControl = aX");
dw("End Function");
dw("</scr"+"ipt>");
}
};
VjActiveX.isLibLoaded=function(pName){
var oC=VjClient.getBrowserObj();
return oC.bIE&&!oC.bMac&&vbCheckActiveXControl(pName);
};
VjActiveX.init();
var VjEbayToolbarDetect={};
VjEbayToolbarDetect.isEnabled=function(){
var V1="eBayToolbar.Helper",V2="eBayToolbarCommLib.IWebEvent.1";
with(this){
var oC=VjClient.getBrowserObj(),oAx=VjActiveX;
return (!(oC.bMac||oC.bMacppc)||!oC.bIE)&&(oAx.isLibLoaded(V1)||oAx.isLibLoaded(V2));
}
};
VjUtils={};
VjUtils.isString=function(wh){
return (typeof wh=="string");
};
VjUtils.hitch=function(_cf11,_cf12){
var fcn;
if(VjUtils.isString(_cf12)){
fcn=_cf11[_cf12];
}else{
fcn=_cf12;
}
return function(){
return fcn.apply(_cf11,arguments);
};
};
VjUtils.extend=function(_cf14,_cf15){
function inheritance(){
}
inheritance.prototype=_cf15.prototype;
_cf14.prototype=new inheritance();
_cf14.prototype.constructor=_cf14;
_cf14.baseConstructor=_cf15;
_cf14.superClass=_cf15.prototype;
};
function BuyerTransactionAlert(pId,_cf17,_cf18,_cf19,_cf1a,_cf1b,_cf1c,_cf1d,_cf1e,_cf1f,_cf20){
this.sId=pId;
this.iPollingInterval=_cf17;
this.iMaxHits=_cf18;
this.iHitTimeout=_cf19;
this.iServerHits=0;
this.sLastCookieletValue="";
this.sServerUrl=_cf1a;
if(document.location.protocol.has("https")){
_cf1b=_cf1b.replace("http://pics.","https://securepics.");
}
this.sImgServer=_cf1b+"/";
this.sViewItemUrl=_cf1c;
this.aAlertInfo=[["h:h:alt:2",_cf1e,"icon/iconOutbid_16x16.gif"],["h:h:alt:3",_cf1d,"icon/iconWatchB_16x16.gif"],["h:h:alt:4",_cf1e,"icon/iconOutbid_16x16.gif"],["h:h:alt:5",_cf1f,"icon/iconchanceBlu_16x16.gif"],["h:h:alt:tcr",_cf20,"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,_cf23){
var oL=this.oL;
if(oL){
if(pVal.is("")&&!oL.ctrld){
return;
}
if(_cf23){
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 _cf2c=cfg[at-1],imgSrv=this.sImgServer;
var _cf2d=imgSrv+"s.gif";
var sHTML="<img src=\""+_cf2d+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">|<img src=\""+_cf2d+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">";
sHTML+="<img src=\""+imgSrv+_cf2c[2]+"?t\" style=\"vertical-align:middle\"><img src=\""+_cf2d+"\" width=\"5\" height=\"16\" style=\"vertical-align:middle\">";
var url=this.sViewItemUrl+"&item="+ii;
sHTML+="<a href=\""+url+"&ssPageName="+_cf2c[0]+"\">"+_cf2c[1]+"</a>";
this.setValue(sHTML);
this.sLastCookieletValue=c;
}
this.fireRefreshEvent();
};
BuyerTransactionAlert.prototype.fireRefreshEvent=function(_cf30){
if(!_cf30){
_cf30=this.iPollingInterval;
}
window.setTimeout(VjUtils.hitch(this,this.onRefresh),_cf30*1000);
};
BuyerTransactionAlert.prototype.onCookieExpire=function(){
var _cf31=VjCookieJar.readCookie("ebaysignin");
if(!_cf31.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(_cf33,show){
var elem=getElementById(_cf33);
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_AU/e521i/GlobalNav_Ebay_e521i5000484_1_en_AU
// b=5000484