String.prototype.has=function(_1){
return (this.indexOf(_1)!=-1);
};
String.prototype.hasArg=function(_2){
var a=_2,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(_e,_f){
_e=_e?_e:0;
d=_f?_f:new Date();
var _10=d.getTime();
var _11=d.getTimezoneOffset()*60000;
var utc=_10+_11;
return new Date(utc+(3600000*_e));
};
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(_13,_14){
var rv=this.readCookieObj(_13,_14).value;
return (rv)?unescape(rv):"";
};
VjCookieJar.createDefaultCookieBean=function(_16,_17){
var _18={};
_18.name=_16;
_18.cookieletname=_17;
_18.value="";
_18.maxage=0;
_18.rawcookievalue="";
_18.mode="";
return _18;
};
VjCookieJar.readCookieObj=function(_19,_1a){
var _1b=this.createDefaultCookieBean(_19,_1a);
this.update();
this.checkConversionMap(_1b);
_1b.rawcookievalue=this.aCookies[_1b.name];
if(!_1b.name||!_1b.rawcookievalue){
_1b.value="";
}else{
if(!_1b.cookieletname){
this.readCookieInternal(_1b);
}else{
this.readCookieletInternal(_1b);
}
}
return (typeof (_1b)!="undefined")?_1b:"";
};
VjCookieJar.checkConversionMap=function(_1c){
var _1d=this.aConversionMap[_1c.name];
if(_1d){
_1c.mode=this.getMode(_1c.name);
_1c.name=_1d[0];
_1c.cookieletname=_1d[1];
}
};
VjCookieJar.readCookieInternal=function(_1e){
_1e.value=_1e.rawcookievalue;
return _1e;
};
VjCookieJar.readCookieletInternal=function(_1f){
var _20=this.getCookielet(_1f.name,_1f.cookieletname,_1f.rawcookievalue);
var _21=this.getFormat(_1f.name);
if(_20&&_21.bUseExp){
_20=_20.substring(0,_20.length-8);
}
_1f.value=_20;
if(_1f.mode==this.sCOMPAT){
_1f.value=_1f.rawcookievalue;
}
return _1f;
};
VjCookieJar.readMultiLineCookie=function(_22,_23){
if(!_22||!_23){
return "";
}
var val,r="";
var _25=this.aConversionMap[_22];
if(_25){
val=this.readCookieObj(_25[0],_25[1]).value||"";
}
if(val){
r=this.getCookielet(_22,_23,val)||"";
}
return (typeof (r)!="undefined")?r:"";
};
VjCookieJar.writeCookie=function(_26,_27,_28){
var _29=this.aConversionMap[_26];
if(_29){
this.writeCookielet(_29[0],_29[1],_27,_28);
return;
}
var _2a=this.getFormat(_26);
if(_27&&_2a.escapedValue){
_27=escape(_27);
}
this.writeRawCookie(_26,_27,_28);
};
VjCookieJar.writeRawCookie=function(_2b,_2c,_2d){
if(_2b&&(_2c!==undefined)){
if((isNaN(_2c)&&_2c.length<4000)||(_2c+"").length<4000){
if(typeof _2d=="number"){
_2d=this.getExpDate(_2d);
}
var _2e=_2d?new Date(_2d):new Date(this.getExpDate(730));
var _2f=this.getFormat(_2b);
var _30=this.sCookieDomain;
var dd=document.domain;
if(!dd.has(_30)){
var _32=dd.indexOf(".ebay.");
if(_32>0){
this.sCookieDomain=dd.substring(_32);
}
}
if(document.cookie){
document.cookie=_2b+"="+(_2c||"")+((_2d||_2f.bUseExp)?"; expires="+_2e.toGMTString():"")+"; domain="+this.sCookieDomain+"; path="+this.sPath;
}
}
}
};
VjCookieJar.writeCookieEx=function(_33,_34,_35){
this.writeCookie(_33,_34,this.getExpDate(_35));
};
VjCookieJar.writeCookielet=function(_36,_37,_38,_39,_3a){
if(_36&&_37){
this.update();
var _3b=this.getFormat(_36);
if(_3b.bUseExp&&_38){
if(typeof _39=="number"){
_39=this.getExpDate(_39);
}
var _3c=_39?new Date(_39):new Date(this.getExpDate(730));
var _3d=Date.UTC(_3c.getUTCFullYear(),_3c.getUTCMonth(),_3c.getUTCDate());
_3d=Math.floor(_3d/1000);
_38+=_3d.dec2Hex();
}
var val=this.createCookieValue(_36,_37,_38);
this.writeRawCookie(_36,val,_3a);
}
};
VjCookieJar.writeMultiLineCookie=function(_3f,_40,_41,_42,_43){
this.update();
var val=this.createCookieValue(_3f,_40,_41);
if(val){
var _45=this.aConversionMap[_3f];
if(_45){
this.writeCookielet(_45[0],_45[1],val,_42,_43);
}
}
};
VjCookieJar.getBitFlag=function(_46,_47){
_46=parseInt(_46,10);
var b=_46.toString(2),r=_46?b.charAt(b.length-_47-1):"";
return (r=="1")?1:0;
};
VjCookieJar.setBitFlag=function(_49,_4a,_4b){
var b="",p,i,e,l;
_49=parseInt(_49,10);
if(_49){
b=_49.toString(2);
}
l=b.length;
if(l<_4a){
e=_4a-l;
for(i=0;i<=e;i++){
b="0"+b;
}
}
p=b.length-_4a-1;
return parseInt(b.substring(0,p)+_4b+b.substring(p+1),2);
};
VjCookieJar.createCookieValue=function(_4d,_4e,_4f){
var _50=this.aConversionMap[_4d],format=this.getFormat(_4d),mode=this.getMode(_4d),val;
if(_50&&(mode==this.sSTRICT||mode==this.sCONVER)){
val=this.readCookieObj(_50[0],_50[1]).value||"";
}else{
val=this.aCookies[_4d]||"";
}
if(format){
var _51=this.getCookieletArray(val,format);
_51[_4e]=_4f;
var str="";
for(var i in _51){
if(_51[i]){
str+=i+format.NAME_VALUE_DELIMITER+_51[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 _57=this.getFormat(sC[0]),cv=sC[1],sd=_57.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(_58,_59,_5a){
var _5b=this.getFormat(_58);
var _5c=this.getCookieletArray(_5a,_5b);
return _5c[_59]||"";
};
VjCookieJar.getFormat=function(_5d){
return this.aFormatMap[_5d]||VjCookieJar.Default_Cookie_Format;
};
VjCookieJar.getCookieletArray=function(_5e,_5f){
var rv=[],val=_5e||"";
if(_5f.escapedValue){
val=unescape(val);
}
var a=val.split(_5f.COOKIELET_DELIMITER);
for(var i=0;i<a.length;i++){
var idx=a[i].indexOf(_5f.NAME_VALUE_DELIMITER);
if(idx>0){
rv[a[i].substring(0,idx)]=a[i].substring(idx+1);
}
}
return rv;
};
VjCookieJar.getExpDate=function(_64){
var _65;
if(typeof _64=="number"&&_64>=0){
var d=new Date();
d.setTime(d.getTime()+(_64*24*60*60*1000));
_65=d.toGMTString();
}
return _65;
};
VjCookieJar.getMode=function(_67){
var h=this.readCookieObj(this.sModesCookie,this.sModesCookielet).value,b;
if(!(_67 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(_67==o){
return (f.length==1)?"0"+f:f;
}
i++;
}
return null;
}
};
VjUtils={};
VjUtils.isString=function(wh){
return (typeof wh=="string");
};
VjUtils.hitch=function(_6c,_6d){
var fcn;
if(VjUtils.isString(_6d)){
fcn=_6c[_6d];
}else{
fcn=_6d;
}
return function(){
return fcn.apply(_6c,arguments);
};
};
VjUtils.extend=function(_6f,_70){
function inheritance(){
}
inheritance.prototype=_70.prototype;
_6f.prototype=new inheritance();
_6f.prototype.constructor=_6f;
_6f.baseConstructor=_70;
_6f.superClass=_70.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 _77=0,scrOfY=0;
if(typeof (window.pageYOffset)=="number"){
scrOfY=window.pageYOffset;
_77=window.pageXOffset;
}else{
if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){
scrOfY=document.body.scrollTop;
_77=document.body.scrollLeft;
}else{
if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){
scrOfY=document.documentElement.scrollTop;
_77=document.documentElement.scrollLeft;
}
}
}
return [_77,scrOfY];
};
function ExpressHandler(){
}
ExpressHandler.prototype.handle=function(_78){
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=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(_7a){
oRegistry.get("bta").onRefresh();
};
function DynamicMenu(_7b,_7c,_7d,_7e,_7f,_80,_81,_82,_83,_84,_85,_86,_87,_88,_89,_8a,_8b,_8c,_8d,_8e){
this.iMouseOutTimer=null;
this.iMouseOverTimer=null;
this.iLeftPadding=_85;
this.iTopPadding=_86;
this.iRightPadding=_87;
this.sAnchorId=_7b;
this.sContainerLayerId=_7c;
this.sContentLayerId=_7d;
this.iMouseOutDelay=_7e;
this.iMouseOverDelay=_7f;
this.iHighResDocWidth=_80;
this.iLowResDocWidth=_81;
this.iHighResColumns=_82;
this.iMediumResColumns=_83;
this.iLowResColumns=_84;
this.sHandler=_88;
this.sCollName=_89;
this.sWidth=_8a;
this.sAnchorMouseOverClass=_8b;
this.sAnchorMouseOutClass=_8c;
this.iframeShim=null;
this.sHTML=null;
this.oAnchor=null;
this.sTemplate=null;
this.sAnchorText=_8d;
this.sDomain=_8e;
this.getAnchor=function(){
with(this){
if(oAnchor==null){
var oCl=VjClient.getBrowserObj(),a=getElementById(sAnchorId),t=sAnchorText;
if(t){
(oCl.bFirefox)?a.textContent=t:a.innerText=t;
}
oAnchor=a;
}
return oAnchor;
}
};
if(this.sAnchorId=="Help"){
this.iLeftPadding-=5;
}
}
DynamicMenu.prototype.showDynamicMenu=function(){
var oL,oA,iL,iT,iWW,noc,iAL,iAW,iLW,op,oSI,bF=false,t,lh=window.location.href,agt=navigator.userAgent.toLowerCase();
with(this){
clearMouseOutTimer();
if(sTemplate==null){
t=getElementById(sContentLayerId);
if(t){
sTemplate=t.innerHTML;
}
}
oL=getElementById(sContainerLayerId);
op=oL.offsetParent;
oA=getAnchor();
iAL=DynamicMenuGetOffsetLeft(oA);
iAW=oA.offsetWidth;
iT=getOffsetTop(oA)+(oA.offsetHeight)+iTopPadding;
iWW=VjWindowUtils.getBrowserWindowWidth();
if(iWW>iHighResDocWidth){
noc=iHighResColumns;
}else{
if(iWW>iLowResDocWidth&&iWW<=iHighResDocWidth){
noc=iMediumResColumns;
}else{
if(iWW<=iLowResDocWidth){
noc=iLowResColumns;
}else{
noc=5;
}
}
}
if(sHTML==null){
bF=true;
sHTML=getMenuHtml(noc);
if(sHTML==null){
return;
}
oL.innerHTML=sHTML;
}
iLW=oL.offsetWidth;
var _91=GetContainerDiv(),cw,bRA=false;
if(sAnchorId=="Help"){
bRA=true;
}
if(_91&&document.all&&!lh.hasAny("community","education")){
cw=_91.offsetWidth;
if((iAL+iLW)>cw){
bRA=true;
}
}
if(lh.has("securitycenter")&&lh.has(".hk")){
iAL=getOffsetLeft(oA);
}else{
if(lh.has("wantitnow")&&lh.has(".in")&&document.all){
iAL=getOffsetLeft(oA);
}else{
if(lh.hasAny("feedback.","announce.")&&document.all&&!lh.has(".hk")){
iAL=getOffsetLeft(oA);
}else{
if(lh.hasAny("securitycentre","contact_ebay")&&lh.has(".au")){
iAL=getOffsetLeft(oA);
}
}
}
}
var _92=getElementById("2tabPopularProducts");
if(_92&&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"){
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(_95){
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 _97=window[sHandler];
if(!_97){
return;
}
var _98=_97(),items=_98[sCollName],l=items.length;
ipc=Math.ceil(l/_95);
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<_95;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(_99){
this.id=_99;
}
DynamicMenuMouseOutHandler.prototype.handle=function(_9a){
oRegistry.get(this.id).startMouseOutTimer();
};
function DynamicMenuClearMouseOutHandler(_9b){
this.id=_9b;
}
DynamicMenuClearMouseOutHandler.prototype.handle=function(_9c){
oRegistry.get(this.id).clearMouseOutTimer();
};
function DynamicShowMenuHandler(_9d){
this.id=_9d;
}
DynamicShowMenuHandler.prototype.handle=function(_9e){
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(_a3,_a4,_a5){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
var w=_a3.offsetWidth,h=_a3.offsetHeight;
w+=_a4?_a4:0;
h+=_a5?_a5:0;
var _a8=document.createElement("IFRAME");
_a8.style.width=w+"px";
_a8.style.height=h+"px";
_a8.style.filter="chroma(color='white')";
_a8.frameBorder=0;
_a8.style.position="absolute";
_a8.style.left="0px";
_a8.style.top="0px";
_a8.style.zIndex="-1";
_a8.style.filter="Alpha(Opacity=\"0\")";
_a3.appendChild(_a8);
return _a8;
};
DynamicMenu.prototype.removeLayerShim=function(_a9,_aa){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
if(_aa&&_aa.parentElement){
_a9.removeChild(_aa);
}
};
function getOffsetTop(elm){
var _ad=elm.offsetTop;
var _ae=elm.offsetParent;
while(_ae!==null){
_ad+=_ae.offsetTop;
_ae=_ae.offsetParent;
}
return _ad;
}
function getOffsetLeft(elm){
var _b0=elm.offsetLeft;
var _b1=elm.offsetParent;
while(_b1!==null){
_b0+=_b1.offsetLeft;
_b1=_b1.offsetParent;
}
return _b0;
}
var VjLayerUtils={};
VjLayerUtils.matchColumnHeight=function(_b2,_b3,_b4){
var px="px";
var _b6=document.getElementById(_b2);
var _b7=_b6.offsetHeight;
var _b8=Math.max(_b7,_b3);
for(var i=0;i<_b4.length;i++){
document.getElementById(_b4[i]).style.height=_b8+px;
}
};
VjLayerUtils.addLayerShim=function(_ba){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
var _bc=document.createElement("IFRAME");
_bc.style.width=_ba.offsetWidth+"px";
_bc.style.height=_ba.offsetHeight+"px";
_bc.style.filter="chroma(color='white')";
_bc.frameBorder=0;
_bc.style.position="absolute";
_bc.style.left="0px";
_bc.style.top="0px";
_bc.style.zIndex="-1";
_bc.style.filter="Alpha(Opacity=\"0\")";
_ba.appendChild(_bc);
return _bc;
};
VjLayerUtils.removeLayerShim=function(_bd,_be){
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("msie")==-1&&agt.indexOf("firefox")==-1){
return;
}
if(_be&&_be.parentElement){
_bd.removeChild(_be);
}
};
String.prototype.has=function(_c0){
return (this.indexOf(_c0)!=-1);
};
String.prototype.hasArg=function(_c1){
var a=_c1,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(_cd,_ce){
this.sLayerId=_cd;
this.sHandle=_ce;
}
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 _d2=null;
var doc=window.document;
if(doc.getElementById){
_d2=doc.getElementById(pId);
}else{
if(doc.all){
_d2=doc.all(pId);
}
}
return _d2;
}
function toggleHideShow(_d4,_d5){
var _d6=getElementById(_d4);
if(_d6===null){
return;
}
var vis=_d6.style.display;
if(_d5===undefined){
_d6.style.display=(vis==="")?"none":"block";
}else{
_d6.style.display=(_d5)?"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(_d8,_d9){
var rv=this.readCookieObj(_d8,_d9).value;
return (rv)?unescape(rv):"";
};
VjCookieJar.createDefaultCookieBean=function(_db,_dc){
var _dd={};
_dd.name=_db;
_dd.cookieletname=_dc;
_dd.value="";
_dd.maxage=0;
_dd.rawcookievalue="";
_dd.mode="";
return _dd;
};
VjCookieJar.readCookieObj=function(_de,_df){
var _e0=this.createDefaultCookieBean(_de,_df);
this.update();
this.checkConversionMap(_e0);
_e0.rawcookievalue=this.aCookies[_e0.name];
if(!_e0.name||!_e0.rawcookievalue){
_e0.value="";
}else{
if(!_e0.cookieletname){
this.readCookieInternal(_e0);
}else{
this.readCookieletInternal(_e0);
}
}
return (typeof (_e0)!="undefined")?_e0:"";
};
VjCookieJar.checkConversionMap=function(_e1){
var _e2=this.aConversionMap[_e1.name];
if(_e2){
_e1.mode=this.getMode(_e1.name);
_e1.name=_e2[0];
_e1.cookieletname=_e2[1];
}
};
VjCookieJar.readCookieInternal=function(_e3){
_e3.value=_e3.rawcookievalue;
return _e3;
};
VjCookieJar.readCookieletInternal=function(_e4){
var _e5=this.getCookielet(_e4.name,_e4.cookieletname,_e4.rawcookievalue);
var _e6=this.getFormat(_e4.name);
if(_e5&&_e6.bUseExp){
_e5=_e5.substring(0,_e5.length-8);
}
_e4.value=_e5;
if(_e4.mode==this.sCOMPAT){
_e4.value=_e4.rawcookievalue;
}
return _e4;
};
VjCookieJar.readMultiLineCookie=function(_e7,_e8){
if(!_e7||!_e8){
return "";
}
var val,r="";
var _ea=this.aConversionMap[_e7];
if(_ea){
val=this.readCookieObj(_ea[0],_ea[1]).value||"";
}
if(val){
r=this.getCookielet(_e7,_e8,val)||"";
}
return (typeof (r)!="undefined")?r:"";
};
VjCookieJar.writeCookie=function(_eb,_ec,_ed){
var _ee=this.aConversionMap[_eb];
if(_ee){
this.writeCookielet(_ee[0],_ee[1],_ec,_ed);
return;
}
var _ef=this.getFormat(_eb);
if(_ec&&_ef.escapedValue){
_ec=escape(_ec);
}
this.writeRawCookie(_eb,_ec,_ed);
};
VjCookieJar.writeRawCookie=function(_f0,_f1,_f2){
if(_f0&&(_f1!==undefined)){
if((isNaN(_f1)&&_f1.length<4000)||(_f1+"").length<4000){
if(typeof _f2=="number"){
_f2=this.getExpDate(_f2);
}
var _f3=_f2?new Date(_f2):new Date(this.getExpDate(730));
var _f4=this.getFormat(_f0);
var _f5=this.sCookieDomain;
var dd=document.domain;
if(!dd.has(_f5)){
var _f7=dd.indexOf(".ebay.");
if(_f7>0){
this.sCookieDomain=dd.substring(_f7);
}
}
if(document.cookie){
document.cookie=_f0+"="+(_f1||"")+((_f2||_f4.bUseExp)?"; expires="+_f3.toGMTString():"")+"; domain="+this.sCookieDomain+"; path="+this.sPath;
}
}
}
};
VjCookieJar.writeCookieEx=function(_f8,_f9,_fa){
this.writeCookie(_f8,_f9,this.getExpDate(_fa));
};
VjCookieJar.writeCookielet=function(_fb,_fc,_fd,_fe,_ff){
if(_fb&&_fc){
this.update();
var _100=this.getFormat(_fb);
if(_100.bUseExp&&_fd){
if(typeof _fe=="number"){
_fe=this.getExpDate(_fe);
}
var _101=_fe?new Date(_fe):new Date(this.getExpDate(730));
var _102=Date.UTC(_101.getUTCFullYear(),_101.getUTCMonth(),_101.getUTCDate());
_102=Math.floor(_102/1000);
_fd+=_102.dec2Hex();
}
var val=this.createCookieValue(_fb,_fc,_fd);
this.writeRawCookie(_fb,val,_ff);
}
};
VjCookieJar.writeMultiLineCookie=function(_104,_105,_106,_107,_108){
this.update();
var val=this.createCookieValue(_104,_105,_106);
if(val){
var cmap=this.aConversionMap[_104];
if(cmap){
this.writeCookielet(cmap[0],cmap[1],val,_107,_108);
}
}
};
VjCookieJar.getBitFlag=function(_10b,_10c){
_10b=parseInt(_10b,10);
var b=_10b.toString(2),r=_10b?b.charAt(b.length-_10c-1):"";
return (r=="1")?1:0;
};
VjCookieJar.setBitFlag=function(_10e,_10f,_110){
var b="",p,i,e,l;
_10e=parseInt(_10e,10);
if(_10e){
b=_10e.toString(2);
}
l=b.length;
if(l<_10f){
e=_10f-l;
for(i=0;i<=e;i++){
b="0"+b;
}
}
p=b.length-_10f-1;
return parseInt(b.substring(0,p)+_110+b.substring(p+1),2);
};
VjCookieJar.createCookieValue=function(_112,_113,_114){
var cmap=this.aConversionMap[_112],format=this.getFormat(_112),mode=this.getMode(_112),val;
if(cmap&&(mode==this.sSTRICT||mode==this.sCONVER)){
val=this.readCookieObj(cmap[0],cmap[1]).value||"";
}else{
val=this.aCookies[_112]||"";
}
if(format){
var clts=this.getCookieletArray(val,format);
clts[_113]=_114;
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 _11c=this.getFormat(sC[0]),cv=sC[1],sd=_11c.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(_11d,_11e,_11f){
var _120=this.getFormat(_11d);
var clts=this.getCookieletArray(_11f,_120);
return clts[_11e]||"";
};
VjCookieJar.getFormat=function(_122){
return this.aFormatMap[_122]||VjCookieJar.Default_Cookie_Format;
};
VjCookieJar.getCookieletArray=function(_123,_124){
var rv=[],val=_123||"";
if(_124.escapedValue){
val=unescape(val);
}
var a=val.split(_124.COOKIELET_DELIMITER);
for(var i=0;i<a.length;i++){
var idx=a[i].indexOf(_124.NAME_VALUE_DELIMITER);
if(idx>0){
rv[a[i].substring(0,idx)]=a[i].substring(idx+1);
}
}
return rv;
};
VjCookieJar.getExpDate=function(_129){
var _12a;
if(typeof _129=="number"&&_129>=0){
var d=new Date();
d.setTime(d.getTime()+(_129*24*60*60*1000));
_12a=d.toGMTString();
}
return _12a;
};
VjCookieJar.getMode=function(_12c){
var h=this.readCookieObj(this.sModesCookie,this.sModesCookielet).value,b;
if(!(_12c 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(_12c==o){
return (f.length==1)?"0"+f:f;
}
i++;
}
return null;
}
};
VjURL={};
VjURL.addArg=function(_130,_131,_132){
if(_130==null||_130==undefined){
return null;
}
if(_130.indexOf("?")<0){
_130+="?"+_131+"="+_132;
return _130;
}
var _133=this.getArgPairIfExists(_130,_131);
if(_133!==null){
_130.replace(_133,_131+"="+_132);
}else{
_130+="&"+_131+"="+_132;
}
return _130;
};
VjURL.getArg=function(_134,_135){
if(_134==null||_134==undefined){
return null;
}
if(_134.indexOf("?")<0){
return null;
}
var _136=this.getArgPairIfExists(_134,_135);
if(_136!==null){
return _136.substring(_136.indexOf("=")+1);
}
return null;
};
VjURL.getArgPairIfExists=function(_137,_138){
var _139=_137.indexOf("?");
if(_139<0){
return null;
}
var _13a=_137;
var _13b,argName;
while(_139>=0){
_13a=_13a.substring(_139+1);
_13b=_13a;
_139=_13a.indexOf("&");
if(_139>=0){
_13b=_13a.substring(0,_139);
}
argName=_13b.substring(0,_13b.indexOf("="));
if(argName==_138){
return _13b;
}
}
return null;
};
function TrackingModuleEnabler(_13c,_13d){
this.sCid=_13c;
this.sCidParms=_13d;
}
TrackingModuleEnabler.prototype.rewriteUrl=function(_13e){
if(_13e.nativeEvent==null||_13e.nativeEvent==undefined){
return;
}
var elem=_13e.nativeEvent.srcElement||_13e.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(_140){
this.rewriteUrl(_140);
};
TrackingModuleEnabler.prototype.getAnchor=function(_141){
var e=_141;
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(_143,_144){
var _145=this.eventHandlers[_143];
if(!_145){
return true;
}
var _146=_145[_144.eventType];
if(!_146){
return true;
}
var _147=true;
for(var i=0;i<_146.length;i++){
var _149=_146[i].handle(_144);
if(_149&&_149.objType=="dsf_Message"){
if(typeof (svcEngine)!="undefined"&&svcEngine.handleRequest(_149)===false){
_147=false;
}
}else{
if(_149===false){
_147=false;
}
}
}
return _147;
};
dsf_EventDispatcher.prototype.register=function(id,_14b,_14c){
var _14d=id;
if(!this.eventHandlers[_14d]){
this.eventHandlers[_14d]=[];
}
var _14e=this.eventHandlers[_14d];
if(!_14e[_14b]){
_14e[_14b]=[];
}
var _14f=_14e[_14b];
_14f[_14f.length]=_14c;
};
dsf_EventDispatcher.prototype.attachHandlerToElement=function(id,_151,_152){
eventDispatcher.register(id,_151,_152);
var _153=document.getElementById(id);
if(id=="body"){
_153=document.body;
if(_151=="onload"||_151=="onunload"){
if(_153.vjLoadSet){
return this;
}else{
_153.vjLoadSet=true;
var _154=window[_151]||"";
if(_154){
this.fCustomLoad[_151]=_154;
}
}
window[_151]=function(){
if(typeof eventDispatcher.fCustomLoad[_151]=="function"){
eventDispatcher.fCustomLoad[_151]();
}
eventDispatcher[_151](document.body);
eventDispatcher.fCustomLoad={};
};
return this;
}
}
if(_153){
_153[_151]=function(_155){
return eventDispatcher[_151](this,_155||window.event);
};
}
return this;
};
dsf_EventDispatcher.prototype.detachHandlers=function(id,_157){
var _158=id;
if(!this.eventHandlers[_158]){
return;
}
var _159=this.eventHandlers[_158];
if(_159[_157]){
_159[_157]=[];
}
var _15a=document.getElementById(id);
if(id=="body"){
_15a=document.body;
if(_157=="onload"||_157=="onunload"||_157=="onclick"){
window[_157]=null;
}
}
if(_15a){
_15a[_157]=null;
}
};
function dsf_Event(src,_15c,_15d){
this.src=src;
this.eventType=_15c;
this.nativeEvent=_15d;
}
function dsf_SvcConfig(_15e,url){
this.url=url;
this.method=_15e;
this.reqtMarshalling="raw";
this.respMarshalling="raw";
}
function dsf_Message(_160){
this.objType="dsf_Message";
this.svcId=_160;
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 _163=id;
if(_163===null||!_163){
_163=src.id;
}
return _163;
};
dsf_EventDispatcher.prototype.getBodyId=function(src,id){
var _166=this.getId(src,id);
if(!_166){
_166="body";
}
return _166;
};
dsf_EventDispatcher.prototype.onload=function(src,_168){
return this.process(this.getBodyId(src),new dsf_Event(src,"onload",_168));
};
dsf_EventDispatcher.prototype.onunload=function(src,_16a){
return this.process(this.getBodyId(src),new dsf_Event(src,"onunload",_16a));
};
dsf_EventDispatcher.prototype.onchange=function(src,_16c){
return this.process(this.getId(src),new dsf_Event(src,"onchange",_16c));
};
dsf_EventDispatcher.prototype.onsubmit=function(src,_16e){
return this.process(this.getId(src),new dsf_Event(src,"onsubmit",_16e));
};
dsf_EventDispatcher.prototype.onreset=function(src,_170){
return this.process(this.getId(src),new dsf_Event(src,"onreset",_170));
};
dsf_EventDispatcher.prototype.onselect=function(src,_172){
return this.process(this.getId(src),new dsf_Event(src,"onselect",_172));
};
dsf_EventDispatcher.prototype.onblur=function(src,_174){
return this.process(this.getId(src),new dsf_Event(src,"onblur",_174));
};
dsf_EventDispatcher.prototype.onfocus=function(src,_176){
return this.process(this.getId(src),new dsf_Event(src,"onfocus",_176));
};
dsf_EventDispatcher.prototype.onkeydown=function(src,_178){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeydown",_178));
};
dsf_EventDispatcher.prototype.onkeypress=function(src,_17a){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeypress",_17a));
};
dsf_EventDispatcher.prototype.onkeyup=function(src,_17c){
return this.process(this.getBodyId(src),new dsf_Event(src,"onkeyup",_17c));
};
dsf_EventDispatcher.prototype.onclick=function(src,_17e){
return this.process(this.getBodyId(src),new dsf_Event(src,"onclick",_17e));
};
dsf_EventDispatcher.prototype.ondblclick=function(src,_180){
return this.process(this.getBodyId(src),new dsf_Event(src,"ondblclick",_180));
};
dsf_EventDispatcher.prototype.onmousedown=function(src,_182){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmousedown",_182));
};
dsf_EventDispatcher.prototype.onmousemove=function(src,_184){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmousemove",_184));
};
dsf_EventDispatcher.prototype.onmouseout=function(src,_186){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseout",_186));
};
dsf_EventDispatcher.prototype.onmouseover=function(src,_188){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseover",_188));
};
dsf_EventDispatcher.prototype.onmouseup=function(src,_18a){
return this.process(this.getBodyId(src),new dsf_Event(src,"onmouseup",_18a));
};
function dsf_EventHandler(_18b){
this.eventTypes=_18b;
this.srcId="";
}
dsf_EventHandler.prototype.handle=function(_18c){
if(this.handleEvent===null){
alert("all derived event handlers need to have a handleEvent method");
}
var _18d=this.handleEvent(_18c);
if(_18d===null){
return true;
}
};
dsf_EventHandler.prototype.attachTo=function(id){
eventDispatcher.register(this,id);
var _18f=this.eventTypes;
var _190=document.getElementById(id);
for(var i=0;i<_18f.length;i++){
var _192=_18f[i];
if(_190[_192]!==null){
continue;
}
_190[_192]=function(){
return eventDispatcher[_192](this);
};
}
return this;
};
var eventDispatcher;
if(typeof (eventDispatcher)=="undefined"){
eventDispatcher=new dsf_EventDispatcher();
}
function FooterTrk(){
}
FooterTrk.prototype.handle=function(_193){
eventDispatcher.attachHandlerToElement("glbfooter","onclick",new TrackingModuleEnabler("_trksid","m40"));
};
function VjComponentRegistry(){
this.controls=[];
}
VjComponentRegistry.prototype.put=function(_194,_195){
this.controls[_194]=_195;
};
VjComponentRegistry.prototype.get=function(_196){
return this.controls[_196];
};
VjComponentRegistry.prototype.dump=function(){
var _197=this.controls;
var _198="controls on page:\n";
for(var i in _197){
_198+="key = "+i;
_198+="controlName = "+_197[i].objtype;
_198+="\n";
}
return _198;
};
var oRegistry;
if(typeof (oRegistry)=="undefined"){
oRegistry=new VjComponentRegistry();
}
function get_Buy_menu(){
return {"items":[{"value":"<a href=\"http://pages.ebay.at/kaufseinsteiger/index.html\">So kaufen Sie</a>"},{"value":"<a href=\"http://pages.ebay.at/richtigsuchen/index.html\">Richtig suchen</a>"},{"value":"<a href=\"http://pulse.ebay.at/\">eBay Top 10</a>"},{"value":"<a href=\"http://pages.ebay.at/sicherheitsregeln/index.html\">Sicherheitstipps</a>"}]};
}
function get_Sell_menu(){
return {"items":[{"value":"<a href=\"http://pages.ebay.at/verkaufseinsteiger/index.html\">So verkaufen Sie</a>"},{"value":"<a href=\"http://pages.ebay.at/verkaeuferportal/unternehmen.html\">Gewerbliche Verk\xe4ufer</a>"},{"value":"<a href=\"http://pages.ebay.at/verkaeufer-tools/index.html\">Bequemer verkaufen</a>"},{"value":"<a href=\"http://pages.ebay.at/versandcenter/index.html\">Versandcenter</a>"}]};
}
function get_MyEbay_menu(){
return {"items":[{"value":"<a href=\"http://my.ebay.at/ws/eBayISAPI.dll?MyEbay&amp;CurrentPage=MyeBayAllBuying\">\xdcbersicht Kaufen</a>"},{"value":"<a href=\"http://my.ebay.at/ws/eBayISAPI.dll?MyEbay&amp;CurrentPage=MyeBayAllSelling&amp;ShowNormalSelling=true&amp;smGHR=true\">\xdcbersicht Verkaufen</a>"},{"value":"<a href=\"http://my.ebay.at/ws/eBayISAPI.dll?MyEbay&amp;CurrentPage=MyeBayMyMessages\">Meine Nachrichten</a>"},{"value":"<a href=\"http://my.ebay.at/ws/eBayISAPI.dll?MyEbay&amp;CurrentPage=MyeBayMyAccounts\">Meine Mitgliedschaft</a>"}]};
}
function get_Community_menu(){
return {"items":[{"value":"<a href=\"http://www2.ebay.com/aw/marketing-at.shtml\">eBay-News</a>"},{"value":"<a href=\"http://forums.ebay.de/forum.jspa?forumID=37\">Diskussionsforen</a>"}]};
}
function get_Help_menu(){
return {"items":[{"value":"<a href=\"http://pages.ebay.at/help/index/A.html\">Hilfethemen</a>"},{"value":"<a href=\"http://pages.ebay.at/help/contact_us/_base/index.html\">Kontakt</a>"},{"value":"<a href=\"http://pages.ebay.at/telefon/index.html\">Telefonsupport</a>"},{"value":"<a href=\"http://pages.ebay.at/help/sell/fees.html\">eBay-Geb\xfchren</a>"}]};
}
function NavMenuBind(){
}
NavMenuBind.prototype.handle=function(_19a){
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(_19b){
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(_19c,_19d,_19e,_19f){
this.sDropdownId=_19c;
this.sHandler=_19d;
this.sCollName=_19e;
this.iCondNo=_19f;
}
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(_1a1,_1a2,_1a3){
var e=_1a1;
if(e){
var o=new Option(_1a3,_1a2,false,false),os;
os=e.options;
os[os.length]=o;
}
};
function DynDropHandler_category0(){
}
DynDropHandler_category0.prototype.handle=function(_1a6){
oRegistry.get("category0").fill();
};
eventDispatcher.attachHandlerToElement("body","onload",new DynDropHandler_category0());
function HeaderTrk(){
}
HeaderTrk.prototype.handle=function(_1a7){
eventDispatcher.attachHandlerToElement("BrowseCategories-menu","onclick",new TrackingModuleEnabler("_trksid","m37"));
eventDispatcher.attachHandlerToElement("gnheader","onclick",new TrackingModuleEnabler("_trksid","m37"));
};
function VjGreetingsServerOnClick(pUrl,_1a9){
var elem=_1a9.srcElement||_1a9.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,_1af,_1b0){
var rv=pStr;
while(rv.has(_1af)){
rv=rv.replace(_1af,_1b0);
}
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(_1b4){
var rv=this,re,tkn,a=arguments,l=a.length;
for(var i=1;i<l+1;i++){
rv=this.replaceToken(rv,_1b4.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(_1c4,show){
var elem=getElementById(_1c4);
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(_1c8,_1c9,_1ca,_1cb,_1cc,_1cd,_1ce){
this.sLayerId=_1c8;
this.sCloseAnchorId=_1c9;
this.sCartCountText=_1ca;
this.aHostCoutryId=_1cb;
this.aHostCountryDomain=_1cc;
this.aHideOnParams=_1cd;
this.sHtmlProvider=_1ce;
}
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(_1d1,_1d2){
var sh1=_1d1.toLowerCase(),sh2=_1d2.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 _1d4=this.aHideOnParams;
var iLen=_1d4.length;
for(var i=0;i<iLen;i++){
if(document.location.href.has(_1d4[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 _1d9=window[this.sHtmlProvider];
if(!_1d9){
return;
}
oL.innerHTML=_1d9().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/at/icon/iconInfo_16x16.gif\" height=\"16\" width=\"16\" align=\"middle\"></td><td width=\"80%\" nowrap=\"nowrap\" class=\"clMsg\">Sie haben eBay Express verlassen.</td><td align=\"left\" nowrap=\"nowrap\"><a href=\"http://www.express.##1##/\">Zur\xfcck zu 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\">Warenkorb##2##</a></td><td width=\"135\" nowrap=\"nowrap\" class=\"clLogo\"><img src=\"http://pics.ebaystatic.com/aw/pics/at/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(_1e0){
var oC=VjClient.getBrowserObj();
return oC.bIE&&!oC.bMac&&vbCheckActiveXControl(_1e0);
};
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(_1e5,_1e6){
var fcn;
if(VjUtils.isString(_1e6)){
fcn=_1e5[_1e6];
}else{
fcn=_1e6;
}
return function(){
return fcn.apply(_1e5,arguments);
};
};
VjUtils.extend=function(_1e8,_1e9){
function inheritance(){
}
inheritance.prototype=_1e9.prototype;
_1e8.prototype=new inheritance();
_1e8.prototype.constructor=_1e8;
_1e8.baseConstructor=_1e9;
_1e8.superClass=_1e9.prototype;
};
function BuyerTransactionAlert(pId,_1eb,_1ec,_1ed,_1ee,_1ef,_1f0,_1f1,_1f2,_1f3,_1f4){
this.sId=pId;
this.iPollingInterval=_1eb;
this.iMaxHits=_1ec;
this.iHitTimeout=_1ed;
this.iServerHits=0;
this.sLastCookieletValue="";
this.sServerUrl=_1ee;
this.sImgServer=_1ef+"/";
this.sViewItemUrl=_1f0;
this.aAlertInfo=[["h:h:alt:2",_1f2,"icon/iconOutbid_16x16.gif"],["h:h:alt:3",_1f1,"icon/iconWatchB_16x16.gif"],["h:h:alt:4",_1f2,"icon/iconOutbid_16x16.gif"],["h:h:alt:5",_1f3,"icon/iconchanceBlu_16x16.gif"],["h:h:alt:tcr",_1f4,"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,_1f7){
var oL=this.oL;
if(oL){
if(pVal.is("")&&!oL.ctrld){
return;
}
if(_1f7){
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 _200=cfg[at-1],imgSrv=this.sImgServer;
var _201=imgSrv+"s.gif";
var _202="<img src=\""+_201+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">|<img src=\""+_201+"\" width=\"10\" height=\"16\" style=\"vertical-align:middle\">";
_202+="<img src=\""+imgSrv+_200[2]+"?t\" style=\"vertical-align:middle\"><img src=\""+_201+"\" width=\"5\" height=\"16\" style=\"vertical-align:middle\">";
var url=this.sViewItemUrl+"&item="+ii;
_202+="<a href=\""+url+"&ssPageName="+_200[0]+"\">"+_200[1]+"</a>";
this.setValue(_202);
this.sLastCookieletValue=c;
}
this.fireRefreshEvent();
};
BuyerTransactionAlert.prototype.fireRefreshEvent=function(_204){
if(!_204){
_204=this.iPollingInterval;
}
window.setTimeout(VjUtils.hitch(this,this.onRefresh),_204*1000);
};
BuyerTransactionAlert.prototype.onCookieExpire=function(){
var _205=VjCookieJar.readCookie("ebaysignin");
if(!_205.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(_207,show){
var elem=getElementById(_207);
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());

// de_AT/e515i/GlobalNav_Ebay_e515i4752523_1_de_AT
// b=4752523