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(_42a4,date){
_42a4=_42a4?_42a4:0;
d=date?date:new Date();
var _42a6=d.getTime();
var _42a7=d.getTimezoneOffset()*60000;
var utc=_42a6+_42a7;
return new Date(utc+(3600000*_42a4));
};
VjCookieJar={aCookies:{}};
VjCookieJar.Default_Cookie_Format={"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"/"};
VjCookieJar.DP_Cookie_Format={"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"/","bUseExp":true};
VjCookieJar.Session_Cookie_Format={"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"=","escapedValue":true,"startDelim":true};
VjCookieJar.DS_Cookie_Format={"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"/"};
VjCookieJar.sCookieDomain=".ebay.com";
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(_42a9,_42aa){
var rv=this.readCookieObj(_42a9,_42aa).value;
return (rv)?unescape(rv):"";
};
VjCookieJar.createDefaultCookieBean=function(_42ac,_42ad){
var _42ae={};
_42ae.name=_42ac;
_42ae.cookieletname=_42ad;
_42ae.value="";
_42ae.maxage=0;
_42ae.rawcookievalue="";
_42ae.mode="";
return _42ae;
};
VjCookieJar.readCookieObj=function(_42af,_42b0){
var _42b1=this.createDefaultCookieBean(_42af,_42b0);
this.update();
this.checkConversionMap(_42b1);
_42b1.rawcookievalue=this.aCookies[_42b1.name];
if(!_42b1.name||!_42b1.rawcookievalue){
_42b1.value="";
}else{
if(!_42b1.cookieletname){
this.readCookieInternal(_42b1);
}else{
this.readCookieletInternal(_42b1);
}
}
return (typeof (_42b1)!="undefined")?_42b1:"";
};
VjCookieJar.checkConversionMap=function(_42b2){
var cmap=this.aConversionMap[_42b2.name];
if(cmap){
_42b2.mode=this.getMode(_42b2.name);
_42b2.name=cmap[0];
_42b2.cookieletname=cmap[1];
}
};
VjCookieJar.readCookieInternal=function(_42b4){
_42b4.value=_42b4.rawcookievalue;
return _42b4;
};
VjCookieJar.readCookieletInternal=function(_42b5){
var clet=this.getCookielet(_42b5.name,_42b5.cookieletname,_42b5.rawcookievalue);
var _42b7=this.aFormatMap[_42b5.name];
if(clet&&_42b7&&_42b7.bUseExp){
clet=clet.substring(0,clet.length-8);
}
_42b5.value=clet;
if(_42b5.mode==this.sCOMPAT){
_42b5.value=_42b5.rawcookievalue;
}
return _42b5;
};
VjCookieJar.readMultiLineCookie=function(_42b8,_42b9){
if(!_42b8||!_42b9){
return "";
}
var val,r="";
var cmap=this.aConversionMap[_42b8];
if(cmap){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}
if(val){
r=this.getCookielet(_42b8,_42b9,val)||"";
}
return (typeof (r)!="undefined")?r:"";
};
VjCookieJar.writeCookie=function(_42bc,psVal,psExp){
var cmap=this.aConversionMap[_42bc];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],psVal,psExp);
return;
}
if(_42bc&&(psVal!==undefined)){
if((isNaN(psVal)&&psVal.length<4000)||(psVal+"").length<4000){
if(typeof psExp=="number"){
psExp=this.getExpDate(psExp);
}
var _42c0=psExp?new Date(psExp):new Date(this.getExpDate(730));
document.cookie=_42bc+"="+(psVal||"")+((psExp)?"; expires="+_42c0:"")+"; domain="+this.sCookieDomain+"; path="+this.sPath;
}
}
};
VjCookieJar.writeCookieEx=function(_42c1,psVal,_42c3){
this.writeCookie(_42c1,psVal,this.getExpDate(_42c3));
};
VjCookieJar.writeCookielet=function(_42c4,_42c5,psVal,psExp,_42c8){
if(_42c4&&_42c5){
this.update();
var _42c9=this.aFormatMap[_42c4];
if(_42c9&&_42c9.bUseExp){
if(typeof psExp=="number"){
psExp=this.getExpDate(psExp);
}
var _42ca=psExp?new Date(psExp):new Date(this.getExpDate(730));
var _42cb=Date.UTC(_42ca.getUTCFullYear(),_42ca.getUTCMonth(),_42ca.getUTCDate());
_42cb=Math.floor(_42cb/1000);
psVal+=_42cb.dec2Hex();
}
var val=this.createCookieValue(_42c4,_42c5,psVal);
this.writeCookie(_42c4,val,_42c8);
}
};
VjCookieJar.writeMultiLineCookie=function(_42cd,_42ce,psVal,psExp,_42d1){
this.update();
var val=this.createCookieValue(_42cd,_42ce,psVal);
if(val){
var cmap=this.aConversionMap[_42cd];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],val,psExp,_42d1);
}
}
};
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(_42db,psKey,psVal){
var cmap=this.aConversionMap[_42db],format=this.aFormatMap[_42db],mode=this.getMode(_42db),val;
if(cmap&&(mode==this.sSTRICT||mode==this.sCONVER)){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}else{
val=this.aCookies[_42db]||"";
}
if(format){
var clts=this.getCookieletArray(val,format);
clts[psKey]=psVal;
var str="";
for(var i in clts){
str+=i+format.NAME_VALUE_DELIMITER+clts[i]+format.COOKIELET_DELIMITER;
}
if(str){
if(format.startDelim){
str=format.COOKIELET_DELIMITER+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 _42e5=this.aFormatMap[sC[0]];
this.aCookies[sC[0]]=sC[1];
}
};
VjCookieJar.getCookielet=function(_42e6,_42e7,psVal){
var _42e9=this.aFormatMap[_42e6];
var clts=this.getCookieletArray(psVal,_42e9);
return clts[_42e7]||"";
};
VjCookieJar.getCookieletArray=function(psVal,_42ec){
var rv=[],val=psVal||"";
if(_42ec.escapedValue){
val=unescape(val);
}
var a=val.split(_42ec.COOKIELET_DELIMITER);
for(var i=0;i<a.length;i++){
var idx=a[i].indexOf(_42ec.NAME_VALUE_DELIMITER);
if(idx>0){
rv[a[i].substring(0,idx)]=a[i].substring(idx+1);
}
}
return rv;
};
VjCookieJar.getExpDate=function(_42f1){
var _42f2;
if(typeof _42f1=="number"&&_42f1>=0){
var d=new Date();
d.setTime(d.getTime()+(_42f1*24*60*60*1000));
_42f2=d.toGMTString();
}
return _42f2;
};
VjCookieJar.getMode=function(_42f4){
var h=this.readCookieObj(this.sModesCookie,this.sModesCookielet).value,b;
if(!(_42f4 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(_42f4==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,_42fc,pRepl){
var rv=pStr;
while(rv.has(_42fc)){
rv=rv.replace(_42fc,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(_4301){
var rv=this,re,tkn,a=arguments,l=a.length;
for(var i=1;i<l+1;i++){
rv=this.replaceToken(rv,_4301.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(_4311,show){
var elem=getElementById(_4311);
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(_4316,_4317){
var fcn;
if(VjUtils.isString(_4317)){
fcn=_4316[_4317];
}else{
fcn=_4317;
}
return function(){
return fcn.apply(_4316,arguments);
};
};
VjUtils.extend=function(_4319,_431a){
function inheritance(){
}
inheritance.prototype=_431a.prototype;
_4319.prototype=new inheritance();
_4319.prototype.constructor=_4319;
_4319.baseConstructor=_431a;
_4319.superClass=_431a.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 _4321=0,scrOfY=0;
if(typeof (window.pageYOffset)=="number"){
scrOfY=window.pageYOffset;
_4321=window.pageXOffset;
}else{
if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){
scrOfY=document.body.scrollTop;
_4321=document.body.scrollLeft;
}else{
if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){
scrOfY=document.documentElement.scrollTop;
_4321=document.documentElement.scrollLeft;
}
}
}
return [_4321,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(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));
}
};
function DynamicDropdown(_432a,_432b,_432c,_432d){
this.sDropdownId=_432a;
this.sHandler=_432b;
this.sCollName=_432c;
this.iCondNo=_432d;
}
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(_432f,_4330,_4331){
var e=_432f;
if(e){
var o=new Option(_4331,_4330,false,false),os;
os=e.options;
os[os.length]=o;
}
};
function DynamicMenu(_4334,_4335,_4336,_4337,_4338,_4339,_433a,_433b,_433c,_433d,_433e,_433f,_4340,_4341,_4342,_4343,_4344,_4345,_4346,_4347){
this.iMouseOutTimer=null;
this.iMouseOverTimer=null;
this.iLeftPadding=_433e;
this.iTopPadding=_433f;
this.iRightPadding=_4340;
this.sAnchorId=_4334;
this.sContainerLayerId=_4335;
this.sContentLayerId=_4336;
this.iMouseOutDelay=_4337;
this.iMouseOverDelay=_4338;
this.iHighResDocWidth=_4339;
this.iLowResDocWidth=_433a;
this.iHighResColumns=_433b;
this.iMediumResColumns=_433c;
this.iLowResColumns=_433d;
this.sHandler=_4341;
this.sCollName=_4342;
this.sWidth=_4343;
this.sAnchorMouseOverClass=_4344;
this.sAnchorMouseOutClass=_4345;
this.iframeShim=null;
this.sHTML=null;
this.oAnchor=null;
this.sTemplate=null;
this.sAnchorText=_4346;
this.sDomain=_4347;
this.getAnchor=function(){
with(this){
if(oAnchor==null){
var oCl=VjClient.getBrowserObj(),oAnchor=a=getElementById(sAnchorId),t=sAnchorText;
if(t){
(oCl.bFirefox)?a.textContent=t:a.innerText=t;
}
}
return oAnchor;
}
};
}
DynamicMenu.prototype.showDynamicMenu=function(){
var oL,oA,iL,iT,iWW,noc,iAL,iAW,iLW,op,oSI,bF=false,t;
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;
if((((iWW-iAL-iLW)<=10)&&iWW>iLW)||(iWW<(getOffsetLeft(oA)+iAW+iLW))){
iL=iAL+iAW-iLW;
}else{
iL=iAL;
}
iL+=iLeftPadding;
if(iL>=0){
oL.style.left=(iL-1)+"px";
}
oL.style.top=(iT)+"px";
oL.style.zIndex="1000";
if(bF){
iframeShim=VjLayerUtils.addLayerShim(oL);
}else{
if(navigator.userAgent.toLowerCase().indexOf("msie")!=-1){
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){
VjLayerUtils.removeLayerShim(getElementById(sContainerLayerId),iframeShim);
}
}
};
DynamicMenu.prototype.clearMouseOutTimer=function(){
clearTimeout(this.iMouseOutTimer);
};
DynamicMenu.prototype.getMenuHtml=function(_434c){
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 _434e=window[sHandler];
if(!_434e){
return;
}
var data=_434e(),items=data[sCollName],l=items.length;
ipc=Math.ceil(l/_434c);
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<_434c;j++){
h+="<td nowrap>";
if(i==0){
h+=si+"><br/>";
}
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>";
img=si+" id='"+sContainerLayerId+"-spacer'>";
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){
if(event.src&&event.src.focus){
event.src.focus();
}
oRegistry.get(this.id).showDynamicMenu();
};
function DynamicMenuGetOffsetLeft(e){
var l=0;
if(e.offsetParent){
l=e.offsetLeft;
while(e=e.offsetParent){
if(e.id.toLowerCase().indexOf("maincontent")==-1&&e.className.indexOf("pagecontainer")==-1){
l+=e.offsetLeft;
}
if(((e.className=="pnav"||e.innerHTML.indexOf("snav")!=-1)&&document.all)&&e.offsetLeft!=0&&(window.location.href.indexOf("motoros")==-1)){
return l;
}
}
}
return l;
}
function getOffsetTop(elm){
var _4359=elm.offsetTop;
var _435a=elm.offsetParent;
while(_435a!==null){
_4359+=_435a.offsetTop;
_435a=_435a.offsetParent;
}
return _4359;
}
function getOffsetLeft(elm){
var _435c=elm.offsetLeft;
var _435d=elm.offsetParent;
while(_435d!==null){
_435c+=_435d.offsetLeft;
_435d=_435d.offsetParent;
}
return _435c;
}
var VjLayerUtils={};
VjLayerUtils.matchColumnHeight=function(_435e,_435f,aDivs){
var px="px";
var _4362=document.getElementById(_435e);
var _4363=_4362.offsetHeight;
var _4364=Math.max(_4363,_435f);
for(var i=0;i<aDivs.length;i++){
document.getElementById(aDivs[i]).style.height=_4364+px;
}
};
VjLayerUtils.addLayerShim=function(node){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1){
return;
}
var _4368=document.createElement("IFRAME");
_4368.style.width=node.offsetWidth+"px";
_4368.style.height=node.offsetHeight+"px";
_4368.style.filter="chroma(color='white')";
_4368.frameBorder=0;
_4368.style.position="absolute";
_4368.style.left="0px";
_4368.style.top="0px";
_4368.style.zIndex="-1";
_4368.style.filter="Alpha(Opacity=\"0\")";
node.appendChild(_4368);
return _4368;
};
VjLayerUtils.removeLayerShim=function(_4369,_436a){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1){
return;
}
if(_436a&&_436a.parentElement){
_4369.removeChild(_436a);
}
};
function hookEventDispatcherTrigger(pIsV4){
if(window.onload&&pIsV4){
return;
}
window.onload=function(){
return eventDispatcher.onload("body");
};
}
var dsf_debug=true;
function dsf_EventDispatcher(){
this.eventHandlers=Object();
}
dsf_EventDispatcher.prototype.process=function(srcId,event){
var _436f=this.eventHandlers[srcId];
if(_436f===undefined){
return true;
}
var _4370=_436f[event.eventType];
if(_4370===undefined){
return true;
}
var _4371=true;
for(var i=0;i<_4370.length;i++){
var _4373=_4370[i].handle(event);
if(_4373&&_4373.objType=="dsf_Message"){
if(typeof (svcEngine)!="undefined"&&svcEngine.handleRequest(_4373)===false){
_4371=false;
}
}else{
if(_4373===false){
_4371=false;
}
}
}
return _4371;
};
dsf_EventDispatcher.prototype.register=function(id,_4375,_4376){
var srcId=id;
if(this.eventHandlers[srcId]===undefined){
this.eventHandlers[srcId]=Object();
}
var _4378=this.eventHandlers[srcId];
if(_4378[_4375]===undefined){
_4378[_4375]=Array();
}
var _4379=_4378[_4375];
_4379[_4379.length]=_4376;
};
dsf_EventDispatcher.prototype.attachHandlerToElement=function(id,_437b,_437c){
eventDispatcher.register(id,_437b,_437c);
var _437d=document.getElementById(id);
if(id=="body"){
_437d=document.body;
if(_437b=="onload"||_437b=="onunload"){
window[_437b]=function(){
eventDispatcher[_437b](_437d);
};
}
}
if(_437d){
_437d[_437b]=function(){
return eventDispatcher[_437b](this);
};
}
return this;
};
function dsf_Event(src,_437f,_4380){
this.src=src;
this.eventType=_437f;
this.nativeEvent=_4380;
}
function dsf_SvcConfig(_4381,url){
this.url=url;
this.method=_4381;
this.reqtMarshalling="raw";
this.respMarshalling="raw";
}
function dsf_Message(svcId){
this.objType="dsf_Message";
this.svcId=svcId;
this.request=undefined;
this.response=undefined;
this.clientContext=undefined;
this.trspType="InProc";
this.status=undefined;
this.svcConfig=undefined;
this.returnData=true;
this.trace="";
}
dsf_EventDispatcher.prototype.getId=function(src,id){
var srcId=id;
if(srcId===null||srcId===undefined){
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,_438b){
return this.process(this.getBodyId(src),new dsf_Event(src,"onload",_438b));
};
dsf_EventDispatcher.prototype.onunload=function(src,_438d){
return this.process(this.getBodyId(src),new dsf_Event(src,"onunload",_438d));
};
dsf_EventDispatcher.prototype.onchange=function(src,_438f){
return this.process(this.getId(src),new dsf_Event(src,"onchange",_438f));
};
dsf_EventDispatcher.prototype.onsubmit=function(src,_4391){
return this.process(this.getId(src),new dsf_Event(src,"onsubmit",_4391));
};
dsf_EventDispatcher.prototype.onreset=function(src,_4393){
return this.process(this.getId(src),new dsf_Event(src,"onreset",_4393));
};
dsf_EventDispatcher.prototype.onselect=function(src,_4395){
return this.process(this.getId(src),new dsf_Event(src,"onselect",_4395));
};
dsf_EventDispatcher.prototype.onblur=function(src,_4397){
return this.process(this.getId(src),new dsf_Event(src,"onblur",_4397));
};
dsf_EventDispatcher.prototype.onfocus=function(src,_4399){
return this.process(this.getId(src),new dsf_Event(src,"onfocus",_4399));
};
dsf_EventDispatcher.prototype.onkeydown=function(src,_439b){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeydown",_439b));
};
dsf_EventDispatcher.prototype.onkeypress=function(src,_439d){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeypress",_439d));
};
dsf_EventDispatcher.prototype.onkeyup=function(src,_439f){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeyup",_439f));
};
dsf_EventDispatcher.prototype.onclick=function(src,_43a1){
return this.process(this.getBodyId(src),new dsf_Event(src,"onclick",_43a1));
};
dsf_EventDispatcher.prototype.ondblclick=function(src,_43a3){
return this.process(this.getBodyId(src),new dsf_Event(src,"ondblclick",_43a3));
};
dsf_EventDispatcher.prototype.onmousedown=function(src,_43a5){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmousedown",_43a5));
};
dsf_EventDispatcher.prototype.onmousemove=function(src,_43a7){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmousemove",_43a7));
};
dsf_EventDispatcher.prototype.onmouseout=function(src,_43a9){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseout",_43a9));
};
dsf_EventDispatcher.prototype.onmouseover=function(src,_43ab){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseover",_43ab));
};
dsf_EventDispatcher.prototype.onmouseup=function(src,_43ad){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseup",_43ad));
};
function dsf_EventHandler(_43ae){
this.eventTypes=_43ae;
this.srcId="";
}
dsf_EventHandler.prototype.handle=function(event){
if(this.handleEvent===null){
alert("all derived event handlers need to have a handleEvent method");
}
var _43b0=this.handleEvent(event);
if(_43b0===null){
return true;
}
};
dsf_EventHandler.prototype.attachTo=function(id){
eventDispatcher.register(this,id);
var _43b2=this.eventTypes;
var _43b3=document.getElementById(id);
for(var i=0;i<_43b2.length;i++){
var _43b5=_43b2[i];
if(_43b3[_43b5]!==null){
continue;
}
_43b3[_43b5]=function(){
return eventDispatcher[_43b5](this);
};
}
return this;
};
var eventDispatcher=new dsf_EventDispatcher();
function VjComponentRegistry(){
this.controls=[];
}
VjComponentRegistry.prototype.put=function(psKey,_43b7){
this.controls[psKey]=_43b7;
};
VjComponentRegistry.prototype.get=function(psKey){
return this.controls[psKey];
};
VjComponentRegistry.prototype.dump=function(){
var _43b9=this.controls;
var _43ba="controls on page:\n";
for(var i in _43b9){
_43ba+="key = "+i;
_43ba+="controlName = "+_43b9[i].objtype;
_43ba+="\n";
}
return _43ba;
};
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\">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\">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>"}]};
}
String.prototype.decodeBase64=function(){
var rv=this,len=rv.length,ret="",i=0;
var chr1,chr2,chr3="";
var enc1,enc2,enc3,enc4="";
var aChar="ABCDEFGHIJKLMNOPQRSTUVWXYZ"+"abcdefghijklmnopqrstuvwxyz"+"0123456789+/=*";
var test=new RegExp("[^A-Za-z0-9+/=*]");
if(test.exec(rv)){
return;
}
do{
enc1=aChar.indexOf(rv.charAt(i++));
enc2=aChar.indexOf(rv.charAt(i++));
enc3=aChar.indexOf(rv.charAt(i++));
enc4=aChar.indexOf(rv.charAt(i++));
chr1=(enc1<<2)|(enc2>>4);
chr2=((enc2&15)<<4)|(enc3>>2);
chr3=((enc3&3)<<6)|enc4;
ret+=String.fromCharCode(chr1);
if(!(enc3>=64)){
ret+=String.fromCharCode(chr2);
}
if(!(enc4>=64)){
ret+=String.fromCharCode(chr3);
}
chr1=chr2=chr3=enc1=enc2=enc3=enc4="";
}while(i<len);
return ret;
};
String.prototype.decodeUTF8=function(){
var s=this,len=s.length;
var rs="";
var i=0;
var c=0,c1=0,c2=0;
while(i<len){
c=s.charCodeAt(i);
if(c<128){
rs+=String.fromCharCode(c);
i++;
}else{
if((c>191)&&(c<224)){
c2=s.charCodeAt(i+1);
rs+=String.fromCharCode(((c&31)<<6)|(c2&63));
i+=2;
}else{
c2=s.charCodeAt(i+1);
c3=s.charCodeAt(i+2);
rs+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));
i+=3;
}
}
}
return rs;
};
VjURL={};
VjURL.addArg=function(psUrl,_43c6,_43c7){
if(psUrl==null||psUrl==undefined){
return null;
}
if(psUrl.indexOf("?")<0){
psUrl+="?"+_43c6+"="+_43c7;
return psUrl;
}
var _43c8=this.getArgPairIfExists(psUrl,_43c6);
if(_43c8!==null){
psUrl.replace(_43c8,_43c6+"="+_43c7);
}else{
psUrl+="&"+_43c6+"="+_43c7;
}
return psUrl;
};
VjURL.getArg=function(psUrl,_43ca){
if(psUrl==null||psUrl==undefined){
return null;
}
if(psUrl.indexOf("?")<0){
return null;
}
var _43cb=this.getArgPairIfExists(psUrl,_43ca);
if(_43cb!==null){
return _43cb.substring(_43cb.indexOf("=")+1);
}
return null;
};
VjURL.getArgPairIfExists=function(psUrl,_43cd){
var _43ce=psUrl.indexOf("?");
if(_43ce<0){
return null;
}
var _43cf=psUrl;
var _43d0,argName;
while(_43ce>=0){
_43cf=_43cf.substring(_43ce+1);
_43d0=_43cf;
_43ce=_43cf.indexOf("&");
if(_43ce>=0){
_43d0=_43cf.substring(0,_43ce);
}
argName=_43d0.substring(0,_43d0.indexOf("="));
if(argName==_43cd){
return _43d0;
}
}
return null;
};
VjGreetings={};
VjGreetings.writePersonalHeader=function(_43d1,_43d2,_43d3,_43d4,_43d5,_43d6,_43d7,_43d8,_43d9,_43da,_43db,_43dc,_43dd,pRU,_43df){
var u1p=VjCookieJar.readCookie("dp1","u1p");
var s="";
var _43e2="",soutLink="",regLink="",un="undefined";
if(!u1p||typeof (u1p)==un){
s=typeof (_43da)!=un?_43da:"";
document.write(s);
return;
}
var _43e3=u1p.decodeBase64().decodeUTF8(),v1=VjCookieJar.readCookie("ebay","sin"),v2=VjCookieJar.readCookie("dp1","kms");
if(typeof (_43e3)==un){
return;
}
if(parseInt(pRU,0)===1){
_43d2=VjURL.addArg(_43d2,"ru",_43df?_43df:escape(document.location.href));
}
var a=VjCookieJar.readCookie("dp1","a1p"),ba,bp;
ba=a&&a>0;
bp=VjGreetings.isUserPersonalized();
if(_43e3.has("@@__@@__@@")){
s+=typeof (_43d7)!=un?_43d7:"";
_43e2="<a href=\""+_43d2+"\" >"+_43d1+"</a>";
regLink="<a href=\""+_43d4+"\" >"+_43d3+"</a>";
s=s.replaceTokensEx("##n##",_43e2,regLink);
}else{
if((v1&&v1.is("in"))||(v2&&v2.is("in"))){
if(bp){
if(ba){
s=_43db+"&nbsp;";
}
s+=typeof (_43d8)!=un?_43d8:"";
soutLink="<a href=\""+_43d6+"\" >"+_43d5+"</a>";
s=s.replaceTokensEx("##n##",_43e3,soutLink);
if(ba){
if(a==1){
s+=_43dc;
}else{
s+=_43dd;
}
s=s.replaceTokensEx("##n##",a);
}
}else{
s=_43da;
}
}else{
if(ba){
s=_43db+"&nbsp;";
}
s+=typeof (_43d9)!=un?_43d9:"";
_43e2="<a href=\""+_43d2+"\" >"+_43d1+"</a>";
s=s.replaceTokensEx("##n##",_43e3,_43e2);
if(ba){
if(a==1){
s+=_43dc;
}else{
s+=_43dd;
}
s=s.replaceTokensEx("##n##",a);
}
}
}
document.write(s);
};
VjGreetings.isUserPersonalized=function(){
var cId=VjCookieJar.readCookie("cid");
var pCd=VjCookieJar.readCookie("dp1","pcid");
if(pCd){
if(cId){
cId=unescape(cId);
var hCd=cId;
var Inx=cId.indexOf("#");
if(Inx===-1&&cId.length>8){
return false;
}
if(Inx!==-1){
hCd=cId.substring(Inx+1,cId.length);
}
if(hCd===pCd){
VjCookieJar.writeCookie("cid",cId,365);
return true;
}else{
return false;
}
}
return false;
}
return true;
};
function ExpressCrossLinking(_43e9,_43ea,_43eb,_43ec,_43ed,_43ee,_43ef){
this.sLayerId=_43e9;
this.sCloseAnchorId=_43ea;
this.sCartCountText=_43eb;
this.aHostCoutryId=_43ec;
this.aHostCountryDomain=_43ed;
this.aHideOnParams=_43ee;
this.sHtml=_43ef;
}
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 _43f5=this.aHideOnParams;
var iLen=_43f5.length;
for(var i=0;i<iLen;i++){
if(document.location.href.has(_43f5[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,_43fe,_43ff,_4400,_4401,_4402,_4403,_4404,_4405,_4406,_4407){
this.sId=pId;
this.iPollingInterval=_43fe;
this.iMaxHits=_43ff;
this.iHitTimeout=_4400;
this.iServerHits=0;
this.sLastCookieletValue="";
this.sServerUrl=_4401;
this.sImgServer=_4402+"/";
this.sViewItemUrl=_4403;
this.aAlertInfo=[["h:h:alt:2",_4405,"icon/iconOutbid_16x16.gif"],["h:h:alt:3",_4404,"icon/iconWatchB_16x16.gif"],["h:h:alt:4",_4405,"icon/iconOutbid_16x16.gif"],["h:h:alt:5",_4406,"icon/iconchanceBlu_16x16.gif"],["h:h:alt:tcr",_4407,"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,_440a){
var oL=this.oL;
if(oL){
if(pVal.is("")&&!oL.ctrld){
return;
}
if(_440a){
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(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 _4413=cfg[at-1],imgSrv=this.sImgServer;
var _4414=imgSrv+"s.gif";
var sHTML="<img src=\""+_4414+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">|<img src=\""+_4414+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">";
sHTML+="<img src=\""+imgSrv+_4413[2]+"?t\" style=\"vertical-align:middle\"><img src=\""+_4414+"\" width=\"5\" height=\"16\" style=\"vertical-align:middle\">";
var url=this.sViewItemUrl+"&item="+ii;
sHTML+="<a href=\""+url+"&ssPageName="+_4413[0]+"\">"+_4413[1]+"</a>";
this.setValue(sHTML);
this.sLastCookieletValue=c;
}
this.fireRefreshEvent();
};
BuyerTransactionAlert.prototype.fireRefreshEvent=function(_4417){
if(!_4417){
_4417=this.iPollingInterval;
}
window.setTimeout(this.onRefresh,_4417*1000);
};
BuyerTransactionAlert.prototype.onCookieExpire=function(){
var _4418=VjCookieJar.readCookie("ebaysignin");
if(!_4418.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(_441d,show){
var elem=getElementById(_441d);
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/e505/GlobalNav_EbayStatic_e5054391574_1_en_US_MAIN
// b=4391574