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(_186,date){
_186=_186?_186:0;
d=date?date:new Date();
var _188=d.getTime();
var _189=d.getTimezoneOffset()*60000;
var utc=_188+_189;
return new Date(utc+(3600000*_186));
};
VjCookieJar={aCookies:{}};
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.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(_18b,_18c){
var rv=this.readCookieObj(_18b,_18c).value;
return (rv)?unescape(rv):"";
};
VjCookieJar.createDefaultCookieBean=function(_18e,_18f){
var _190={};
_190.name=_18e;
_190.cookieletname=_18f;
_190.value="";
_190.maxage=0;
_190.rawcookievalue="";
_190.mode="";
return _190;
};
VjCookieJar.readCookieObj=function(_191,_192){
var _193=this.createDefaultCookieBean(_191,_192);
this.update();
this.checkConversionMap(_193);
_193.rawcookievalue=this.aCookies[_193.name];
if(!_193.name||!_193.rawcookievalue){
_193.value="";
}else{
if(!_193.cookieletname){
this.readCookieInternal(_193);
}else{
this.readCookieletInternal(_193);
}
}
return (typeof (_193)!="undefined")?_193:"";
};
VjCookieJar.checkConversionMap=function(_194){
var cmap=this.aConversionMap[_194.name];
if(cmap){
_194.mode=this.getMode(_194.name);
_194.name=cmap[0];
_194.cookieletname=cmap[1];
}
};
VjCookieJar.readCookieInternal=function(_196){
_196.value=_196.rawcookievalue;
return _196;
};
VjCookieJar.readCookieletInternal=function(_197){
var clet=this.getCookielet(_197.name,_197.cookieletname,_197.rawcookievalue);
var _199=this.getFormat(_197.name);
if(clet&&_199.bUseExp){
clet=clet.substring(0,clet.length-8);
}
_197.value=clet;
if(_197.mode==this.sCOMPAT){
_197.value=_197.rawcookievalue;
}
return _197;
};
VjCookieJar.readMultiLineCookie=function(_19a,_19b){
if(!_19a||!_19b){
return "";
}
var val,r="";
var cmap=this.aConversionMap[_19a];
if(cmap){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}
if(val){
r=this.getCookielet(_19a,_19b,val)||"";
}
return (typeof (r)!="undefined")?r:"";
};
VjCookieJar.writeCookie=function(_19e,_19f,_1a0){
var cmap=this.aConversionMap[_19e];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],_19f,_1a0);
return;
}
var _1a2=this.getFormat(_19e);
if(_19f&&_1a2.escapedValue){
_19f=escape(_19f);
}
this.writeRawCookie(_19e,_19f,_1a0);
};
VjCookieJar.writeRawCookie=function(_1a3,_1a4,_1a5){
if(_1a3&&(_1a4!==undefined)){
if((isNaN(_1a4)&&_1a4.length<4000)||(_1a4+"").length<4000){
if(typeof _1a5=="number"){
_1a5=this.getExpDate(_1a5);
}
var _1a6=_1a5?new Date(_1a5):new Date(this.getExpDate(730));
document.cookie=_1a3+"="+(_1a4||"")+((_1a5)?"; expires="+_1a6:"")+"; domain="+this.sCookieDomain+"; path="+this.sPath;
}
}
};
VjCookieJar.writeCookieEx=function(_1a7,_1a8,_1a9){
this.writeCookie(_1a7,_1a8,this.getExpDate(_1a9));
};
VjCookieJar.writeCookielet=function(_1aa,_1ab,_1ac,_1ad,_1ae){
if(_1aa&&_1ab){
this.update();
var _1af=this.getFormat(_1aa);
if(_1af.bUseExp){
if(typeof _1ad=="number"){
_1ad=this.getExpDate(_1ad);
}
var _1b0=_1ad?new Date(_1ad):new Date(this.getExpDate(730));
var _1b1=Date.UTC(_1b0.getUTCFullYear(),_1b0.getUTCMonth(),_1b0.getUTCDate());
_1b1=Math.floor(_1b1/1000);
_1ac+=_1b1.dec2Hex();
}
var val=this.createCookieValue(_1aa,_1ab,_1ac);
this.writeRawCookie(_1aa,val,_1ae);
}
};
VjCookieJar.writeMultiLineCookie=function(_1b3,_1b4,_1b5,_1b6,_1b7){
this.update();
var val=this.createCookieValue(_1b3,_1b4,_1b5);
if(val){
var cmap=this.aConversionMap[_1b3];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],val,_1b6,_1b7);
}
}
};
VjCookieJar.getBitFlag=function(_1ba,_1bb){
_1ba=parseInt(_1ba,10);
var b=_1ba.toString(2),r=_1ba?b.charAt(b.length-_1bb-1):"";
return (r=="1")?1:0;
};
VjCookieJar.setBitFlag=function(_1bd,_1be,_1bf){
var b="",p,i,e,l;
_1bd=parseInt(_1bd,10);
if(_1bd){
b=_1bd.toString(2);
}
l=b.length;
if(l<_1be){
e=_1be-l;
for(i=0;i<=e;i++){
b="0"+b;
}
}
p=b.length-_1be-1;
return parseInt(b.substring(0,p)+_1bf+b.substring(p+1),2);
};
VjCookieJar.createCookieValue=function(_1c1,_1c2,_1c3){
var cmap=this.aConversionMap[_1c1],format=this.getFormat(_1c1),mode=this.getMode(_1c1),val;
if(cmap&&(mode==this.sSTRICT||mode==this.sCONVER)){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}else{
val=this.aCookies[_1c1]||"";
}
if(format){
var clts=this.getCookieletArray(val,format);
clts[_1c2]=_1c3;
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.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 _1cb=this.getFormat(sC[0]),cv=sC[1],sd=_1cb.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(_1cc,_1cd,_1ce){
var _1cf=this.getFormat(_1cc);
var clts=this.getCookieletArray(_1ce,_1cf);
return clts[_1cd]||"";
};
VjCookieJar.getFormat=function(_1d1){
return this.aFormatMap[_1d1]||VjCookieJar.Default_Cookie_Format;
};
VjCookieJar.getCookieletArray=function(_1d2,_1d3){
var rv=[],val=_1d2||"";
if(_1d3.escapedValue){
val=unescape(val);
}
var a=val.split(_1d3.COOKIELET_DELIMITER);
for(var i=0;i<a.length;i++){
var idx=a[i].indexOf(_1d3.NAME_VALUE_DELIMITER);
if(idx>0){
rv[a[i].substring(0,idx)]=a[i].substring(idx+1);
}
}
return rv;
};
VjCookieJar.getExpDate=function(_1d8){
var _1d9;
if(typeof _1d8=="number"&&_1d8>=0){
var d=new Date();
d.setTime(d.getTime()+(_1d8*24*60*60*1000));
_1d9=d.toGMTString();
}
return _1d9;
};
VjCookieJar.getMode=function(_1db){
var h=this.readCookieObj(this.sModesCookie,this.sModesCookielet).value,b;
if(!(_1db 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(_1db==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,_1e3,_1e4){
var rv=pStr;
while(rv.has(_1e3)){
rv=rv.replace(_1e3,_1e4);
}
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(_1e8){
var rv=this,re,tkn,a=arguments,l=a.length;
for(var i=1;i<l+1;i++){
rv=this.replaceToken(rv,_1e8.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(_1f8,show){
var elem=getElementById(_1f8);
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(_1fd,_1fe){
var fcn;
if(VjUtils.isString(_1fe)){
fcn=_1fd[_1fe];
}else{
fcn=_1fe;
}
return function(){
return fcn.apply(_1fd,arguments);
};
};
VjUtils.extend=function(_200,_201){
function inheritance(){
}
inheritance.prototype=_201.prototype;
_200.prototype=new inheritance();
_200.prototype.constructor=_200;
_200.baseConstructor=_201;
_200.superClass=_201.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 _208=0,scrOfY=0;
if(typeof (window.pageYOffset)=="number"){
scrOfY=window.pageYOffset;
_208=window.pageXOffset;
}else{
if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){
scrOfY=document.body.scrollTop;
_208=document.body.scrollLeft;
}else{
if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){
scrOfY=document.documentElement.scrollTop;
_208=document.documentElement.scrollLeft;
}
}
}
return [_208,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(_20d){
var oC=VjClient.getBrowserObj();
return oC.bIE&&!oC.bMac&&vbCheckActiveXControl(_20d);
};
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(_211,_212,_213,_214){
this.sDropdownId=_211;
this.sHandler=_212;
this.sCollName=_213;
this.iCondNo=_214;
}
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(_216,_217,_218){
var e=_216;
if(e){
var o=new Option(_218,_217,false,false),os;
os=e.options;
os[os.length]=o;
}
};
function DynamicMenu(_21b,_21c,_21d,_21e,_21f,_220,_221,_222,_223,_224,_225,_226,_227,_228,_229,_22a,_22b,_22c,_22d,_22e){
this.iMouseOutTimer=null;
this.iMouseOverTimer=null;
this.iLeftPadding=_225;
this.iTopPadding=_226;
this.iRightPadding=_227;
this.sAnchorId=_21b;
this.sContainerLayerId=_21c;
this.sContentLayerId=_21d;
this.iMouseOutDelay=_21e;
this.iMouseOverDelay=_21f;
this.iHighResDocWidth=_220;
this.iLowResDocWidth=_221;
this.iHighResColumns=_222;
this.iMediumResColumns=_223;
this.iLowResColumns=_224;
this.sHandler=_228;
this.sCollName=_229;
this.sWidth=_22a;
this.sAnchorMouseOverClass=_22b;
this.sAnchorMouseOutClass=_22c;
this.iframeShim=null;
this.sHTML=null;
this.oAnchor=null;
this.sTemplate=null;
this.sAnchorText=_22d;
this.sDomain=_22e;
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;
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&&window.location.href.indexOf("community")==-1){
cw=oCon.offsetWidth;
if((iAL+iLW)>cw){
bRA=true;
}
}
if((((iWW-iAL-iLW)<=10)&&iWW>iLW)||(iWW<(getOffsetLeft(oA)+iAW+iLW))||bRA){
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=addLayerShim(oL);
}else{
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")!=-1||agt.indexOf("firefox")!=-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){
removeLayerShim(getElementById(sContainerLayerId),iframeShim);
}
}
};
DynamicMenu.prototype.clearMouseOutTimer=function(){
clearTimeout(this.iMouseOutTimer);
};
DynamicMenu.prototype.getMenuHtml=function(_235){
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 _237=window[sHandler];
if(!_237){
return;
}
var data=_237(),items=data[sCollName],l=items.length;
ipc=Math.ceil(l/_235);
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<_235;j++){
h+="<td nowrap>";
if(i==0&&window.location.href.indexOf("motors")!=-1){
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(_23a){
oRegistry.get(this.id).startMouseOutTimer();
};
function DynamicMenuClearMouseOutHandler(psId){
this.id=psId;
}
DynamicMenuClearMouseOutHandler.prototype.handle=function(_23c){
oRegistry.get(this.id).clearMouseOutTimer();
};
function DynamicShowMenuHandler(psId){
this.id=psId;
}
DynamicShowMenuHandler.prototype.handle=function(_23e){
oRegistry.get(this.id).showDynamicMenu();
};
function DynamicMenuGetOffsetLeft(e){
var l=0,oCl=VjClient.getBrowserObj(),ex=(oCl.bIE||oCl.bSafari),lh=window.location.href;
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)&&ex)&&e.offsetLeft!=0&&(lh.indexOf("community")==-1&&lh.indexOf("sitemap")==-1&&lh.indexOf("/help/")==-1)){
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 _244=document.createElement("IFRAME");
_244.style.width=node.offsetWidth+"px";
_244.style.height=node.offsetHeight+"px";
_244.style.filter="chroma(color='white')";
_244.frameBorder=0;
_244.style.position="absolute";
_244.style.left="0px";
_244.style.top="0px";
_244.style.zIndex="-1";
_244.style.filter="Alpha(Opacity=\"0\")";
node.appendChild(_244);
return _244;
};
DynamicMenu.prototype.removeLayerShim=function(_245,_246){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
if(_246&&_246.parentElement){
_245.removeChild(_246);
}
};
function getOffsetTop(elm){
var _249=elm.offsetTop;
var _24a=elm.offsetParent;
while(_24a!==null){
_249+=_24a.offsetTop;
_24a=_24a.offsetParent;
}
return _249;
}
function getOffsetLeft(elm){
var _24c=elm.offsetLeft;
var _24d=elm.offsetParent;
while(_24d!==null){
_24c+=_24d.offsetLeft;
_24d=_24d.offsetParent;
}
return _24c;
}
var VjLayerUtils={};
VjLayerUtils.matchColumnHeight=function(_24e,_24f,_250){
var px="px";
var _252=document.getElementById(_24e);
var _253=_252.offsetHeight;
var _254=Math.max(_253,_24f);
for(var i=0;i<_250.length;i++){
document.getElementById(_250[i]).style.height=_254+px;
}
};
VjLayerUtils.addLayerShim=function(node){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
var _258=document.createElement("IFRAME");
_258.style.width=node.offsetWidth+"px";
_258.style.height=node.offsetHeight+"px";
_258.style.filter="chroma(color='white')";
_258.frameBorder=0;
_258.style.position="absolute";
_258.style.left="0px";
_258.style.top="0px";
_258.style.zIndex="-1";
_258.style.filter="Alpha(Opacity=\"0\")";
node.appendChild(_258);
return _258;
};
VjLayerUtils.removeLayerShim=function(_259,_25a){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
if(_25a&&_25a.parentElement){
_259.removeChild(_25a);
}
};
function hookEventDispatcherTrigger(_25c){
if(window.onload&&_25c){
return;
}
window.onload=function(){
return eventDispatcher.onload("body");
};
}
var dsf_debug=true;
function dsf_EventDispatcher(){
this.eventHandlers=Object();
}
dsf_EventDispatcher.prototype.process=function(_25d,_25e){
var _25f=this.eventHandlers[_25d];
if(_25f===undefined){
return true;
}
var _260=_25f[_25e.eventType];
if(_260===undefined){
return true;
}
var _261=true;
for(var i=0;i<_260.length;i++){
var _263=_260[i].handle(_25e);
if(_263&&_263.objType=="dsf_Message"){
if(typeof (svcEngine)!="undefined"&&svcEngine.handleRequest(_263)===false){
_261=false;
}
}else{
if(_263===false){
_261=false;
}
}
}
return _261;
};
dsf_EventDispatcher.prototype.register=function(id,_265,_266){
var _267=id;
if(this.eventHandlers[_267]===undefined){
this.eventHandlers[_267]=Object();
}
var _268=this.eventHandlers[_267];
if(_268[_265]===undefined){
_268[_265]=Array();
}
var _269=_268[_265];
_269[_269.length]=_266;
};
dsf_EventDispatcher.prototype.attachHandlerToElement=function(id,_26b,_26c){
eventDispatcher.register(id,_26b,_26c);
var _26d=document.getElementById(id);
if(id=="body"){
_26d=document.body;
if(_26b=="onload"||_26b=="onunload"){
window[_26b]=function(){
eventDispatcher[_26b](_26d);
};
}
}
if(_26d){
_26d[_26b]=function(){
return eventDispatcher[_26b](this);
};
}
return this;
};
function dsf_Event(src,_26f,_270){
this.src=src;
this.eventType=_26f;
this.nativeEvent=_270;
}
function dsf_SvcConfig(_271,url){
this.url=url;
this.method=_271;
this.reqtMarshalling="raw";
this.respMarshalling="raw";
}
function dsf_Message(_273){
this.objType="dsf_Message";
this.svcId=_273;
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 _276=id;
if(_276===null||_276===undefined){
_276=src.id;
}
return _276;
};
dsf_EventDispatcher.prototype.getBodyId=function(src,id){
var _279=this.getId(src,id);
if(!_279){
_279="body";
}
return _279;
};
dsf_EventDispatcher.prototype.onload=function(src,_27b){
return this.process(this.getBodyId(src),new dsf_Event(src,"onload",_27b));
};
dsf_EventDispatcher.prototype.onunload=function(src,_27d){
return this.process(this.getBodyId(src),new dsf_Event(src,"onunload",_27d));
};
dsf_EventDispatcher.prototype.onchange=function(src,_27f){
return this.process(this.getId(src),new dsf_Event(src,"onchange",_27f));
};
dsf_EventDispatcher.prototype.onsubmit=function(src,_281){
return this.process(this.getId(src),new dsf_Event(src,"onsubmit",_281));
};
dsf_EventDispatcher.prototype.onreset=function(src,_283){
return this.process(this.getId(src),new dsf_Event(src,"onreset",_283));
};
dsf_EventDispatcher.prototype.onselect=function(src,_285){
return this.process(this.getId(src),new dsf_Event(src,"onselect",_285));
};
dsf_EventDispatcher.prototype.onblur=function(src,_287){
return this.process(this.getId(src),new dsf_Event(src,"onblur",_287));
};
dsf_EventDispatcher.prototype.onfocus=function(src,_289){
return this.process(this.getId(src),new dsf_Event(src,"onfocus",_289));
};
dsf_EventDispatcher.prototype.onkeydown=function(src,_28b){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeydown",_28b));
};
dsf_EventDispatcher.prototype.onkeypress=function(src,_28d){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeypress",_28d));
};
dsf_EventDispatcher.prototype.onkeyup=function(src,_28f){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeyup",_28f));
};
dsf_EventDispatcher.prototype.onclick=function(src,_291){
return this.process(this.getBodyId(src),new dsf_Event(src,"onclick",_291));
};
dsf_EventDispatcher.prototype.ondblclick=function(src,_293){
return this.process(this.getBodyId(src),new dsf_Event(src,"ondblclick",_293));
};
dsf_EventDispatcher.prototype.onmousedown=function(src,_295){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmousedown",_295));
};
dsf_EventDispatcher.prototype.onmousemove=function(src,_297){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmousemove",_297));
};
dsf_EventDispatcher.prototype.onmouseout=function(src,_299){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseout",_299));
};
dsf_EventDispatcher.prototype.onmouseover=function(src,_29b){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseover",_29b));
};
dsf_EventDispatcher.prototype.onmouseup=function(src,_29d){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseup",_29d));
};
function dsf_EventHandler(_29e){
this.eventTypes=_29e;
this.srcId="";
}
dsf_EventHandler.prototype.handle=function(_29f){
if(this.handleEvent===null){
alert("all derived event handlers need to have a handleEvent method");
}
var _2a0=this.handleEvent(_29f);
if(_2a0===null){
return true;
}
};
dsf_EventHandler.prototype.attachTo=function(id){
eventDispatcher.register(this,id);
var _2a2=this.eventTypes;
var _2a3=document.getElementById(id);
for(var i=0;i<_2a2.length;i++){
var _2a5=_2a2[i];
if(_2a3[_2a5]!==null){
continue;
}
_2a3[_2a5]=function(){
return eventDispatcher[_2a5](this);
};
}
return this;
};
var eventDispatcher=new dsf_EventDispatcher();
function VjComponentRegistry(){
this.controls=[];
}
VjComponentRegistry.prototype.put=function(_2a6,_2a7){
this.controls[_2a6]=_2a7;
};
VjComponentRegistry.prototype.get=function(_2a8){
return this.controls[_2a8];
};
VjComponentRegistry.prototype.dump=function(){
var _2a9=this.controls;
var _2aa="controls on page:\n";
for(var i in _2a9){
_2aa+="key = "+i;
_2aa+="controlName = "+_2a9[i].objtype;
_2aa+="\n";
}
return _2aa;
};
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(_2ac,_2ad,_2ae){
if(_2ac==null||_2ac==undefined){
return null;
}
if(_2ac.indexOf("?")<0){
_2ac+="?"+_2ad+"="+_2ae;
return _2ac;
}
var _2af=this.getArgPairIfExists(_2ac,_2ad);
if(_2af!==null){
_2ac.replace(_2af,_2ad+"="+_2ae);
}else{
_2ac+="&"+_2ad+"="+_2ae;
}
return _2ac;
};
VjURL.getArg=function(_2b0,_2b1){
if(_2b0==null||_2b0==undefined){
return null;
}
if(_2b0.indexOf("?")<0){
return null;
}
var _2b2=this.getArgPairIfExists(_2b0,_2b1);
if(_2b2!==null){
return _2b2.substring(_2b2.indexOf("=")+1);
}
return null;
};
VjURL.getArgPairIfExists=function(_2b3,_2b4){
var _2b5=_2b3.indexOf("?");
if(_2b5<0){
return null;
}
var _2b6=_2b3;
var _2b7,argName;
while(_2b5>=0){
_2b6=_2b6.substring(_2b5+1);
_2b7=_2b6;
_2b5=_2b6.indexOf("&");
if(_2b5>=0){
_2b7=_2b6.substring(0,_2b5);
}
argName=_2b7.substring(0,_2b7.indexOf("="));
if(argName==_2b4){
return _2b7;
}
}
return null;
};
function VjGreetingsServerOnClick(pUrl){
document.location.href=VjURL.addArg(pUrl,"ru",this.sRu?this.sRu:escape(document.location.href));
return false;
}
function ExpressCrossLinking(_2b9,_2ba,_2bb,_2bc,_2bd,_2be,_2bf){
this.sLayerId=_2b9;
this.sCloseAnchorId=_2ba;
this.sCartCountText=_2bb;
this.aHostCoutryId=_2bc;
this.aHostCountryDomain=_2bd;
this.aHideOnParams=_2be;
this.sHtml=_2bf;
}
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(_2c2,_2c3){
var sh1=_2c2.toLowerCase(),sh2=_2c3.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 _2c5=this.aHideOnParams;
var iLen=_2c5.length;
for(var i=0;i<iLen;i++){
if(document.location.href.has(_2c5[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,_2ce,_2cf,_2d0,_2d1,_2d2,_2d3,_2d4,_2d5,_2d6,_2d7){
this.sId=pId;
this.iPollingInterval=_2ce;
this.iMaxHits=_2cf;
this.iHitTimeout=_2d0;
this.iServerHits=0;
this.sLastCookieletValue="";
this.sServerUrl=_2d1;
this.sImgServer=_2d2+"/";
this.sViewItemUrl=_2d3;
this.aAlertInfo=[["h:h:alt:2",_2d5,"icon/iconOutbid_16x16.gif"],["h:h:alt:3",_2d4,"icon/iconWatchB_16x16.gif"],["h:h:alt:4",_2d5,"icon/iconOutbid_16x16.gif"],["h:h:alt:5",_2d6,"icon/iconchanceBlu_16x16.gif"],["h:h:alt:tcr",_2d7,"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,_2da){
var oL=this.oL;
if(oL){
if(pVal.is("")&&!oL.ctrld){
return;
}
if(_2da){
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 _2e3=cfg[at-1],imgSrv=this.sImgServer;
var _2e4=imgSrv+"s.gif";
var _2e5="<img src=\""+_2e4+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">|<img src=\""+_2e4+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">";
_2e5+="<img src=\""+imgSrv+_2e3[2]+"?t\" style=\"vertical-align:middle\"><img src=\""+_2e4+"\" width=\"5\" height=\"16\" style=\"vertical-align:middle\">";
var url=this.sViewItemUrl+"&item="+ii;
_2e5+="<a href=\""+url+"&ssPageName="+_2e3[0]+"\">"+_2e3[1]+"</a>";
this.setValue(_2e5);
this.sLastCookieletValue=c;
}
this.fireRefreshEvent();
};
BuyerTransactionAlert.prototype.fireRefreshEvent=function(_2e7){
if(!_2e7){
_2e7=this.iPollingInterval;
}
window.setTimeout(VjUtils.hitch(this,this.onRefresh),_2e7*1000);
};
BuyerTransactionAlert.prototype.onCookieExpire=function(){
var _2e8=VjCookieJar.readCookie("ebaysignin");
if(!_2e8.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(_2ed,show){
var elem=getElementById(_2ed);
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/e507/GlobalNav_Ebay_e5074474824_1_en_US_MAIN
// b=4474824
