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(_218,date){
_218=_218?_218:0;
d=date?date:new Date();
var _21a=d.getTime();
var _21b=d.getTimezoneOffset()*60000;
var utc=_21a+_21b;
return new Date(utc+(3600000*_218));
};
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(_21d,_21e){
var rv=this.readCookieObj(_21d,_21e).value;
return (rv)?unescape(rv):"";
};
VjCookieJar.createDefaultCookieBean=function(_220,_221){
var _222={};
_222.name=_220;
_222.cookieletname=_221;
_222.value="";
_222.maxage=0;
_222.rawcookievalue="";
_222.mode="";
return _222;
};
VjCookieJar.readCookieObj=function(_223,_224){
var _225=this.createDefaultCookieBean(_223,_224);
this.update();
this.checkConversionMap(_225);
_225.rawcookievalue=this.aCookies[_225.name];
if(!_225.name||!_225.rawcookievalue){
_225.value="";
}else{
if(!_225.cookieletname){
this.readCookieInternal(_225);
}else{
this.readCookieletInternal(_225);
}
}
return (typeof (_225)!="undefined")?_225:"";
};
VjCookieJar.checkConversionMap=function(_226){
var cmap=this.aConversionMap[_226.name];
if(cmap){
_226.mode=this.getMode(_226.name);
_226.name=cmap[0];
_226.cookieletname=cmap[1];
}
};
VjCookieJar.readCookieInternal=function(_228){
_228.value=_228.rawcookievalue;
return _228;
};
VjCookieJar.readCookieletInternal=function(_229){
var clet=this.getCookielet(_229.name,_229.cookieletname,_229.rawcookievalue);
var _22b=this.getFormat(_229.name);
if(clet&&_22b.bUseExp){
clet=clet.substring(0,clet.length-8);
}
_229.value=clet;
if(_229.mode==this.sCOMPAT){
_229.value=_229.rawcookievalue;
}
return _229;
};
VjCookieJar.readMultiLineCookie=function(_22c,_22d){
if(!_22c||!_22d){
return "";
}
var val,r="";
var cmap=this.aConversionMap[_22c];
if(cmap){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}
if(val){
r=this.getCookielet(_22c,_22d,val)||"";
}
return (typeof (r)!="undefined")?r:"";
};
VjCookieJar.writeCookie=function(_230,_231,_232){
var cmap=this.aConversionMap[_230];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],_231,_232);
return;
}
var _234=this.getFormat(_230);
if(_231&&_234.escapedValue){
_231=escape(_231);
}
this.writeRawCookie(_230,_231,_232);
};
VjCookieJar.writeRawCookie=function(_235,_236,_237){
if(_235&&(_236!==undefined)){
if((isNaN(_236)&&_236.length<4000)||(_236+"").length<4000){
if(typeof _237=="number"){
_237=this.getExpDate(_237);
}
var _238=_237?new Date(_237):new Date(this.getExpDate(730));
var _239=this.getFormat(_235);
var _23a=this.sCookieDomain;
var dd=document.domain;
if(!dd.has(_23a)){
var _23c=dd.indexOf(".ebay.");
if(_23c>0){
this.sCookieDomain=dd.substring(_23c);
}
}
if(document.cookie){
document.cookie=_235+"="+(_236||"")+((_237||_239.bUseExp)?"; expires="+_238.toGMTString():"")+"; domain="+this.sCookieDomain+"; path="+this.sPath;
}
}
}
};
VjCookieJar.writeCookieEx=function(_23d,_23e,_23f){
this.writeCookie(_23d,_23e,this.getExpDate(_23f));
};
VjCookieJar.writeCookielet=function(_240,_241,_242,_243,_244){
if(_240&&_241){
this.update();
var _245=this.getFormat(_240);
if(_245.bUseExp&&_242){
if(typeof _243=="number"){
_243=this.getExpDate(_243);
}
var _246=_243?new Date(_243):new Date(this.getExpDate(730));
var _247=Date.UTC(_246.getUTCFullYear(),_246.getUTCMonth(),_246.getUTCDate());
_247=Math.floor(_247/1000);
_242+=_247.dec2Hex();
}
var val=this.createCookieValue(_240,_241,_242);
this.writeRawCookie(_240,val,_244);
}
};
VjCookieJar.writeMultiLineCookie=function(_249,_24a,_24b,_24c,_24d){
this.update();
var val=this.createCookieValue(_249,_24a,_24b);
if(val){
var cmap=this.aConversionMap[_249];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],val,_24c,_24d);
}
}
};
VjCookieJar.getBitFlag=function(_250,_251){
_250=parseInt(_250,10);
var b=_250.toString(2),r=_250?b.charAt(b.length-_251-1):"";
return (r=="1")?1:0;
};
VjCookieJar.setBitFlag=function(_253,_254,_255){
var b="",p,i,e,l;
_253=parseInt(_253,10);
if(_253){
b=_253.toString(2);
}
l=b.length;
if(l<_254){
e=_254-l;
for(i=0;i<=e;i++){
b="0"+b;
}
}
p=b.length-_254-1;
return parseInt(b.substring(0,p)+_255+b.substring(p+1),2);
};
VjCookieJar.createCookieValue=function(_257,_258,_259){
var cmap=this.aConversionMap[_257],format=this.getFormat(_257),mode=this.getMode(_257),val;
if(cmap&&(mode==this.sSTRICT||mode==this.sCONVER)){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}else{
val=this.aCookies[_257]||"";
}
if(format){
var clts=this.getCookieletArray(val,format);
clts[_258]=_259;
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 _261=this.getFormat(sC[0]),cv=sC[1],sd=_261.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(_262,_263,_264){
var _265=this.getFormat(_262);
var clts=this.getCookieletArray(_264,_265);
return clts[_263]||"";
};
VjCookieJar.getFormat=function(_267){
return this.aFormatMap[_267]||VjCookieJar.Default_Cookie_Format;
};
VjCookieJar.getCookieletArray=function(_268,_269){
var rv=[],val=_268||"";
if(_269.escapedValue){
val=unescape(val);
}
var a=val.split(_269.COOKIELET_DELIMITER);
for(var i=0;i<a.length;i++){
var idx=a[i].indexOf(_269.NAME_VALUE_DELIMITER);
if(idx>0){
rv[a[i].substring(0,idx)]=a[i].substring(idx+1);
}
}
return rv;
};
VjCookieJar.getExpDate=function(_26e){
var _26f;
if(typeof _26e=="number"&&_26e>=0){
var d=new Date();
d.setTime(d.getTime()+(_26e*24*60*60*1000));
_26f=d.toGMTString();
}
return _26f;
};
VjCookieJar.getMode=function(_271){
var h=this.readCookieObj(this.sModesCookie,this.sModesCookielet).value,b;
if(!(_271 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(_271==o){
return (f.length==1)?"0"+f:f;
}
i++;
}
return null;
}
};
VjUtils={};
VjUtils.isString=function(wh){
return (typeof wh=="string");
};
VjUtils.hitch=function(_276,_277){
var fcn;
if(VjUtils.isString(_277)){
fcn=_276[_277];
}else{
fcn=_277;
}
return function(){
return fcn.apply(_276,arguments);
};
};
VjUtils.extend=function(_279,_27a){
function inheritance(){
}
inheritance.prototype=_27a.prototype;
_279.prototype=new inheritance();
_279.prototype.constructor=_279;
_279.baseConstructor=_27a;
_279.superClass=_27a.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 _281=0,scrOfY=0;
if(typeof (window.pageYOffset)=="number"){
scrOfY=window.pageYOffset;
_281=window.pageXOffset;
}else{
if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){
scrOfY=document.body.scrollTop;
_281=document.body.scrollLeft;
}else{
if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){
scrOfY=document.documentElement.scrollTop;
_281=document.documentElement.scrollLeft;
}
}
}
return [_281,scrOfY];
};
function ExpressHandler(){
}
ExpressHandler.prototype.handle=function(_282){
oRegistry.get("expressCompId").init();
};
var VjClient={};
VjClient.getBrowserObj=function(){
this.bFirefox=this.bWebTV=this.bOpera=this.bNav=this.bIE=this.bSafari=this.bWin=this.bMac=this.bMacppc=this.bActiveXLibLoaded=this.bActiveXSupported=this.bWinXp=this.bXpSp2=this.bAOL=false;
this.init=function(){
var nv=navigator,agt=nv.userAgent.toLowerCase(),i=0,ver;
with(this){
if(agt.has("webtv")){
bWebTV=true;
i=agt.indexOf("webtv/")+6;
}else{
if(agt.has("firefox")){
bFirefox=true;
i=agt.lastIndexOf("firefox")+8;
}else{
if(agt.has("safari")){
bSafari=true;
i=agt.lastIndexOf("safari")+7;
}else{
if(typeof (window.opera)!="undefined"){
bOpera=true;
i=agt.lastIndexOf("opera")+6;
}else{
if(nv.appName.is("Netscape")){
bNav=true;
i=agt.lastIndexOf("/")+1;
}else{
if(agt.has("msie")){
bIE=true;
i=agt.indexOf("msie")+4;
if(agt.has("aol")||agt.has("america online")){
bAOL=true;
}
}
}
}
}
}
}
ver=bOpera?window.opera.version():agt.substring(i);
iVer=parseInt(ver);
fVer=parseFloat(ver);
fMinorVer=fVer-iVer;
bWin=agt.has("win");
bWinXp=(bWin&&agt.has("windows nt 5.1"));
bXpSp2=(bWinXp&&agt.has("sv1"));
bMac=agt.has("mac");
bMacppc=(bMac&&agt.hasAny("ppc","powerpc"));
bMactel=(bMac&&agt.has("intel"));
aMimeTypes=nv.mimeTypes;
bActiveXSupported=(!bMac&&(typeof (ActiveXObject)=="function"));
}
};
this.init();
return this;
};
function BtaHandler(){
}
BtaHandler.prototype.handle=function(_284){
oRegistry.get("bta").onRefresh();
};
function DynamicMenu(_285,_286,_287,_288,_289,_28a,_28b,_28c,_28d,_28e,_28f,_290,_291,_292,_293,_294,_295,_296,_297,_298){
this.iMouseOutTimer=null;
this.iMouseOverTimer=null;
this.iLeftPadding=_28f;
this.iTopPadding=_290;
this.iRightPadding=_291;
this.sAnchorId=_285;
this.sContainerLayerId=_286;
this.sContentLayerId=_287;
this.iMouseOutDelay=_288;
this.iMouseOverDelay=_289;
this.iHighResDocWidth=_28a;
this.iLowResDocWidth=_28b;
this.iHighResColumns=_28c;
this.iMediumResColumns=_28d;
this.iLowResColumns=_28e;
this.sHandler=_292;
this.sCollName=_293;
this.sWidth=_294;
this.sAnchorMouseOverClass=_295;
this.sAnchorMouseOutClass=_296;
this.iframeShim=null;
this.sHTML=null;
this.oAnchor=null;
this.sTemplate=null;
this.sAnchorText=_297;
this.sDomain=_298;
this.getAnchor=function(){
with(this){
if(oAnchor==null){
var oCl=VjClient.getBrowserObj(),a=getElementById(sAnchorId),t=sAnchorText;
if(t){
(oCl.bFirefox)?a.textContent=t:a.innerText=t;
}
oAnchor=a;
}
return oAnchor;
}
};
if(this.sAnchorId=="Help"){
this.iLeftPadding-=5;
}
}
DynamicMenu.prototype.showDynamicMenu=function(){
var oL,oA,iL,iT,iWW,noc,iAL,iAW,iLW,op,oSI,bF=false,t,lh=window.location.href,agt=navigator.userAgent.toLowerCase();
with(this){
clearMouseOutTimer();
if(sTemplate==null){
t=getElementById(sContentLayerId);
if(t){
sTemplate=t.innerHTML;
}
}
oL=getElementById(sContainerLayerId);
if(oL){
op=oL.offsetParent;
}
oA=getAnchor();
iAL=DynamicMenuGetOffsetLeft(oA);
iAW=oA.offsetWidth;
iT=getOffsetTop(oA)+(oA.offsetHeight)+iTopPadding;
iWW=VjWindowUtils.getBrowserWindowWidth();
if(iWW>iHighResDocWidth){
noc=iHighResColumns;
}else{
if(iWW>iLowResDocWidth&&iWW<=iHighResDocWidth){
noc=iMediumResColumns;
}else{
if(iWW<=iLowResDocWidth){
noc=iLowResColumns;
}else{
noc=5;
}
}
}
if(sHTML==null){
bF=true;
sHTML=getMenuHtml(noc);
if(sHTML==null){
return;
}
oL.innerHTML=sHTML;
}
iLW=oL.offsetWidth;
var oCon=GetContainerDiv(),cw,bRA=false;
if(sAnchorId=="Help"){
bRA=true;
}
if(oCon&&document.all&&!lh.hasAny("community","education")){
cw=oCon.offsetWidth;
if((iAL+iLW)>cw){
bRA=true;
}
}
if(lh.has("securitycenter")&&lh.has(".hk")){
iAL=getOffsetLeft(oA);
}else{
if(lh.hasAny("securitycentre","contact_ebay")&&lh.has(".au")){
iAL=getOffsetLeft(oA);
}else{
if((typeof (pageName)!="undefined")?pageName.has("CCHP_"):false){
iAL=getOffsetLeft(oA);
}else{
if(lh.hasAny("/buy/")){
iAL=getOffsetLeft(oA);
}else{
if(lh.hasAny("pages.",".html",".shtml")){
iAL=getOffsetLeft(oA);
}
}
}
}
}
var _29c=getElementById("2tabPopularProducts");
if(_29c&&document.all){
iAL=getOffsetLeft(oA);
}
if((((iWW-iAL-iLW)<=10)&&iWW>iLW)||(iWW<(getOffsetLeft(oA)+iAW+iLW))||bRA){
iL=iAL+iAW-iLW;
}else{
iL=iAL;
}
if(sAnchorId=="Buy"||sAnchorId=="Sell"||sAnchorId=="MyEbay"||sAnchorId=="OV"){
iL=iAL;
}
iL+=iLeftPadding;
if(lh.has("securitycentre")&&lh.has(".sg")&&document.all){
iL+=10;
}else{
if(lh.has("feedback")&&lh.has(".hk")&&agt.has("firefox")){
iL+=7;
}else{
if(lh.has("my.")&&agt.has("firefox")){
iL-=7;
}else{
if(lh.has("myworld")&&document.all){
iL+=10;
}
}
}
}
if(iL>=0){
oL.style.left=(iL-1)+"px";
}
oL.style.top=(iT)+"px";
oL.style.zIndex="1000";
if(bF){
if(lh.has("motors")||sAnchorId=="BrowseCategories"&&!lh.has("myworld")){
iframeShim=addLayerShim(oL,12);
}else{
iframeShim=addLayerShim(oL);
}
}else{
if(agt.hasAny("msie","firefox")){
oL.appendChild(iframeShim);
}
}
oSI=getElementById(sContainerLayerId+"-spacer");
if(oSI&&bF){
oSI.width=iLW-12;
}
iMouseOverTimer=setTimeout(VjUtils.hitch(this,"show"),iMouseOverDelay);
}
};
DynamicMenu.prototype.show=function(){
var oA;
with(this){
oA=getAnchor();
if(oA){
oA.className=sAnchorMouseOverClass;
}
toggleVisibility(sContainerLayerId,true);
}
};
DynamicMenu.prototype.startMouseOutTimer=function(){
with(this){
clearTimeout(iMouseOverTimer);
iMouseOutTimer=setTimeout(VjUtils.hitch(this,"close"),iMouseOutDelay);
}
};
DynamicMenu.prototype.close=function(){
var oA;
with(this){
oA=getAnchor();
if(oA){
oA.className=sAnchorMouseOutClass;
}
toggleVisibility(sContainerLayerId,false);
if(iframeShim){
removeLayerShim(getElementById(sContainerLayerId),iframeShim);
}
}
};
DynamicMenu.prototype.clearMouseOutTimer=function(){
clearTimeout(this.iMouseOutTimer);
};
DynamicMenu.prototype.getMenuHtml=function(_29f){
with(this){
var i,j,c,n,h,ipc,html,img="",si,sTemp=".paradise.qa.ebay.com";
si="<img src='http://pics.ebaystatic.com/aw/pics/s.gif' height='1' width='1'  border='0' ";
var _2a1=window[sHandler];
if(!_2a1){
return;
}
var data=_2a1(),items=data[sCollName],l=items.length;
ipc=Math.ceil(l/_29f);
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<_29f;j++){
h+="<td nowrap>";
if(i==0){
h+=si+"><br/>";
img=si+" id='"+sContainerLayerId+"-spacer'>";
}
n=i+(j)*ipc;
c=items[n];
if(c){
if(typeof (c.url)!="undefined"){
h+="<a href='"+(sDomain?c.url.replace(sTemp,sDomain):c.url)+"'>";
h+=c.value;
h+="</a>";
}else{
h+=c.value;
}
}else{
h+="&nbsp;";
}
h+="</td>";
}
h+="</tr>";
}
h+="</table>";
html=h;
if(sTemplate){
html=sTemplate.replace("##1##",h).replace("##2##",img);
}
return html;
}
};
function DynamicMenuMouseOutHandler(psId){
this.id=psId;
}
DynamicMenuMouseOutHandler.prototype.handle=function(_2a4){
oRegistry.get(this.id).startMouseOutTimer();
};
function DynamicMenuClearMouseOutHandler(psId){
this.id=psId;
}
DynamicMenuClearMouseOutHandler.prototype.handle=function(_2a6){
oRegistry.get(this.id).clearMouseOutTimer();
};
function DynamicShowMenuHandler(psId){
this.id=psId;
}
DynamicShowMenuHandler.prototype.handle=function(_2a8){
oRegistry.get(this.id).showDynamicMenu();
};
function DynamicMenuGetOffsetLeft(e){
var l=0,oCl=VjClient.getBrowserObj(),ex=(oCl.bIE||oCl.bSafari),lh=window.location.href;
var bH=(typeof (isHomepage)!="undefined")?isHomepage:false;
if(e.offsetParent){
l=e.offsetLeft;
while(e=e.offsetParent){
if(!e.id.toLowerCase().has("maincontent")&&!e.className.has("pagecontainer")){
l+=e.offsetLeft;
}
if(((e.className.is("pnav")||e.innerHTML.has("snav"))&&ex)&&e.offsetLeft!=0&&(!lh.hasAny("community","sitemap","/help/","/education/","blogs","feedback"))){
return l;
}else{
if((e.className.is("pnav")||e.innerHTML.has("snav"))&&e.offsetLeft!=0&&oCl.bFirefox&&lh.has(".hk")&&(!lh.has("community")&&!bH)){
return l;
}else{
if((e.className.is("pnav")||e.innerHTML.has("snav"))&&e.offsetLeft!=0&&oCl.bIE&&lh.has(".au")&&lh.hasAny("/help/")){
return l;
}
}
}
}
}
return l;
}
function GetContainerDiv(){
var d=document,aa,i,l;
if(d.getElementsByTagName){
aa=d.getElementsByTagName("div");
}else{
if(d.all){
aa=d.all;
}
}
l=aa.length;
for(i=0;i<l;i++){
if(aa[i].className=="gbhdr"){
return aa[i];
}
}
}
DynamicMenu.prototype.addLayerShim=function(node,_2ae,_2af){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
var w=node.offsetWidth,h=node.offsetHeight;
w+=_2ae?_2ae:0;
h+=_2af?_2af:0;
var _2b2=document.createElement("IFRAME");
_2b2.style.width=w+"px";
_2b2.style.height=h+"px";
_2b2.style.filter="chroma(color='white')";
_2b2.frameBorder=0;
_2b2.style.position="absolute";
_2b2.style.left="0px";
_2b2.style.top="0px";
_2b2.style.zIndex="-1";
_2b2.style.filter="Alpha(Opacity=\"0\")";
node.appendChild(_2b2);
return _2b2;
};
DynamicMenu.prototype.removeLayerShim=function(_2b3,_2b4){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
if(_2b4&&_2b4.parentElement){
_2b3.removeChild(_2b4);
}
};
function getOffsetTop(elm){
var _2b7=elm.offsetTop;
var _2b8=elm.offsetParent;
while(_2b8!==null){
_2b7+=_2b8.offsetTop;
_2b8=_2b8.offsetParent;
}
return _2b7;
}
function getOffsetLeft(elm){
var _2ba=elm.offsetLeft;
var _2bb=elm.offsetParent;
while(_2bb!==null){
_2ba+=_2bb.offsetLeft;
_2bb=_2bb.offsetParent;
}
return _2ba;
}
var VjLayerUtils={};
VjLayerUtils.matchColumnHeight=function(_2bc,_2bd,_2be){
var px="px";
var _2c0=document.getElementById(_2bc);
var _2c1=_2c0.offsetHeight;
var _2c2=Math.max(_2c1,_2bd);
for(var i=0;i<_2be.length;i++){
document.getElementById(_2be[i]).style.height=_2c2+px;
}
};
VjLayerUtils.addLayerShim=function(node){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
var _2c6=document.createElement("IFRAME");
_2c6.style.width=node.offsetWidth+"px";
_2c6.style.height=node.offsetHeight+"px";
_2c6.style.filter="chroma(color='white')";
_2c6.frameBorder=0;
_2c6.style.position="absolute";
_2c6.style.left="0px";
_2c6.style.top="0px";
_2c6.style.zIndex="-1";
_2c6.style.filter="Alpha(Opacity=\"0\")";
node.appendChild(_2c6);
return _2c6;
};
VjLayerUtils.removeLayerShim=function(_2c7,_2c8){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
if(_2c8&&_2c8.parentElement){
_2c7.removeChild(_2c8);
}
};
String.prototype.has=function(pStr){
return (this.indexOf(pStr)!=-1);
};
String.prototype.hasArg=function(pArg){
var a=pArg,rv=false;
if(typeof (a)=="string"){
rv=this.has(a);
}else{
var aL=a.length;
for(var j=0;j<aL&&!rv;j++){
rv=this.has(a[j]);
}
}
return rv;
};
String.prototype.hasAny=function(){
var a=arguments,l=a.length,rv=false;
for(var i=0;i<l&&!rv;i++){
rv=this.hasArg(a[i]);
}
return rv;
};
String.prototype.hasAll=function(){
var a=arguments,l=a.length;
for(var i=0;i<l;i++){
if(!this.hasArg(a[i])){
return false;
}
}
return true;
};
String.prototype.is=function(s){
return (this==s);
};
String.prototype.isAny=function(){
var a=arguments,l=a.length,rv=false,aL;
for(var i=0;i<l&&!rv;i++){
if(typeof (a[i])=="string"){
rv=(this==a[i]);
}else{
aL=a[i].length;
for(var j=0;j<aL&&!rv;j++){
rv=(this==a[i][j]);
}
}
}
return rv;
};
function Playground(_2d7,_2d8){
this.sLayerId=_2d7;
this.sHandle=_2d8;
}
Playground.prototype.show=function(){
var oCJ=VjCookieJar,sbf=oCJ.readCookie("ebay","sbf"),pcon=oCJ.getBitFlag(sbf,24),l,h;
var lid=this.sLayerId;
if(pcon){
l=getElementById(lid);
h=window[this.sHandle];
if(h&&l){
l.innerHTML=h();
toggleHideShow(lid,true);
}
}else{
toggleHideShow(lid,false);
}
};
function getElementById(pId){
var elem=null;
var doc=window.document;
if(doc.getElementById){
elem=doc.getElementById(pId);
}else{
if(doc.all){
elem=doc.all(pId);
}
}
return elem;
}
function toggleHideShow(_2de,show){
var elem=getElementById(_2de);
if(elem===null){
return;
}
var vis=elem.style.display;
if(show===undefined){
elem.style.display=(vis==="")?"none":"block";
}else{
elem.style.display=(show)?"block":"none";
}
}
if(typeof VjCookieJar=="undefined"){
VjCookieJar={aCookies:{},sCookieDomain:".ebay.com"};
}
VjCookieJar.Default_Cookie_Format={"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"/","escapedValue":true};
VjCookieJar.DP_Cookie_Format={"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"/","bUseExp":true,"startDelim":"b"};
VjCookieJar.Session_Cookie_Format={"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"=","escapedValue":true,"startDelim":"^"};
VjCookieJar.DS_Cookie_Format={"COOKIELET_DELIMITER":"^","NAME_VALUE_DELIMITER":"/"};
VjCookieJar.sPath="/";
VjCookieJar.aConversionMap={"reg":["dp1","reg"],"recent_vi":["ebay","lvmn"],"ebaysignin":["ebay","sin"],"p":["dp1","p"],"etfc":["dp1","etfc"],"keepmesignin":["dp1","kms"],"ItemList":["ebay","wl"],"BackToList":["s","BIBO_BACK_TO_LIST"]};
VjCookieJar.aFormatMap={"r":VjCookieJar.Default_Cookie_Format,"dp1":VjCookieJar.DP_Cookie_Format,"npii":VjCookieJar.DP_Cookie_Format,"ebay":VjCookieJar.Session_Cookie_Format,"reg":VjCookieJar.Session_Cookie_Format,"apcCookies":VjCookieJar.Session_Cookie_Format,"ds2":VjCookieJar.DS_Cookie_Format};
VjCookieJar.sCOMPAT="10";
VjCookieJar.sCONVER="01";
VjCookieJar.sSTRICT="00";
VjCookieJar.sModesCookie="ebay";
VjCookieJar.sModesCookielet="cv";
VjCookieJar.readCookie=function(_2e2,_2e3){
var rv=this.readCookieObj(_2e2,_2e3).value;
return (rv)?unescape(rv):"";
};
VjCookieJar.createDefaultCookieBean=function(_2e5,_2e6){
var _2e7={};
_2e7.name=_2e5;
_2e7.cookieletname=_2e6;
_2e7.value="";
_2e7.maxage=0;
_2e7.rawcookievalue="";
_2e7.mode="";
return _2e7;
};
VjCookieJar.readCookieObj=function(_2e8,_2e9){
var _2ea=this.createDefaultCookieBean(_2e8,_2e9);
this.update();
this.checkConversionMap(_2ea);
_2ea.rawcookievalue=this.aCookies[_2ea.name];
if(!_2ea.name||!_2ea.rawcookievalue){
_2ea.value="";
}else{
if(!_2ea.cookieletname){
this.readCookieInternal(_2ea);
}else{
this.readCookieletInternal(_2ea);
}
}
return (typeof (_2ea)!="undefined")?_2ea:"";
};
VjCookieJar.checkConversionMap=function(_2eb){
var cmap=this.aConversionMap[_2eb.name];
if(cmap){
_2eb.mode=this.getMode(_2eb.name);
_2eb.name=cmap[0];
_2eb.cookieletname=cmap[1];
}
};
VjCookieJar.readCookieInternal=function(_2ed){
_2ed.value=_2ed.rawcookievalue;
return _2ed;
};
VjCookieJar.readCookieletInternal=function(_2ee){
var clet=this.getCookielet(_2ee.name,_2ee.cookieletname,_2ee.rawcookievalue);
var _2f0=this.getFormat(_2ee.name);
if(clet&&_2f0.bUseExp){
clet=clet.substring(0,clet.length-8);
}
_2ee.value=clet;
if(_2ee.mode==this.sCOMPAT){
_2ee.value=_2ee.rawcookievalue;
}
return _2ee;
};
VjCookieJar.readMultiLineCookie=function(_2f1,_2f2){
if(!_2f1||!_2f2){
return "";
}
var val,r="";
var cmap=this.aConversionMap[_2f1];
if(cmap){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}
if(val){
r=this.getCookielet(_2f1,_2f2,val)||"";
}
return (typeof (r)!="undefined")?r:"";
};
VjCookieJar.writeCookie=function(_2f5,_2f6,_2f7){
var cmap=this.aConversionMap[_2f5];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],_2f6,_2f7);
return;
}
var _2f9=this.getFormat(_2f5);
if(_2f6&&_2f9.escapedValue){
_2f6=escape(_2f6);
}
this.writeRawCookie(_2f5,_2f6,_2f7);
};
VjCookieJar.writeRawCookie=function(_2fa,_2fb,_2fc){
if(_2fa&&(_2fb!==undefined)){
if((isNaN(_2fb)&&_2fb.length<4000)||(_2fb+"").length<4000){
if(typeof _2fc=="number"){
_2fc=this.getExpDate(_2fc);
}
var _2fd=_2fc?new Date(_2fc):new Date(this.getExpDate(730));
var _2fe=this.getFormat(_2fa);
var _2ff=this.sCookieDomain;
var dd=document.domain;
if(!dd.has(_2ff)){
var _301=dd.indexOf(".ebay.");
if(_301>0){
this.sCookieDomain=dd.substring(_301);
}
}
if(document.cookie){
document.cookie=_2fa+"="+(_2fb||"")+((_2fc||_2fe.bUseExp)?"; expires="+_2fd.toGMTString():"")+"; domain="+this.sCookieDomain+"; path="+this.sPath;
}
}
}
};
VjCookieJar.writeCookieEx=function(_302,_303,_304){
this.writeCookie(_302,_303,this.getExpDate(_304));
};
VjCookieJar.writeCookielet=function(_305,_306,_307,_308,_309){
if(_305&&_306){
this.update();
var _30a=this.getFormat(_305);
if(_30a.bUseExp&&_307){
if(typeof _308=="number"){
_308=this.getExpDate(_308);
}
var _30b=_308?new Date(_308):new Date(this.getExpDate(730));
var _30c=Date.UTC(_30b.getUTCFullYear(),_30b.getUTCMonth(),_30b.getUTCDate());
_30c=Math.floor(_30c/1000);
_307+=_30c.dec2Hex();
}
var val=this.createCookieValue(_305,_306,_307);
this.writeRawCookie(_305,val,_309);
}
};
VjCookieJar.writeMultiLineCookie=function(_30e,_30f,_310,_311,_312){
this.update();
var val=this.createCookieValue(_30e,_30f,_310);
if(val){
var cmap=this.aConversionMap[_30e];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],val,_311,_312);
}
}
};
VjCookieJar.getBitFlag=function(_315,_316){
_315=parseInt(_315,10);
var b=_315.toString(2),r=_315?b.charAt(b.length-_316-1):"";
return (r=="1")?1:0;
};
VjCookieJar.setBitFlag=function(_318,_319,_31a){
var b="",p,i,e,l;
_318=parseInt(_318,10);
if(_318){
b=_318.toString(2);
}
l=b.length;
if(l<_319){
e=_319-l;
for(i=0;i<=e;i++){
b="0"+b;
}
}
p=b.length-_319-1;
return parseInt(b.substring(0,p)+_31a+b.substring(p+1),2);
};
VjCookieJar.createCookieValue=function(_31c,_31d,_31e){
var cmap=this.aConversionMap[_31c],format=this.getFormat(_31c),mode=this.getMode(_31c),val;
if(cmap&&(mode==this.sSTRICT||mode==this.sCONVER)){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}else{
val=this.aCookies[_31c]||"";
}
if(format){
var clts=this.getCookieletArray(val,format);
clts[_31d]=_31e;
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 _326=this.getFormat(sC[0]),cv=sC[1],sd=_326.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(_327,_328,_329){
var _32a=this.getFormat(_327);
var clts=this.getCookieletArray(_329,_32a);
return clts[_328]||"";
};
VjCookieJar.getFormat=function(_32c){
return this.aFormatMap[_32c]||VjCookieJar.Default_Cookie_Format;
};
VjCookieJar.getCookieletArray=function(_32d,_32e){
var rv=[],val=_32d||"";
if(_32e.escapedValue){
val=unescape(val);
}
var a=val.split(_32e.COOKIELET_DELIMITER);
for(var i=0;i<a.length;i++){
var idx=a[i].indexOf(_32e.NAME_VALUE_DELIMITER);
if(idx>0){
rv[a[i].substring(0,idx)]=a[i].substring(idx+1);
}
}
return rv;
};
VjCookieJar.getExpDate=function(_333){
var _334;
if(typeof _333=="number"&&_333>=0){
var d=new Date();
d.setTime(d.getTime()+(_333*24*60*60*1000));
_334=d.toGMTString();
}
return _334;
};
VjCookieJar.getMode=function(_336){
var h=this.readCookieObj(this.sModesCookie,this.sModesCookielet).value,b;
if(!(_336 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(_336==o){
return (f.length==1)?"0"+f:f;
}
i++;
}
return null;
}
};
function getPlaygroundHtml(){
return "<div class=\"playgrnd\"><span class=\"g-nav caption\"><img src=\"http://pics.ebaystatic.com/aw/pics/feedback/playground/imgbouncingball.gif\" height=\"16\" width=\"20\"><a href=\"http://playground.ebay.com/?enterPlayground=true\">You're on the Playground</a><span class=\"pipe\"> | </span></span><span class=\"g-nav\"><a href=\"http://playground.ebay.com/FAQs\">About the Playground</a><span class=\"pipe\"> | </span><a href=\"http://survey.ebay.com/survey/ebay/eby07042\">Give us your opinion</a><span class=\"pipe\"> | </span><a href=\"http://playground.ebay.com/?enterEbay=true\">Go to the regular eBay site</a></span></div>";
}
VjURL={};
VjURL.addArg=function(_33a,_33b,_33c){
if(_33a==null||_33a==undefined){
return null;
}
if(_33a.indexOf("?")<0){
_33a+="?"+_33b+"="+_33c;
return _33a;
}
var _33d=this.getArgPairIfExists(_33a,_33b);
if(_33d!==null){
_33a.replace(_33d,_33b+"="+_33c);
}else{
_33a+="&"+_33b+"="+_33c;
}
return _33a;
};
VjURL.getArg=function(_33e,_33f){
if(_33e==null||_33e==undefined){
return null;
}
if(_33e.indexOf("?")<0){
return null;
}
var _340=this.getArgPairIfExists(_33e,_33f);
if(_340!==null){
return _340.substring(_340.indexOf("=")+1);
}
return null;
};
VjURL.getArgPairIfExists=function(_341,_342){
var _343=_341.indexOf("?");
if(_343<0){
return null;
}
var _344=_341;
var _345,argName;
while(_343>=0){
_344=_344.substring(_343+1);
_345=_344;
_343=_344.indexOf("&");
if(_343>=0){
_345=_344.substring(0,_343);
}
argName=_345.substring(0,_345.indexOf("="));
if(argName==_342){
return _345;
}
}
return null;
};
function TrackingModuleEnabler(_346,_347){
this.sCid=_346;
this.sCidParms=_347;
}
TrackingModuleEnabler.prototype.rewriteUrl=function(_348){
if(_348.nativeEvent==null||_348.nativeEvent==undefined){
return;
}
var elem=_348.nativeEvent.srcElement||_348.nativeEvent.target;
if(elem==null||elem==undefined){
return;
}
elem=this.getAnchor(elem);
if(this.sCidParms&&elem){
elem.href=VjURL.addArg(elem.href,this.sCid,this.sCidParms);
}
};
TrackingModuleEnabler.prototype.handle=function(_34a){
this.rewriteUrl(_34a);
};
TrackingModuleEnabler.prototype.getAnchor=function(_34b){
var e=_34b;
if(e&&e.tagName){
if(!e.tagName.is("A")){
e=this.getAnchor(e.parentNode);
}
return e;
}
};
var dsf_debug=true;
function dsf_EventDispatcher(){
this.eventHandlers=Object();
this.fCustomLoad={};
}
dsf_EventDispatcher.prototype.process=function(_34d,_34e){
var _34f=this.eventHandlers[_34d];
if(!_34f){
return true;
}
var _350=_34f[_34e.eventType];
if(!_350){
return true;
}
var _351=true;
for(var i=0;i<_350.length;i++){
var _353=_350[i].handle(_34e);
if(_353&&_353.objType=="dsf_Message"){
if(typeof (svcEngine)!="undefined"&&svcEngine.handleRequest(_353)===false){
_351=false;
}
}else{
if(_353===false){
_351=false;
}
}
}
return _351;
};
dsf_EventDispatcher.prototype.register=function(id,_355,_356){
var _357=id;
if(!this.eventHandlers[_357]){
this.eventHandlers[_357]=[];
}
var _358=this.eventHandlers[_357];
if(!_358[_355]){
_358[_355]=[];
}
var _359=_358[_355];
_359[_359.length]=_356;
};
dsf_EventDispatcher.prototype.attachHandlerToElement=function(id,_35b,_35c){
eventDispatcher.register(id,_35b,_35c);
var _35d=document.getElementById(id);
if(id=="body"){
_35d=document.body;
if(_35b=="onload"||_35b=="onunload"){
if(_35d.vjLoadSet){
return this;
}else{
_35d.vjLoadSet=true;
var _35e=window[_35b]||"";
if(_35e){
this.fCustomLoad[_35b]=_35e;
}
}
window[_35b]=function(){
if(typeof eventDispatcher.fCustomLoad[_35b]=="function"){
eventDispatcher.fCustomLoad[_35b]();
}
eventDispatcher[_35b](document.body);
eventDispatcher.fCustomLoad={};
};
return this;
}
}
if(_35d){
_35d[_35b]=function(_35f){
return eventDispatcher[_35b](this,_35f||window.event);
};
}
return this;
};
dsf_EventDispatcher.prototype.detachHandlers=function(id,_361){
var _362=id;
if(!this.eventHandlers[_362]){
return;
}
var _363=this.eventHandlers[_362];
if(_363[_361]){
_363[_361]=[];
}
var _364=document.getElementById(id);
if(id=="body"){
_364=document.body;
if(_361=="onload"||_361=="onunload"||_361=="onclick"){
window[_361]=null;
}
}
if(_364){
_364[_361]=null;
}
};
function dsf_Event(src,_366,_367){
this.src=src;
this.eventType=_366;
this.nativeEvent=_367;
}
function dsf_SvcConfig(_368,url){
this.url=url;
this.method=_368;
this.reqtMarshalling="raw";
this.respMarshalling="raw";
}
function dsf_Message(_36a){
this.objType="dsf_Message";
this.svcId=_36a;
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 _36d=id;
if(_36d===null||!_36d){
_36d=src.id;
}
return _36d;
};
dsf_EventDispatcher.prototype.getBodyId=function(src,id){
var _370=this.getId(src,id);
if(!_370){
_370="body";
}
return _370;
};
dsf_EventDispatcher.prototype.onload=function(src,_372){
return this.process(this.getBodyId(src),new dsf_Event(src,"onload",_372));
};
dsf_EventDispatcher.prototype.onunload=function(src,_374){
return this.process(this.getBodyId(src),new dsf_Event(src,"onunload",_374));
};
dsf_EventDispatcher.prototype.onchange=function(src,_376){
return this.process(this.getId(src),new dsf_Event(src,"onchange",_376));
};
dsf_EventDispatcher.prototype.onsubmit=function(src,_378){
return this.process(this.getId(src),new dsf_Event(src,"onsubmit",_378));
};
dsf_EventDispatcher.prototype.onreset=function(src,_37a){
return this.process(this.getId(src),new dsf_Event(src,"onreset",_37a));
};
dsf_EventDispatcher.prototype.onselect=function(src,_37c){
return this.process(this.getId(src),new dsf_Event(src,"onselect",_37c));
};
dsf_EventDispatcher.prototype.onblur=function(src,_37e){
return this.process(this.getId(src),new dsf_Event(src,"onblur",_37e));
};
dsf_EventDispatcher.prototype.onfocus=function(src,_380){
return this.process(this.getId(src),new dsf_Event(src,"onfocus",_380));
};
dsf_EventDispatcher.prototype.onkeydown=function(src,_382){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeydown",_382));
};
dsf_EventDispatcher.prototype.onkeypress=function(src,_384){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeypress",_384));
};
dsf_EventDispatcher.prototype.onkeyup=function(src,_386){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeyup",_386));
};
dsf_EventDispatcher.prototype.onclick=function(src,_388){
return this.process(this.getBodyId(src),new dsf_Event(src,"onclick",_388));
};
dsf_EventDispatcher.prototype.ondblclick=function(src,_38a){
return this.process(this.getBodyId(src),new dsf_Event(src,"ondblclick",_38a));
};
dsf_EventDispatcher.prototype.onmousedown=function(src,_38c){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmousedown",_38c));
};
dsf_EventDispatcher.prototype.onmousemove=function(src,_38e){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmousemove",_38e));
};
dsf_EventDispatcher.prototype.onmouseout=function(src,_390){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseout",_390));
};
dsf_EventDispatcher.prototype.onmouseover=function(src,_392){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseover",_392));
};
dsf_EventDispatcher.prototype.onmouseup=function(src,_394){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseup",_394));
};
function dsf_EventHandler(_395){
this.eventTypes=_395;
this.srcId="";
}
dsf_EventHandler.prototype.handle=function(_396){
if(this.handleEvent===null){
alert("all derived event handlers need to have a handleEvent method");
}
var _397=this.handleEvent(_396);
if(_397===null){
return true;
}
};
dsf_EventHandler.prototype.attachTo=function(id){
eventDispatcher.register(this,id);
var _399=this.eventTypes;
var _39a=document.getElementById(id);
for(var i=0;i<_399.length;i++){
var _39c=_399[i];
if(_39a[_39c]!==null){
continue;
}
_39a[_39c]=function(){
return eventDispatcher[_39c](this);
};
}
return this;
};
var eventDispatcher;
if(typeof (eventDispatcher)=="undefined"){
eventDispatcher=new dsf_EventDispatcher();
}
function FooterTrk(){
}
FooterTrk.prototype.handle=function(_39d){
eventDispatcher.attachHandlerToElement("glbfooter","onclick",new TrackingModuleEnabler("_trksid","m40"));
};
function VjComponentRegistry(){
this.controls=[];
}
VjComponentRegistry.prototype.put=function(_39e,_39f){
this.controls[_39e]=_39f;
};
VjComponentRegistry.prototype.get=function(_3a0){
return this.controls[_3a0];
};
VjComponentRegistry.prototype.dump=function(){
var _3a1=this.controls;
var _3a2="controls on page:\n";
for(var i in _3a1){
_3a2+="key = "+i;
_3a2+="controlName = "+_3a1[i].objtype;
_3a2+="\n";
}
return _3a2;
};
var oRegistry;
if(typeof (oRegistry)=="undefined"){
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>"}]};
}
function NavMenuBind(){
}
NavMenuBind.prototype.handle=function(_3a4){
eventDispatcher.attachHandlerToElement("Buy-menu","onmouseout",new DynamicMenuMouseOutHandler("BuyMenu"));
eventDispatcher.attachHandlerToElement("Buy-menu","onmouseover",new DynamicMenuClearMouseOutHandler("BuyMenu"));
eventDispatcher.attachHandlerToElement("Buy","onmouseover",new DynamicShowMenuHandler("BuyMenu"));
eventDispatcher.attachHandlerToElement("Buy","onmouseout",new DynamicMenuMouseOutHandler("BuyMenu"));
eventDispatcher.attachHandlerToElement("Sell-menu","onmouseout",new DynamicMenuMouseOutHandler("SellMenu"));
eventDispatcher.attachHandlerToElement("Sell-menu","onmouseover",new DynamicMenuClearMouseOutHandler("SellMenu"));
eventDispatcher.attachHandlerToElement("Sell","onmouseover",new DynamicShowMenuHandler("SellMenu"));
eventDispatcher.attachHandlerToElement("Sell","onmouseout",new DynamicMenuMouseOutHandler("SellMenu"));
eventDispatcher.attachHandlerToElement("MyEbay-menu","onmouseout",new DynamicMenuMouseOutHandler("MyEbayMenu"));
eventDispatcher.attachHandlerToElement("MyEbay-menu","onmouseover",new DynamicMenuClearMouseOutHandler("MyEbayMenu"));
eventDispatcher.attachHandlerToElement("MyEbay","onmouseover",new DynamicShowMenuHandler("MyEbayMenu"));
eventDispatcher.attachHandlerToElement("MyEbay","onmouseout",new DynamicMenuMouseOutHandler("MyEbayMenu"));
eventDispatcher.attachHandlerToElement("Community-menu","onmouseout",new DynamicMenuMouseOutHandler("CommunityMenu"));
eventDispatcher.attachHandlerToElement("Community-menu","onmouseover",new DynamicMenuClearMouseOutHandler("CommunityMenu"));
eventDispatcher.attachHandlerToElement("Community","onmouseover",new DynamicShowMenuHandler("CommunityMenu"));
eventDispatcher.attachHandlerToElement("Community","onmouseout",new DynamicMenuMouseOutHandler("CommunityMenu"));
eventDispatcher.attachHandlerToElement("Help-menu","onmouseout",new DynamicMenuMouseOutHandler("HelpMenu"));
eventDispatcher.attachHandlerToElement("Help-menu","onmouseover",new DynamicMenuClearMouseOutHandler("HelpMenu"));
eventDispatcher.attachHandlerToElement("Help","onmouseover",new DynamicShowMenuHandler("HelpMenu"));
eventDispatcher.attachHandlerToElement("Help","onmouseout",new DynamicMenuMouseOutHandler("HelpMenu"));
};
function SecNavMenuBind(){
}
SecNavMenuBind.prototype.handle=function(_3a5){
eventDispatcher.attachHandlerToElement("BrowseCategories-menu","onmouseout",new DynamicMenuMouseOutHandler("BrowseCategoriesMenu"));
eventDispatcher.attachHandlerToElement("BrowseCategories-menu","onmouseover",new DynamicMenuClearMouseOutHandler("BrowseCategoriesMenu"));
eventDispatcher.attachHandlerToElement("BrowseCategories","onmouseover",new DynamicShowMenuHandler("BrowseCategoriesMenu"));
eventDispatcher.attachHandlerToElement("BrowseCategories","onmouseout",new DynamicMenuMouseOutHandler("BrowseCategoriesMenu"));
};
function DynamicDropdown(_3a6,_3a7,_3a8,_3a9){
this.sDropdownId=_3a6;
this.sHandler=_3a7;
this.sCollName=_3a8;
this.iCondNo=_3a9;
}
DynamicDropdown.prototype.fill=function(){
var e,h,d,col,i,l,c,b=false;
with(this){
e=getElementById(sDropdownId);
if(e){
if(iCondNo==-1||e.options.length<=iCondNo){
h=window[sHandler];
if(!h){
return;
}
d=h(),col=d[sCollName],l=col.length;
for(i=0;i<l;i++){
c=col[i];
createOption(e,c.id,c.value);
}
}
}
}
};
DynamicDropdown.prototype.createOption=function(_3ab,_3ac,_3ad){
var e=_3ab;
if(e){
var o=new Option(_3ad,_3ac,false,false),os;
os=e.options;
os[os.length]=o;
}
};
function DynDropHandler_category0(){
}
DynDropHandler_category0.prototype.handle=function(_3b0){
oRegistry.get("category0").fill();
};
eventDispatcher.attachHandlerToElement("body","onload",new DynDropHandler_category0());
function HeaderTrk(){
}
HeaderTrk.prototype.handle=function(_3b1){
eventDispatcher.attachHandlerToElement("BrowseCategories-menu","onclick",new TrackingModuleEnabler("_trksid","m37"));
eventDispatcher.attachHandlerToElement("gnheader","onclick",new TrackingModuleEnabler("_trksid","m37"));
};
function VjGreetingsServerOnClick(pUrl,_3b3){
var elem=_3b3.srcElement||_3b3.target;
if(elem){
elem.href=VjURL.addArg(pUrl,"ru",escape(document.location.href));
}
}
function getElementById(pId){
var elem=null;
var doc=window.document;
if(doc.getElementById){
elem=doc.getElementById(pId);
}else{
if(doc.all){
elem=doc.all(pId);
}
}
return elem;
}
String.prototype.replaceToken=function(pStr,_3b9,_3ba){
var rv=pStr;
while(rv.has(_3b9)){
rv=rv.replace(_3b9,_3ba);
}
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(_3be){
var rv=this,re,tkn,a=arguments,l=a.length;
for(var i=1;i<l+1;i++){
rv=this.replaceToken(rv,_3be.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(_3ce,show){
var elem=getElementById(_3ce);
if(elem===null){
return;
}
var vis=elem.style.display;
if(show===undefined){
elem.style.display=(vis==="")?"none":"block";
}else{
elem.style.display=(show)?"block":"none";
}
}
function ExpressCrossLinking(_3d2,_3d3,_3d4,_3d5,_3d6,_3d7,_3d8){
this.sLayerId=_3d2;
this.sCloseAnchorId=_3d3;
this.sCartCountText=_3d4;
this.aHostCoutryId=_3d5;
this.aHostCountryDomain=_3d6;
this.aHideOnParams=_3d7;
this.sHtmlProvider=_3d8;
}
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(_3db,_3dc){
var sh1=_3db.toLowerCase(),sh2=_3dc.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 _3de=this.aHideOnParams;
var iLen=_3de.length;
for(var i=0;i<iLen;i++){
if(document.location.href.has(_3de[i])){
return true;
}
}
}
return false;
};
ExpressCrossLinking.prototype.init=function(){
if(this.hideOnParams()){
return;
}
var oD=document,oCJ=VjCookieJar,sh="",l=this.sLayerId;
if(sh=this.getHost()){
var oL=getElementById(l),ct=oCJ.readCookie("dp1","exc")||"",sc="",lh=oD.location.host;
ct=ct.split(".")[2];
lh=lh.substring(lh.indexOf(".")+1);
if(ct&&ct!="0"&&this.compareHost(lh,sh)){
sc=this.sCartCountText.replaceTokensEx("##n##",ct);
}
if(oL){
var _3e3=window[this.sHtmlProvider];
if(!_3e3){
return;
}
oL.innerHTML=_3e3().replaceTokensEx("##n##",sh,sc);
toggleHideShow(l,true);
var oCL=getElementById(this.sCloseAnchorId);
if(oCL){
oCL.onclick=VjUtils.hitch(this,"close");
}
}
}
};
ExpressCrossLinking.prototype.getHostById=function(psId){
var ids=this.aHostCoutryId,i,ind=-1,o="";
for(i=0;i<ids.length;i++){
if(psId==ids[i]){
ind=i;
break;
}
}
if(ind!=-1){
o=this.aHostCountryDomain[ind];
}
return o;
};
ExpressCrossLinking.prototype.close=function(){
toggleHideShow(this.sLayerId,false);
VjCookieJar.writeCookielet("ebay","ecs","-1");
return false;
};
oRegistry.put("expressCompId",new ExpressCrossLinking("divCrossLink","b_close","(##1##)",new Array("0","1","77","3"),new Array("ebay.com","ebay.com","ebay.de","ebay.co.uk"),new Array("from=R44","fromZR44"),"get_expCrossLink_data"));
eventDispatcher.attachHandlerToElement("body","onload",new ExpressHandler());
function get_expCrossLink_data(){
return "<table class=\"clTable\" align=\"center\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#EDF9FF\"><tr valign=\"middle\"><td width=\"36\" class=\"clCell\"><img src=\"http://pics.ebaystatic.com/aw/pics/icon/iconInfo_16x16.gif\" height=\"16\" width=\"16\" align=\"middle\"></td><td width=\"80%\" nowrap=\"nowrap\" class=\"clMsg\">You've left eBay Express.</td><td align=\"left\" nowrap=\"nowrap\"><a href=\"http://www.express.##1##/\">Shop again on eBay Express</a><span class=\"clSep\">|</span><img src=\"http://pics.ebaystatic.com/aw/pics/express/icons/iconCart_15x10.gif\" height=\"10\" width=\"15\" align=\"bottom\" alt=\"\"><a href=\"http://cart.express.##1##/ws/eBayISAPI.dll?ExpressCart&amp;action.view=&amp;from=Header\">Shopping Cart##2##</a></td><td width=\"135\" nowrap=\"nowrap\" class=\"clLogo\"><img src=\"http://pics.ebaystatic.com/aw/pics/express/logos/logoExpress_95x39.gif\" height=\"39\" width=\"95\" align=\"top\" alt=\"\"></td><td nowrap=\"nowrap\" width=\"26\" align=\"left\"><a href=\"#1\" id=\"b_close\"><img src=\"http://pics.ebaystatic.com/aw/pics/buttons/btnExpressClose.gif\" height=\"16\" width=\"16\" align=\"middle\" border=\"0\" alt=\"\"></a></td></tr></table>";
}
var VjActiveX={};
VjActiveX.init=function(){
var oC=VjClient.getBrowserObj();
if(oC.bIE){
var d=document;
dw=function(s){
d.writeln(s);
};
dw("<scr"+"ipt language=\"vbscript\" type=\"text/vbscript\">");
dw("\tFunction vbCheckActiveXControl (pActXName)");
dw("\t\taX = false");
dw("\t\ton error resume next");
dw("\t\taX = IsObject(CreateObject(pActXName))");
dw("\t\tvbCheckActiveXControl = aX");
dw("End Function");
dw("</scr"+"ipt>");
}
};
VjActiveX.isLibLoaded=function(_3ea){
var oC=VjClient.getBrowserObj();
return oC.bIE&&!oC.bMac&&vbCheckActiveXControl(_3ea);
};
VjActiveX.init();
var VjEbayToolbarDetect={};
VjEbayToolbarDetect.isEnabled=function(){
var V1="eBayToolbar.Helper",V2="eBayToolbarCommLib.IWebEvent.1";
with(this){
var oC=VjClient.getBrowserObj(),oAx=VjActiveX;
return (!(oC.bMac||oC.bMacppc)||!oC.bIE)&&(oAx.isLibLoaded(V1)||oAx.isLibLoaded(V2));
}
};
VjUtils={};
VjUtils.isString=function(wh){
return (typeof wh=="string");
};
VjUtils.hitch=function(_3ef,_3f0){
var fcn;
if(VjUtils.isString(_3f0)){
fcn=_3ef[_3f0];
}else{
fcn=_3f0;
}
return function(){
return fcn.apply(_3ef,arguments);
};
};
VjUtils.extend=function(_3f2,_3f3){
function inheritance(){
}
inheritance.prototype=_3f3.prototype;
_3f2.prototype=new inheritance();
_3f2.prototype.constructor=_3f2;
_3f2.baseConstructor=_3f3;
_3f2.superClass=_3f3.prototype;
};
function BuyerTransactionAlert(pId,_3f5,_3f6,_3f7,_3f8,_3f9,_3fa,_3fb,_3fc,_3fd,_3fe){
this.sId=pId;
this.iPollingInterval=_3f5;
this.iMaxHits=_3f6;
this.iHitTimeout=_3f7;
this.iServerHits=0;
this.sLastCookieletValue="";
this.sServerUrl=_3f8;
if(document.location.protocol.has("https")){
_3f9=_3f9.replace("http://pics.","https://securepics.");
}
this.sImgServer=_3f9+"/";
this.sViewItemUrl=_3fa;
this.aAlertInfo=[["h:h:alt:2",_3fc,"icon/iconOutbid_16x16.gif"],["h:h:alt:3",_3fb,"icon/iconWatchB_16x16.gif"],["h:h:alt:4",_3fc,"icon/iconOutbid_16x16.gif"],["h:h:alt:5",_3fd,"icon/iconchanceBlu_16x16.gif"],["h:h:alt:tcr",_3fe,"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,_401){
var oL=this.oL;
if(oL){
if(pVal.is("")&&!oL.ctrld){
return;
}
if(_401){
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 _40a=cfg[at-1],imgSrv=this.sImgServer;
var _40b=imgSrv+"s.gif";
var _40c="<img src=\""+_40b+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">|<img src=\""+_40b+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">";
_40c+="<img src=\""+imgSrv+_40a[2]+"?t\" style=\"vertical-align:middle\"><img src=\""+_40b+"\" width=\"5\" height=\"16\" style=\"vertical-align:middle\">";
var url=this.sViewItemUrl+"&item="+ii;
_40c+="<a href=\""+url+"&ssPageName="+_40a[0]+"\">"+_40a[1]+"</a>";
this.setValue(_40c);
this.sLastCookieletValue=c;
}
this.fireRefreshEvent();
};
BuyerTransactionAlert.prototype.fireRefreshEvent=function(_40e){
if(!_40e){
_40e=this.iPollingInterval;
}
window.setTimeout(VjUtils.hitch(this,this.onRefresh),_40e*1000);
};
BuyerTransactionAlert.prototype.onCookieExpire=function(){
var _40f=VjCookieJar.readCookie("ebaysignin");
if(!_40f.has("in")){
return;
}
if(document.location.href.has("https:")){
return;
}
if(this.iServerHits<this.iMaxHits){
this.iServerHits++;
var ct=new Date();
ct=ct.getTime();
this.setValue("<img height=\"1\" width=\"1\" src=\""+this.sServerUrl+"&clientTime="+ct+"\" style=\"visibility:hidden;vertical-align:middle\">");
this.fireRefreshEvent(this.iHitTimeout);
}else{
this.setValue("");
VjCookieJar.writeCookielet("ebay","a2p","1111111101111111111.");
}
};
function toggleVisibility(_411,show){
var elem=getElementById(_411);
if(elem===null){
return;
}
var vis=elem.style.visibility;
if(show===undefined){
elem.style.visibility=(vis==="")?"hidden":"";
}else{
elem.style.visibility=(show)?"":"hidden";
}
}
eventDispatcher.attachHandlerToElement("body","onload",new FooterTrk());
oRegistry.put("BuyMenu",new DynamicMenu("Buy","Buy-menu","dynMenuCtr",75,250,900,800,1,1,1,5,1,0,"get_Buy_menu","items","","","","",""));
oRegistry.put("SellMenu",new DynamicMenu("Sell","Sell-menu","dynMenuCtr",75,250,900,800,1,1,1,1,1,0,"get_Sell_menu","items","","","","",""));
oRegistry.put("MyEbayMenu",new DynamicMenu("MyEbay","MyEbay-menu","dynMenuCtr",75,250,900,800,1,1,1,1,1,0,"get_MyEbay_menu","items","","","","",""));
oRegistry.put("CommunityMenu",new DynamicMenu("Community","Community-menu","dynMenuCtr",75,250,900,800,1,1,1,1,1,0,"get_Community_menu","items","","","","",""));
oRegistry.put("HelpMenu",new DynamicMenu("Help","Help-menu","dynMenuCtr",75,250,900,800,1,1,1,1,1,0,"get_Help_menu","items","","","","",""));
eventDispatcher.attachHandlerToElement("body","onload",new NavMenuBind());
oRegistry.put("BrowseCategoriesMenu",new DynamicMenu("BrowseCategories","BrowseCategories-menu","dynMenuCtr",75,250,900,800,3,3,3,-10,7,0,"getBrowseCategoriesData","items","100%","","","",".ebay.com"));
eventDispatcher.attachHandlerToElement("body","onload",new SecNavMenuBind());
oRegistry.put("category0",new DynamicDropdown("category0","getBrowseCategoriesData","items",1));
eventDispatcher.attachHandlerToElement("body","onload",new HeaderTrk());

// en_US_MAIN/e521/GlobalNav_Ebay_e5214945786_1_en_US_MAIN
// b=4945786