//<!--
//1@@m10

function WriteMyCookie(country){var offset=2;now=new Date();year=now.getYear();now.setYear(year+offset);expires=now.valueOf();writeCookieletEx("dp1","BEsite",country,"","/",expires);}
function ChangeMyCookie()
{var be_cookie=readCookieletEx("dp1","BEsite");if(be_cookie=="BEFR"){WriteMyCookie('BENL');document.location.replace(document.urls.benlhomepath.value);}
else{WriteMyCookie('BEFR');document.location.replace(document.urls.befrhomepath.value);}}
ebay.oDocument.oCookieJar.setOptimizationCookie();

//2@@m6

function EbayHTMLLayer(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLLayer";this.base=EbayHTML;this.base(pParent,pName,pName,pDisabled,pCfg);this.aBindEvents=new Array;this.getElem=ebHTMLLayerGetElem;this.getValue=ebHTMLLayerGetValue;this.setValue=ebHTMLLayerSetValue;}
function ebHTMLLayerGetElem(pName)
{var s=pName,d=this.oDocument.doc;if(d.getElementById)
return d.getElementById(s);else if(d.all)
return d.all(s);this.throwWarning("Not supported","getElem");}
function ebHTMLLayerGetValue(pIsText)
{if(this.eElem)
{if(pIsText)
{if(this.oDocument.oGlobals.oClient.bFirefox)
return this.eElem.textContent;else
return this.eElem.innerText;}
else
return this.eElem.innerHTML;}
else
return"";}
function ebHTMLLayerSetValue(pVal,pIsText)
{if(this.eElem)
{if(pIsText)
{if(this.oDocument.oGlobals.oClient.bFirefox)
this.eElem.textContent=pVal;else
this.eElem.innerText=pVal;}
else
this.eElem.innerHTML=pVal;}}

//3@@m18

function EbayHTMLOverlay(pParent,pName,pCfg,pDisabled)
{if(!this.objType)
this.objType="EbayHTMLOverlay";this.base=EbayHTMLLayer;this.base(pParent,pName,pDisabled,pCfg);this.isSupported=ebIsBrowserSupported;if(!this.isSupported())
return;this.sPosStyle=pCfg.posStyle||'absolute';this.sTop=pCfg.top;this.iTopPadding=0;this.iLeftPadding=0;this.sLeft=pCfg.left;this.sWidth=pCfg.width?parseInt(pCfg.width):0;this.sHeight=pCfg.height?parseInt(pCfg.height):0;this.sLayerHTML=pCfg.layerHTML||"";this.sContentDiv=pCfg.contentDiv||"";this.bForceReposition=pCfg.bForceReposition||false;this.bNoSetContent=pCfg.bNoSetContent;this.bClearValueOnClose=typeof(pCfg.bClearValueOnClose)!='undefined'?pCfg.bClearValueOnClose:true;this.bCustomHTML=pCfg.customHTML||false;this.bTransparent=pCfg.transparent||false;this.setPosition=ebHTMLOverlaySetPosition;this.centerTop=ebHTMLOverlayCenterTop;this.centerLeft=ebHTMLOverlayCenterLeft;this.setContent=ebHTMLOverlaySetContent;this.closeOverlay=this.close=ebHTMLOverlayCloseOverlay;this.display=ebHTMLOverlayDisplay;}
function ebHTMLOverlayDisplay(pContent)
{with(this)
{if(!eElem)
bind();if(!bNoSetContent)
setContent(pContent);setPosition();show(true);}}
function ebHTMLOverlaySetPosition()
{with(this)
{if(sPosStyle.is('absolute'))
{if(!sTop||bForceReposition)
centerTop();if(!sLeft||bForceReposition)
centerLeft();top(sTop);left(sLeft);}}}
function ebHTMLOverlayCenterTop()
{with(this)
{var oD=oDocument,winHeight=oD.doc.body.clientHeight,cL=oGlobals.oClient;if(!cL.bIE)
winHeight=oD.win.innerHeight;else if(typeof(winHeight)=='undefined'&&cL.iVer>=6)
winHeight=oD.doc.documentElement.clientHeight;var s=oD.doc.body.scrollTop+(winHeight-sHeight)/2;if(document.documentElement)
s+=document.documentElement.scrollTop;sTop=(parseInt(s)+iTopPadding)+'px';return s;}}
function ebHTMLOverlayCenterLeft()
{with(this)
{var winWidth=document.body.clientWidth,cL=oGlobals.oClient;if(!cL.bIE)
winWidth=window.innerWidth;var s=winWidth/2-sWidth/2;sLeft=(parseInt(s)+iLeftPadding)+'px';return s;}}
function ebHTMLOverlaySetContent(pContent)
{with(this)
{if(sContentDiv!='')
{var oL=new EbayHTMLLayer(this,sContentDiv);oL.bind();oL.setValue(pContent);}
else
setValue(pContent);}}
function ebHTMLOverlayCloseOverlay()
{with(this)
{if(bClearValueOnClose)
{var cts=this.controls;if(sContentDiv!=''&&cts[sContentDiv])
cts[sContentDiv].setValue('&nbsp;');else
setValue('&nbsp;');}
show();if(!this.oGlobals.oClient.bFirefox)
cleanupMemory();}}
function ebIsBrowserSupported()
{var cL=this.oGlobals.oClient,bNS4=document.layers;if(bNS4||(cL.bMac&&!cL.bMacppc&&!cL.bMactel))
return false;return true;}

//4@@m10

function EbayHTMLOverlayContent(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayHTMLOverlayContent";this.base=EbayHTMLOverlay;this.base(pParent,pName,pCfg);if(!this.isSupported())
return null;this.bUseIfShim=pCfg.useIfShim||false;this.sContent=pCfg.contentHTML;this.sLayerUI=pCfg.layerHTML;this.iBorderWidth=pCfg.iBorderWidth||0;this.hide=this.closeOverlay;this.setIframeShim=ebHTMLOverlayContentSetIframeShim;this.displayBase=this.display;this.display=ebHTMLOverlayContentDisplay;this.closeBase=this.close;this.closeOverlay=this.close=ebHTMLOverlayContentClose;var cl=this.oGlobals.oClient;this.bUseIfShim=(pCfg.useIfShim&&(cl.bIE&&!cl.bMac));this.eIframeShim=null;this.setContentBase=this.setContent;this.setContent=ebHTMLOverlayContentSetContent;}
function ebHTMLOverlayContentDisplay(pContent)
{with(this)
{displayBase(sContent||pContent);if(bUseIfShim)
setIframeShim();}}
function ebHTMLOverlayContentSetIframeShim()
{with(this)
{if(eElem)
{var d=oDocument,isRel=sPosStyle=='relative',e=isRel?e.firstChild:eElem;var w=width(),h=height(),f=eIframeShim=d.createElement('IFRAME'),bw=iBorderWidth;with(f.style)
{position='absolute';top=isRel?'20px':(0-bw)+'px';left=isRel?'20px':(0-bw)+'px';zIndex='-1';width=(w+bw)+'px';height=(h+bw)+'px';}
f.frameBorder='0';f.src=oGlobals.oEnvironment.sPicsDir+'s.gif';e.appendChild(f);}}}
function ebHTMLOverlayContentSetContent(pContent)
{this.sContent=pContent;this.setContentBase(pContent);}
function ebHTMLOverlayContentClose()
{with(this)
{if(bUseIfShim&&eIframeShim&&eElem)
eElem.removeChild(eIframeShim);closeBase();}}

//5@@m10

function EbayHTMLAnchor(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLAnchor";this.base=EbayHTML;this.base(pParent,pName,pName,pDisabled,pCfg);this.getElem=ebHTMLAnchorGetElem;this.enableBase=this.enable;this.enable=ebHTMLAnchorEnable;this.subscribeEvents("onclick");}
function ebHTMLAnchorGetElem(pName)
{var d=this.oDocument.doc,l=null;l=d.links[pName];if(l)return l;if(d.getElementById)
l=d.getElementById(pName);if(l)return l;if(d.all)
l=d.all[pName];if(l)return l;if(d.layers)
{var lyrs=d.layers;var len=lyrs.length;for(var i=0;i<len;i++)
{l=this.getElem(lyrs[i].document,pName);if(l)
return l;}}
for(var j=0;j<d.links.length;j++)
{l=d.links[j];if(typeof(l.name)=="undefined")
{if(l.onclick)
{var oc=l.onclick.toString();if(oc.indexOf("{#"+pName+"#}")!=-1)
return l;}}
else
{if(l.name==pName)
return l;}
l=null;}
return l;}
function ebHTMLAnchorEnable(pEnable)
{var cur=(pEnable)?"hand":"default";var el=this.eElem;if(el&&el.style)
{el.style.cursor=cur;el.style.color=pEnable?"":"gray";}
this.enableBase(pEnable);}
function setEbayLink(pS)
{return true;}

//6@@m13

function EbayHTMLBaseCheckboxRadio(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLBaseCheckboxRadio";this.base=EbayHTMLFormElem;this.base(pParent,pName,pDisabled,pCfg);this.bGroup=false;this.bindHTML=ebHTMLBaseCheckboxRadioBindHTML;this.bindEvents=ebHTMLBaseCheckboxRadioBindEvents;this.check=ebHTMLBaseCheckboxRadioCheck;this.selectByIndex=ebHTMLBaseCheckboxRadioSelectByIndex;this.selectByValue=ebHTMLBaseCheckboxRadioSelectByValue;this.isCheckedByValue=ebHTMLBaseCheckboxRadioIsCheckedByValue;this.getValueByIndex=ebHTMLBaseCheckboxRadioGetValueByIndex;this.getIndexByValue=ebHTMLBaseCheckboxRadioGetIndexByValue;this.getValue=null;this.enableBase=this.enable;this.enable=ebHTMLBaseCheckboxRadioEnable;this.setValue=this.selectByValue;this.onBeforeCheck=null;this.onAfterCheck=null;this.subscribeEvents("onclick");}
function ebHTMLBaseCheckboxRadioBindHTML()
{with(this)
{eElem=getElem(sElemName);if(eElem)
{if(eElem.length)
{bGroup=true;for(var i=0;i<eElem.length;i++)
assignJSObject(eElem[i]);cleanupMemory=ebHTMLBaseCheckboxRadioCleanupMemory;}
else
{bGroup=false;assignJSObject(eElem);}}
if(bDisabled)
enable(false);}}
function ebHTMLBaseCheckboxRadioCleanupMemory()
{var e=this.eElem;if(e)
{for(var j=0;j<e.length;j++)
{for(var i in e[j].jsObjs)
{e[j].jsObjs[i]=null;}
e[j].jsObjs=null;}
this.eElem=null;}}
function ebHTMLBaseCheckboxRadioBindEvents()
{with(this)
{if(!eElem)
return;var e=aBindEvents,len=e.length,fStr;for(var i in e)
{if(eElem.length&&eElem.length>0)
{for(var ii=0;ii<eElem.length;ii++)
eval("eElem[ii]."+e[i]+" = function(){"+this.bindEventString(e[i],ii)+"}");}
else
{eval("eElem."+e[i]+" = new Function(this.bindEventString(e[i],0))");}}}}
function ebHTMLBaseCheckboxRadioCheck(pChecked,pIndex)
{if(pIndex<0)
return;with(this)
{if(eElem)
{if(bGroup&&typeof(pIndex)=='undefined')
{var len=eElem.length;for(var i=0;i<len;i++)
eElem[i].checked=pChecked;}
else if(bGroup&&eElem[pIndex])
eElem[pIndex].checked=pChecked;else if(!bGroup)
eElem.checked=pChecked;}}}
function ebHTMLBaseCheckboxRadioSelectByIndex(pIdx,pCheck)
{var chx=typeof pCheck!='undefined'?pCheck:true;with(this)
{if(onBeforeCheck)
onBeforeCheck();var e=bGroup?eElem[pIdx]:eElem;if(e)
{e.checked=chx;if(onAfterCheck)
onAfterCheck();}}}
function ebHTMLBaseCheckboxRadioSelectByValue(pVal,pCheck)
{var chx=typeof pCheck!='undefined'?pCheck:true;with(this)
{if(onBeforeCheck)
onBeforeCheck();var e=eElem;if(!e)
return;if(bGroup)
{for(var i=0;i<e.length;i++)
{if(e[i].value==pVal)
{e[i].checked=chx;if(onAfterCheck)
onAfterCheck();return;}}}
else
{if(e.value==pVal)
{e.checked=chx;if(onAfterCheck)
onAfterCheck();}}}}
function ebHTMLBaseCheckboxRadioIsCheckedByValue(pValue)
{with(this)
{var e=eElem;if(e&&bGroup)
{var len=e.length;for(var i=0;i<len;i++)
{if(e[i].value==pValue)
return isChecked(i);}}}}
function ebHTMLBaseCheckboxRadioGetValueByIndex(pIndex)
{with(this)
{var e=eElem;if(e&&bGroup)
return e[pIndex].value;return null;}}
function ebHTMLBaseCheckboxRadioGetIndexByValue(pValue)
{with(this)
{var e=eElem;if(e&&bGroup)
{var len=e.length;for(var i=0;i<len;i++)
{if(e[i].value==pValue)
return i;}}
return-1;}}
function ebHTMLBaseCheckboxRadioEnable(pEnable)
{with(this)
{enableBase(pEnable);if(bGroup)
{var v=pEnable?"true":"false",e=eElem,len=e.length;if(e)
{for(var i=0;i<len;i++)
{e[i].onfocus=new Function("return "+v+";");e[i].disabled=!pEnable;}}}}}

//7@@m7

function EbayHTMLRadio(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLRadio";this.base=EbayHTMLBaseCheckboxRadio;this.base(pParent,pName,pDisabled,pCfg);this.getElem=ebHTMLRadioGetElem;this.getValue=ebHTMLRadioGetValue;this.getSelectedIndex=ebHTMLRadioGetSelectedIndex;}
function ebHTMLRadioGetElem(pName)
{return this.oDocument.getFormElem(pName,"radio");}
function ebHTMLRadioGetValue()
{var e=this.eElem;if(!e){return"";}
if(this.bGroup)
{for(var i=0;i<e.length;i++)
{if(e[i].checked)
return e[i].value;}}
else
{if(e.checked)
return e.value;}
return"";}
function ebHTMLRadioGetSelectedIndex()
{var e=this.eElem;if(!this.bGroup)
return 0;else
{for(var i=0;i<e.length;i++)
{if(e[i].checked)
return i;}}
return-1;}

//8@@m7

function EbayHTMLCheckbox(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLCheckbox";this.base=EbayHTMLBaseCheckboxRadio;this.base(pParent,pName,pDisabled,pCfg);this.getElem=ebHTMLCheckboxGetElem;this.isChecked=ebHTMLCheckboxIsChecked;this.getValue=ebHTMLCheckboxGetValue;this.setValue=this.selectByValue;}
function ebHTMLCheckboxGetElem(pName)
{return this.oDocument.getFormElem(pName,"checkbox");}
function ebHTMLCheckboxIsChecked(pIndex)
{with(this)
{if(eElem)
{if(bGroup&&eElem[pIndex])
return eElem[pIndex].checked;else if(!bGroup)
return eElem.checked;}}
return false;}
function ebHTMLCheckboxGetValue(pUnCheckedValue)
{var e=this.eElem,rv="";if(this.bGroup)
{rv=[];for(var i=0;i<e.length;i++)
{if(e[i].checked)
rv[rv.length]=e[i].value;}
if(!rv.length)rv="";}
else
{if(pUnCheckedValue)
return e.value;if(e.checked)
return e.value;}
return rv;}

//9@@m6

function EbayHTMLButton(pParent,pElemName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLButton";this.base=EbayHTMLFormElem;this.base(pParent,pElemName,pDisabled,pCfg);this.getValue=ebHTMLButtonGetValue;this.setValue=ebHTMLButtonSetValue;this.enableBase=this.enable
this.enable=ebHTMLButtonEnable;this.subscribeEvents("onclick");}
function ebHTMLButtonGetValue()
{return this.eElem.value;}
function ebHTMLButtonSetValue(pValue)
{var e=this.eElem;if(e)
e.value=pValue;}
function ebHTMLButtonEnable(pEnable,pYukonize)
{if(typeof(pYukonize)!=='undefined'&&pYukonize)
{var e=this.eElem;e.style.opacity=!pEnable?".5":"";e.style.filter=!pEnable?"alpha(opacity=50)":"";this.bBtnDisabled=!pEnable;}
else
this.enableBase(pEnable);}

//10@@m5

function EbayUSPCookie()
{this.TEMP_REDIRECT='1';this.PERM_REDIRECT='2';this.CANCEL_REDIRECT='3';this.sCurrentSiteID=null;this.sTargetSiteID=null;this.sTimeStamp=null;this.iCounter=0;this.iDisplayMode=0;this.bShowUSP=false;this.bFlLayer=false;this.bTempRedirect=false;this.bPermRedirect=false;this.bIncreaseCounter=false;this.bOnlySiteCookie=false;this.setCookieParams=ebUSPCookieSetCookieParams;this.incrementCounter=EbayUSPCookieIncrementCounter;this.setDisplayMode=ebUSPCookieSetDisplayMode;this.setCurrentSite=ebUSPCookieSetCurrentSite;this.writeSpref=ebUSPCookieWriteSpref;this.setCookieParams();}
function ebUSPCookieSetCookieParams()
{with(this)
{var val=readCookieletEx("dp1","spref");if(val&&val!="")
{var a=val.split('.');if(a.length==5)
{sCurrentSiteID=a[0];sTimeStamp=a[1];iCounter=a[2];iDisplayMode=a[3];sTargetSiteID=a[4];switch(iDisplayMode)
{case"1":bFlLayer=bShowUSP=true;break;case"2":bTempRedirect=bShowUSP=true;break;case"3":bPermRedirect=bShowUSP=true;break;}
writeSpref();}}}}
function EbayUSPCookieIncrementCounter()
{this.iCounter++;}
function ebUSPCookieSetDisplayMode(pDM)
{this.iDisplayMode=pDM;}
function ebUSPCookieSetCurrentSite(pSite)
{this.sCurrentSiteID=pSite;}
function ebUSPCookieWriteSpref()
{with(this)
{var c=sCurrentSiteID;if(bIncreaseCounter)
incrementCounter();if(!bOnlySiteCookie)
{c+='.';c+=sTimeStamp+'.';c+=iCounter;}
var now=new Date();Year=now.getUTCFullYear();Month=now.getMonth();Day=now.getDate();now=new Date(Year,Month,Day);now.setHours(now.getHours()+24);writeCookieletEx("dp1","spref",c,"","/",now);}}

//11@@m12

function EbayUSP(pParent,pName)
{if(!this.objType)
this.objType="EbayUSP";this.base=EbayBaseControl;this.base(pParent,pName);var cl=this.oGlobals.oClient;if(cl.bOpera||cl.bMac)
return;this.sOCName='oc_'+this.name;this.oConfig=null;this.sContentDiv='uspContent';this.sRedirectVal='R';this.bShowUSP=false;this.aTokenizedContent=new Array;this.aTokenContentDiv=new Array;this.oSpref=null;this.sRetType=null;this.oSiteCatalystConfig=null;this.getLayerHTML=ebUSPGetLayerHTML;this.getLayerConfig=ebUSPLayerConfig;this.displayUSP=ebUSPDisplayUSP;this.hideUSP=ebUSPHideUSP;this.backToSite=ebUSPBackToSite;this.msgRedirected=ebUSPMsgRedirected;this.visitSiteLink=ebUSPVisitSiteLink;this.createControl=ebUSPCreateControl;this.createUIControls=ebUSPCreateUIControl;this.clickContinue=ebUSPclickContinue;this.learnMore=ebUSPLearnMore;this.cancel=ebUSPCancel;this.closeLayer=ebUSPCloseLayer;this.getRedirectUrl=ebUSPGetRedirectUrl;this.siteIdIndex=ebUSPSiteIdIndex;this.getControl=ebUSPGetControl;this.parseMessages=ebUSPParseMessages;this.modifyContent=ebUSPModifyContent;this.getFlLeftPos=ebUSPGetFlLeftPos;this.resetRedirectLayer=ebUSPResetRedirectLayer;this.createSiteCatalystConfig=ebUSPCreateSiteCatalystConfig;this.getSiteCatalystStr=ebUSPGetSiteCatalystStr;this.setPagenameRequest=ebUSPSetPagenameRequest;this.createControl();}
function ebUSPCreateControl()
{with(this)
{oSpref=new EbayUSPCookie();bShowUSP=oSpref.bShowUSP;var cfg=ebay.oDocument.getConfig("uspConfig");if(!cfg)return;oConfig=cfg;if(!bShowUSP)
{resetRedirectLayer();return;}
if(oSpref.bFlLayer)
{resetRedirectLayer();var ocCfg=getLayerConfig();var sFl='<div id="'+sOCName+'" style="display:block;position:absolute;left:0px;top:0px;z-index:100"></div>';oDocument.write(sFl);new EbayHTMLOverlayContent(parent,sOCName,ocCfg);}
var e=oDocument._getEvent("load");_registerListener(e,EVENT_BEFORE,"createUIControls");_registerListener(e,EVENT_AFTER,"displayUSP");}}
function ebUSPCreateUIControl()
{with(this)
{if(oSpref.bFlLayer)
{new EbayHTMLRadio(this,oConfig.selCountry);new EbayHTMLCheckbox(this,oConfig.chkAutodirect);var b=new EbayHTMLAnchor(this,'continue');b._registerEvent("onclick","parent.clickContinue");var l=new EbayHTMLAnchor(this,oConfig.learnMore);l._registerEvent("onclick","parent.learnMore");var a=new EbayHTMLAnchor(this,oConfig.closeImg);a._registerEvent("onclick","parent.closeLayer");var c=new EbayHTMLAnchor(this,oConfig.anchorCancel);c._registerEvent("onclick","parent.cancel");oSiteCatalystConfig=createSiteCatalystConfig();}
else if(oSpref.bTempRedirect)
{var a=new EbayHTMLAnchor(this,'msgBackToLink');a._registerEvent("onclick","parent.backToSite");}
else if(oSpref.bPermRedirect)
{var a=new EbayHTMLAnchor(this,'msgRedirectedLink');a._registerEvent("onclick","parent.msgRedirected");var a1=new EbayHTMLAnchor(this,'msgVisitSiteLink');a1._registerEvent("onclick","parent.visitSiteLink");}
parseMessages();}}
function ebUSPLayerConfig()
{with(this)
{var c=new EbayConfig('tmp');c.top="90";c.left="300";c.useIfShim=true;c.contentDiv=sContentDiv;c.layerHTML=getLayerHTML();c.contentHTML=oConfig.flHTML;return c;}}
function ebUSPCreateSiteCatalystConfig()
{var c=new EbayConfig("scConfig");c.close='X';c.learnMore='L';c.btnContinue='C'
c.cancel='D';c.redirect='R';c.nonRedirect='NR';c.permanent='P';c.nonPermanent='NP';return c;}
function ebUSPGetLayerHTML()
{var s='';s+='<form name="flForm"><table width="400" cellspacing="0" cellpadding="0" border="0" ';s+='<tr><td><div id="'+this.sContentDiv+'"></div></td></tr></table></form>';return s;}
function ebUSPDisplayUSP()
{with(this)
{if(!bShowUSP)return;if(oSpref.bFlLayer)
{var c=parent.controls[sOCName];if(c)
{c.setValue(c.oConfig.layerHTML);c.display();}}
else
{var e1=oDocument.doc.getElementById(oConfig.redirectLayerId);if(e1)
{e1.innerHTML=oConfig.redirectHTML;e1.style.position='relative';e1.style.top="-15px";}}
modifyContent();}}
function ebUSPHideUSP(pI)
{with(this)
{if(pI)
oSpref.bIncreaseCounter=true;oSpref.writeSpref();var c=parent.controls[sOCName];if(c)c.show(false);}}
function ebUSPclickContinue()
{with(this.parent)
{var sel=getControl(oConfig.selCountry);var chk=getControl(oConfig.chkAutodirect);var d=oDocument;var r=sel.getValue()=="R"?true:false;var c=chk.isChecked();var s=oSpref;var oSC=oSiteCatalystConfig;if(r)
{if(c)
{s.bOnlySiteCookie=true;s.setCurrentSite(s.sTargetSiteID);sRetType=s.PERM_REDIRECT;s.writeSpref();}
else
sRetType=s.TEMP_REDIRECT;var u=getRedirectUrl();if(oSC)
u+='&ssPageName='+getSiteCatalystStr(oSC.btnContinue,oSC.redirect,c?oSC.permanent:oSC.nonPermanent);d.redirect(u);}
else
{if(c)
{s.bOnlySiteCookie=true;s.setCurrentSite(oConfig.currentSiteId);}
hideUSP(false);if(oSC)
{var p=getSiteCatalystStr(oSC.btnContinue,oSC.nonRedirect,c?oSC.permanent:oSC.nonPermanent);setPagenameRequest(p);}}
return false;}}
function ebUSPCloseLayer()
{with(this.parent)
{hideUSP(true);var c=oSiteCatalystConfig;var p=getSiteCatalystStr(c.close,c.nonRedirect,c.nonPermanent);setPagenameRequest(p);}
return false;}
function ebUSPLearnMore()
{with(this.parent)
{var d=oDocument.doc,e;e=d.getElementById('headerInfo');if(e)
{e.innerHTML=oConfig.learnMoreText
e=d.getElementById('learnMoreLink');if(e)
e.innerHTML='&nbsp;';var c=oSiteCatalystConfig;var p=getSiteCatalystStr(c.learnMore,c.nonRedirect,c.nonPermanent);setPagenameRequest(p);}}
return false;}
function ebUSPCancel()
{with(this.parent)
{var s=oSpref;s.setCurrentSite(oConfig.currentSiteId);s.bOnlySiteCookie=true;s.writeSpref();hideUSP();var c=oSiteCatalystConfig;var p=getSiteCatalystStr(c.cancel,c.nonRedirect,c.permanent);setPagenameRequest(p);}
return false;}
function ebUSPBackToSite()
{with(this.parent)
{var d=this.oDocument;var u=oConfig.targetURL[siteIdIndex(oSpref.sTargetSiteID)];d.redirect(u);return false;}}
function ebUSPMsgRedirected()
{with(this.parent)
{var d=this.oDocument;sRetType=oSpref.CANCEL_REDIRECT;d.redirect(getRedirectUrl());return false;}}
function ebUSPVisitSiteLink()
{with(this.parent)
{var d=this.oDocument;var u=oConfig.targetURL[siteIdIndex(oSpref.sTargetSiteID)];u+='?redir=0';d.redirect(u);return false;}}
function ebUSPGetControl(pControl)
{return this.controls[pControl]||null;}
function ebUSPGetRedirectUrl()
{with(this)
{var tSiteId=oSpref.sTargetSiteID;var index=siteIdIndex(tSiteId);var tUrl=oConfig.targetURL[index];var s=tUrl+'?rtype='+sRetType;s+='&from='+oConfig.currentSiteId;s+='&segment='+oConfig.segment;return s;}}
function ebUSPSiteIdIndex(pSite)
{var a=this.oConfig.countryIds;for(var i=0;i<a.length;i++)
{if(a[i]==pSite)
return i;}}
function ebUSPParseMessages()
{with(this)
{var c=oConfig;var ts=oSpref.sTargetSiteID,cs=c.currentSiteId;var tsn='eBay '+c.countryNames[siteIdIndex(ts)];var csn='eBay '+c.countryNames[siteIdIndex(cs)];var a=aTokenizedContent,a1=aTokenContentDiv;if(oSpref.bFlLayer)
{a=[c.msgRemind,c.targetSiteName,c.currentSiteName];a1=['msgRemind','targetSiteName','currentSiteName'];}
else if(oSpref.bTempRedirect)
{a=[c.msgBackTo];a1=['msgBackTo'];}
else if(oSpref.bPermRedirect)
{a=[c.msgRedirected,c.msgVisitSite];a1=['msgRedirected','msgVisitSite'];}
for(var i=0;i<a.length;i++)
{if(a[i].indexOf('#1')!='-1')
a[i]=a[i].replaceTokensEx('#1#',tsn);if(a[i].indexOf('#2')!='-1')
a[i]=a[i].replaceTokensEx('#2#',csn);}
aTokenizedContent=a,aTokenContentDiv=a1;c.learnMoreText=c.learnMoreText.replaceTokensEx('#1#',tsn).replaceTokensEx('#2#',csn);}}
function ebUSPModifyContent()
{with(this)
{var e,d=oDocument.doc,c=oConfig;var a=aTokenizedContent,a1=aTokenContentDiv;for(var i=0;i<a.length;i++)
{e=d.getElementById(a1[i]);if(e)
e.innerHTML=a[i];}
oDocument.bind();}}
function ebUSPGetFlLeftPos()
{with(this)
{var l,b=oDocument.doc.body,cn=ebay.oGlobals.oEnvironment.sCountry;if(oSpref.bFlLayer&&cn.toLowerCase()!='cn')
l=(b.scrollWidth-760)/2+120;else
l=(b.scrollWidth-760)/2;return l;}}
function ebUSPResetRedirectLayer()
{var e,d=this.oDocument.doc;e=d.getElementById(this.oConfig.redirectLayerId);var env=this.oGlobals.oEnvironment;var img='<img src="'+env.sPicsDir+'s.gif" width="1" height="1" />';if(e)if(e)e.innerHTML=img;}
function ebUSPGetSiteCatalystStr(pA,pR,pP)
{var sp='SITEPREF',s;var c=this.oConfig;s=sp;s+=':'+pA;s+=':'+pR;s+=':'+pP;s+=':'+c.currentSiteId;s+=':'+this.oSpref.sTargetSiteID;return s;}
function ebUSPSetPagenameRequest(pPN)
{var un='undefined';if(typeof(pageName)!=un)
{var tmp=pageName;pageName=pPN;if(typeof(ssDoRequest)!=un)
ssDoRequest();pageName=tmp;}}
new EbayUSP(ebay.oDocument.oPage,"usp");

//12@@m2

function EbayBizObject(pName)
{if(!this.objType)
this.objType="EbayBizObject";this.name=pName;this.createError=ebObjectCreateErrorWrapper;this.throwDebug=ebObjectThrowDebugWrapper;this.throwWarning=ebObjectThrowWarningWrapper;this.throwError=ebObjectThrowErrorWrapper;}

//13@@m3

function EbayClientServer()
{if(!this.objType)
this.objType="EbayClientServer";this.base=EbayBizObject;this.base("client_server");this.callDynamicScriptObject=ebClientServerCallDynamicScriptObject;this.callIframe=ebClientServerCallIframe;}
function ebClientServerCallDynamicScriptObject(pUrl)
{var oDoc=ebay.oDocument;if(!oDoc.createElement||!pUrl)
return;var oScript=oDoc.createElement("script");oScript.type='text/javascript';oScript.src=pUrl;var oFrag=document.getElementsByTagName("head")||document.getElementsByTagName("body");oFrag[0].appendChild(oScript);}
function ebClientServerCallIframe(pUrl)
{var oFrm=null,doc;var oDoc=ebay.oDocument;if(!oDoc.createElement||!pUrl)
return;var scriptstr='<scr'+'ipt src="'+pUrl+'" type="text/javascript"></scr'+'ipt>';oFrm=oDoc.createElement('iframe');oFrm.height=1;oFrm.width=1;oFrm.style.display='none';document.body.appendChild(oFrm);doc=oFrm.document||oFrm.contentDocument;doc.open();doc.write('<html><head></head><body>'+scriptstr+'</body></html>');doc.close();}
if(typeof(ebay)!="undefined")
ebay.oClientServer=new EbayClientServer();

//14@@m1

function EbayRTMFormConfig(pName)
{if(!this.objType)
this.objType="EbayRTMFormConfig";this.base=EbayConfig;this.base(pName);this.aRadioGroup=[];this.aCheckBoxGroup=[];this.aButtonGroup=[];this.sImageElem="";this.sUrl="";this.sStatusLayerElem="";}

//15@@m7

function EbayHTMLImage(pParent,pName,pDisabled,pSource,pDisabledSource,pCfg)
{if(!this.objType)
this.objType="EbayHTMLImage";this.base=EbayHTML;this.base(pParent,pName,pName,pDisabled,pCfg);this.sEnabledSource=this.sDisabledSource=pSource;if(pDisabledSource)
this.sDisabledSource=pDisabledSource;this.getElem=ebHTMLImageGetElem;this.source=ebHTMLImageSource;this.enableBase=this.enable;this.enable=ebHTMLImageEnable;this.subscribeEvents("onclick","onmouseover","onmouseout");}
function ebHTMLImageGetElem(pName)
{return this.getDocElem(pName,'images');}
function ebHTMLImageSource(pSrc,pText)
{var im=this.eElem;if(typeof(im)=='undefined')
return;if(typeof(pSrc)=="undefined")
return(im)?im.src:"";else
{im.src=pSrc;if(pText!=null)
im.alt=pText;}}
function ebHTMLImageEnable(pEnable)
{with(this)
{enableBase(pEnable);if(sDisabledSource&&eElem)
eElem.src=(pEnable)?sEnabledSource:sDisabledSource;}}

//16@@m11

function EbayHTMLPopup(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayHTMLPopup";this.base=EbayBaseControl;this.base(pParent,pName);this.oConfig=pCfg||null;if(!pCfg)
{this.sUrl="";this.iWidth=this.iHeight=this.iLeft=this.iTop=null;this.bToolbar=this.bLocation=this.bStatus=this.bScrollbars=this.bResizable=this.bMenubar=true;}
else
{var u="undefined";this.sUrl=typeof(pCfg.sUrl)!=u?pCfg.sUrl:"";this.iWidth=typeof(pCfg.iWidth)!=u?pCfg.iWidth:null;this.iHeight=typeof(pCfg.iHeight)!=u?pCfg.iHeight:null;this.iLeft=typeof(pCfg.iLeft)!=u?pCfg.iLeft:null;this.iTop=typeof(pCfg.iTop)!=u?pCfg.iTop:null;this.bToolbar=typeof(pCfg.bToolbar)!=u?pCfg.bToolbar:true;this.bLocation=typeof(pCfg.bLocation)!=u?pCfg.bLocation:true;this.bStatus=typeof(pCfg.bStatus)!=u?pCfg.bStatus:true;this.bScrollbars=typeof(pCfg.bScrollbars)!=u?pCfg.bScrollbars:true;this.bResizable=typeof(pCfg.bResizable)!=u?pCfg.bResizable:true;this.bMenubar=typeof(pCfg.bMenubar)!=u?pCfg.bMenubar:true;}
this.oWin=null;this.sProps=this.sCustomProps="";this.bModal=false;this.sSavedFocusFunction=null;this.iHBuffer=this.iWBuffer=0;this.show=ebHTMLPopupShow;this.getParamString=ebHTMLGetParamString;this.modality=ebHTMLModality
this.showEx=ebHTMLPopupShowEx;this.resizeParent=ebHTMLPopupResizeParent;this.close=ebHTMLPopupClose;this.focus=ebHTMLPopupFocus;this.sizeToContent=ebHTMLPopupSizeToContent;this.clearControls=ebHTMLPopupClearControls;}
function ebHTMLPopupShow(pIsPopUnder)
{var bPopUnder=(typeof(pIsPopUnder)!="undefined"&&pIsPopUnder)?true:false;with(this)
{if(sUrl.length==0)
return null;var sP=getParamString();var oD=oDocument,tWin=oD.win;oD.setGlobalParent(this);modality(tWin);if(sUrl.has("ej2child=true")&&!sUrl.has("ej2parent="))
sUrl+="&ej2parent="+name;var w=tWin.open(sUrl,name,sP);if(bPopUnder)
w.blur();if(w&&!bPopUnder)
w.focus();oWin=w;return w;}}
function ebHTMLGetParamString()
{with(this)
{sP=(iWidth!=null)?",width="+iWidth:"";sP+=(iHeight!=null)?",height="+iHeight:"";sP+=(iLeft!=null)?",screenX="+iLeft+",left="+iLeft:"";sP+=(iTop!=null)?",screenY="+iTop+",top="+iTop:"";sP+=",toolbar="+((bToolbar)?"1":"0");sP+=",location="+((bLocation)?"1":"0");sP+=",status="+((bStatus)?"1":"0");sP+=",scrollbars="+((bScrollbars)?"1":"0");sP+=",resizable="+((bResizable)?"1":"0");sP+=",menubar="+((bMenubar)?"1":"0");sP+=(sCustomProps.length>0)?","+sCustomProps:"";if(sP.length>0)
sP=sP.substring(1);sProps=sP;return sP;}}
function ebHTMLModality(pWin)
{if(pWin)
{with(this)
{if(bModal)
{pWin.g_ebPopupObject=this;sSavedFocusFunction=pWin.onfocus;pWin.onfocus=function()
{try
{g_ebPopupObject.focus();}
catch(e)
{}}}}}}
function ebHTMLPopupShowEx(pUrl,pWidth,pHeight,pToolbar,pLocation,pStatus,pScrollbars,pResizable,pMenubar,pLeft,pTop,pCustomsProps,pModal,pWBuffer,pHBuffer)
{with(this)
{if(pUrl)
sUrl=pUrl;iWidth=pWidth;iHeight=pHeight;iLeft=pLeft;iTop=pTop;bToolbar=pToolbar;bLocation=pLocation;bStatus=pStatus;bScrollbars=pScrollbars;bResizable=pResizable;bMenubar=pMenubar;if(pCustomsProps)
sCustomProps=pCustomsProps;bModal=pModal;iHBuffer=pHBuffer;iWBuffer=pWBuffer;return show();}}
function ebHTMLPopupResizeParent(pX,pY,pW,pH)
{var p=this.parent;if(p)
{if(!isNaN(pX)&&!isNaN(pY))
p.moveTo(pX,pY);if(!isNaN(pW)&&!isNaN(pH))
p.resizeTo(pW,pH);}}
function ebHTMLPopupClose()
{with(this)
{if(bModal)
oDocument.win.onfocus=sSavedFocusFunction;oDocument.closeWindow(oWin);}
this.clearControls();}
function ebHTMLPopupClearControls()
{this.controls=[];}
function ebHTMLPopupFocus()
{var w=this.oWin;if(w&&!w.closed)
w.focus();else
this.close();}
function ebHTMLPopupSizeToContent()
{with(this)
{var c=oGlobals.oClient;if(!(c.bNav&&(c.iVer<5)))
{var ims=oWin.document.images,len=ims.length;var bottom=0,right=0,cB,cR;for(var i=0;i<len;i++)
{cB=ims[i].offsetTop+ims[i].offsetHeight;cR=ims[i].offsetLeft+ims[i].offsetWidth;if(cB>bottom)bottom=cB;if(cR>right)right=cR;}
oWin.resizeTo(right+iWBuffer,bottom+iHBuffer);}}}

//17@@m2

if(typeof(VjRTM)=="undefined"||!VjRTM)
VjRTM={};VjRTM.popUp=function(sPopupTitle,sUrl,iWidth,iHeight,bStatus,bToolbar,bScrollBars,iLeft,iTop,bLocation,bResizable,bMenubar)
{var oCfg={};oCfg.sUrl=sUrl;oCfg.iWidth=iWidth;oCfg.iHeight=iHeight;oCfg.bStatus=bStatus;oCfg.bLocation=bLocation;oCfg.iLeft=iLeft;oCfg.iTop=iTop;oCfg.bToolbar=bToolbar;oCfg.bScrollbars=bScrollBars;oCfg.bResizable=bResizable;oCfg.bMenubar=bMenubar;var oRTMPopup=new EbayHTMLPopup(this,sPopupTitle,oCfg);oRTMPopup.show();return false;}

//18@@m28

function EbayRTM(pParent,pId,pDefUrl,pW,pH,pType,pInd)
{if(!this.objType)
this.objType="EbayRTM";var sName="rtm_"+pId;sName+=pInd?pInd:"";this.base=EbayBaseControl;this.base(pParent,sName);this.name=sName;this.config=new ebRTMConfig(pParent,pId,pDefUrl,pW,pH,pType,pInd);this.writeIFrame=ebWriteRTMFrame;}
function ebRTMConfig(pParent,pId,pDefUrl,pW,pH,pType,pInd)
{var sDivName="rtm_div_"+pId;sDivName+=pInd?pInd:"";var sName="rtm_"+pId;sName+=pInd?pInd:"";this.divname=sDivName;this.base=EbayConfig;this.base(sName);this.id=pId;this.defUrl=pDefUrl;this.defAdUrl="";this.w=(pDefUrl==null?1:pW);if(this.w<=1)
this.w="100%";this.h=(pDefUrl==null?1:pH);this.type=pType||0;this.collapsed=pDefUrl==null||pW<=1||pH<=1?true:false;this.sMaxWidth=null;this.sMaxHeight=null;this.sMinWidth=null;this.sMinHeight=null;this.isDoubleClick=false;this.bReserveMax=false;this.setIFContent=ebSetIFRTMContent;this.getIFHTML=ebGetIFRTMHTML;}
function ebWriteRTMFrame()
{var cfg=this.config,f,d=this.oDocument,oGl=this.oGlobals,xsrc=oGl.oEnvironment.sPicsDir+'s.gif',oCl=oGl.oClient,width,height,un="undefined";if(this.bReserveMax)
{width=(this.sMaxWidth)?this.sMaxWidth:cfg.w;height=(this.sMaxHeight)?this.sMaxHeight:cfg.h;}
else
{if(typeof(cfg.ifWidth)!=un)
width=cfg.ifWidth;else if(cfg.sMinWidth!=null)
width=cfg.sMinWidth;else
width=cfg.w;if(typeof(cfg.ifHeight)!=un)
height=cfg.ifHeight;else if(cfg.sMinHeight!=null)
height=cfg.sMinHeight;else
height=cfg.h;}
f='<div id="'+cfg.divname+'"><img src="'+xsrc+'" height="'+height+'" width="'+width+'" border="0"></div>';if(oCl.bMac&&oCl.bIE)
f+='<img src="'+xsrc+'" height="1" width="1" border="0">';d.write(f);var l=new EbayHTMLLayer(this.parent,cfg.divname);l.bind();}
function ebGetIFRTMHTML(pUrl)
{with(this)
{var width=(sMaxWidth)?sMaxWidth:w;var height=(sMaxHeight)?sMaxHeight:h;if(width=="auto"&&height=="auto")
return"";if(width=="auto")
width="100%";if(height=="auto")
height="100%";var f='<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"'
+' id="'+name+'"'+' name="'+name+'"'+' src="'+pUrl+'"'
+' width="'+width+'" height="'+height+'"></iframe>';return f;}}
function ebSetIFRTMContent(pUrl)
{var div=ebay.oDocument._getControl(this.divname),ifUrl="",cType=0;if(div)
{var aUrlType=ebGetRTMUrlNType(pUrl);var ifUrl=aUrlType[0],cType=aUrlType[1];if(cType==0)
{if(!this.isDoubleClick&&this.sMinWidth=="0"&&this.sMinHeight=="0")
{div.setValue('');div.setStyle('display','none');return;}
if(this.w!=0&&this.h!=0&&this.sMaxWidth!="0"&&this.sMaxHeight!="0")
div.setValue(this.getIFHTML(ifUrl));else
{div.setValue('');div.setStyle('display','none');}}
else if(cType==1)
{this.type=cType;oP.controls[this.divname].setValue(ifUrl);}}}
function ebGetRTMUrlNType(pUrl)
{var retArray=new Array("",0);if(pUrl&&pUrl.indexOf('*t*')!=-1)
retArray=pUrl.split('*t*');else if(typeof(pUrl)!='undefined')
retArray[0]=pUrl;return retArray;}
function EbayRTMInfo(pParent,pId)
{if(!this.objType)
this.objType="EbayRTMInfo";this.name="rtminfo_"+pId;this.iId=pId;this.w=null;this.h=null;this.base=EbayBaseControl;this.base(pParent,this.name);this.isRtm=false;this.isDoubleClick=false;this.isDefaultPlacement=false;this.isContentPlaced=false;}

//19@@m1

String.prototype.decodeBase64=function()
{var rv=this,len=rv.length,ret="",i=0;var chr1,chr2,chr3="";var enc1,enc2,enc3,enc4="";var aChar="ABCDEFGHIJKLMNOPQRSTUVWXYZ"+"abcdefghijklmnopqrstuvwxyz"+"0123456789+/=*";var test=new RegExp("[^A-Za-z0-9+/=*]");if(test.exec(rv)){return;}
do{enc1=aChar.indexOf(rv.charAt(i++));enc2=aChar.indexOf(rv.charAt(i++));enc3=aChar.indexOf(rv.charAt(i++));enc4=aChar.indexOf(rv.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;ret+=String.fromCharCode(chr1);if(!(enc3>=64))
ret+=String.fromCharCode(chr2);if(!(enc4>=64))
ret+=String.fromCharCode(chr3);chr1=chr2=chr3=enc1=enc2=enc3=enc4="";}while(i<len);return ret;}
String.prototype.decodeUTF8=function()
{var s=this,len=s.length;var rs="";var i=0;var c=c1=c2=0;while(i<len)
{c=s.charCodeAt(i);if(c<128)
{rs+=String.fromCharCode(c);i++;}
else if((c>191)&&(c<224))
{c2=s.charCodeAt(i+1);rs+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;}
else
{c2=s.charCodeAt(i+1);c3=s.charCodeAt(i+2);rs+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}}
return rs;}

//20@@m87

ebay.oDocument.oPage.aHtmlFormCache={};ebay.oDocument.oPage.getRtmHtmlFormContent=function(pId){var aCache=ebay.oDocument.oPage.aHtmlFormCache;if(!aCache||!pId){return"";}
return aCache[pId];}
ebay.oDocument.oPage.getPopUnderContent=function(pId)
{var aCache=ebay.oDocument.oPage.aPopUnderCache;if(!aCache||!pId)
return"";var iLen=aCache.length;for(var i=0;i<iLen;i++)
{if(aCache[i].iId==pId)
return aCache[i].sContent;}}
if(typeof(oAdManager)=="undefined")
var oAdManager=new EbayAdManager();function EbayRTMPlacement(pParent,pName)
{if(!this.objType)
this.objType="EbayRTMPlacement";this.base=EbayBaseControl;this.base(pParent,pName);this.srtmEngineHost="";this.aPID=new Array;this.rtms=new Array;this.rtminfos=new Array;this.bPlacementsLoaded=false;this.bOnAfterLoadExec=false;this.bDomainUnknown=false;this.register=ebRegisterRTM;this.delimiter="*t*";this.timeoutID=0;this.rdUrl="";this.sIframeName="rtm";this.bFrameNonDowngraded=false;this.appendUrl=ebAppendUrl;this.getEncodingType=ebEncodingType;this.writePlacement=ebWriteRTMPlacement;this.getRTMContent=ebGetRTMContent;this.setRTMContent=ebSetRTMContent;this.clearPlacements=ebClearRTMPlacements;this.getAdUrl=ebGetRTMAdUrl;this.getUserStr=ebGetRTMUserString;this.loadPlacements=ebLoadPlacements;this.execPageAfterLoad=ebExecPageAfterLoad;this.setRTMInlineTimeout=ebSetRTMInlineTimeout;this.WriteRTMItScriptCall=ebWriteRTMItScriptCall;this.writeInlinePlacement=ebWriteRTMInlinePlacement;this.setRTMInlineContent=ebSetRTMInlineContent;this.setLoadedDoubleClicks=ebSetLoadedDoubleClicks;this.writeContent=ebWriteContent;this.writeAllContents=ebWriteAllContents;this.writeMultipleSameContents=ebWriteMultipleSameContents;this.writeIframe=ebEbayRTMPlacementWriteIframe;this.downgradeDomain=ebRTMDowngradeDomain;this.initIframe=ebRTMPlacementInitIframe;this.initIframe();this.createRTM=ebCreateRTM;this.processRTMForm=ebEbayRTMPlacementProcessRTMForm;this.initRTMPopUnder=ebInitRTMPopUnder;this.processMerchPromo=ebProcessMerchPromo;this.loadScript=ebLoadScript;this.loadPromo=ebLoadPromo;this.bPromoStyle=this.bPromoScript=false;this.loader=this.oDocument.createElement("div");var iFrm=this.oDocument.win.frames[this.sIframeName];if(ebay.oGlobals.oClient.bFirefox&&typeof(iFrm)!='undefined'&&!this.bFrameNonDowngraded)
this.downgradeDomain();this.collectPids=function()
{var ret="",len=this.rtms.length;if(len>0)
{ret="&p=";for(var i=0;i<len;i++)
ret+=this.rtms[i].id+(i<len-1?":":"");}
return ret;}
this.rdPage=function()
{if(!this.rdUrl.is(''))
document.location.replace(this.rdUrl)}
this.globalAdOverlay=null;this.openReportAd=function(event,postUrl,dialogTitle,submitCaption,closeCaption,cancelCaption,adHeadlines,adTokens,reasonCodes,reasonCodeDesriptions){if(this.globalAdOverlay==null){this.globalAdOverlay=new ReportAdOverlay(dialogTitle,submitCaption,closeCaption,cancelCaption,reasonCodes,reasonCodeDesriptions,postUrl);}
if(this.globalAdOverlay!=null){this.globalAdOverlay.init(adHeadlines,adTokens);this.globalAdOverlay.open(event);}}
this.closeReportAd=function(){if(this.globalAdOverlay!=null){if(this.globalAdOverlay)
this.globalAdOverlay.close();}}
this.submitReportAd=function(){if(this.globalAdOverlay!=null){if(this.globalAdOverlay)
this.globalAdOverlay.submitReport();}}
this.addReportAdScript=function(){try{var script=document.createElement('script');script.type='text/javascript';script.src=ebay.oGlobals.oEnvironment.sJSPackagesDir+"features/rtm/report_ad.js";document.getElementsByTagName("head")[0].appendChild(script);}catch(er){}}}
function ebWriteRTMPlacement(pId,pAdCfg,pDefUrl,pType,pInd)
{if(document.layers)
return;var oRTM=this.createRTM(pId,pAdCfg,pDefUrl,pType,pInd);oRTM.writeIFrame();}
function ebCreateRTM(pId,pAdCfg,pDefUrl,pType,pInd)
{var c=pAdCfg||new EbayConfig(),defAdUrl='';var sMinWidth=c.ifWidth;var sMinHeight=c.ifHeight;if(c.objType.hasAny("EbayAdConfig","EbayAdTableConfig"))
defAdUrl=this.getAdUrl(c);pDefUrl=pDefUrl?pDefUrl:defAdUrl;var w=c.ifWidth||c.width;var h=c.ifHeight||c.height;w=(w=="9999")?"auto":w;h=(h=="9999")?"auto":h;var p=new EbayRTM(this,pId,pDefUrl,w,h,pType,pInd);p.config.defAdUrl=defAdUrl;p.adCfg=pAdCfg;p.config.sMaxWidth=(c.width=="9999")?"auto":c.width;p.config.sMaxHeight=(c.height=="9999")?"auto":c.height;p.config.sMinWidth=(sMinWidth=="9999")?"auto":sMinWidth;p.config.sMinHeight=(sMinHeight=="9999")?"auto":sMinHeight;if(typeof(p.adCfg.bReserveMax)!="undefined"&&p.adCfg.bReserveMax)
p.config.bReserveMax=p.adCfg.bReserveMax;this.register(p.config);return p;}
function ebGetRTMAdUrl(pCfg)
{var defAd=new EbayAd(ebay,pCfg.name,pCfg,oAdManager);defAd.setCountryGlobals=setAdCountryGlobals;defAd.setCountryLocals=setAdCountryLocals;defAd.setCountryGlobals(defAd.globals);defAd.globals.resetGlobals();defAd.setCountryLocals(defAd.config);return defAd.globals.iframeUrl+pCfg.getAdParamString(defAd.globals,defAd.ord);}
function ebSetRTMContent(pUrlArr,pSizeArr)
{var oC=this.oDocument.oPage.oConfig;if(oC.disableRTM)
return;window.clearTimeout(this.timeoutID);var aRTMs=this.rtms,un='undefined';if(aRTMs.length>0)
{for(i=0;i<aRTMs.length;i++)
{var isdc=(pUrlArr[i]!=-1&&pUrlArr[i].indexOf(';')==0)?true:false;if(pUrlArr[i]==-1&&!document.layers)
pUrlArr[i]=aRTMs[i].defUrl;else if(isdc)
{var sz=";sz";if(pUrlArr[i].length==1)
pUrlArr[i]=aRTMs[i].defAdUrl;else if(aRTMs[i].defAdUrl.indexOf(sz)!=-1)
pUrlArr[i]=aRTMs[i].defAdUrl.replace(sz,pUrlArr[i]+sz)}
if(!isdc&&typeof(pSizeArr[i])!=un&&pSizeArr[i]!=-1)
{if(pSizeArr[i].indexOf(":")!=-1)
{var rSize=pSizeArr[i].split(":");aRTMs[i].w=(rSize[0]==-1)?"auto":rSize[0];aRTMs[i].h=(rSize[1]==-1)?"auto":rSize[1];}}
aRTMs[i].setIFContent(pUrlArr[i]+'');}}}
function ebClearRTMPlacements()
{with(this)
{if(rtms.length>0&&!document.layers)
for(var i=0;i<rtms.length;i++)
rtms[i].setIFContent('*t*1');}}
function ebGetRTMContent(pCfg)
{if(document.layers)
return;var oC=ebay.oDocument.oPage.oConfig;if(oC.disableRTM)
{this.clearPlacements();return;}
if(pCfg)
{var path,rHost,id,u,timeout=0,un='undefined';if(!pCfg.rtmEngineHost)
return;if(this.rtms.length==0)
return;if(typeof(pCfg.timeout)!=un)
timeout=pCfg.timeout;path=pCfg.rtmEngineHost+this.collectPids();path+=(pCfg.params)?pCfg.params:"";path+=this.getUserStr(pCfg);var d=this.oDocument,g=this.oGlobals,u=this.oUtils;path+=this.appendUrl(pCfg);this.rdUrl=(typeof(pCfg.rdUrl)!=un)?pCfg.rdUrl:"";var sTimout="",timeout=1500;if(!this.rdUrl.is("")&&timeout>0)
sTimeout="document.location.replace('"+this.rdUrl+"')";else
{var rtmArr="";for(var i=0;i<this.rtms.length;i++)
rtmArr+="-1,";rtmArr=(rtmArr!="")?rtmArr.substr(0,rtmArr.length-1):"";sTimeout="ebay.oDocument._getControl('rtm').setRTMContent(["+
rtmArr+"],["+rtmArr+"])";}
this.timeoutID=window.setTimeout(sTimeout,timeout);d.write(u.scriptTag(path));}}
function ebAppendUrl(pCfg)
{var path="",oCJ=this.oDocument.oCookieJar;if(pCfg.rtmContextData)
path+="&c="+pCfg.rtmContextData;path+=(pCfg.params)?pCfg.params:"";if(pCfg.guid&&pCfg.guid!="")
path+="&g="+pCfg.guid;else
{var sgj=oCJ.readCookielet("ebay","sgj");if(sgj)
{path+="&g="+sgj;oCJ.writeCookielet("ebay","sgj","");}}
var oCJ=ebay.oDocument.oCookieJar,sin=oCJ.readCookielet("ebay","sin"),kms=oCJ.readCookielet("dp1","kms");if(sin.has("in")||kms.has("in"))
path+="&uf=1";else
path+="&uf=0";var oF=ebay.oDocument._getControl("flash");if(oF)
{var iFlashVersion=oF.getVersion();path+="&z="+iFlashVersion;}
path+="&ord=";if(oAdManager.randomKey)
path+=oAdManager.randomKey;else if(pCfg.ord&&pCfg.ord!="")
path+=pCfg.ord;else
{var rda=oCJ.readCookielet("ebay","rda").split('.')[0]||(new Date()).getTime();path+=rda;}
if(ebay.oGlobals.oClient.getBrowserWindowWidth)
var iWidth=ebay.oGlobals.oClient.getBrowserWindowWidth();if(iWidth)
path+='&bw='+iWidth;var cidCookie=oCJ.readCookielet("npii","cguid");if(cidCookie!="undefined"&&cidCookie!="")
path+='&cg='+cidCookie;path+='&v=3';return path;}
function ebGetRTMUserString(pCfg)
{var s='',qs=document.location.search,qi=qs.indexOf("&i=."),un='undefined',oCJ=this.oDocument.oCookieJar;if(!pCfg)
return s;with(pCfg)
{if(typeof userId!=un&&userId)
s='&i='+userId;else if(qi!=-1)
{var ci=qs.indexOf(";");if(ci!=-1)
s='&i='+qs.substring(qi+3,ci);else
s='&i='+qs.substring(qi+3);}
else if(typeof login!=un&&login)
s='&l='+login;else
{var u1pc=oCJ.readCookielet("dp1","u1p"),u1pd=(u1pc)?u1pc.decodeBase64().decodeUTF8():'';if(u1pd&&!u1pd.has('@@__@@__@@'))
s='&l='+u1pd;}}
return s;}
function ebRegisterRTM(pRTM)
{if(pRTM)
{var r=this.rtms.length;this.rtms[r]=pRTM;}}
function ebEncodingType()
{var encType=null;if(typeof(_GlobalNavHeaderUtf8Encoding)!="undefined")
{encType=_GlobalNavHeaderUtf8Encoding?"UTF-8":"cp1252";}
return encType;}
function ebLoadPlacements(oC)
{if(document.layers)
return;if(!oC)
return;if(!oC.srtmEngineHost)
return;var oGlobalNav;if(typeof(_oGlobalNavRTMInfo)!="undefined")
oGlobalNav=_oGlobalNavRTMInfo;if(oGlobalNav&&oGlobalNav.aRTMPlacementData&&oGlobalNav.aRTMPlacementData.length>0)
{var len=oGlobalNav.aRTMPlacementData.length;for(var i=0;i<len;i++)
{var oPlacementCfg=oGlobalNav.aRTMPlacementData[i];var sPid=oPlacementCfg.pid;oC.aPids[oC.aPids.length]=sPid;var cfg=getCustomAdConfig("globalNav_"+sPid,["default"],"1",oPlacementCfg.maxWidth,oPlacementCfg.maxHeight,oPlacementCfg.minWidth,oPlacementCfg.minHeight,null,null,false);var oRTM=this.createRTM(sPid,cfg,oPlacementCfg.defaultUrl);oRTM.config.divname=oPlacementCfg.htmlId;var oGlobalNavLayer=new EbayHTMLLayer(this,oRTM.config.divname);oGlobalNavLayer.bind();}}
var i=0,aP=oC.aPids;this.srtmEngineHost=oC.srtmEngineHost;this.aPID=oC.aPids;for(i;i<aP.length;i++)
{var oRTMInfo=new EbayRTMInfo(this,aP[i]);this.rtminfos[i]=oRTMInfo;}
var sRtmUrl=oC.srtmEngineHost+"&p="+aP.join(":")+this.getUserStr(oC)+this.appendUrl(oC);if(this.getEncodingType()!=null)
{sRtmUrl=sRtmUrl+"&enc="+this.getEncodingType();}
var oIfrm=eval("this.oDocument.win.frames['"+this.sIframeName+"']"),bIfrm=(typeof(oIfrm)!="undefined"&&typeof(oIfrm.document)!="unknown");var u=this.oUtils;var client=ebay.oGlobals.oClient;if(sRtmUrl.has("a=inline1"))
this.oDocument.write(u.scriptTag(sRtmUrl));else if(client.bFirefox&&bIfrm&&oIfrm)
{if(this.bFrameNonDowngraded)
oIfrm.document.open();oIfrm.document.write(u.scriptTag(sRtmUrl));}
else{ebay.oClientServer.callDynamicScriptObject(sRtmUrl);if(typeof(_oGlobalNavRTMInfo)!="undefined"){_oGlobalNavRTMInfo.aRTMPlacementData=[];}}
if(client.bFirefox&&bIfrm)
oIfrm.document.close();var sTimout="",timeout=1500;this.rdUrl=oC.rdUrl||"";if(oC.bMultipleSameIds)
this.writeAllContents=this.writeMultipleSameContents;if(!this.rdUrl.is("")&&timeout>0)
sTimeout="document.location.replace('"+this.rdUrl+"')";else
sTimeout="ebay.oDocument._getControl('rtm').setRTMInlineTimeout()";this.timeoutID=window.setTimeout(sTimeout,timeout);var oD=this.parent.oDocument,oP=oD.oPage;this._registerListener(oD._getEvent("load"),oP.EVENT_AFTER,"execPageAfterLoad");}
function ebEbayRTMPlacementProcessRTMForm(pStatusLayer)
{var oStatus=new EbayHTMLLayer(this,pStatusLayer);oStatus.bind();oStatus.show(true);return true;}
function ebSetRTMInlineTimeout()
{if(this.bOnAfterLoadExec)
{var rtmArr1=[],rtmArr2=[],s=(this.bDomainUnknown)?";":"-1";for(var i=0;i<this.rtminfos.length;i++)
{rtmArr1[i]=s;rtmArr2[i]="-1";if(this.rtminfos[i])
{if(this.rtminfos[i].sMinWidth!=0&&this.rtminfos[i].sMinHeight!=0)
rtmArr2[i]="-1";else
rtmArr2[i]="0:0";}}
var oC=this.oDocument.oPage.oConfig;oC.disableRTM=false;this.setRTMInlineContent(rtmArr1,rtmArr2);this.WriteRTMItScriptCall();}
else
{var sTimeout="ebay.oDocument._getControl('rtm').setRTMInlineTimeout()";var timeout=1500;this.timeoutID=window.setTimeout(sTimeout,timeout);this.WriteRTMItScriptCall();}}
function ebWriteRTMItScriptCall()
{var timeout=1500,rtmItUrl,randomNo;var index=this.srtmEngineHost.indexOf("&");this.srtmEngineHost=this.srtmEngineHost.substring(0,index);rtmItUrl=this.srtmEngineHost+"&p="+this.aPID.join(":")+"&ite=2"+"&to="+timeout;rtmItUrl=rtmItUrl.replace("RtmCmd","RtmIt");randomNo=Math.random();if(randomNo<0.05)
ebClientServerCallDynamicScriptObject(rtmItUrl);window.clearTimeout(this.timeoutID);}
function ebWriteRTMInlinePlacement(pId,pAdCfg,pDefUrl,pType,pInd)
{if(document.layers)
return;this.writePlacement(pId,pAdCfg,pDefUrl,pType,pInd);if(this.bPlacementsLoaded)
this.writeAllContents();}
function ebExecPageAfterLoad()
{this.bOnAfterLoadExec=true;if(this.bPlacementsLoaded)
this.writeAllContents();}
function ebWriteAllContents()
{var aRTMs=this.rtms,aRTMInfos=this.rtminfos,i=0;for(i;i<aRTMInfos.length;i++)
{if(!aRTMInfos[i].isContentPlaced)
{if(aRTMInfos[i].bIsPopUnder)
this.writeContent(aRTMs[j],aRTMInfos[i]);else
for(var j=0;j<aRTMs.length;j++)
{if(aRTMInfos[i].iId==aRTMs[j].id)
{var oDiv=this.controls[aRTMs[j].divname];if(oDiv&&oDiv.eElem)
{this.writeContent(aRTMs[j],aRTMInfos[i]);aRTMInfos[i].isContentPlaced=true;}
break;}}}}}
function ebWriteMultipleSameContents()
{var aRTMs=this.rtms,aRTMInfos=this.rtminfos,i=0,iRILen=this.rtminfos.length,iRLen=aRTMs.length;for(i;i<iRILen;i++)
{for(var j=0;j<iRLen;j++)
{if((aRTMInfos[i].iId==aRTMs[j].id)&&!aRTMs[j].isContentPlaced)
{var oDiv=this.controls[aRTMs[j].divname];if(oDiv&&oDiv.eElem)
{this.writeContent(aRTMs[j],aRTMInfos[i]);aRTMs[j].isContentPlaced=true;}
break;}}}}
function ebWriteContent(pRTM,pRTMInfo)
{if(pRTMInfo.bIsPopUnder)
{this.initRTMPopUnder(pRTMInfo);return;}
else if(pRTMInfo.bIsHtmlForm)
{ebay.oDocument.oPage.aHtmlFormCache[pRTMInfo.iId]=pRTMInfo.sContent;var oL=this.controls[pRTM.divname];if(pRTMInfo.w&&pRTMInfo.h)
{if(pRTMInfo.h=="-1"||pRTMInfo.h==-1)
pRTMInfo.h=pRTM.h;var oLStyle=oL.eElem.style,h,w;oLStyle.height=h=(pRTMInfo.h.has('auto')||pRTMInfo.h.has('%'))?pRTMInfo.h:pRTMInfo.h+"px";oLStyle.width=w=(pRTMInfo.w.has('auto')||pRTMInfo.w.has('%'))?pRTMInfo.w:pRTMInfo.w+"px";if(h!='auto'&&w!='auto')oLStyle.overflow="hidden";}
var iframe=document.createElement("iframe");var oEnv=ebay.oDocument.oGlobals.oEnvironment;var domain=document.domain;var url="http://pages"+oEnv.sCountryDomain+"rtm/popunder.html"+"?downgradeDomainTo="+domain+"&pid="+pRTMInfo.iId+"&htmlForm=1";iframe.setAttribute("src",url);iframe.setAttribute("hspace",0);iframe.setAttribute("vspace",0);iframe.setAttribute("width","100%");iframe.setAttribute("frameBorder",0);iframe.setAttribute("scrolling","no");iframe.setAttribute("marginWidth",0);iframe.setAttribute("marginHeight",0);oL.eElem.appendChild(iframe);}
else if(pRTMInfo.isRtm)
{var oL=this.controls[pRTM.divname];if(pRTMInfo.w&&pRTMInfo.h)
{if(pRTMInfo.h=="-1"||pRTMInfo.h==-1)
pRTMInfo.h=pRTM.h;var oLStyle=oL.eElem.style,h,w;oLStyle.height=h=(pRTMInfo.h.has('auto')||pRTMInfo.h.has('%'))?pRTMInfo.h:pRTMInfo.h+"px";oLStyle.width=w=(pRTMInfo.w.has('auto')||pRTMInfo.w.has('%'))?pRTMInfo.w:pRTMInfo.w+"px";if(h!='auto'&&w!='auto')oLStyle.overflow="hidden";}
oL.setValue(pRTMInfo.sContent);}else if(pRTMInfo.isMerchPromo){var oL=this.controls[pRTM.divname];this.processMerchPromo(pRTMInfo,oL);}else
{if(pRTMInfo.w)
pRTM.w=pRTMInfo.w;if(pRTMInfo.h)
pRTM.h=pRTMInfo.h;if(pRTMInfo.isDoubleClick)
this.setLoadedDoubleClicks(pRTM,pRTMInfo);else
pRTM.setIFContent(pRTM.defUrl+'');}}
function ebSetLoadedDoubleClicks(pRTM,pRTMInfo)
{if(pRTMInfo.isDoubleClick)
pRTM.isDoubleClick=true;var sz=";sz";if(pRTMInfo.sAdContent.length==1)
pRTM.defAdUrl=pRTM.defAdUrl;else if(pRTM.defAdUrl.indexOf(sz)!=-1)
pRTM.defAdUrl=pRTM.defAdUrl.replace(sz,pRTMInfo.sAdContent+sz);pRTM.setIFContent(pRTM.defAdUrl+'');}
function ebInitRTMPopUnder(pRTMInfo)
{if(pRTMInfo.isContentPlaced)
return;pRTMInfo.isContentPlaced=true;var aCache=ebay.oDocument.oPage.aPopUnderCache=new Array();aCache[aCache.length]=pRTMInfo;var oEnv=ebay.oDocument.oGlobals.oEnvironment;var domain=document.domain;var oCfg={};oCfg.sUrl="http://pages"+oEnv.sCountryDomain+"rtm/popunder.html"+"?downgradeDomainTo="+domain+"&pid="+pRTMInfo.iId;oCfg.iWidth=pRTMInfo.w;oCfg.iHeight=pRTMInfo.h;oCfg.iLeft=null;oCfg.iTop=null;oCfg.bToolbar=false;oCfg.bLocation=false;oCfg.bStatus=false;oCfg.bScrollbars=false;oCfg.bResizable=false;oCfg.bMenubar=false;var oPopUnder=new EbayHTMLPopup(this.parent,"Advertisement",oCfg);oPopUnder.show(true);}
function ebSetRTMInlineContent(pContentArr,pSizeArr)
{window.clearTimeout(this.timeoutID);var oC=this.oDocument.oPage.oConfig;if(oC.disableRTM)return;var aRTMs=this.rtms,aRTMInfos=this.rtminfos,un='undefined',i=0,reportAdScriptDropped=false;if(aRTMInfos.length>0)
{for(i=0;i<aRTMInfos.length;i++)
{var currContent=pContentArr[i];var bIsMerchPromo=(currContent!=-1&&currContent.errors)?true:false;var bIsPopUnder=(!bIsMerchPromo&&currContent!=-1&&pContentArr[i].indexOf(':')==0)?true:false;var isdc=(!bIsMerchPromo&&currContent!=-1&&pContentArr[i].indexOf(';')==0)?true:false;if(!reportAdScriptDropped&&currContent!=null&&currContent.indexOf("openReportAd")>0){reportAdScriptDropped=true;this.addReportAdScript();}
var bIsHtmlForm=(!bIsMerchPromo&&pContentArr[i]!=-1&&pContentArr[i].indexOf('~')==0)?true:false;if(pContentArr[i]==-1&&!document.layers)
{aRTMInfos[i].isDefaultPlacement=true;}else if(bIsMerchPromo){if(currContent.length>0)
currContent=currContent[0];aRTMInfos[i].promoMap=currContent.data.map;aRTMInfos[i].isMerchPromo=true;}else if(isdc)
{aRTMInfos[i].isDoubleClick=true;aRTMInfos[i].sAdContent=pContentArr[i];}else if(bIsPopUnder)
{if(pContentArr[i].length>1)
pContentArr[i]=pContentArr[i].substring(1);aRTMInfos[i].sContent=pContentArr[i];aRTMInfos[i].bIsPopUnder=true;}else if(bIsHtmlForm)
{if(pContentArr[i].length>1)
pContentArr[i]=pContentArr[i].substring(1);aRTMInfos[i].sContent=pContentArr[i];aRTMInfos[i].bIsHtmlForm=true;}else
{aRTMInfos[i].sContent=pContentArr[i];aRTMInfos[i].isRtm=true;}
if(!isdc&&typeof(pSizeArr[i])!=un&&pSizeArr[i]!=-1)
{if(pSizeArr[i].indexOf(":")!=-1)
{var rSize=pSizeArr[i].split(":");aRTMInfos[i].w=(rSize[0]==-1||rSize[0]=="9999")?"auto":rSize[0];aRTMInfos[i].h=(rSize[1]==-1||rSize[1]=="9999")?"auto":rSize[1];}}}}
this.bPlacementsLoaded=true;this.writeAllContents();var oIfrm=this.oDocument.getUIElem(this.sIframeName);if(ebay.oGlobals.oClient.bIE&&oIfrm)
oIfrm.outerHTML='';}
function ebEbayRTMPlacementWriteIframe()
{var f='<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width="1" height="1" scrolling="no" id="'+this.sIframeName+'" name="'+this.sIframeName+'"></iframe>';this.oDocument.doc.write(f);}
function ebRTMPlacementInitIframe()
{var oIfrm=this.oDocument.win.frames[this.sIframeName],b=this.oDocument.oPage.oConfig.bNoRTMDowngrade;if(b||typeof(oIfrm)=="undefined"||typeof(oIfrm.document)=="unknown")
this.bFrameNonDowngraded=true;if(b==false)
this.bFrameNonDowngraded=false;if(!(this.oDocument.doc.location.toString().indexOf('https')==0))
{this.sIframeName="rtm_data_frame";if(ebay.oGlobals.oClient.bFirefox)
this.writeIframe();}}
function ebRTMDowngradeDomain()
{var oIfrm=this.oDocument.win.frames[this.sIframeName],dd=document.domain,i=dd.indexOf(".ebay."),dd=dd.substring(i+1),cl=this.oGlobals.oClient,sIfrm_downgrade_domain='<scr'+'ipt language=javascript>document.domain="'+dd+'";</scr'+'ipt>';if(cl.bOpera&&(!oIfrm||!oIfrm.document))
ebay.oDocument._getControl("rtm").downgradeDomain();else
{if(oIfrm&&oIfrm.document)
{oIfrm.document.open();oIfrm.document.write(sIfrm_downgrade_domain);}}}
function ebProcessMerchPromo(pMerchInfo,pLayer)
{var map=pMerchInfo.promoMap;for(var property in map){var match=property.match(/ME([0-9]+)(.*)/);if(match&&pLayer){this.loadPromo(map[property],pLayer);}else if(property.match("Script")&&!this.bPromoScript)
this.bPromoScript=this.loadScript(map[property]);else if(property.match("Style")&&!this.bPromoStyle){if(map[property]){this.bPromoStyle=true;}}}}
function ebLoadScript(pTxt)
{with(window){try{eval(pTxt);return true;}catch(except){}}
return false;}
function ebLoadPromo(pContent,pLayer)
{this.loader.innerHTML=this.loader.innerHTML+pContent;pLayer.setValue(this.loader.innerHTML);}
new EbayRTMPlacement(ebay.oDocument.oPage,"rtm");

//21@@m2

function EbayHTMLActiveX(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLActiveX";this.base=EbayHTML;this.base(pParent,pName,pName,pDisabled,pCfg);this.getElem=ebHTMLActiveXGetElem;}
function ebHTMLActiveXGetElem(pName)
{return this.oDocument.doc.getElementById(pName);}

//22@@m2

function EbayHTMLActiveXWriter(pParent,pName)
{if(!this.objType)
this.objType="EbayHTMLActiveXWriter";this.base=EbayHTMLActiveX;this.base(pParent,pName);this.sID="";this.sName="";this.iWidth=0;this.iHeight=0;this.sClassID="";this.sCodeBase="";this.sType="";this.sPluginsPage="";this.aParams=[];this.aNestedText=[];this.addParam=function(pName,pValue)
{this.aParams[pName]=pValue;}
this.addNestedText=function(pText)
{this.aNestedText[this.aNestedText.length]=pText;}
this.writeObject=function()
{var str="<object ";str+="id='"+this.sID+"' ";str+="name='"+this.sName+"' ";str+="width='"+this.iWidth+"' ";str+="height='"+this.iHeight+"' ";str+="codebase='"+this.sCodeBase+"' ";str+="classid='"+this.sClassID+"' ";str+=">";for(var i in this.aParams)
{this.addNestedText("<param name='"+i+"' value='"+this.aParams[i]+"'>");}
for(var i=0;i<this.aNestedText.length;i++)
{str+=this.aNestedText[i];}
str+="</object>";return str;}
this.clearParam=function(pName)
{this.aParams[pName]=null;}
this.clearNestedText=function()
{this.aNestedText=[];}}

//23@@m1

function EbayHTMLFlashWriter(pParent,pName)
{if(!this.objType)
this.objType="EbayHTMLFlashWriter";this.base=EbayHTMLActiveXWriter;this.base(pParent,pName);this.aFlashVars=[];this.addFlashVar=function(pName,pValue)
{this.aFlashVars[pName]=pValue;}
this.writeFlash=function()
{var fv="";for(var i in this.aFlashVars)
{fv+=i+"="+this.aFlashVars[i]+"&";}
this.addParam("flashvars",fv);var embed="<EMBED";embed+=" src='"+this.aParams["movie"]+"'";embed+=" width='"+this.iWidth+"'";embed+=" height='"+this.iHeight+"'";embed+=" flashvars='"+fv+"'";embed+=" scale='"+this.aParams["scale"]+"'";embed+=" salign='"+this.aParams["salign"]+"'";embed+=" menu='"+this.aParams["menu"]+"'";embed+=" type='"+this.sType+"'";embed+=" pluginspage='"+this.sPluginsPage+"'";embed+=" wmode='"+this.aParams["wmode"]+"'";embed+="></embed>";this.addNestedText(embed);var text=this.writeObject();this.clearParam("flashvars");this.clearNestedText();return text;}}

//24@@e1

function EbayHTMLFlash(pParent,pName)
{if(!this.objType)
this.objType="EbayHTMLFlash";this.base=EbayBaseControl;this.base(pParent,pName);this.oFlashWriterConfig=[];this.oFlashModule=[];this.oRTM=null;this.bUseRTM=false;this.bRTMReady=false;this.aSeg=[];this.aConfigNames=[];this.addModule=function(pConfig)
{var unique=pConfig.sName+""+Math.ceil(Math.random()*1000000000);this.oFlashModule[pConfig.sName]=unique;pConfig.sUniqueName=unique;}
this.registerRTM=function()
{var o=this.oRTM=this.parent._getControl('rtm');if(o)
{o.setRTMInlineContentBase=this.oRTM.setRTMInlineContent;o.setRTMInlineContent=function(pContent,pSize)
{this.setRTMInlineContentBase(pContent,pSize);var o=this.oDocument._getControl('flash');o.bRTMReady=true;o.aSegs=pContent||[];o.loadAllOnDemand();}}}
this.write=function(pConfig)
{if(!this.oRTM)
this.registerRTM();var c=pConfig;this.addModule(c);if(c.objType=="EbayFlashModuleConfig")
{var dc=this.oDocument.getConfig("Common.Flash.DoubleClick.UrlData");if(typeof(dc)!="undefined")
{if(typeof(dc.iOrd)=="undefined")
dc.iOrd=Math.ceil(Math.random()*100000000);}
if(c.sExecuteOn=="rtm-response")
{if(this.bRTMReady)
{var aS=this.aSegs;if(aS.length)
{var seg=aS[this.aConfigNames.length];c.sSeg=(seg!=-1&&seg.indexOf(';')==0)?aS[this.aConfigNames.length]:"";}
c.sExecuteOn="inline";}
else
this.aConfigNames[this.aConfigNames.length]=c.sName;}
if(c.sExecuteOn=="inline")
{var str,f=this.getFlashWriter(c,dc);str=f.writeFlash();if(c.bWindowMode)
{str='<div style="height:'+c.iMinHeight+'px"><div style="position:absolute; z-index:1">'+str;str+="</div></div>";}
this.parent.write(str);}
else
{this.oFlashWriterConfig[c.sName]=c;this.parent.write("<div style='width:"+c.iWidth+"' id='"+c.sName+"_placeholder'></div>");}}}
this.loadAllOnDemand=function()
{var l=this.aConfigNames.length,name,aC=this.oFlashWriterConfig,bAllLoaded=true,slen=this.aSegs.length;for(var i=0;i<l;i++)
{name=this.aConfigNames[i];if(name&&aC[name])
{var seg=this.aSegs[i]||-1;aC[name].sSeg=(slen&&seg!=-1&&seg.indexOf(';')==0)?seg:"";this.loadOnDemand(name);}
else
bAllLoaded=false;}}
this.getFlashWriter=function(pConfig,pDc)
{var dc=pDc,f=new EbayHTMLFlashWriter(this,pConfig.sName);with(pConfig)
{f.sID=sName;f.sName=sName;f.iWidth=iWidth;f.iHeight=iHeight;if(bWindowMode&&!ebay.oGlobals.oClient.bIE)
{f.iHeight=iMinHeight;}
f.sClassID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";f.sCodeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab";f.sType="application/x-shockwave-flash";f.sPluginsPage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash";f.addParam("movie",sSWF);f.addParam("wmode",bWindowMode?"transparent":"");f.addParam("scale",sScale);f.addParam("salign",sSAlign);f.addParam("menu",false);f.addFlashVar("xmlFile",sXMLFile);f.addFlashVar("movieid",sName);f.addFlashVar("initialSize",iInitialSize);f.addFlashVar("config",sXMLFile);f.addFlashVar("name",sName);f.addFlashVar("uniqueName",sUniqueName);f.addFlashVar("width",iWidth);f.addFlashVar("height",iHeight);if(typeof(sRendererPath)!="undefined")
f.addFlashVar("fvRenderer",sRendererPath);f.addFlashVar("fvIncludePath",this.oGlobals.oEnvironment.sIncludeHost);f.addFlashVar("fvPicsPath",this.oGlobals.oEnvironment.sPicsDir);f.addFlashVar("fvComponentPath",this.oGlobals.oEnvironment.sIncludeHost+"aw/pics/flash/");f.addFlashVar("fvConfig",sXMLFile);f.addFlashVar("fvDataConfig",sXMLFile2);f.addFlashVar("fvName",sName);f.addFlashVar("fvUniqueName",sUniqueName);f.addFlashVar("fvWidth",iWidth);f.addFlashVar("fvHeight",iHeight);if(typeof(sCurrentSiteId)!="undefined")
f.addFlashVar("fvCurrentSiteId",sCurrentSiteId);if(typeof(sTargetSiteId)!="undefined")
f.addFlashVar("fvTargetSiteId",sTargetSiteId);if(dc)
{if(dc.sDomain.lastIndexOf("/")==dc.sDomain.length-1)
dc.sDomain=dc.sDomain.substring(0,dc.sDomain.length-1);f.addFlashVar("dclk_Domain",dc.sDomain);f.addFlashVar("dclk_DartSite",dc.sDartSite);f.addFlashVar("dclk_AdSize",sAdSize);f.addFlashVar("dclk_Tile",sTile);f.addFlashVar("dclk_Ord",dc.iOrd);f.addFlashVar("dclk_Seg",sSeg);f.addFlashVar("dclk_Zone",dc.sZone);}}
return f;}
this.loadOnDemand=function(pName)
{var c=this.oFlashWriterConfig[pName]
if(typeof(c)=='undefined')
return;var str,f=this.getFlashWriter(c,this.oDocument.getConfig("Common.Flash.DoubleClick.UrlData"));str=f.writeFlash();if(c.bWindowMode)
{str='<div style="height:'+c.iMinHeight+'px"><div style="position:absolute; z-index:1">'+str;str+="</div></div>";}
var placeholder=new EbayHTMLLayer(this,pName+"_placeholder");placeholder.bind();if(placeholder.eElem)
placeholder.setValue(str);}
this.notify=function(pMod,pFunc,pParam)
{var notifySrc=this.oGlobals.oEnvironment.sIncludeHost+'aw/pics/flash/global/notify/dist/notify.swf';var div=new EbayHTMLLayer(this,"EbayHTMLFlash_notify_div");div.bind();div.setValue("<embed src='"+notifySrc+"' FlashVars='mod="+pMod+"&func="+pFunc+"&param="+pParam+"' width='0' height='0' type='application/x-shockwave-flash'></embed>");}
this.getVersion=function()
{var fv=0,cl=this.oGlobals.oClient;if(typeof(vjo)!="undefined"&&typeof(vjo.dsf.flash)!="undefined"&&typeof(vjo.dsf.flash.Version)!="undefined")
{fv=vjo.dsf.flash.Version.get();}
else
{var vers=[10,9];if(cl.bIE&&cl.bWin&&!cl.bOpera)
{for(var i=0;i<vers.length;i++)
{if(cl.activeXLibLoaded("ShockwaveFlash.ShockwaveFlash."+vers[i]))
{fv=vers[i];break;}}}
else
{if(navigator.plugins["Shockwave Flash"])
{var pd=navigator.plugins["Shockwave Flash"].description;var flashIndex=pd.indexOf("Flash")+5;fv=parseInt(pd.substr(flashIndex,pd.length));}
if(cl.bWebTV)fv=3;}}
return fv;}
this.init=function()
{var d=this.parent,cl=this.oGlobals.oClient;d.write("<div id='EbayHTMLFlash_notify_div'></div>");}
this.init();}
function EbayFlashModuleConfig(pName)
{this.objType="EbayFlashModuleConfig";this.sName=pName;this.sUniqueName="";this.sMod="";this.iWidth=0;this.iHeight=0;this.iMinHeight=0;this.sSWF="";this.sExecuteOn="inline";this.bWindowMode=false;this.sFlashVars="";this.sScale="noscale";this.sSAlign="lt";this.sXMLFile="";this.sXMLFile2="";this.iInitialSize=0;this.sAdSize="";this.sTile="";this.sSeg="";}
new EbayHTMLFlash(ebay.oDocument,"flash");

//25@@m5

var FRAME_NAME='myframe';var MERCH_FRAME_NAME='merchandise_PromoTool';var bIsFrameLoaded=false;var bIsAdsDrawn=false;var ads_width=275;var ads_height=null;var ADS_BORDER_COLOR='fee859';var ads_chunk_a=2;var ads_chunk_a_height=0;var ads_chunk_b=4;var ads_chunk_b_height=0;var ads_chunk_c=8;var ads_chunk_c_height=0;var ads_sizes=new Array();var ads_promo_url='';var ads_cell_padding=0;var ads_cell_separator_padding=1;var SEGMENT_VISITOR='hpA';var SEGMENT_BUYER='hpC';var SEGMENT_INACTIVE='hpB';var SEGMENT_SELLER='hpD';var SEGMENT_UNSUCCESSFUL_BID='hpE';var SEGMENT_FREQ_VISITOR='hpF';var FRAME_TIMEOUT=2000;var FRAME_INTERVAL=250;var blnIsMotorsSite=false;var totalTimePassed_merchandise=0;var totalTimePassed_greeting=0;var strSpacerHtml='<br><table width="100%" border="0" cellspacing="0" cellpadding="0">'+'<tr>'+'<td height="5"><img src="http://pics.ebaystatic.com/aw/pics/x.gif" width="1" height="5"></td>'+'</tr>'+'</table>';function queryFocus()
{var oD=ebay.oDocument;if(oD.getQueryValue("searchfocus=off")=="")
{var oForm=oQuery=oTitle=null;if(oD.getUIElem('search_form'))
oForm=oD.getUIElem('search_form');else if(oD.getUIElem('searchform'))
oForm=oD.getUIElem('searchform');if(oForm)
{oQuery=oForm.query;oTitle=oForm.satitle;}
else
{oQuery=oD.getUIElem('query');oTitle=oD.getUIElem('satitle');}
if(oQuery)
oQuery.focus();else if(oTitle)
oTitle.focus();}}
if(ebay.oDocument.oGlobals.oEnvironment.sCountry=="us")
queryFocus();function writeMyEbayAtAGlance(pAppServerUrl,pStaticUrl)
{var a="=";if(typeof(ebay)!="undefined")
{if(ebay.oGlobals.oClient.bFirefox)
a=":";}
if(document.layers)
{}
else
{var bSignedIn=isAuthenticatedUser()||isIdentifiedUser();if(!bSignedIn&&(typeof(pStaticUrl)!="undefined"))
document.write("<iframe src=\""+pStaticUrl+"\" name=\""+FRAME_NAME+"\" id=\""+
FRAME_NAME+"\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" "+"style=\"width"+a+"100%;height"+a+"1px;\">"+"&nbsp;</iframe>");else
document.write("<iframe src=\""+pAppServerUrl+"ebayISAPI.dll?HomeLandingPage\" name=\""+FRAME_NAME+"\" id=\""+
FRAME_NAME+"\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" "+"style=\"width"+a+"100%;height"+a+"1px;\">"+"&nbsp;</iframe>");}}
function writeMerchandiseProducts(pSegment,pPromoAdsUrl)
{var oC=ebay.oGlobals.oClient
if(oC.fMinorVer==0&&oC.bIE&&oC.bMacppc&&oC.iVer==5)
{return false;}
if(pPromoAdsUrl)ads_promo_url=pPromoAdsUrl;document.write('<div id="merchandiseProducts" name="merchandiseProducts">&nbsp;</div>');if(!isAuthenticatedUser()&&!isIdentifiedUser())
{initMerchandiseProductVars();drawAds(pSegment,ads_chunk_c,ads_chunk_c_height);bIsAdsDrawn=true;}
writeMerchandiseProductsHelper(pSegment);}
function writeMerchandiseProductsHelper(pSegment)
{var intTotalReminders=0;if(parent.frames[FRAME_NAME]==null)
{initMerchandiseProductVars();drawAds(pSegment,ads_chunk_c,ads_chunk_c_height);}
else if(totalTimePassed_merchandise>=FRAME_TIMEOUT)
{if(typeof(parent.frames[FRAME_NAME].document)!="unknown")
{intTotalReminders=eval(FRAME_NAME+'.TotalReminders');adjustIFrameSize(FRAME_NAME);if(isAuthenticatedUser()||isIdentifiedUser())
{initMerchandiseProductVars();if(intTotalReminders>=7)
drawAds(pSegment,ads_chunk_a,ads_chunk_a_height);else if(intTotalReminders>=3)
drawAds(pSegment,ads_chunk_b,ads_chunk_b_height);else
drawAds(pSegment,ads_chunk_c,ads_chunk_c_height);}}
else
{hideIFrame(eval(FRAME_NAME),FRAME_NAME);initMerchandiseProductVars();drawAds(pSegment,ads_chunk_c,ads_chunk_c_height);}}
else if(bIsFrameLoaded)
{intTotalReminders=eval(FRAME_NAME+'.TotalReminders');adjustIFrameSize(FRAME_NAME);if(isAuthenticatedUser()||isIdentifiedUser())
{initMerchandiseProductVars();if(intTotalReminders>=7)
drawAds(pSegment,ads_chunk_a,ads_chunk_a_height);else if(intTotalReminders>=3)
drawAds(pSegment,ads_chunk_b,ads_chunk_b_height);else
drawAds(pSegment,ads_chunk_c,ads_chunk_c_height);}}
else
setTimeout('writeMerchandiseProductsHelper("'+pSegment+'")',FRAME_INTERVAL);totalTimePassed_merchandise+=FRAME_INTERVAL;}
function drawAds(pSegment,pNumAds,pTotalHeight)
{if(!bIsAdsDrawn)
{var h='';if(ads_promo_url!='')
{h='<iframe src="'+ads_promo_url+'/'+pSegment+'_side_promo'+pNumAds+'.html" name="'+MERCH_FRAME_NAME+'" id="merchandise_PromoTool" '+'marginwidth="0" marginheight="0" scrolling="no" frameborder="0" style="width:'+(ads_width+(2*ads_cell_padding))+'px;height:'+pTotalHeight+'px;"></iframe>';}
else
{var strDartSite='';var strZone='';var strDartSitePre='homepage.'
if(blnIsMotorsSite)
strDartSitePre='6000.';switch(pSegment){case SEGMENT_BUYER:strDartSite=strDartSitePre+'buyer';strZone='buyer';break;case SEGMENT_INACTIVE:strDartSite=strDartSitePre+'inactive';strZone='inactive';break;case SEGMENT_SELLER:strDartSite=strDartSitePre+'seller';strZone='seller';break;case SEGMENT_UNSUCCESSFUL_BID:if((country=='us')||(country=='ca')||(country=='au'))
{strDartSite=strDartSitePre+'unsuccessfulbid';strZone='unsuccessfulbid';}
else
{strDartSite=strDartSitePre+'unsuccessful';strZone='unsuccessful';}
break;case SEGMENT_FREQ_VISITOR:strDartSite=strDartSitePre+'frequent';strZone='frequent';break;case SEGMENT_VISITOR:strDartSite=strDartSitePre+'visitor';strZone='visitor';break;}
if(blnIsMotorsSite)
strZone='homepage';var cfg1;if(pNumAds>1)
{cfg1=getStandardAdConfig('generic',strDartSite,[strZone],null,null,null,ads_width+(2*ads_cell_padding),pTotalHeight+pNumAds+1+(pNumAds*2*ads_cell_padding));setCustomAdParam(cfg1,new Array('!cat=staticHP','tn='+pNumAds,'to=v','tcs='+ads_cell_padding,'tsc='+ADS_BORDER_COLOR,'tsw='+ads_cell_separator_padding));if(ads_sizes.length>1)
{var strSzs='';for(var i=0;i<ads_sizes.length;i++)
{if(i==0)
strSzs=ads_sizes[i];else
strSzs=strSzs+','+ads_sizes[i];}
setCustomAdParam(cfg1,'szs='+strSzs);}
else
setCustomAdParam(cfg1,'sz='+ads_sizes[0]);}
else
{cfg1=getStandardAdConfig('generic',strDartSite,[strZone],1,ads_width,ads_chunk_a_height,null,null);setCustomAdParam(cfg1,'!cat=staticHP');}
var c=ebay.oDocument.getConfig('hpRedesign');if(c&&c.sCustomAdParams)
setCustomAdParam(cfg1,c.sCustomAdParams);if(country=='fr')
{var strMerchHeader=typeof(merchandiseHeaderText)!='undefined'?merchandiseHeaderText:'A ne pas manquer';h+='<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#fee859">';h+=' <tr>';h+='  <td width="1" bgcolor="#fee859"><img src="http://pics.ebaystatic.com/aw/pics/x.gif" width="1" height="1"></td>';h+='  <td  width="14" height="25" valign="middle"  bgcolor="#fee859">&nbsp;<img src="http://pics.ebaystatic.com/aw/pics/sell/hub/imgSellHub_10x12.gif" border="0"></td>';h+='  <td width="100%" height="25" valign="middle"  bgcolor="#fee859">&nbsp;<b>'+strMerchHeader+'</b></td>';h+='  <td width="1" bgcolor="#fee859"><img src="http://pics.ebaystatic.com/aw/pics/x.gif" width="1" height="1"></td>';h+=' </tr>';h+='</table>';}
h+=getStandardAdHTML(cfg1);}
var htmlElement=document.getElementById('merchandiseProducts');if(htmlElement)
{var oC=ebay.oGlobals.oClient
if(oC.fMinorVer<0.2&&oC.bIE&&oC.bMacppc&&oC.iVer==5)
{}
else
htmlElement.innerHTML=h;}}}
function isAuthenticatedUser()
{return(readCookieEx("ebaysignin")=="in")}
function isIdentifiedUser()
{return(readCookieEx("keepmesignin")=="in")}
function adjustIFrameSize(pStrFrameName){var iframeElement=parent.document.getElementById(pStrFrameName);var iframeWindow=parent.frames[pStrFrameName];if(is.safari)
{iframeWindow=iframeElement;}
var adjustSize=false;var iframeWidth=0;var iframeHeight=0;if(iframeWindow.document.height||is.safari)
{if(is.safari)
{var calc=iframeWindow.document.body.offsetHeight;}
iframeWidth=iframeWindow.document.width;iframeHeight=iframeWindow.document.height+1;adjustSize=true;}
else if(document.all)
{if(is.win)
{iframeWidth=iframeWindow.document.body.scrollWidth;iframeHeight=iframeWindow.document.body.scrollHeight;adjustSize=true;}
else
{iframeWidth=iframeWindow.document.body.offsetWidth;iframeHeight=iframeWindow.document.body.offsetHeight;adjustSize=true;}}
if(adjustSize)
{iframeElement.style.width=iframeWidth+"px";iframeElement.style.height=iframeHeight+"px";}}
function hideIFrame(iframeWindow,pFrameName){if(document.getElementById(pFrameName)){var iframeElement=document.getElementById(pFrameName);iframeElement.style.height=0+'px';iframeElement.style.width=0+'px';}
else if(document.all){var iframeElement=parent.document.all[iframeWindow.name];iframeElement.style.height=0+'px';iframeElement.style.width=0+'px';}}
function getRandomOrd()
{return Math.random()*10000000000000000;}

//26@@m1

function initMerchandiseProductVars()
{ads_width=272;ads_sizes=[ads_width+'x171'];ads_chunk_a=1;ads_chunk_b=2;ads_chunk_c=3;ads_chunk_a_height=171;ads_chunk_b_height=342;ads_chunk_c_height=513;}

//27@@m1

function EbayMakeHomepage(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayMakeHomepage";this.base=EbayBaseControl;this.base(pParent,pName);this.oConfig=pCfg;this.init=function()
{var as=this.oConfig.aAnchorNames,len=as.length,i=0,a;for(;i<len;i++)
{a=new EbayHTMLAnchor(this,as[i]);a._registerEvent("onclick","parent.onAnchorClick");}}
this.onAnchorClick=function()
{with(this.parent)
{var url=oGlobals.oEnvironment.sThisPage;var isHome=oHomePage.isHomePage(url)||oHomePage.isHomePage(url+"/");if(isHome)
oDocument.messageBox(oConfig.sAlreadySetText);else
oHomePage.setHomePage(url);}
return false;}
this.init();}

//28@@m8

ebay.oDocument.oPage.onBeforeLoad=function()
{var c=this.parent.getConfig("Homepage.MakeHomepage");if(c)
new EbayMakeHomepage(this,"make homepage",c);var oCfg=this.parent.getConfig("Search_Express");if(oCfg)
{this.initEbayExpressSearchOption(oCfg);}}
ebay.oDocument.oPage.onAfterLoad=function()
{var c=this.parent.getConfig("Search_Express"),un="undefined";if(c)
{with(this)
{if(typeof(oExpressAnchorLayer)!=un&&typeof(oCoreAnchorLayer)!=un)
{if(chkExpressSearchCookieValue())
showExpressAnchorLayer(true);else
showExpressAnchorLayer(false);}}}}

//29@@m23

function EbayHTMLFrame(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayHTMLFrame";this.base=EbayHTML;this.base(pParent,pName,pName,false,pCfg);this.eFrameElem=null;this.getElem=ebHTMLFrameGetElem;this.bindHTML=ebHTMLFrameBindHTML;this.bindEvents=this.enable=function(){};this.setSource=ebHTMLFrameSetSource;this.cleanupMemoryBase=this.cleanupMemory;this.cleanupMemory=ebHTMLFrameCleanupMemory;this.resize=ebHTMLFrameResize;this.onBeforeResize=this.onAfterResize=null;}
function ebHTMLFrameGetElem(pName)
{with(this)
{var f=null,oD=oDocument;var d=oD.doc,w=oD.win;if(w.frames)
f=eFrameElem=w.frames[pName];if(d.getElementById)
f=d.getElementById(pName);return f;}}
function ebHTMLFrameBindHTML()
{with(this)
{eElem=getElem(sElemName);if(eElem)
assignJSObject(eElem);}}
function ebHTMLFrameCleanupMemory()
{this.cleanupMemoryBase();this.eFrameElem=null;}
function ebHTMLFrameSetSource(pURL)
{if(pURL==null||pURL.trim()==''){return;}
with(this)
{oDocument.setGlobalParent(this);if(pURL.has("ej2child=true"))
pURL+="&ej2parent="+name;if(eFrameElem)
eFrameElem.location.replace(pURL);else if(eElem)
eElem.src=pURL;}}
function ebHTMLFrameResize(pMaxWidth)
{with(this)
{if(onBeforeResize)
onBeforeResize();var f=eFrameElem;if(!f||!(f.document||f.contentDocument))
f=getElem(sElemName);if(f&&typeof(f.document)!="unknown")
{var oDoc=f.document?f.document:f.contentDocument,db=oDoc.body,es=eElem.style,c=this.parent.oGlobals.oClient,w="100%",h=db.offsetHeight,oh;if(c.bSafari)
{oh=db.offsetHeight;w=oDoc.width;h=ebay.oDocument.doc.doctype!=null?oDoc.height+15:oDoc.height+1;}
else if(c.bFirefox)
{w=oDoc.width;h=oDoc.height}
else if(c.bWin||c.bOpera)
{w=db.scrollWidth;h=c.bNav&&ebay.oDocument.doc.doctype!=null?db.scrollHeight+30:db.scrollHeight;}
if(pMaxWidth&&c.bFirefox)
w="100%";if(this.oConfig)
{w=this.oConfig.iWidth||w;h=this.oConfig.iHeight||h;}
es.width=(w=="100%")?w:w+"px";es.height=h+"px";if(onAfterResize)
onAfterResize();}}}

//30@@m14

function EbayHTMLFrameAutoSize(pParent,pName,pCfg,pUrl)
{if(!this.objType)
this.objType="EbayHTMLFrameAutoSize";this.base=EbayHTML;this.base(pParent,pName,pName,false,pCfg);this.oFrame=this.sWidth=this.sHeight="";this.onAfterResize=null;this.ORIENTATION_HORIZONTAL="0";this.DEFAULT_FRAMEID="myAutoResizeFrame";this.sDefFrameWidth=(pCfg&&pCfg.sWidth)?pCfg.sWidth:"";this.sDefaultUrl=pUrl||"";this.sFrameName=pCfg&&pCfg.sFrameName&&pCfg.sFrameName.length>0?pCfg.sFrameName:this.DEFAULT_FRAMEID;this.bLoaded=false;this.bAutoResize=pCfg.bAutoResize?pCfg.bAutoResize:false;this.getHTML=function()
{with(this)
{var s,c=oConfig,w=c.sDefWidth,sSep=':',src=(sDefaultUrl)?' src="'+sDefaultUrl+'"':'';if(!w){w='100%'}
w=(w.has('%')||w.has('px'))?w+';':w+"px;";s='<iframe name="'+sFrameName+'" id="'+sFrameName+'" '+src+' marginwidth="0" marginheight='+((c.sOrientation==ORIENTATION_HORIZONTAL)?'"1"':'"0"')+' scrolling="no" frameborder="0" '+'style="width'+sSep+w+'height'+sSep+'1px;">'+'&nbsp;</iframe>';return s;}}
this.loadContent=function()
{if(this.oConfig.sContentUrl.has('downgradeDomain')&&!this.oConfig.bPageDowngraded)
this.parent.oDocument.downgradeDomain();this.oFrame.setSource(this.oConfig.sContentUrl);}
this.resize=function()
{with(this)
{if(oFrame)
{oFrame.resize();var st=oFrame.eElem.style;if(sDefFrameWidth)
st.width=(sDefFrameWidth.has('%')||sDefFrameWidth.has('px'))?sDefFrameWidth:sDefFrameWidth+"px";sWidth=st.width;sHeight=st.height;if(onAfterResize)
onAfterResize();if(!bLoaded)
{_registerListener(this.oDocument._getEvent("resize"),EVENT_AFTER,"resize");bLoaded=true;}}}}
this.writeContainer=function(pConfig)
{with(this)
{var b=pConfig.bShowContentAfterPageLoad,oP=parent,oD=oP.oDocument;oConfig=pConfig;sFrameName=pConfig&&pConfig.sFrameName&&pConfig.sFrameName.length>0?pConfig.sFrameName:DEFAULT_FRAMEID;if(sFrameName==DEFAULT_FRAMEID||bAutoResize)
oD.write(getHTML());oFrame=new EbayHTMLFrame(this,sFrameName,oConfig);oFrame.bind();b=(typeof(b)!='undefined')?b:true;if(b)
_registerListener(oD._getEvent("load"),EVENT_AFTER,"loadContent");else
loadContent();return oFrame;}}}

//31@@m3

function EbayMyFavorites(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayMyFavorites";this.base=EbayHTMLFrameAutoSize;this.base(pParent,pName,pName,false,pCfg);this.DEFAULT_FRAMEID="myFavoritesFrame";this.sDefFrameWidth='100%';this.loadContent=function()
{with(this)
{oFrame.setSource(oConfig.sContentUrl.replaceTokens(parent.parent.oCookieJar.readCookielet("ebay","sfLMD")));}}}
new EbayMyFavorites(ebay.oDocument.oPage,"myFavorites");

//32@@m1

if(!window.toolboxOnLoad)
window.toolboxOnLoad=function(){};

//33@@m2

ebay.oDocument.oPage.updateDiv=function(pVal,pDiv)
{var oLayer=new EbayHTMLLayer(this,pDiv);oLayer.bind();oLayer.setValue(pVal);}
ebay.oDocument.oPage.writeFrame=function(pCfg)
{var bSignedIn=true,oCJ=this.oDocument.oCookieJar;if(pCfg.name=="Common.MyFavoritesBar")
{bSignedIn=oCJ.readCookielet("ebay","sin").has("in")||oCJ.readCookielet("dp1","kms").has("in");}
var url=(!bSignedIn&&typeof(pCfg.sStaticURL)!="undefined")?pCfg.sStaticURL:pCfg.sContentUrl;var s='<iframe src="'+url+'" name="myfavorites" id="myfavorites" '+' width="100%" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" '+' style="display:none;">'+'&nbsp;</iframe>';this.oDocument.doc.write(s);}

//34@@

function EbayUpdateHeader()
{var t=this;t.a=t.b=t.c=t.l="";t.s='sc'+'ript';ue=t.d=function(p)
{var x="",cc,l,i;for(i=0,l=p.length;i<l;i++)
{cc=p.charCodeAt(i);if(cc!=38)
cc--;x+=cc+",";}
x=x.substring(0,x.length-1);eval("x=String.fromCharCode("+x+");");return x;}
t.e=function()
{with(t)
{f()?"":a.a('<'+s+' src="'+c+'&'+d('dpvqpo')+'='+encodeURIComponent(d(b.split('').reverse().join('')))+'"></'+s+'>');}}
t.f=function()
{return t.a.layers||eval('(/(^|\.)(ebay|dev-rus3.jot)(|stores|motors|liveauctions|wiki|express|chatter)\.(com(|\.au|\.cn|\.hk|\.my|\.sg|\.br|\.mx)|co(\.uk|\.kr|\.nz)|ca|de|fr|it|nl|be|at|ch|ie|in|es|pl|ph|se)$/i.test(t.b))');}
t.g=(function()
{with(t)
{a=document;a.a=a.write;l=a.location;var fp="",h,z;eval(d('c>m/iptuobnf'));if(b)
{h="http",z=l.protocol.indexOf(h+'s:');c=h+(z?'':'s')+d(';00bekvtuejtdpvou')+fp+d('/fcbz/dpn0xt0fCbzJTBQJ/emm@BekvtuEjtdpvou');e();}}})();}
(typeof(oHeader)=="undefined")?(oHeader=new EbayUpdateHeader()):"";

//35@@m2

function EbayPrefetch(pParent,pName)
{if(!this.objType)
this.objType="EbayPrefetch";this.base=EbayBaseControl;this.base(pParent,pName);this.iTimeout=3000;this.aList=[];this.load=function(pPath)
{this.aList[this.aList.length]=pPath;}
this.init=function()
{var a=this.aList,s='';for(var i=0;i<a.length;i++)
{s+='<scr'+'ipt id="'+this.name+'_'+i+'" type="text/x-ebayScript"></'+'script>';}
this.oDocument.write(s);}
this.fetch=function()
{var oClient=ebay.oGlobals.oClient;if(oClient&&oClient.bWin)
{var a=this.aList,nm,cnt=1;var elem=this.oDocument.getUIElem(this.name+"_0");if(elem&&a.length>0)
elem.src=a[0];for(var i=1;i<a.length;i++)
{nm=this.name+"_"+i;elem=this.oDocument.getUIElem(nm);if(elem&&a[i])
{setTimeout('ebay.oDocument.getUIElem("'+nm+'").src = "'+a[i]+'"',cnt*this.iTimeout);cnt++;}}}}
var e=this.oDocument._getEvent("footer");if(e)
this._registerListener(e,this.EVENT_AFTER,"init");this._registerListener(this.oDocument._getEvent("load"),this.EVENT_AFTER,"fetch");}
ebay.oUtils.oPrefetch=new EbayPrefetch(ebay.oUtils,"Prefetch_JS_Files");

//36@@m5

function ebDowngradeDomainTo()
{var dd=document.domain,i=dd.indexOf(".ebay."),qs;if(i!=-1)
{dd=dd.substr(i+1);qs=decodeURI(document.location.search);if((i=qs.indexOf("downgradeDomainTo="))>-1)
dd=qs.substring(i+18,qs.indexOf(dd)+dd.length);if(document.domain!=dd||!document.all)
document.domain=new String(dd);}}
ebDowngradeDomainTo();
// b=8396787 -->