//@JsDoNotOptimize
//1@@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;}
//2@@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='';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('
'+scriptstr+'');doc.close();}
if(typeof(ebay)!="undefined")
ebay.oClientServer=new EbayClientServer();
//3@@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="";}
//4@@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;}}
//5@@m16
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;var len=eElem.length;for(var i=0;i0)
{for(var ii=0;ii0)?","+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;ibottom)bottom=cB;if(cR>right)right=cR;}
oWin.resizeTo(right+iWBuffer,bottom+iHBuffer);}}}
//11@@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;}
//12@@m29
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='';if(oCl.bMac&&oCl.bIE)
f+='';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='';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;}
//13@@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(i191)&&(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;}
//14@@m101
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;i0){ret="&p=";for(var i=0;i0)
{for(i=0;i0&&!document.layers)
for(var i=0;i0)
sTimeout="document.location.replace('"+this.rdUrl+"')";else
{var rtmArr="";for(var i=0;i0)
{len=oGlobalNav.aRTMPlacementData.length;for(var i=0;i0)
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",len=this.rtminfos.length;for(var i=0;i0)
{for(i=0;i0)
{reportAdScriptDropped=true;t.addReportAdScript();}
if(!hasAdSurvey&&currContent!=null&&currContent.indexOf("openAdSurvey")>0)
{hasAdSurvey=true;t.addAdSurveyScript();}
var bIsHtmlForm=(!bIsMerchPromo&&pContentArr[i]!=-1&&pContentArr[i].indexOf('~')==0)?true:false;if(pContentArr[i]==-1&&!document.layers)
{ads[i].isDefaultPlacement=true;}
else if(bIsMerchPromo)
{if(currContent.length>0)
{currContent=currContent[0];}
ads[i].promoMap=currContent.data.map;ads[i].isMerchPromo=true;}
else if(isdc)
{ads[i].isDoubleClick=true;ads[i].sAdContent=pContentArr[i];}
else if(bIsPopUnder)
{if(pContentArr[i].length>1)
{pContentArr[i]=pContentArr[i].substring(1);}
ads[i].sContent=pContentArr[i];ads[i].bIsPopUnder=true;}
else if(bIsHtmlForm)
{if(pContentArr[i].length>1)
{pContentArr[i]=pContentArr[i].substring(1);}
ads[i].sContent=pContentArr[i];ads[i].bIsHtmlForm=true;}
else
{ads[i].sContent=pContentArr[i];ads[i].isRtm=true;}
if(!isdc&&typeof(pSizeArr[i])!=un&&pSizeArr[i]!=-1)
{if(pSizeArr[i].indexOf(":")!=-1)
{var rSize=pSizeArr[i].split(":");ads[i].w=(rSize[0]==-1||rSize[0]=="9999")?"auto":rSize[0];ads[i].h=(rSize[1]==-1||rSize[1]=="9999")?"auto":rSize[1];}}
if(pExpandInfoArr)
{t.hasExp=true;var id=ads[i].iId,len2=pExpandInfoArr.length;for(var j=0;j';var div=document.createElement('div');div.innerHTML=f;if(document.body!=null){document.body.appendChild(div);}else{this.oDocument.doc.write(f);}}
function ebRTMPlacementInitIframe()
{var oIfrm=this.oDocument.getUIElem(this.sIframeName),b=this.oDocument.oPage.oConfig.bNoRTMDowngrade;if(b||oIfrm==null||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='document.domain="'+dd+'";';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);}
function ebRTM_ge(id){return document.getElementById(id);}
function ebRTM_toMsg(obj){var s="",i;for(i in obj){if(s.length>0){s+="|";}
s+=i+":"+obj[i];}
return s;}
function ebRTM_getVal(msg,name){var v=null,s,e;msg="|"+msg;s=msg.indexOf("|"+name+":");if(s>-1){s=s+name.length+2;e=msg.indexOf("|",s);if(e<0){e=msg.length;}
v=msg.substring(s,e);}
return v;}
function ebRTM_setOverflow(rootNode,clzName,value){var e=rootNode;while(e.parentNode){if(e.className==clzName){e.style.overflow=value;break;}
e=e.parentNode;}}
function ebRTM_getByClass(e,classNames){var es=e.getElementsByTagName("*"),a=[];var i,cl=classNames.length,c,st,p,j,l=es.length,s;for(i=0;iparseInt(ad.maxWidth)){t.err(304);}
h=t.getVal(msg,"height");if(parseInt(h)>parseInt(ad.maxHeight)){t.err(305);}
ad.height=ifr.height;}
if(!ifr||!div){t.err(306);}
dirs=dir.split("-");if((dirs.length<1)||(dirs.length>2)){t.err(307);}
t.onMsgDirs(dirs,expand,div,ifr,w,h);i=new Image();i.src=t.srtmEngineHost.split("?")[0]+"?RtmIt&ite="+type+"&m="+msgID+"&ord="+e;}}
function ebRTM_onMsgDirs(dirs,expand,div,ifr,width,height){var t=this,ua=navigator.userAgent,f=ifr;var ie6=(ua.indexOf("MSIE 6.")>-1);var ie7=(ua.indexOf("MSIE 7.")>-1);if(expand){f.style.zIndex=9000;div.style.textAlign="left";f.style.position="absolute";div.style.overflow="visible";t.onMsgDir(dirs[0],div,f,width,height);if(dirs.length>1){t.onMsgDir(dirs[1],div,f,width,height);}
if(ie6||ie7){var ft=t.ge("formatTabs");if(ft){ft.style.zIndex=-1;}
t.hideByClass("CentralArea",["hplnk"]);t.hideByClass("ResultSet",["pv"]);t.hideByClass("CentralArea",["*-n","*-s"]);t.hideByClass("CentralArea",["*-head","*-mid","*-foot"],true);}}else{f.style.zIndex=0;if(ie6){div.style.position="";}
f.style.position="absolute";f.style.top=null;f.style.left=null;f.width=width;f.height=height;}}
function ebRTM_onMsgDir(dir,div,f,width,height){var t=this;if(dir=="up"){div.style.zIndex=9000;div.style.position="relative";var ot=height-f.height;f.height=height;f.style.top=-ot+"px";}else if(dir=="down"){f.height=height;}else if(dir=="left"){div.style.zIndex=9000;div.style.position="relative";var ol=width-f.width;f.width=width;f.style.left=-ol+"px";}else if(dir=="right"){t.setOverflow(f,"ff-left","visible");f.width=width;}else{t.err(308);}}
function ebRTM_getIndexByPID(id)
{var t=this,len=t.rtminfos.length;for(var i=0;i-1){id=id.substring(i+1);}
var st=t.getVal(msg,"st");var msgID=t.getVal(msg,"m");if(!id||!st||!msgID){t.err(200);}
var i=t.getIndexByPID(id);if(typeof(i)!="number"){t.err(201);}
var ad=t.rtminfos[i];if(!ad){t.err(202);}
if(st!=ad.st){t.err(203);}
var ms=(new Date()).getTime(),lt=ad.lastTime,lo=ad.lastTopic;ad.lastTime=ms;ad.lastTopic=topic;if((lo==topic)&&((ms-lt)<500)){return;}
t.onMsg(topic,id,msgID,ad,msg);}catch(e){if(t.debug){throw e;}
var s=""+e;if(e.description){s=e.description;}
response.errors=s;}
if(source){msg=t.toMsg(response);if(origin){source.postMessage(msg,origin);}else{return msg;}}}
function ebRTM_onMsgRelay(e){ebay.oDocument._getControl("rtm").onMessage(e.data,e.source,e.origin);}
function ebRTM_initExpandables(){var t=this,w=window;if(!t.hasExp){return;}
if(w.postMessage){if(w.addEventListener){w.addEventListener("message",t.onMsgRelay,false);}else if(w.attachEvent){w.attachEvent("onmessage",t.onMsgRelay);}
return;}
if(!w.ActiveXObject){return;}
w["IEHandleMsg"]=function(msg){return ebay.oDocument._getControl("rtm").onMessage(msg,"x");};var vbscript="Class IEMsgWrapper\n"
+" Public Function SendMsg(msg)\n"
+" ret = IEHandleMsg(msg)\n"
+" SendMsg = ret\n"
+" End Function\n"
+"End Class\n"
+"Function IEGetWrapper()\n"
+" Dim wrap\n"
+" Set wrap = New IEMsgWrapper\n"
+" Set IEGetWrapper = wrap\n"
+"End Function";try{w.execScript(vbscript,"vbscript");var wrapper=w["IEGetWrapper"](),i,ad,l=t.rtminfos.length;for(i=0;i";for(var i in this.aParams)
{this.addNestedText("");}
var len=this.aNestedText.length;for(var i=0;i";return str;}
this.clearParam=function(pName)
{this.aParams[pName]=null;}
this.clearNestedText=function()
{this.aNestedText=[];}}
//17@@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="";this.addNestedText(embed);var text=this.writeObject();this.clearParam("flashvars");this.clearNestedText();return text;}}
//18@@m13
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='";}
this.parent.write(str);}
else
{this.oFlashWriterConfig[c.sName]=c;this.parent.write("");}}}
this.loadAllOnDemand=function()
{var l=this.aConfigNames.length,name,aC=this.oFlashWriterConfig,bAllLoaded=true,slen=this.aSegs.length;for(var i=0;i'+str;str+="
";}
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("");}
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)
{var len=vers.length;for(var i=0;i");}
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");
// b=13942528 -->