//<!--
//1@@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;}}

//2@@m1

function EbayHTMLImageRandom(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayHTMLImageRandom";this.baseObject=EbayHTMLImage;this.baseObject(pParent,pName);this.oConfig=pCfg?pCfg:null;this.aSrc=pCfg.aSrc;this.aLnks=pCfg.aLnks;this.sSrc=null;this.sLnks=null;this.iIdx=0;this.randomize=function()
{var i=this.iIdx=Math.floor(Math.random()*(this.aSrc.length));this.sSrc=this.aSrc[i];this.sLnk=this.aLnks[i];}}

//3@@m1

ebay.oDocument.oPage.displayRandImg=function()
{var c=this.parent.getConfig('Random.Image');var img=new EbayHTMLImageRandom(this,'ri',c)
img.randomize();this.oDocument.write("<a href='"+img.sLnk+"'>"+"<img src='"+img.sSrc+"' border='0'></a>");}
// b=10597871 -->