//<!--
//1@@

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,len=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;len=lyrs.length;for(var i=0;i<len;i++)
{l=this.getElem(lyrs[i].document,pName);if(l)
return l;}}
len=d.links.length;for(var j=0;j<len;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@@

function EbayCobrandRedirectURL(pParent,pName)
{if(!this.objType)
this.objType="EbayCobrandRedirectURL";this.baseObject=EbayBaseControl;this.baseObject(pParent,pName);this.oAnchor=null;this.init=function()
{with(this)
{oAnchor=new EbayHTMLAnchor(this,name);var oP=ebay.oDocument;this._registerListener(oP._getEvent('load'),this.EVENT_AFTER,"redirect");}}
this.init();this.redirect=function()
{with(this)
{document.location.replace(cobrandURL(oAnchor.getElem(name).href));}}
this.cobrandURL=function(u)
{var cb=this.parent.oDocument._getControl('cobrandFunctions')
if(cb)
{cb.sServer="";cb.oSelCobrand.sCBName="."+cb.oSelCobrand.sCBName;if(cb.isEbayLink(u))
u=cb.cobrandURL(u);}
return u;}}

//3@@

ebay.oDocument.oPage.onBeforeLoad=function()
{new EbayCobrandRedirectURL(this,"redirecturl");}
// b=14398900 -->
