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(_193,date){
_193=_193?_193:0;
d=date?date:new Date();
var _195=d.getTime();
var _196=d.getTimezoneOffset()*60000;
var utc=_195+_196;
return new Date(utc+(3600000*_193));
};
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(_198,_199){
var rv=this.readCookieObj(_198,_199).value;
return (rv)?unescape(rv):"";
};
VjCookieJar.createDefaultCookieBean=function(_19b,_19c){
var _19d={};
_19d.name=_19b;
_19d.cookieletname=_19c;
_19d.value="";
_19d.maxage=0;
_19d.rawcookievalue="";
_19d.mode="";
return _19d;
};
VjCookieJar.readCookieObj=function(_19e,_19f){
var _1a0=this.createDefaultCookieBean(_19e,_19f);
this.update();
this.checkConversionMap(_1a0);
_1a0.rawcookievalue=this.aCookies[_1a0.name];
if(!_1a0.name||!_1a0.rawcookievalue){
_1a0.value="";
}else{
if(!_1a0.cookieletname){
this.readCookieInternal(_1a0);
}else{
this.readCookieletInternal(_1a0);
}
}
return (typeof (_1a0)!="undefined")?_1a0:"";
};
VjCookieJar.checkConversionMap=function(_1a1){
var cmap=this.aConversionMap[_1a1.name];
if(cmap){
_1a1.mode=this.getMode(_1a1.name);
_1a1.name=cmap[0];
_1a1.cookieletname=cmap[1];
}
};
VjCookieJar.readCookieInternal=function(_1a3){
_1a3.value=_1a3.rawcookievalue;
return _1a3;
};
VjCookieJar.readCookieletInternal=function(_1a4){
var clet=this.getCookielet(_1a4.name,_1a4.cookieletname,_1a4.rawcookievalue);
var _1a6=this.getFormat(_1a4.name);
if(clet&&_1a6.bUseExp){
clet=clet.substring(0,clet.length-8);
}
_1a4.value=clet;
if(_1a4.mode==this.sCOMPAT){
_1a4.value=_1a4.rawcookievalue;
}
return _1a4;
};
VjCookieJar.readMultiLineCookie=function(_1a7,_1a8){
if(!_1a7||!_1a8){
return "";
}
var val,r="";
var cmap=this.aConversionMap[_1a7];
if(cmap){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}
if(val){
r=this.getCookielet(_1a7,_1a8,val)||"";
}
return (typeof (r)!="undefined")?r:"";
};
VjCookieJar.writeCookie=function(_1ab,_1ac,_1ad){
var cmap=this.aConversionMap[_1ab];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],_1ac,_1ad);
return;
}
var _1af=this.getFormat(_1ab);
if(_1ac&&_1af.escapedValue){
_1ac=escape(_1ac);
}
this.writeRawCookie(_1ab,_1ac,_1ad);
};
VjCookieJar.writeRawCookie=function(_1b0,_1b1,_1b2){
if(_1b0&&(_1b1!==undefined)){
if((isNaN(_1b1)&&_1b1.length<4000)||(_1b1+"").length<4000){
if(typeof _1b2=="number"){
_1b2=this.getExpDate(_1b2);
}
var _1b3=_1b2?new Date(_1b2):new Date(this.getExpDate(730));
var _1b4=this.getFormat(_1b0);
var _1b5=this.sCookieDomain;
var dd=document.domain;
if(!dd.has(_1b5)){
var _1b7=dd.indexOf(".ebay.");
if(_1b7>0){
this.sCookieDomain=dd.substring(_1b7);
}
}
if(document.cookie){
document.cookie=_1b0+"="+(_1b1||"")+((_1b2||_1b4.bUseExp)?"; expires="+_1b3.toGMTString():"")+"; domain="+this.sCookieDomain+"; path="+this.sPath;
}
}
}
};
VjCookieJar.writeCookieEx=function(_1b8,_1b9,_1ba){
this.writeCookie(_1b8,_1b9,this.getExpDate(_1ba));
};
VjCookieJar.writeCookielet=function(_1bb,_1bc,_1bd,_1be,_1bf){
if(_1bb&&_1bc){
this.update();
var _1c0=this.getFormat(_1bb);
if(_1c0.bUseExp&&_1bd){
if(typeof _1be=="number"){
_1be=this.getExpDate(_1be);
}
var _1c1=_1be?new Date(_1be):new Date(this.getExpDate(730));
var _1c2=Date.UTC(_1c1.getUTCFullYear(),_1c1.getUTCMonth(),_1c1.getUTCDate());
_1c2=Math.floor(_1c2/1000);
_1bd+=_1c2.dec2Hex();
}
var val=this.createCookieValue(_1bb,_1bc,_1bd);
this.writeRawCookie(_1bb,val,_1bf);
}
};
VjCookieJar.writeMultiLineCookie=function(_1c4,_1c5,_1c6,_1c7,_1c8){
this.update();
var val=this.createCookieValue(_1c4,_1c5,_1c6);
if(val){
var cmap=this.aConversionMap[_1c4];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],val,_1c7,_1c8);
}
}
};
VjCookieJar.getBitFlag=function(_1cb,_1cc){
_1cb=parseInt(_1cb,10);
var b=_1cb.toString(2),r=_1cb?b.charAt(b.length-_1cc-1):"";
return (r=="1")?1:0;
};
VjCookieJar.setBitFlag=function(_1ce,_1cf,_1d0){
var b="",p,i,e,l;
_1ce=parseInt(_1ce,10);
if(_1ce){
b=_1ce.toString(2);
}
l=b.length;
if(l<_1cf){
e=_1cf-l;
for(i=0;i<=e;i++){
b="0"+b;
}
}
p=b.length-_1cf-1;
return parseInt(b.substring(0,p)+_1d0+b.substring(p+1),2);
};
VjCookieJar.createCookieValue=function(_1d2,_1d3,_1d4){
var cmap=this.aConversionMap[_1d2],format=this.getFormat(_1d2),mode=this.getMode(_1d2),val;
if(cmap&&(mode==this.sSTRICT||mode==this.sCONVER)){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}else{
val=this.aCookies[_1d2]||"";
}
if(format){
var clts=this.getCookieletArray(val,format);
clts[_1d3]=_1d4;
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 _1dc=this.getFormat(sC[0]),cv=sC[1],sd=_1dc.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(_1dd,_1de,_1df){
var _1e0=this.getFormat(_1dd);
var clts=this.getCookieletArray(_1df,_1e0);
return clts[_1de]||"";
};
VjCookieJar.getFormat=function(_1e2){
return this.aFormatMap[_1e2]||VjCookieJar.Default_Cookie_Format;
};
VjCookieJar.getCookieletArray=function(_1e3,_1e4){
var rv=[],val=_1e3||"";
if(_1e4.escapedValue){
val=unescape(val);
}
var a=val.split(_1e4.COOKIELET_DELIMITER);
for(var i=0;i<a.length;i++){
var idx=a[i].indexOf(_1e4.NAME_VALUE_DELIMITER);
if(idx>0){
rv[a[i].substring(0,idx)]=a[i].substring(idx+1);
}
}
return rv;
};
VjCookieJar.getExpDate=function(_1e9){
var _1ea;
if(typeof _1e9=="number"&&_1e9>=0){
var d=new Date();
d.setTime(d.getTime()+(_1e9*24*60*60*1000));
_1ea=d.toGMTString();
}
return _1ea;
};
VjCookieJar.getMode=function(_1ec){
var h=this.readCookieObj(this.sModesCookie,this.sModesCookielet).value,b;
if(!(_1ec 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(_1ec==o){
return (f.length==1)?"0"+f:f;
}
i++;
}
return null;
}
};
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,_1f4,_1f5){
var rv=pStr;
while(rv.has(_1f4)){
rv=rv.replace(_1f4,_1f5);
}
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(_1f9){
var rv=this,re,tkn,a=arguments,l=a.length;
for(var i=1;i<l+1;i++){
rv=this.replaceToken(rv,_1f9.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(_209,show){
var elem=getElementById(_209);
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";
}
}
VjUtils={};
VjUtils.isString=function(wh){
return (typeof wh=="string");
};
VjUtils.hitch=function(_20e,_20f){
var fcn;
if(VjUtils.isString(_20f)){
fcn=_20e[_20f];
}else{
fcn=_20f;
}
return function(){
return fcn.apply(_20e,arguments);
};
};
VjUtils.extend=function(_211,_212){
function inheritance(){
}
inheritance.prototype=_212.prototype;
_211.prototype=new inheritance();
_211.prototype.constructor=_211;
_211.baseConstructor=_212;
_211.superClass=_212.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 _219=0,scrOfY=0;
if(typeof (window.pageYOffset)=="number"){
scrOfY=window.pageYOffset;
_219=window.pageXOffset;
}else{
if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){
scrOfY=document.body.scrollTop;
_219=document.body.scrollLeft;
}else{
if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){
scrOfY=document.documentElement.scrollTop;
_219=document.documentElement.scrollLeft;
}
}
}
return [_219,scrOfY];
};
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=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;
};
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(_21e){
var oC=VjClient.getBrowserObj();
return oC.bIE&&!oC.bMac&&vbCheckActiveXControl(_21e);
};
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));
}
};
function DynamicDropdown(_222,_223,_224,_225){
this.sDropdownId=_222;
this.sHandler=_223;
this.sCollName=_224;
this.iCondNo=_225;
}
DynamicDropdown.prototype.fill=function(){
var e,h,d,col,i,l,c,b=false;
with(this){
e=getElementById(sDropdownId);
if(iCondNo==-1){
b=true;
}else{
if(e.options.length<=iCondNo){
b=true;
}
}
if(e&&b){
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(_227,_228,_229){
var e=_227;
if(e){
var o=new Option(_229,_228,false,false),os;
os=e.options;
os[os.length]=o;
}
};
function DynamicMenu(_22c,_22d,_22e,_22f,_230,_231,_232,_233,_234,_235,_236,_237,_238,_239,_23a,_23b,_23c,_23d,_23e,_23f){
this.iMouseOutTimer=null;
this.iMouseOverTimer=null;
this.iLeftPadding=_236;
this.iTopPadding=_237;
this.iRightPadding=_238;
this.sAnchorId=_22c;
this.sContainerLayerId=_22d;
this.sContentLayerId=_22e;
this.iMouseOutDelay=_22f;
this.iMouseOverDelay=_230;
this.iHighResDocWidth=_231;
this.iLowResDocWidth=_232;
this.iHighResColumns=_233;
this.iMediumResColumns=_234;
this.iLowResColumns=_235;
this.sHandler=_239;
this.sCollName=_23a;
this.sWidth=_23b;
this.sAnchorMouseOverClass=_23c;
this.sAnchorMouseOutClass=_23d;
this.iframeShim=null;
this.sHTML=null;
this.oAnchor=null;
this.sTemplate=null;
this.sAnchorText=_23e;
this.sDomain=_23f;
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);
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.has("wantitnow")&&lh.has(".in")&&document.all){
iAL=getOffsetLeft(oA);
}
}
var _243=getElementById("2tabPopularProducts");
if(_243&&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;
}
iL+=iLeftPadding;
if(lh.has("securitycentre")&&lh.has(".sg")&&document.all){
iL+=10;
}else{
if(lh.has("my.")&&agt.has("firefox")){
iL-=7;
}
}
if(iL>=0){
oL.style.left=(iL-1)+"px";
}
oL.style.top=(iT)+"px";
oL.style.zIndex="1000";
if(bF){
iframeShim=addLayerShim(oL);
}else{
if(agt.hasAny("msie","firefox")){
oL.appendChild(iframeShim);
}
}
oSI=getElementById(sContainerLayerId+"-spacer");
if(oSI&&bF){
oSI.width=iLW;
}
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(_246){
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='150'  border='0' ";
var _248=window[sHandler];
if(!_248){
return;
}
var data=_248(),items=data[sCollName],l=items.length;
ipc=Math.ceil(l/_246);
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<_246;j++){
h+="<td nowrap>";
if(i==0&&window.location.href.has("motors")&&!getElementById("BrowseCategories-menu")){
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(_24b){
oRegistry.get(this.id).startMouseOutTimer();
};
function DynamicMenuClearMouseOutHandler(psId){
this.id=psId;
}
DynamicMenuClearMouseOutHandler.prototype.handle=function(_24d){
oRegistry.get(this.id).clearMouseOutTimer();
};
function DynamicShowMenuHandler(psId){
this.id=psId;
}
DynamicShowMenuHandler.prototype.handle=function(_24f){
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/"))){
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){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
var _256=document.createElement("IFRAME");
_256.style.width=node.offsetWidth+"px";
_256.style.height=node.offsetHeight+"px";
_256.style.filter="chroma(color='white')";
_256.frameBorder=0;
_256.style.position="absolute";
_256.style.left="0px";
_256.style.top="0px";
_256.style.zIndex="-1";
_256.style.filter="Alpha(Opacity=\"0\")";
node.appendChild(_256);
return _256;
};
DynamicMenu.prototype.removeLayerShim=function(_257,_258){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
if(_258&&_258.parentElement){
_257.removeChild(_258);
}
};
function getOffsetTop(elm){
var _25b=elm.offsetTop;
var _25c=elm.offsetParent;
while(_25c!==null){
_25b+=_25c.offsetTop;
_25c=_25c.offsetParent;
}
return _25b;
}
function getOffsetLeft(elm){
var _25e=elm.offsetLeft;
var _25f=elm.offsetParent;
while(_25f!==null){
_25e+=_25f.offsetLeft;
_25f=_25f.offsetParent;
}
return _25e;
}
var VjLayerUtils={};
VjLayerUtils.matchColumnHeight=function(_260,_261,_262){
var px="px";
var _264=document.getElementById(_260);
var _265=_264.offsetHeight;
var _266=Math.max(_265,_261);
for(var i=0;i<_262.length;i++){
document.getElementById(_262[i]).style.height=_266+px;
}
};
VjLayerUtils.addLayerShim=function(node){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
var _26a=document.createElement("IFRAME");
_26a.style.width=node.offsetWidth+"px";
_26a.style.height=node.offsetHeight+"px";
_26a.style.filter="chroma(color='white')";
_26a.frameBorder=0;
_26a.style.position="absolute";
_26a.style.left="0px";
_26a.style.top="0px";
_26a.style.zIndex="-1";
_26a.style.filter="Alpha(Opacity=\"0\")";
node.appendChild(_26a);
return _26a;
};
VjLayerUtils.removeLayerShim=function(_26b,_26c){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
if(_26c&&_26c.parentElement){
_26b.removeChild(_26c);
}
};
function hookEventDispatcherTrigger(_26e){
if(window.onload&&_26e){
return;
}
window.onload=function(){
return eventDispatcher.onload("body");
};
}
var dsf_debug=true;
function dsf_EventDispatcher(){
this.eventHandlers=Object();
}
dsf_EventDispatcher.prototype.process=function(_26f,_270){
var _271=this.eventHandlers[_26f];
if(!_271){
return true;
}
var _272=_271[_270.eventType];
if(!_272){
return true;
}
var _273=true;
for(var i=0;i<_272.length;i++){
var _275=_272[i].handle(_270);
if(_275&&_275.objType=="dsf_Message"){
if(typeof (svcEngine)!="undefined"&&svcEngine.handleRequest(_275)===false){
_273=false;
}
}else{
if(_275===false){
_273=false;
}
}
}
return _273;
};
dsf_EventDispatcher.prototype.register=function(id,_277,_278){
var _279=id;
if(!this.eventHandlers[_279]){
this.eventHandlers[_279]=[];
}
var _27a=this.eventHandlers[_279];
if(!_27a[_277]){
_27a[_277]=[];
}
var _27b=_27a[_277];
_27b[_27b.length]=_278;
};
dsf_EventDispatcher.prototype.attachHandlerToElement=function(id,_27d,_27e){
eventDispatcher.register(id,_27d,_27e);
var _27f=document.getElementById(id);
if(id=="body"){
_27f=document.body;
if(_27d=="onload"||_27d=="onunload"){
window[_27d]=function(){
eventDispatcher[_27d](_27f);
};
return this;
}
}
if(_27f){
_27f[_27d]=function(_280){
return eventDispatcher[_27d](this,_280||window.event);
};
}
return this;
};
dsf_EventDispatcher.prototype.detachHandlers=function(id,_282){
var _283=id;
if(!this.eventHandlers[_283]){
return;
}
var _284=this.eventHandlers[_283];
if(_284[_282]){
_284[_282]=[];
}
var _285=document.getElementById(id);
if(id=="body"){
_285=document.body;
if(_282=="onload"||_282=="onunload"||_282=="onclick"){
window[_282]=null;
}
}
if(_285){
_285[_282]=null;
}
};
function dsf_Event(src,_287,_288){
this.src=src;
this.eventType=_287;
this.nativeEvent=_288;
}
function dsf_SvcConfig(_289,url){
this.url=url;
this.method=_289;
this.reqtMarshalling="raw";
this.respMarshalling="raw";
}
function dsf_Message(_28b){
this.objType="dsf_Message";
this.svcId=_28b;
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 _28e=id;
if(_28e===null||!_28e){
_28e=src.id;
}
return _28e;
};
dsf_EventDispatcher.prototype.getBodyId=function(src,id){
var _291=this.getId(src,id);
if(!_291){
_291="body";
}
return _291;
};
dsf_EventDispatcher.prototype.onload=function(src,_293){
return this.process(this.getBodyId(src),new dsf_Event(src,"onload",_293));
};
dsf_EventDispatcher.prototype.onunload=function(src,_295){
return this.process(this.getBodyId(src),new dsf_Event(src,"onunload",_295));
};
dsf_EventDispatcher.prototype.onchange=function(src,_297){
return this.process(this.getId(src),new dsf_Event(src,"onchange",_297));
};
dsf_EventDispatcher.prototype.onsubmit=function(src,_299){
return this.process(this.getId(src),new dsf_Event(src,"onsubmit",_299));
};
dsf_EventDispatcher.prototype.onreset=function(src,_29b){
return this.process(this.getId(src),new dsf_Event(src,"onreset",_29b));
};
dsf_EventDispatcher.prototype.onselect=function(src,_29d){
return this.process(this.getId(src),new dsf_Event(src,"onselect",_29d));
};
dsf_EventDispatcher.prototype.onblur=function(src,_29f){
return this.process(this.getId(src),new dsf_Event(src,"onblur",_29f));
};
dsf_EventDispatcher.prototype.onfocus=function(src,_2a1){
return this.process(this.getId(src),new dsf_Event(src,"onfocus",_2a1));
};
dsf_EventDispatcher.prototype.onkeydown=function(src,_2a3){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeydown",_2a3));
};
dsf_EventDispatcher.prototype.onkeypress=function(src,_2a5){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeypress",_2a5));
};
dsf_EventDispatcher.prototype.onkeyup=function(src,_2a7){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeyup",_2a7));
};
dsf_EventDispatcher.prototype.onclick=function(src,_2a9){
return this.process(this.getBodyId(src),new dsf_Event(src,"onclick",_2a9));
};
dsf_EventDispatcher.prototype.ondblclick=function(src,_2ab){
return this.process(this.getBodyId(src),new dsf_Event(src,"ondblclick",_2ab));
};
dsf_EventDispatcher.prototype.onmousedown=function(src,_2ad){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmousedown",_2ad));
};
dsf_EventDispatcher.prototype.onmousemove=function(src,_2af){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmousemove",_2af));
};
dsf_EventDispatcher.prototype.onmouseout=function(src,_2b1){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseout",_2b1));
};
dsf_EventDispatcher.prototype.onmouseover=function(src,_2b3){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseover",_2b3));
};
dsf_EventDispatcher.prototype.onmouseup=function(src,_2b5){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseup",_2b5));
};
function dsf_EventHandler(_2b6){
this.eventTypes=_2b6;
this.srcId="";
}
dsf_EventHandler.prototype.handle=function(_2b7){
if(this.handleEvent===null){
alert("all derived event handlers need to have a handleEvent method");
}
var _2b8=this.handleEvent(_2b7);
if(_2b8===null){
return true;
}
};
dsf_EventHandler.prototype.attachTo=function(id){
eventDispatcher.register(this,id);
var _2ba=this.eventTypes;
var _2bb=document.getElementById(id);
for(var i=0;i<_2ba.length;i++){
var _2bd=_2ba[i];
if(_2bb[_2bd]!==null){
continue;
}
_2bb[_2bd]=function(){
return eventDispatcher[_2bd](this);
};
}
return this;
};
var eventDispatcher=new dsf_EventDispatcher();
function VjComponentRegistry(){
this.controls=[];
}
VjComponentRegistry.prototype.put=function(_2be,_2bf){
this.controls[_2be]=_2bf;
};
VjComponentRegistry.prototype.get=function(_2c0){
return this.controls[_2c0];
};
VjComponentRegistry.prototype.dump=function(){
var _2c1=this.controls;
var _2c2="controls on page:\n";
for(var i in _2c1){
_2c2+="key = "+i;
_2c2+="controlName = "+_2c1[i].objtype;
_2c2+="\n";
}
return _2c2;
};
var oRegistry=new VjComponentRegistry();
function get_Buy_menu(){
return {"items":[{"value":"<a href=\"http://hub.ebay.com/buy\">Browse Categories</a>"},{"value":"<a href=\"http://www.ebayuniversity.com/gotraining/First_Time_Bidding_And_Buying\">Help with bidding &amp; buying</a>"},{"value":"<a href=\"http://pages.ebay.com/buy/tools.html\">Buyer Tools</a>"},{"value":"<a href=\"http://reviews.ebay.com/\">Reviews &amp; Guides</a>"}]};
}
function get_Sell_menu(){
return {"items":[{"value":"<a href=\"http://sell.ebay.com/sell\">Sell an item</a>"},{"value":"<a href=\"http://pages.ebay.com/sellercentral/newsellers.html\">Getting started</a>"},{"value":"<a href=\"http://pages.ebay.com/sellercentral/whatwouldyousell/what_to_sell_house.html\">What to sell</a>"},{"value":"<a href=\"http://pages.ebay.com/sell/tools.html\">Seller tools &amp; eBay Stores</a>"},{"value":"<a href=\"http://pages.ebay.com/services/buyandsell/shipping.html\">Shipping center</a>"}]};
}
function get_MyEbay_menu(){
return {"items":[{"value":"<a href=\"http://my.ebay.com/ws/eBayISAPI.dll?MyEbay&amp;smGHR=true\">Summary</a>"},{"value":"<a href=\"http://my.ebay.com/ws/eBayISAPI.dll?MyEbay&amp;CurrentPage=MyeBayWatching\">Watching</a>"},{"value":"<a href=\"http://my.ebay.com/ws/eBayISAPI.dll?MyEbay&amp;CurrentPage=MyeBayBidding\">Bidding</a>"},{"value":"<a href=\"http://my.ebay.com/ws/eBayISAPI.dll?MyEbay&amp;CurrentPage=MyeBaySelling&amp;smGHR=true\">Selling</a>"},{"value":"<a href=\"http://my.ebay.com/ws/eBayISAPI.dll?MyEbay&amp;CurrentPage=MyeBayAllFavorites\">Favorites</a>"}]};
}
function get_Community_menu(){
return {"items":[{"value":"<a href=\"http://www2.ebay.com/aw/marketing.shtml\">Announcements</a>"},{"value":"<a href=\"http://pages.ebay.com/community/answercenter/index.html\">Answer Center</a>"},{"value":"<a href=\"http://pages.ebay.com/community/boards/index.html\">Discussion Forums</a>"},{"value":"<a href=\"http://blogs.ebay.com/\">eBay Blogs</a>"},{"value":"<a href=\"http://groups.ebay.com/index.jspa?categoryID=1&amp;redirected=1\">Groups</a>"}]};
}
function get_Help_menu(){
return {"items":[{"value":"<a href=\"http://pages.ebay.com/help/index.html\">Help Topics</a>"},{"value":"<a href=\"http://pages.ebay.com/education/index.html\">Learning Center</a>"},{"value":"<a href=\"http://pages.ebay.com/securitycenter/index.html\">Security &amp; Resolution Center</a>"},{"value":"<a href=\"http://pages.ebay.com/university/index.html\">eBay University</a>"},{"value":"<a href=\"http://pages.ebay.com/help/contact_us/_base/index.html\">Contact US</a>"}]};
}
VjURL={};
VjURL.addArg=function(_2c4,_2c5,_2c6){
if(_2c4==null||_2c4==undefined){
return null;
}
if(_2c4.indexOf("?")<0){
_2c4+="?"+_2c5+"="+_2c6;
return _2c4;
}
var _2c7=this.getArgPairIfExists(_2c4,_2c5);
if(_2c7!==null){
_2c4.replace(_2c7,_2c5+"="+_2c6);
}else{
_2c4+="&"+_2c5+"="+_2c6;
}
return _2c4;
};
VjURL.getArg=function(_2c8,_2c9){
if(_2c8==null||_2c8==undefined){
return null;
}
if(_2c8.indexOf("?")<0){
return null;
}
var _2ca=this.getArgPairIfExists(_2c8,_2c9);
if(_2ca!==null){
return _2ca.substring(_2ca.indexOf("=")+1);
}
return null;
};
VjURL.getArgPairIfExists=function(_2cb,_2cc){
var _2cd=_2cb.indexOf("?");
if(_2cd<0){
return null;
}
var _2ce=_2cb;
var _2cf,argName;
while(_2cd>=0){
_2ce=_2ce.substring(_2cd+1);
_2cf=_2ce;
_2cd=_2ce.indexOf("&");
if(_2cd>=0){
_2cf=_2ce.substring(0,_2cd);
}
argName=_2cf.substring(0,_2cf.indexOf("="));
if(argName==_2cc){
return _2cf;
}
}
return null;
};
function VjGreetingsServerOnClick(pUrl,_2d1){
var elem=_2d1.srcElement||_2d1.target;
if(elem){
elem.href=VjURL.addArg(pUrl,"ru",escape(document.location.href));
}
}
function ExpressCrossLinking(_2d3,_2d4,_2d5,_2d6,_2d7,_2d8,_2d9){
this.sLayerId=_2d3;
this.sCloseAnchorId=_2d4;
this.sCartCountText=_2d5;
this.aHostCoutryId=_2d6;
this.aHostCountryDomain=_2d7;
this.aHideOnParams=_2d8;
this.sHtml=_2d9;
}
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(_2dc,_2dd){
var sh1=_2dc.toLowerCase(),sh2=_2dd.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 _2df=this.aHideOnParams;
var iLen=_2df.length;
for(var i=0;i<iLen;i++){
if(document.location.href.has(_2df[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){
oL.innerHTML=this.sHtml.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;
};
function BuyerTransactionAlert(pId,_2e8,_2e9,_2ea,_2eb,_2ec,_2ed,_2ee,_2ef,_2f0,_2f1){
this.sId=pId;
this.iPollingInterval=_2e8;
this.iMaxHits=_2e9;
this.iHitTimeout=_2ea;
this.iServerHits=0;
this.sLastCookieletValue="";
this.sServerUrl=_2eb;
this.sImgServer=_2ec+"/";
this.sViewItemUrl=_2ed;
this.aAlertInfo=[["h:h:alt:2",_2ef,"icon/iconOutbid_16x16.gif"],["h:h:alt:3",_2ee,"icon/iconWatchB_16x16.gif"],["h:h:alt:4",_2ef,"icon/iconOutbid_16x16.gif"],["h:h:alt:5",_2f0,"icon/iconchanceBlu_16x16.gif"],["h:h:alt:tcr",_2f1,"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,_2f4){
var oL=this.oL;
if(oL){
if(pVal.is("")&&!oL.ctrld){
return;
}
if(_2f4){
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 _2fd=cfg[at-1],imgSrv=this.sImgServer;
var _2fe=imgSrv+"s.gif";
var _2ff="<img src=\""+_2fe+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">|<img src=\""+_2fe+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">";
_2ff+="<img src=\""+imgSrv+_2fd[2]+"?t\" style=\"vertical-align:middle\"><img src=\""+_2fe+"\" width=\"5\" height=\"16\" style=\"vertical-align:middle\">";
var url=this.sViewItemUrl+"&item="+ii;
_2ff+="<a href=\""+url+"&ssPageName="+_2fd[0]+"\">"+_2fd[1]+"</a>";
this.setValue(_2ff);
this.sLastCookieletValue=c;
}
this.fireRefreshEvent();
};
BuyerTransactionAlert.prototype.fireRefreshEvent=function(_301){
if(!_301){
_301=this.iPollingInterval;
}
window.setTimeout(VjUtils.hitch(this,this.onRefresh),_301*1000);
};
BuyerTransactionAlert.prototype.onCookieExpire=function(){
var _302=VjCookieJar.readCookie("ebaysignin");
if(!_302.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 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 toggleVisibility(_307,show){
var elem=getElementById(_307);
if(elem===null){
return;
}
var vis=elem.style.visibility;
if(show===undefined){
elem.style.visibility=(vis==="")?"hidden":"";
}else{
elem.style.visibility=(show)?"":"hidden";
}
}

// en_US_MAIN/e511/GlobalNav_Ebay_e5114598188_1_en_US_MAIN
// b=4598188
