//<!--
//1@@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;}

//2@@m7

function EbayUtilsPositioning(pParent,pName)
{if(!this.objType)
this.objType="EbayUtilsPositioning";this.base=EbayObject;this.base(pParent,pName);this.getScrollLeftTop=function()
{var d=this.oDocument.doc,rv=[0,0],db=d.body,de=d.documentElement;if(db)
{rv[0]+=db.scrollLeft;rv[1]+=db.scrollTop;}
if(de)
{rv[0]+=de.scrollLeft;rv[1]+=de.scrollTop;}
return rv;}
this.getClientWidthHeight=function()
{var d=this.oDocument.doc,de=d.documentElement?d.documentElement:d.body;return[de.clientWidth,de.clientHeight];}
this.getOffsetLeftTop=function(pElem)
{var e=pElem,rv=[0,0];while(e)
{rv[0]+=e.offsetLeft;rv[1]+=e.offsetTop;e=e.offsetParent;}
return rv;}
this.getEventLeftTop=function(pEvent)
{var evt=this.parent.parent.oDocument.win.event||pEvent,xOff=(typeof(screenLeft)!="undefined")?screenLeft:screenX,yOff=(typeof(screenTop)!="undefined")?screenTop:(screenY+(outerHeight-innerHeight)-25);return[evt.screenX-xOff,evt.screenY-yOff];}
this.getPageSize=function()
{var x,y,oD=this.parent.parent.oDocument,win=oD.win,doc=oD.doc,bd=doc.body;if(win.innerHeight&&win.scrollMaxY)
{x=bd.scrollWidth;y=win.innerHeight+win.scrollMaxY;}
else if(bd.scrollHeight>bd.offsetHeight)
{x=bd.scrollWidth;y=bd.scrollHeight;}
else if(doc.documentElement)
{x=doc.documentElement.scrollWidth;y=doc.documentElement.scrollHeight;}
else
{x=bd.offsetWidth;y=bd.offsetHeight;}
return[x,y];}}
ebay.oUtils.oPositioning=new EbayUtilsPositioning(ebay.oUtils,"Positioning Functions");

//3@@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;}}

//4@@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;}

//5@@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();}}

//6@@m5

function EbayBubbleHelpOnClick(pParent,pName,pCfg,pInitialize)
{if(!this.objType)
this.objType="EbayBubbleHelpOnClick";this.base=EbayHTMLOverlayContent;this.base(pParent,pCfg.sLayerHTMLName,pCfg);this.oConfig=pCfg;this.aText=[];this.oSelectedElem=false;this.oTimer=null;this.sDefaultOverlayHTML="";this.iEventX=this.iEventY=null;this.iLocX=this.iLocY=null;this.bUseElemOffsetForPosition=true;this.bHasFocus=false;this.bLeft=pCfg.bLeft;this.sCloseBubbleLink=pCfg.sCloseBubbleLink;with(this)
_registerListener(oDocument._getEvent("load"),EVENT_AFTER,"onAfterLoad");this.init=function()
{with(this)
{var c=oConfig,en=c.aElemNames,len=en.length,e,i;for(i=0;i<len;i++)
{e=new EbayHTML(this,en[i],en[i]);subscribeElemEvents(e,c.aBubbleText[i]);}}}
this.onAfterLoad=function()
{with(this)
{var s=getValue();s=s.replace(/&lt;/g,"<");s=s.replace(/&gt;/g,">");sDefaultOverlayHTML=s;}}
this.subscribeElemEvents=function(pElem,pText)
{var e=pElem;e.subscribeEvents("onclick");e._registerEvent("onclick","parent.elemOnClick");var n=e.name||e.id;if(n)
this.aText[n]=pText;}
this.createHTMLObject=function(pElem,pEvent)
{with(this)
{var n=pElem.name||pElem.id,e=new EbayHTML(this,n,n);subscribeElemEvents(e,oConfig.aBubbleText[n]);e.bind();mouseOverElem(e,pEvent);}}
this.elemOnClick=function(pEvent,pThis,pWindowEvent)
{this.parent.onClick(this,pWindowEvent);return false;}
this.onClick=function(pElem,pEvent)
{with(this)
{var e=oSelectedElem=pElem,n=e.name;mouseMoveElem(e,pEvent);oTimer=setTimeout(oUtils.controlPath(this)+"._exec('displayContent');",oConfig.iDisplayWait);}}
this.mouseMoveElem=function(pElem,pEvent)
{with(this)
{var oPos=oUtils.oPositioning,evts=oPos.getEventLeftTop(pEvent),offLoc,e;iEventX=evts[0];iEventY=evts[1];if(bUseElemOffsetForPosition)
{e=oDocument.getUIElem(pElem.name);offLoc=oPos.getOffsetLeftTop(e);iLocX=offLoc[0];iLocY=offLoc[1];}}}
this.positionOverlay=function(pLeft,pTop,pNoOffsetHeight)
{with(this)
{var oD=oSelectedElem.oDocument,l,t,t2=pTop||iEventY;if(bUseElemOffsetForPosition)
{l=pLeft||iLocX;t=pTop||iLocY;}
else
{l=pLeft||iEventX;t=t2;}
var sl=oSelectedElem,c=oConfig;var lh=sl.height(),oh=pNoOffsetHeight?0:height(),hb=c.iHeightBuffer,wb=c.iWidthBuffer;if(typeof(c.iFFWidthBuffer)!="undefined"&&this.oGlobals.oClient.bFirefox)
wb=c.iFFWidthBuffer;if(typeof(c.iIEWidthBuffer)!="undefined"&&this.oGlobals.oClient.bIE)
wb=c.iIEWidthBuffer;if((t2+hb-oh)>0)
{if(bLeft)
setClass(c.sTopRightClass);else
setClass(c.sTopLeftClass);sTop=t+hb-oh;}
else
{if(bLeft)
setClass(c.sBottomRightClass);else
setClass(c.sBottomLeftClass);sTop=t-hb;}
if(typeof(bLeft)!="undefined"&&bLeft)
{var w=l-width();l=(w<0)?l:w;}
sLeft=l+wb;if(this.oGlobals.oClient.bFirefox)
{sLeft+="px";sTop+="px";}
setPosition();}}
this.displayContent=function()
{with(this)
{if(pCfg.bDualBubble)
{var l=(name=='hlpBubR')?'hlpBubL':'hlpBubR';var cl=parent.parent._getControl(l);cl.show(false);}
var sl=oSelectedElem,c=oConfig,txt;if(sl)
{txt=aText[sl.name];if(c.bPreUnescape)
{txt=txt.replace(new RegExp("&lt;","g"),"<");txt=txt.replace(new RegExp("&gt;","g"),">");}
sContent=txt?sDefaultOverlayHTML.replaceTokens(txt):null;display();positionOverlay();bindLinks();}}}
this.bindLinks=function()
{with(this)
{var e,c=oConfig;e=new EbayHTMLAnchor(this,sCloseBubbleLink);e.onclick=function()
{this.parent.closeBubble();return false;}
for(var i in controls)
controls[i].bind();}}
this.enable=function(pEnable)
{var en=this.oConfig.aElemNames,len=en.length,i;for(i=0;i<len;i++)
{this._getControl(en[i]).enable(pEnable);}}
this.closeBubble=function()
{this.hide();}
if(pInitialize)
this.init();}

//7@@m2

ebay.oDocument.oPage.onBeforeLoad=function()
{var oC=this.parent.getConfig("Bidder.Profile.BubbleHelp"),oB,e,aE,l,i;if(oC)
{this.bubbleConf=function(aE,oC)
{oB=new EbayBubbleHelpOnClick(this,oC.name,oC,false);for(i=0;i<aE.length;i++)
{e=new EbayHTML(oB,aE[i],aE[i]);oB.subscribeElemEvents(e,oC.sBubbleText[i]);}}
oC.bDualBubble=true;aE=oC.aElemNamesR;oC.sLayerHTMLName=oC.sLayerHTMLNameR;oC.sBubbleText=oC.sBubbleTextR;oC.sCloseBubbleLink=oC.sCloseBubbleLinkR;oC.bLeft=false;this.bubbleConf(aE,oC);aE=oC.aElemNamesL;oC.sLayerHTMLName=oC.sLayerHTMLNameL;oC.sBubbleText=oC.sBubbleTextL;oC.sCloseBubbleLink=oC.sCloseBubbleLinkL;oC.bLeft=true;this.bubbleConf(aE,oC);}}
// b=10296359 -->