//<!--
//1@@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();}}}

//2@@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;}}}

//3@@m6

function EbayIFrameAutoResize(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayIFrameAutoResize";this.base=EbayHTMLFrameAutoSize;this.base(pParent,pName,pName,false,pCfg);this.iFrames=[];this.getElement=function(pUrl)
{var cl=ebay.oDocument.oPage.oGlobals.oClient,bNeedEncode=(cl.bFirefox&&cl.iVer==3);for(var i=0;i<this.iFrames.length;i++)
{var iframeUrl=this.iFrames[i].sContentUrl;if(bNeedEncode)
iframeUrl=iframeUrl.replace("'","%27");if(pUrl.toLowerCase()==iframeUrl.toLowerCase())
{return this.iFrames[i];}}}
this.writeContainerBase=this.writeContainer;this.writeContainer=function(pCfg)
{pCfg.sDefWidth=pCfg.iWidth?pCfg.iWidth+"":"";pCfg.sDefWidth=pCfg.iwidth?pCfg.iwidth+"":pCfg.sDefWidth;var s=pCfg.sContentUrl;if(s&&!s.has('downgradeDomain=true'))
{if(!s.has('?'))
s+='?downgradeDomain=true';else
s+='&downgradeDomain=true';pCfg.sContentUrl=s;}
pCfg.bShowContentAfterPageLoad=false;this.iFrames.push(pCfg);pCfg.oFrame=this.writeContainerBase(pCfg);}
this.resizeWithSize=function(pCfg,pWidth,pHeight)
{if(pCfg)
{var f=pCfg.oFrame.getElem(pCfg.oFrame.sElemName);var es=f.style;if(!pCfg.sDefWidth){pCfg.sDefWidth='100%';}
if(pCfg.sDefWidth&&(pCfg.sDefWidth.length>0)){es.width=(pCfg.sDefWidth.has('%')||pCfg.sDefWidth.has('px'))?pCfg.sDefWidth:pCfg.sDefWidth+"px";}
else{es.width=pWidth+"px";}
es.height=pHeight+"px";}}}
new EbayIFrameAutoResize(ebay.oDocument.oPage,"IFrame_AutoResize");

//4@@m22
<!--
function adjustIFrameSize(iframeWindow)
{var iframeElement=iframeWindow.name?this.document.getElementById(iframeWindow.name):null;if(!iframeElement||typeof(iframeElement)=='undefined')
return false;var aDimensions=getFrameDim(iframeWindow.document);iframeElement.style.height=aDimensions[1]+'px';iframeElement.style.width=aDimensions[0]+'px';}
function changeFrame()
{if(parent.adjustIFrameSize)parent.adjustIFrameSize(window);}
function adjustIFrameHeight(iframeWindow)
{var iframeElement=iframeWindow.name?this.document.getElementById(iframeWindow.name):null;if(!iframeElement||typeof(iframeElement)=='undefined')
return false;if(iframeWindow.document.height)
iframeElement.style.height=iframeWindow.document.height+'px';else if(document.all)
{if(iframeWindow.document.compatMode&&iframeWindow.document.compatMode!='BackCompat')
iframeElement.style.height=iframeWindow.document.documentElement.scrollHeight+5+'px';else
iframeElement.style.height=iframeWindow.document.body.scrollHeight+5+'px';}
else
{var oF=new EbayHTMLFrame(ebay.oDocument.oPage,iframeElement.name);oF.bind();oF.resize();oF=null;}
iframeElement.style.width="100%";}
function changeFrameHeight()
{if(parent.adjustIFrameHeight)parent.adjustIFrameHeight(window);}
function getIframeHeight(iframeWindow){if(is.mac)
{return 0;}
if(iframeWindow.document.height){var iframeElement=this.document.getElementById(iframeWindow.name);return iframeWindow.document.height;}
else if(document.all){var iframeElement=this.document.all[iframeWindow.name];if(iframeWindow.document.compatMode&&iframeWindow.document.compatMode!='BackCompat')
{return iframeWindow.document.documentElement.scrollHeight;}
else{return iframeWindow.document.body.scrollHeight;}}}
function ssTrackIframeRequest()
{}
function getFrameDim(frameDoc)
{var frame_size=[];frame_size=["100%",frameDoc.body.offsetHeight];if(frameDoc.height||is.safari)
{frame_size=[frameDoc.width,frameDoc.height+1];}
else if(document.all)
{if(is.win)
frame_size=[frameDoc.body.scrollWidth,frameDoc.body.scrollHeight];}
return frame_size;}
function submitWithParams(form_id,fields)
{var form=document.forms[form_id];if(typeof(form)=="undefined")
{form=parent.document.forms[form_id];}
if(typeof(form)!="undefined"&&typeof(fields)!="undefined")
{for(var i=0;i<fields.length;i++)
{var field=form[fields[i][0]];var value=fields[i][1];if(typeof(field)!="undefined")
{field.value=value;}}
form.submit();return true;}
return false;}
function changeFrameLocation(sName,sLocation)
{var iDelay=1000;if(typeof(parent.frames[sName])!="undefined")
{if(is.mac&&is.ie)
setTimeout('parent.frames["'+sName+'"].location = "'+sLocation+'"',iDelay);else
setTimeout('parent.frames["'+sName+'"].location.replace("'+sLocation+'")',iDelay);}}

//5@@m6

function EbayHTMLForm(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayHTMLForm";this.base=EbayHTML;this.base(pParent,pName,pName,false,pCfg);this.getElem=function(){return this.getDocElem(arguments[0],'forms');};this.enable=function(){};this.getElementValue=ebHTMLFormGetElementValue;this.setElementValue=ebHTMLFormSetElementValue;this.getElements=ebHTMLFormGetElements;this.getElement=ebHTMLFormGetElement;this.setAction=ebHTMLFormSetAction;this.getAction=ebHTMLFormGetAction;this.setTarget=ebHTMLFormSetTarget;this.getTarget=ebHTMLFormGetTarget;this.submit=ebHTMLFormSubmit;this.clear=ebHTMLFormClear;this.subscribeEvents("onsubmit");this.onBeforeSubmit=null;this.onAfterSubmit=null;}
function ebHTMLFormGetElements()
{var e=this.eElem;return e?e.elements:new Array;}
function ebHTMLFormGetElement(pName)
{var elems=this.getElements();return elems[pName]?elems[pName]:null;}
function ebHTMLFormGetElementValue(pName)
{var elems=this.getElements();if(elems[pName]&&elems[pName].value)
return elems[pName].value;return"";}
function ebHTMLFormSetElementValue(pName,pValue)
{var elems=this.getElements(),elem=elems[pName];if(elem)
{if(elem.length)
{for(var i=0,len=elem.length;i<len;i++)
elem[i].value=pValue;}
else
elem.value=pValue;}}
function ebHTMLFormSetAction(pAction)
{var e=this.eElem;if(e)
e.action=pAction;}
function ebHTMLFormGetAction()
{var e=this.eElem;if(e)
return e.action;}
function ebHTMLFormSetTarget(pTarget)
{var e=this.eElem;if(e)
e.target=pTarget;}
function ebHTMLFormGetTarget()
{var e=this.eElem;if(e)
return e.target;}
function ebHTMLFormSubmit()
{if(this.onBeforeSubmit)
this.onBeforeSubmit();var e=this.eElem;if(e)
{e.submit();if(this.onAfterSubmit)
this.onAfterSubmit();}
else
this.throwError("Element '"+this.sElemName+"' does not exist on the page","submit");}
function ebHTMLFormClear()
{var elems=this.getElements();for(i=0;i<elems.length;i++)
{var elem=elems[i];var type=elem.type;switch(type)
{case"text":case"textarea":elem.value="";break;case"checkbox":elem.checked=false;break;case"select-one":elem.selectedIndex=0;}}}

//6@@m10

function EbayHTMLText(pParent,pName,pDisabled,pCfg,bHidden)
{if(!this.objType)
this.objType="EbayHTMLText";this.base=EbayHTMLFormElem;this.base(pParent,pName,pDisabled,pCfg);this.value=ebHTMLTextValue;this.getValue=ebHTMLTextGetValue;this.setValue=ebHTMLTextSetValue;this.select=ebHTMLTextSelect;if(bHidden!=true)
this.subscribeEvents("onchange","onblur","onfocus","onkeydown","onkeyup");}
function ebHTMLTextValue(pVal)
{var e=this.eElem;if(e)
{if(typeof(pVal)=="undefined")
return e.value;else
e.value=pVal;}}
function ebHTMLTextGetValue()
{return this.value();}
function ebHTMLTextSetValue(pVal)
{return this.value(pVal);}
function ebHTMLTextSelect()
{var e=this.eElem;if(e)
e.select();}

//7@@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;}}

//8@@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);}}}

//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@@m18

function EbayToolbar(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayToolbar";this.baseObject=EbayBaseControl;this.baseObject(pParent,pName);this.TBDaemonID="eBayToolbarCommLib.IWebEvent.1";this.sTBHelper="eBayToolbar.Helper";var g=this.oGlobals;var env=this.oEnv=g.oEnvironment;this.isInstalled=false;this.client=g.oClient;this.config=pCfg||(new EBayConfig(pName));new EbayHTMLForm(this,this.config.signinFormID);this.qualifyPageType=function(){with(this)
{var t=true;for(var i=0;i<aPageTypes.length;i++)
{if(nPageType==aPageTypes[i])
{t=false;}}}
return t;}
this.onSignIn=function()
{var oF,PageType,sAction,u,sID,oSF,oCfg=this.config,oNI;oF=this.controls[oCfg.signinFormID];PageType=0;this.nPageType=oF.getElementValue("pageType");this.aPageTypes=oCfg.pageTypes.split(",");oSF=document.forms[oCfg.signinFormID];if(this.nPageType!=""&&this.qualifyPageType())
{if(this.activeXSupported(this.TBDaemonID))
{if(oSF!=null)
{sAction=new String(oSF.action);if(this.oDocument.doc.location.protocol.has("https"))
sAction=sAction.replace("http:","https:");oSF.action=sAction;}
u=oF.getElementValue("userid");TBDaemon=new ActiveXObject(this.TBDaemonID);sID=TBDaemon.GetSIDForUser(u);if(sID!="")
{this.createElement(oSF,'runame',env.sCountry.hasAny("cn")?'Soda1-EBAYTOOLBAK7I2R-mwwbb':'EBAYTOOLBAR');if(typeof(oSF.sid)=="undefined")
{this.createElement(oSF,'SID',sID);}}}}}
this.createElement=function(oF,n,v)
{var o=document.createElement("input");o.type='hidden';o.name=n;o.value=v;oF.appendChild(o);}
this.activeXSupported=function(n)
{var oC=this.client;return(!(oC.bMac||oC.bMacppc)&&oC.bIE)&&this.client.activeXLibLoaded(n);}
this.refresh=function()
{with(this)
{var oTBH,oTB,done,oCfg=config;if(activeXSupported(sTBHelper))
{oTBH=new ActiveXObject(sTBHelper);done=oTBH.doSomething(oCfg.toolbarCommand+"?00="+oCfg.eBayUserId+"&05="+oCfg.eBayItemId);}
if(activeXSupported(TBDaemonID))
{oTB=new ActiveXObject(TBDaemonID);oTB.WatchListChanged();}}}
this.refreshListItem=function()
{with(this)
{var oTB;if(activeXSupported(TBDaemonID))
{oTB=new ActiveXObject(TBDaemonID);if(typeof(oTB.OnItemListed)=="undefined"||typeof(oTB.OnItemListed)==false||typeof(oTB.OnItemListed)=="unknown")return;oTB.OnItemListed();}}}}
function EBayToolbarConfig(name)
{if(!this.objType)
this.objType="EBayToolbarConfig";this.base=EbayConfig;this.base(name);}

//11@@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;}}

//12@@m6

function EbayImgSizeThresholdReport(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayImgSizeThresholdReport";this.base=EbayBaseControl;this.base(pParent,pName);var cl=this.oGlobals.oClient;if(!cl.bIE||cl.bMac||typeof(pCfg)=='undefined')
return;this.oConfig=pCfg;this.iNumUnits=1048576;this.iThreshold=1;this.iImgSize=this.iNumUnits*this.iThreshold;this.iTotMB=0;this.sLayerName='eb_img_size_thresh_report_layer';this.sImagePrefix='eb_img_size_thresh_report_image';this.oLayerOut=new EbayHTMLLayer(this,this.oConfig.sDivOutID);this.oLayerIn=new EbayHTMLLayer(this,this.oConfig.sDivInID);this.aImageObjs=[];this.createControl=ebImgSizeThresholdReportCreateControl;this.getImageTable=ebImgSizeThresholdReportGetImageTable;this.getThresholdUnits=ebImgSizeThresholdReportGetThresholdUnits;this.getCellContent=ebImgSizeThresholdReportGetCellContent;this.display=ebImgSizeThresholdReportDisplay;this.getMinutes=ebImgSizeThresholdReportGetMinutes;this.createControl();function ebImgSizeThresholdReportCreateControl()
{var cfg=this.oConfig;if(cfg)
{with(this)
{oConfig=cfg;var d=oDocument;iThreshold=cfg.iThreshold;iImgSize=iNumUnits*iThreshold;var s='<div id="'+sLayerName+'" style="display:none; position:absolute;left:0px; top:0px;">';new EbayHTMLLayer(this,sLayerName);var l=cfg.aWebURLs.length,imName;if(l>1)
{oLayerOut.bind();oLayerOut.setValue(oConfig.sEvalMsg);}
for(var i=0;i<l;i++)
{imName=sImagePrefix+i;s+='<img name="'+imName+'" src="';s+=cfg.aWebURLs[i]+'">';aImageObjs[aImageObjs.length]=new EbayHTMLImage(this,imName);}
d.write(s+'</div>');var e=oDocument._getEvent("load");_registerListener(e,EVENT_AFTER,"display");}}}
function ebImgSizeThresholdReportDisplay()
{var numOver=0,numMinutes=0,numMB=0;var c=this.oConfig;var aWI=this.aImageObjs;var oD=this.oLayerOut;var aDI=this.oLayerIn.eElem.getElementsByTagName("img");var ln=aWI.length;var ln2=aDI.length;if(ln2>0)
oD.setValue(this.oConfig.sEvalMsg);if((ln+ln2)==0)
{oD.setValue("");return;}
var aWebImages=new Array();for(var i=0;i<ln;i++)
{var im=aWI[i];if(im.eElem.fileSize>this.iImgSize)
aWebImages.push(im);}
var aDescImagesOvr=new Array();for(var i=0;i<ln2;i++)
{if(aDI[i].fileSize>this.iImgSize)
aDescImagesOvr.push(aDI[i]);}
numOver=aDescImagesOvr.length+aWebImages.length;if(numOver==0)
{oD.setValue(c.sUndrThreshMsg.replaceTokensEx("##n##",this.iThreshold));}
else
{var strHTMLPart1=c.sTemplate;var strTable=this.getImageTable(aDescImagesOvr,aWebImages);numMinutes=this.getMinutes();var iT=this.iThreshold,sS=c.sMsgseg4ahref,sE=c.sMsgseg4ahrefend,sT="##n##";var sMSS1=c.sMsgSeg1Single,sMSS2=c.sMsgSeg2Single,sMSS4=c.sMsgSeg4Single;if(numOver==1)
{sMSS1=sMSS1.replaceTokensEx(sT,numOver,iT,sS,sE);sMSS2=sMSS2.replaceTokensEx(sT,numOver,iT,sS,sE);sMSS4=sMSS4.replaceTokensEx(sT,numOver,iT,sS,sE);strHTMLPart1=strHTMLPart1.replaceTokensEx(sT,sMSS1,sMSS2,numMinutes,sMSS4);}
else
{c.sMsgSeg1=c.sMsgSeg1.replaceTokensEx(sT,numOver,iT,sS,sE);c.sMsgSeg2=c.sMsgSeg2.replaceTokensEx(sT,numOver,iT,sS,sE);c.sMsgSeg4=c.sMsgSeg4.replaceTokensEx(sT,numOver,iT,sS,sE);strHTMLPart1=strHTMLPart1.replaceTokensEx(sT,c.sMsgSeg1,c.sMsgSeg2,numMinutes,c.sMsgSeg4);}
strHTMLPart1=strHTMLPart1.replaceTokensEx(sT,numOver,iT,sS,sE);strHTMLPart1+=strTable;oD.setValue(strHTMLPart1);}}
function ebImgSizeThresholdReportGetImageTable(apDescImagesOvr,apWebImages)
{with(this)
{var Dl=apDescImagesOvr.length;var Wl=apWebImages.length;var tot=Dl+Wl;var numMB=0;var sT='';var arrIndex=0;var sE='<table><tr><td>';if((tot>1)&&(Dl>0&&Wl>0))
sE+=oConfig.sMsgseg5psls;else
if((tot==1)&&(Dl>0&&Wl>0))
sE+=oConfig.sMsgseg5pls;else
if((tot>1)&&(Dl==0||Wl==0))
sE+=oConfig.sMsgseg5ps;else
if((tot==1)&&(Dl==0||Wl==0))
sE+=oConfig.sMsgseg5pl;sE+='</td></tr><tr><td> </td></tr><tr><td align="left"><b>';if((Dl>3)||(Wl>3))
{for(var i=0;i<apDescImagesOvr.length;i++)
{numMB=getThresholdUnits(apDescImagesOvr[i].fileSize,iNumUnits);iTotMB+=numMB;}
for(var i=0;i<apWebImages.length;i++)
{numMB=getThresholdUnits(apWebImages[i].eElem.fileSize,iNumUnits);iTotMB+=numMB;}
return sT;}
else if((Dl>0)&&(Wl>0))
{arrIndex=Math.max(apDescImagesOvr.length,apWebImages.length);sT+=sE;sT+=oConfig.sDescHdr;sT+='</b></td><td width="100"/><td align="left"><b>';sT+=oConfig.sPDHdr;sT+='</b></td></tr>';for(var i=0;i<=arrIndex;i++)
{sT+='<tr><td valign="top">';if(typeof apDescImagesOvr[i]!='undefined')
{numMB=getThresholdUnits(apDescImagesOvr[i].fileSize,iNumUnits);iTotMB+=numMB;sT+=getCellContent(apDescImagesOvr[i].src,numMB);}
else
{sT+=" ";}
sT+='</td><td width="100"></td><td valign="top">';if(typeof apWebImages[i]!='undefined')
{numMB=getThresholdUnits(apWebImages[i].eElem.fileSize,iNumUnits);iTotMB+=numMB;sT+=getCellContent(apWebImages[i].eElem.src,numMB);}
else
{sT+=" ";}
sT+='</td></tr>';}
sT+='</table>';}
else if((Dl<=3)&&(Wl==0))
{sT+=sE;sT+=oConfig.sDescHdr;sT+='</b></td></tr>';for(var i=0;i<=Dl;i++)
{sT+='<tr><td valign="top">';if(typeof apDescImagesOvr[i]!='undefined')
{numMB=getThresholdUnits(apDescImagesOvr[i].fileSize,iNumUnits);iTotMB+=numMB
sT+=getCellContent(apDescImagesOvr[i].src,numMB);}
sT+='</td></tr>';}
sT+='</table>';}
else if((Dl==0)&&(Wl<=3))
{sT+=sE;sT+=oConfig.sPDHdr;sT+='</b></td></tr>';for(var i=0;i<=Wl;i++)
{sT+='<tr><td valign="top">';if(typeof apWebImages[i]!='undefined')
{numMB=getThresholdUnits(apWebImages[i].eElem.fileSize,iNumUnits);iTotMB+=numMB
sT+=getCellContent(apWebImages[i].eElem.src,numMB);}
sT+='</td></tr>';}
sT+='</table>';}
return sT;}}
function ebImgSizeThresholdReportGetThresholdUnits(piBytes,piThreshold)
{return Math.round(10*(piBytes/piThreshold))/10;}
function ebImgSizeThresholdReportGetCellContent(psSrc,pfMB)
{var sN=psSrc.substring(psSrc.lastIndexOf('/')+1);return sN+" ("+pfMB+"MB)";}
function ebImgSizeThresholdReportGetMinutes()
{with(this)
{var minsec=((Math.round(iTotMB))*oConfig.fLoadTime);var min=Math.floor(minsec);var sec=((minsec-min)*60);if(sec==0)
return oConfig.sMsgseg3m.replaceTokensEx("##n##",min);else
return oConfig.sMsgseg3ms.replaceTokensEx("##n##",min,sec);}}}
new EbayImgSizeThresholdReport(ebay.oDocument.oPage,"ia",ebay.oDocument.getConfig("imageThresholdConfig"));

//13@@m10

ebay.oUtils.sGLBL_CFG="globalVarsConfigObj";ebay.oUtils.mkVarsGlbl=function(){var gt,oD,oBc,oVC,sGlblCfg;oD=ebay.oDocument;oBc=oD.getConfig("config");var sGlblCfg=ebay.oUtils.sGLBL_CFG;function globalIt(pPropName,pVal){eval(pPropName+" = pVal;");}
gt=globalIt;oVC=oD.getConfig(sGlblCfg);for(var i in oVC.glbls){gt(i,oVC.glbls[i]);}}
ebay.oDocument.oPage.openPicShowPopup=function()
{var cfg=ssPopupData;var oPop=new EbayHTMLPopup(ebay.oDocument.oPage,"itemPopup"+cfg.itemId);oPop.iWidth=screen.width/2+25;oPop.iHeight=screen.height/2+5;oPop.iLeft=(screen.width-oPop.iWidth);oPop.iTop=(screen.availHeight-oPop.iHeight);oPop.bMenubar=false;oPop.bToolbar=false;oPop.bLocation=false;oPop.bStatus=false;oPop.bResizable=true;oPop.sUrl=CoreHtmlHost+'viewitem/viewitem_popup.html?domain='+encodeURIComponent(document.domain);oPop.show();}

//14@@m2

function EbayHTMLMinMax(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLMinMax";this.base=EbayHTML;this.base(pParent,pName,pName,pDisabled,pCfg);this.oMin=this.oMax=null;this.min=ebHTMLMinMaxMin;this.max=ebHTMLMinMaxMax;this.minimize=ebHTMLMinMaxMinimize;this.maximize=ebHTMLMinMaxMaximize;this.init=ebHTMLMinMaxInit;this.init(pParent,pName,pDisabled,pCfg);}
function ebHTMLMinMaxInit(pParent,pName,pDisabled,pCfg)
{with(this)
{var t,e="onclick";_registerEvent('onafterminimize');_registerEvent('onaftermaximize');t=new EbayHTML(this,pCfg.sMinCntrlName,pCfg.sMinCntrlName);t._registerEvent(e,"parent.min");t.subscribeEvents(e);oMin=t;t=new EbayHTML(this,pCfg.sMaxCntrlName,pCfg.sMaxCntrlName);t._registerEvent(e,"parent.max");t.subscribeEvents(e);oMax=t;}}
function ebHTMLMinMaxMinimize()
{this.oMin.onclick();}
function ebHTMLMinMaxMaximize()
{this.oMax.onclick();}
function ebHTMLMinMaxMin()
{with(this.parent)
{show();oMin.show();oMax.show(true);onafterminimize();return false;}}
function ebHTMLMinMaxMax()
{with(this.parent)
{show(true);oMax.show();oMin.show(true);onaftermaximize();return false;}}

//15@@m5

ebay.oDocument.oPage.createLinks=function()
{var oD=this.parent,oMM,oCfg=oD.getConfig("ViewItem.More.Info");if(oCfg)
{oMM=new EbayHTMLMinMax(this,oCfg.name,false,oCfg);oMM._registerListener(oMM._getEvent('onaftermaximize'),this.EVENT_AFTER,'onAfterMaximize');oMM._registerListener(oMM._getEvent('onafterminimize'),this.EVENT_AFTER,'onAfterMinimize');oMM.onAfterMaximize=function()
{if(oCfg.bOverrideCookie){this.parent.getCookieVal(false,true);}else{this.parent.getCookieVal(true,true);}}
oMM.onAfterMinimize=function()
{if(oCfg.bOverrideCookie){this.parent.getCookieVal(false,false);}else{this.parent.getCookieVal(true,false);}}
oMM.bind();oMM.oMin.bind();oMM.oMin.show(false);oMM.oMax.bind();oMM.oMax.show(false);this.oMM=oMM;}}
ebay.oDocument.oPage.createMoreInfoLayer=function()
{var oP=this,oD=oP.parent,t,oCfg=oD.getConfig("ViewItem.More.Info");if(oCfg)
{oP.oMMLayer=new EbayHTMLLayer(this,oCfg.sMoreInfoLayerName,false,oCfg);oP.oMMLayer.bind();oP.setMoreInfoState();}}
ebay.oDocument.oPage.setMoreInfoState=function()
{var oP=this,oD=oP.parent,t,oCfg=oD.getConfig("ViewItem.More.Info");if(this.oMM)
{var oMM=this.oMM;if(oCfg.bOverrideCookie){this.getCookieVal(false,true);(oCfg.bMinLayer)?oMM.minimize():oMM.maximize();}else{this.getCookieVal(false,false)?oMM.maximize():oMM.minimize();}}}
ebay.oDocument.oPage.getCookieVal=function(pWrite,pShow)
{var oP=this,oCJ=oP.parent.oCookieJar,pbf=oCJ.readCookielet("dp1","pbf"),cv=oCJ.getBitFlag(pbf,1);if(oP.oMMLayer)
oP.oMMLayer.show(pShow);if(pWrite)
oCJ.writeCookielet("dp1","pbf",oCJ.setBitFlag(pbf,1,pShow?'1':'0'),"","",oCJ.getDate(2));return cv;}
ebay.oDocument.oPage.writeMoreInfoLinks=function(pMinLinkId,pMaxLinkId,pMinLinkText,pMaxLinkText)
{var oP=this,oC=oP.oGlobals.oClient,oD=oP.parent,s;if(oP.bIsSupported)
{s="<a href='#' name='"+pMinLinkId+"' id='"+pMinLinkId+"'>"+pMinLinkText+"</a>";s+="<a href='#' name='"+pMaxLinkId+"' id='"+pMaxLinkId+"'>"+pMaxLinkText+"</a>";oD.doc.write(s);oP.createLinks();}}
ebay.oDocument.oPage.initMoreInfo=function()
{var oP=this,e=oP.parent._getEvent("load"),oC=this.oGlobals.oClient;oP.bIsSupported=!((oC.bNav&&(oC.iVer<7))||(oC.bWebTV))}
ebay.oDocument.oPage.initMoreInfo();

//16@@m1

ebay.oDocument.oPage.initMerchWidget=function()
{var c=this.parent.getConfig('Express.Merch.Widget');if(c)
{var og=this.oGlobals,cl=og.oClient;c.bShowContentAfterPageLoad=(cl.bOpera)?true:false;c.sContentUrl+="&random="+Math.round(Math.random()*1000);var oI=new EbayHTMLFrameAutoSize(this,"Exp_Merch_Ctrl",c,c.sContentUrl);oI.writeContainer(c);}}

//17@@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;}

//18@@m1

function EbayFastRefresh(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayFastRefresh";this.base=EbayHTMLFrame;this.base(pParent,pName);this.sendRequest=ebFastRefreshSendRequest;this.processResponse=ebFastRefreshProcessResponse;this.rebind=ebFastRefreshRebind;}
function ebFastRefreshSendRequest(pUrl)
{this.setSource(pUrl);}
function ebFastRefreshProcessResponse(pDivInfos,pReBindInfos)
{var aDivs=pDivInfos,iLen=aDivs.length;for(var i=0;i<iLen;i++)
{oDiv=this.oDocument._getControl(aDivs[i][0]);if(!oDiv)
{oDiv=new EbayHTMLLayer(this.parent,aDivs[i][0]);oDiv.bind();}
oDiv.setValue(aDivs[i][1]);}
if(typeof(pReBindInfos)!="undefined"&&pReBindInfos)
this.rebind(pReBindInfos);}
function ebFastRefreshRebind(pReBindInfos)
{var aRBElems=pReBindInfos,iLen=aRBElems.length,oC=null;var oD=this.oDocument;for(var i=0;i<iLen;i++)
{oC=oD._getControl(aRBElems[i]);if(!oC)
oC=new EbayHTML(this,aRBElems[i])
oC.bind();}}

//19@@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;}

//20@@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();}}

//21@@m8

function EbaySYI3Grayout(pParent,pName)
{if(!this.objType)
this.objType="EbaySYI3Grayout";this.base=EbayBaseControl;this.base(pParent,pName);this.oLayer=new EbayHTMLLayer(this,'lyrGrayout_sec');this.aSelElems=this.oDocument.doc.getElementsByTagName('SELECT');this.aExcludeSelElems=[];this.bDisableSelElems=true;this.display=function(pWidth,pHeight,pPosArray)
{var oL=this.oLayer,pos=pPosArray;if(!oL.eElem)
oL.bind();oL.width(pWidth+'px');oL.height(pHeight+'px');oL.show(true);oL.left((pos?pos[0]:0)+'px');oL.top((pos?pos[1]:0)+'px');oL.setValue("");if(this.bDisableSelElems)
this.disableSelElems(true);}
this.hide=function()
{var oL=this.oLayer;oL.show(false);if(this.bDisableSelElems)
this.disableSelElems(false);}
this.disableSelElems=function(pDisable)
{if(pDisable)
this.aExcludeSelElems=[];var aS=this.aSelElems,l=aS.length;for(var i=0;i<l;i++)
{if(pDisable&&aS[i].disabled)
this.aExcludeSelElems[this.aExcludeSelElems.length]=aS[i].name;if(!pDisable&&this.oUtils.isInArray(this.aExcludeSelElems,aS[i].name))
continue;aS[i].disabled=pDisable;}}}

//22@@m1

function EbayVIBuyerChecklist(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayVIBuyerChecklist";var oCfg=this.oCfg=pCfg;this.base=EbayBaseControl;this.base(pParent,pName);this.aImg=new Array;this.oImgParam=new EbayHTMLText(this,oCfg.sHiddenVar);for(i=0;i<oCfg.aChecklistInfo.length;i++)
{var oImg=this.aImg[i]=new EbayHTMLImage(this,oCfg.aChecklistInfo[i][0],false,oCfg.aImgUrls[0],oCfg.aImgUrls[1]);oImg.sImgVal=oCfg.aChecklistInfo[i][1];oImg.bChecked=oCfg.aChecklistInfo[i][2];oImg.oL=new EbayHTMLLayer(this,oCfg.aChecklistInfo[i][3])
oImg.onclick=function()
{with(this)
{parent.setVal(this,!bChecked);enableBase(true);}}}
this.setVal=function(pObj,bToggle)
{with(this)
{toggleStyles(pObj,bToggle)
var s='';for(j=0;j<aImg.length;j++)
if(aImg[j].bChecked)
s=s+aImg[j].sImgVal+',';s=s.substr(0,s.length-1);oImgParam.setValue(s);}}
this.toggleStyles=function(pObj,bToggle)
{with(pObj)
{enable(bToggle);bChecked=bToggle;if(!oL.eElem)
oL.bind();var sStyle=bToggle?this.oCfg.aDivStyles[0]:this.oCfg.aDivStyles[1];oL.setClass(sStyle);}}}

//23@@m13

function EbayHTMLOverlayUrl(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayHTMLOverlayUrl";this.base=EbayHTMLOverlay;this.base(pParent,pName,pCfg);if(!this.isSupported())
return null;this.sUrl=pCfg.url||null;this.sIframeName='if_'+pName;this.sLayerUI=pCfg.layerHTML;this.bAutoResize=pCfg.autoResize;this.bCloseLink=pCfg.defCloseLink;this.bDowngradeDomain=true;this.bTransparent=pCfg.bTransparent;this.displayBase=this.display;this.display=ebHTMLOverlayUrlDisplay;this.hide=this.closeOverlay;this.closeOverlayBase=this.closeOverlay;this.closeOverlay=ebHTMLOverlayUrlCloseOverlay;this.closeLayerUI=ebHTMLOverlayUrlCloseLayer;this.setCloseLayer=ebHTMLOverlayUrlSetCloseLayer;this.getIFUrl=ebHTMLOverlayUrlGetIFUrl;this.setDowngrade=ebHTMLOverlayUrlSetDowngradeDomain;this.onAfterFrameLoad=ebHTMLOverlayUrlAfterFrameLoad;}
function ebHTMLOverlayUrlDisplay()
{with(this)
{if(!sUrl)
return;var s=getIFUrl();if(oGlobals.oEnvironment.sThisPageRaw==sUrl)
return;if(bCloseLink)
s+=setCloseLayer();displayBase(s);new EbayHTMLFrame(this,sIframeName);}}
function ebHTMLOverlayUrlSetCloseLayer()
{with(this)
{sLayerHTML=closeLayerUI()+sLayerUI;var a=new EbayHTMLAnchor(this,'close');a._registerEvent("onclick","this.parent.hide();return false;");}}
function ebHTMLOverlayUrlCloseLayer()
{var s='';var stl='border-collapse:collapse; border-width:2px 2px 0px 2px; background-color:#EEEEEE;border-style:outset;';with(this)
{var pd=oGlobals.oEnvironment.sPicsDir,img=pd+'icon/iconClose_20x20.gif',w=parseInt(sWidth)+4;s+='<table id="tblClose" width="'+w+'" cellspacing="0" cellpadding="4"';s+='style="'+stl+'">';s+='<tr><td align="right"><a href="#" name="close"><img src="'+img+'" border="0"></a>';s+='</td></tr></table>';}
return s;}
function ebHTMLOverlayUrlGetIFUrl()
{var s='';with(this)
{sUrl=setDowngrade(sUrl);if(sUrl.has("ej2child=true"))
{sUrl+="&ej2parent="+this.name;oDocument.setGlobalParent(this);}
s+='<iframe frameborder="no" border="0" marginwidth="0" marginheight="0"';s+=oConfig.bScrolling?' scrolling="auto"':' scrolling="no"';s+=' id="'+sIframeName+'" name="'+sIframeName+'"';s+=' src="'+sUrl+'"';s+=' width="'+sWidth+'" height="'+sHeight+'"';if(oConfig.sIframeClass)
s+=' class="'+oConfig.sIframeClass+'"';if(bTransparent)
s+=' allowtransparency="true"';s+='></iframe>';}
return s;}
function ebHTMLOverlayUrlSetDowngradeDomain(pUrl)
{if(!pUrl.has('downgradeDomain=true')&&this.bDowngradeDomain==true)
{pUrl+=!pUrl.has('?')?'?':'&';pUrl+='downgradeDomain=true';}
return pUrl;}
function ebHTMLOverlayUrlAfterFrameLoad()
{with(this)
{var ifObj=controls[sIframeName];if(!ifObj.eElem)ifObj.bind();if(bAutoResize)
ifObj.resize();if(bCloseLink)
{var e=oDocument.doc.getElementById('tblClose');ifObj.width(parseInt(e.style.width)+4);}}}
function ebHTMLOverlayUrlCloseOverlay()
{with(this)
{var ifObj=controls[sIframeName],cl=oGlobals.oClient;ifObj.bind();if(!cl.bFirefox)
ifObj.setSource(oGlobals.oEnvironment.sPicsDir+'tbx/s.gif');ifObj.cleanupMemory();setTimeout(oUtils.controlPath(this)+'.closeOverlayBase()',100);}}

//24@@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");

//25@@m2

function EbayVIPaymentCalculator(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayVIPaymentCalculator";var oC=this.oCfg=pCfg;this.base=EbayBaseControl;this.base(pParent,pName);var oCl=this.oCl=this.parent.oGlobals.oClient;var oL=this.oL=new EbayHTMLOverlayUrl(this,oC.sPayCalcLayer,oC);var lyr=this.lyr=new EbayHTMLLayer(this,oC.sCurveBoxBottom);this.oPayCalc=new Array;for(j=0;j<oC.aLinks.length;j++)
{var oPayCalc=this.oPayCalc[j]=new EbayHTMLAnchor(this,oC.aLinks[j])
oPayCalc._registerEvent("onclick","onClick");oPayCalc.onClick=function()
{with(this.parent)
{if(oCl.bIE)
lyr.show(false);oL.bDowngradeDomain=false;oL.bForceReposition=true;oL.sUrl=oC.sUrl;if(!oL.eElem)
oL.bind();oL.setPosition=positionLayer;oL.display();return false;}}}
this.positionLayer=function()
{return false;}}

//26@@m21

function EbayHTMLSelect(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLSelect";this.base=EbayHTMLFormElem;this.base(pParent,pName,pDisabled,pCfg);this.iSelIndex=-1;this.createOption=ebHTMLSelectCreateOption;this.clearOptions=ebHTMLSelectClearOptions;this.getValueByIndex=ebHTMLSelectGetValueByIndex;this.getSelectedIndex=ebHTMLSelectGetSelectedIndex;this.getSelectedValue=ebHTMLSelectGetSelectedValue;this.getSelectedText=ebHTMLSelectGetSelectedText;this.getOptionsLength=ebHTMLSelectGetOptionsLength;this.setOption=ebHTMLSelectSetOption;this.insertOption=ebHTMLSelectInsertOption;this.deleteOption=ebHTMLSelectDeleteOption;this.selectByIndex=ebHTMLSelectSelectByIndex;this.selectByValue=ebHTMLSelectSelectByValue;this.selectByText=ebHTMLSelectSelectByText;this.doSelect=ebHTMLSelectDoSelect;this.getIndexByValue=ebHTMLSelectGetIndexByValue;this.getValue=this.getSelectedValue;this.setValue=this.selectByValue;this.subscribeEvents("onchange");}
function ebHTMLSelectClearOptions()
{var e=this.eElem;if(e)
{var opts=e.options;while(opts.length>0)
opts[opts.length-1]=null;}}
function ebHTMLSelectCreateOption(pName,pText)
{if(this.eElem)
{var nOpt=new Option(pText,pName,false,false),opts,lo,oC=ebay.oGlobals.oClient;opts=this.eElem.options;opts[opts.length]=nOpt;idx=opts.length-1;return idx;}}
function ebHTMLSelectGetValueByIndex(pIdx,pTextOnly)
{if(pIdx>-1)
{opt=this.eElem.options[pIdx];if(opt)
return pTextOnly?opt.text:opt.value;}
this.throwError("Invalid index","get");return"";}
function ebHTMLSelectGetSelectedIndex()
{return this.eElem.selectedIndex;}
function ebHTMLSelectGetSelectedValue()
{return this.getValueByIndex(this.eElem.selectedIndex);}
function ebHTMLSelectGetSelectedText()
{return this.getValueByIndex(this.eElem.selectedIndex,true);}
function ebHTMLSelectGetOptionsLength()
{return this.eElem.options.length;}
function ebHTMLSelectSelectByIndex(pIndex)
{this.eElem.selectedIndex=this.iSelIndex=pIndex;}
function ebHTMLSelectDoSelect(pVal,pIsText)
{if(this.eElem)
{var e=this.eElem,o,rv=false,opts=e.options,len=opts.length;for(var i=0;i<len&&!rv;i++)
{o=opts[i];if(((pIsText||(o.value==""))&&(pVal==o.text))||(!pIsText&&(o.value==pVal)))
{e.selectedIndex=this.iSelIndex=i;rv=true;}}}
else
this.throwWarning("HTML element '"+this.name+"' not found","selectByValue");return rv;}
function ebHTMLSelectSelectByValue(pVal)
{return this.doSelect(pVal);}
function ebHTMLSelectSelectByText(pVal)
{return this.doSelect(pVal,true);}
function ebHTMLSelectSetOption(pVal,pText,pInd)
{if(this.eElem)
{if((pInd!=null)&&(pInd>-1))
{var o=this.eElem.options[pInd];o.value=pVal;o.text=pText;}
else
this.createOption(pVal,pText);}
else
this.throwWarning("HTML element '"+this.name+"' not found","selectByValue");}
function ebHTMLSelectInsertOption(pVal,pText,pInd)
{with(this)
{var e=eElem,opts=e.options,len=opts.length;var inOpt=new Array(pText,pVal),tmpOpt=new Array(2);var sel=getSelectedValue();len++;if(pInd>=len)
return;for(i=pInd;i<len;i++)
{if(i<len-1)
tmpOpt=[e.options[i].text,e.options[i].value];opts[i]=new Option(inOpt[0],inOpt[1]);inOpt=tmpOpt;}
selectByValue(sel);}}
function ebHTMLSelectDeleteOption(pInd)
{if(typeof(pInd)!='undefined')
{var opts=this.eElem.options;if(opts[pInd])
opts[pInd]=null;}}
function ebHTMLSelectGetIndexByValue(pVal,pIsText)
{var opts=this.eElem.options,len=opts.length,i=0;for(;i<len;i++)
{o=opts[i];if((o.value==pVal)||(pIsText&&(o.text==pVal)))
return i;}
return-1;}

//27@@m1

function EbayFieldValidation(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayFieldValidation";this.oCfg=pCfg;this.base=EbayBaseControl;this.base(pParent,pName);this.init=function()
{with(this)
{this.iDefaultIdx=oCfg.iDefIndex;this.aSelElem=new Array;this.oL=new EbayHTMLLayer(this,oCfg.sDivError);for(i=0;i<oCfg.aSelectInfo.length;i++)
{aSelElem[i]=new EbayHTMLSelect(this,oCfg.aSelectInfo[i][0]);aSelElem[i].oErrorDiv=new EbayHTMLLayer(this,oCfg.aSelectInfo[i][1]);}}}
this.toggleOnErrors=function()
{with(this)
{var sToggleTitle,bHasErrors=false;for(var i=0,len=aSelElem.length;i<len;i++)
{if(aSelElem[i].eElem)
{if(aSelElem[i].getSelectedIndex()==iDefaultIdx)
{sToggleTitle=oCfg.aDivStyles[1];bHasErrors=true;}
else
sToggleTitle=oCfg.aDivStyles[0];aSelElem[i].oErrorDiv.setClass(sToggleTitle);}}
oL.show(bHasErrors);return bHasErrors;}}
this.init();}

//28@@m6

function EbayTabNavigation(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayTabNavigation";this.oCfg=pCfg;this.base=EbayBaseControl;this.base(pParent,pName);this._registerListener(this.oDocument._getEvent("load"),this.EVENT_AFTER,"initOnAfterLoad");this.iDefIndex=this.oCfg.iDefIndex;this.bInitTabContents=this.oCfg.bInitTabContents;this.bisOnLoadCall=true;this.init=function()
{var oC=this.oCfg,aTabDivs=oC.aTabDivs,aSCDivs=oC.aSubContentInfos;var iATDLen=aTabDivs?aTabDivs.length:0,iASCDLen=aSCDivs?aSCDivs.length:0,i,oTemp;this.aTabDivs=new Array,this.aTabAnchs=new Array,this.aContentDivs=new Array;this.aSubContentDivs=new Array,this.aSubContentIFrames=new Array,this.aSubContentUrls=new Array;this.aPartners=new Array;for(i=0;i<iATDLen;i++)
{oTemp=new EbayHTMLAnchor(this,aTabDivs[i][0]);this.aTabDivs[aTabDivs[i][3]]=new EbayHTMLLayer(this,aTabDivs[i][1]);oTemp._registerEvent("onclick","parent.tabAnchorOnclick");oTemp.iInd=aTabDivs[i][3];this.aTabAnchs[aTabDivs[i][3]]=oTemp;this.aContentDivs[aTabDivs[i][3]]=new EbayHTMLLayer(this,aTabDivs[i][2]);}
for(i=0;i<iASCDLen;i++)
{var aDivs=aSCDivs[i][0],iSCDLen=aDivs?aDivs.length:0;var iSCFLen=aSCDivs[i][1]?aSCDivs[i][1].length:0;for(var j=0;j<iSCDLen;j++)
new EbayHTMLLayer(this,aDivs[j]);for(var k=0;k<iSCFLen;k++){this.aSubContentIFrames[aSCDivs[i][1][k][0]]=new EbayHTMLFrame(this,aSCDivs[i][1][k][0]);this.aSubContentUrls[aSCDivs[i][1][k][0]]=aSCDivs[i][1][k][1];}
new EbayHTMLLayer(this,oC.sHistoryReportMsgDiv);}
this.oContentFrame=new EbayHTMLFrame(this,oC.aContentIFrame[0]);this.oContentUrl=oC.aContentIFrame[1];}
this.initOnAfterLoad=function()
{var oAnch=this.aTabAnchs[this.iDefIndex];if(oAnch)
oAnch.onclick();}
this.tabAnchorOnclick=function()
{with(this.parent)
{if(this.parent.bInitTabContents&&!this.parent.bisOnLoadCall)
oContentFrame.eElem.src=this.parent.oCfg.sInitTabContentsUrl+this.iInd;else
oContentFrame.eElem.src=oContentUrl+this.iInd;this.parent.bisOnLoadCall=false;}}
this.showTabContent=function(pIndex)
{this.aTabDivs[pIndex].setClass(this.oCfg.aTabStyles["selected"]);this.aContentDivs[pIndex].show(true);if(typeof(this.iPrevSelInd)!="undefined"&&this.iPrevSelInd!=pIndex)
{this.aTabDivs[this.iPrevSelInd].setClass(this.oCfg.aTabStyles["notselected"]);this.aContentDivs[this.iPrevSelInd].show(false);}
this.iPrevSelInd=pIndex;var aSCI=this.oCfg.aSubContentInfos,aSCF,iSCFLen,oFrame;var iSCILen=aSCI?aSCI.length:0;for(var i=0;i<iSCILen;i++){if(pIndex==aSCI[i][2]){aSCF=aSCI[i][1];this.oCfg.iPartner=aSCF?aSCF.length:0;for(var x=0;x<this.oCfg.iPartner;x++){oFrame=this.aSubContentIFrames[aSCI[i][1][x][0]];if(oFrame&&!oFrame.bAlreadyInit){oFrame.bAlreadyInit=true;oFrame.setSource(this.aSubContentUrls[aSCI[i][1][x][0]]);}}}}
if(this.sHref)
{this.oDocument.gotoAnchor(this.sHref);this.sHref=null;}}
this.setPartners=function(psPartner,psFullReport,psSummaryReport,pbError,pbVinError,piTimeStamp,psName)
{this.aPartners[this.aPartners.length]=[psPartner,psFullReport,psSummaryReport,pbError,pbVinError,piTimeStamp,psName];if(this.aPartners.length==this.oCfg.iPartner){for(var x in this.aPartners){window[this.aPartners[x][6]].ebay.oDocument.oPage.displayReport(this.aPartners);}}}
this.rebind=function(pReBindInfos)
{var aRBElems=pReBindInfos,iLen=aRBElems.length,oC=null;var oD=this.oDocument;for(var i=0;i<iLen;i++)
{oC=oD._getControl(aRBElems[i]);if(!oC)
oC=new EbayHTML(this,aRBElems[i]);oC.bind();}}
this.clickTrack=function(paReBindElements,paClickTrack,paImpTrackId,psPageId,pbSideBySide)
{if(typeof(document.forms[paReBindElements[0]])!="undefined"){var env=ebay.oGlobals.oEnvironment;var sRid,sImp=(pbSideBySide)?paImpTrackId[1]:paImpTrackId[0];var oRadio=document.forms[paReBindElements[0]].elements[paReBindElements[1]];var oForm=new EbayHTMLForm(this,paReBindElements[0]);oForm._registerEvent("onsubmit","onsubmit");oForm.bind();oForm.onsubmit=function(){for(var x=0;x<oRadio.length;x++){if(oRadio[x].checked){sRid=oRadio[x].value;}}
var rover=new Rover();if(env.sEnvironment=="qa"){if(env.sQAMachine==""){rover.setEnvQA();}else if(env.sQAMachine!=""){rover.setQAPool(env.sQAMachine);}}
var clk=rover.createClkTracker();clk.setPage(psPageId+"."+paClickTrack[0]);clk.setFlagBit(sImp);clk.set1Nvp("rid",sRid);clk.track();return true;}
var oAnchor=new EbayHTMLAnchor(this,paReBindElements[3]);oAnchor._registerEvent("onclick","onclick");oAnchor.bind();oAnchor.onclick=function(){var rover=new Rover();if(env.sEnvironment=="qa"){if(env.sQAMachine==""){rover.setEnvQA();}else if(env.sQAMachine!=""){rover.setQAPool(env.sQAMachine);}}
var clk=rover.createClkTracker();clk.setPage(psPageId+"."+paClickTrack[1]);clk.setFlagBit(sImp);clk.track();return true;}}}
this.impTrack=function(paImpTrackId,psPageId)
{var env=ebay.oGlobals.oEnvironment;var rover=new Rover();if(env.sEnvironment=="qa"){if(env.sQAMachine==""){rover.setEnvQA();}else if(env.sQAMachine!=""){rover.setQAPool(env.sQAMachine);}}
var imp=rover.createImpTracker();imp.setPage(psPageId);imp.setFlagBit(paImpTrackId);imp.track();}
this.setExternal=function(paUrls)
{for(var x in paUrls)
{var head=document.getElementsByTagName("head")[0];var cssNode=document.createElement("link");cssNode.type='text/css';cssNode.rel='stylesheet';cssNode.href=paUrls[x];head.appendChild(cssNode);}}
this.init();}

//29@@m1

function EbayHTMLLayerFormSubmit(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLLayerFormSubmit";this.base=EbayHTMLLayer;this.base(pParent,pName,pDisabled,pCfg);this.oCfg=pCfg;this.subscribeEvents("onclick");this.init=ebHTMLLayerFormSubmitInit;this.showButton=ebHTMLLayerFormSubmitShow;if(!pCfg.bNonSubmit)
this.onclick=ebHTMLLayerFormSubmitClick;this.init();}
function ebHTMLLayerFormSubmitInit()
{var oCl=this.oGlobals.oClient;if((oCl.bIE&&oCl.iVer>5)||(oCl.bFirefox)||(oCl.bNav&&oCl.iVer>6)||(oCl.bSafari))
{this.oForm=new EbayHTMLForm(this,this.oCfg.sFormName);this._registerListener(this.oDocument._getEvent("load"),this.EVENT_AFTER,"showButton");}}
function ebHTMLLayerFormSubmitShow()
{this.setValue(this.oCfg.sHTML);}
function ebHTMLLayerFormSubmitClick()
{this.oForm.submit();return false}
ebay.oDocument.oPage.createButton=function(pName)
{var c=this.oDocument.getConfig(pName)
if(c)
new EbayHTMLLayerFormSubmit(this,c.sLayerName,false,c);}

//30@@m4

ebay.oDocument.oPage.registerFormPopupSubmit=function(pSubmitInfos,pPopupInfos)
{this.aFPSControls=[],this.aFPSControls[this.aFPSControls.length]=[pSubmitInfos,pPopupInfos];this._registerListener(this.parent._getEvent("load"),this.EVENT_BEFORE,"formPopupSubmit");this.registerFormPopupSubmit=function(pSubmitInfos,pPopupInfos)
{this.aFPSControls[this.aFPSControls.length]=[pSubmitInfos,pPopupInfos];}}
ebay.oDocument.oPage.formPopupSubmit=function()
{var aFPSControls=this.aFPSControls,iLen=aFPSControls.length;for(var i=0;i<iLen;i++)
{var aSubmitInfos=aFPSControls[i][0],aPopupInfos=aFPSControls[i][1];var oForm=new EbayHTMLForm(this,aSubmitInfos[0]);var oBut=this.oDocument._getControl(aSubmitInfos[1]);if(!oBut)
oBut=new EbayHTMLButton(this,aSubmitInfos[1]);var oPopup=new EbayHTMLPopup(this,"Popup");oPopup.sBaseUrl=aSubmitInfos[2],oBut.oPopup=oPopup,oBut.oForm=oForm;oBut.bUseFormAction=aSubmitInfos[4];oPopup.iHeight=aPopupInfos[1],oPopup.iWidth=aPopupInfos[0];oPopup.iLeft=aPopupInfos[2]?aPopupInfos[2]:0,oPopup.iTop=aPopupInfos[3]?aPopupInfos[3]:0;oBut.subscribeEvents("onclick");oBut._registerListener(oBut._registerEvent("onclick"),this.parent.EVENT_AFTER,"onClick");oBut.bValidate=aSubmitInfos[3];if(oBut.bValidate)
{var oValCfg=ebay.oDocument.getConfig("ViewItem.FinancingPartner.Validation");if(oValCfg)
this.oValCtrl=new EbayFieldValidation(this,'EbayFieldValidation',oValCfg);}
oBut.onClick=function()
{with(this)
{if(parent.oValCtrl)
if(bValidate&&parent.oValCtrl.toggleOnErrors())
return;var aP=[],iPLen,sParam="";var sUrl=oPopup.sBaseUrl;if(bUseFormAction)
{oForm.bind();sUrl=oForm.getAction();}
oPopup.sUrl=sUrl;aP=oForm.getElements(),iPLen=aP.length;for(var j=0;j<iPLen;j++)
{if(((aP[j].type=="radio")||(aP[j].type=="checkbox"))&&!aP[j].checked)
continue;sParam+=("&"+aP[j].name+"="+aP[j].value);}
oPopup.sUrl+=sParam;parent.setDimensions(oPopup);oPopup.show();}
return false;}
this.setDimensions=function(pObj)
{with(this)
{var oPopup=pObj;var winHeight=getHeight()-200;var winWidth=getWidth()-200;if(winHeight>0&&winWidth>0)
{oPopup.iHeight=winHeight;oPopup.iWidth=winWidth;}}}
this.getHeight=function()
{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;return winHeight;}}
this.getWidth=function()
{with(this)
{var oD=oDocument;winWidth=oD.doc.body.clientWidth,cL=oGlobals.oClient;if(!cL.bIE)
winWidth=window.innerWidth;return winWidth;}}}}

//31@@m3

VjCookieJar={aCookies:{}};VjCookieJar.Default_Cookie_Format={'COOKIELET_DELIMITER':"^",'NAME_VALUE_DELIMITER':"/"};VjCookieJar.DP_Cookie_Format={'COOKIELET_DELIMITER':"^",'NAME_VALUE_DELIMITER':"/",'bUseExp':true};VjCookieJar.Session_Cookie_Format={'COOKIELET_DELIMITER':"^",'NAME_VALUE_DELIMITER':"=",'escapedValue':true};VjCookieJar.DS_Cookie_Format={'COOKIELET_DELIMITER':"^",'NAME_VALUE_DELIMITER':"/"};VjCookieJar.sCookieDomain=".ebay.com";VjCookieJar.sPath="/";VjCookieJar.aConversionMap={'reg':['dp1','reg'],'recent_vi':['ebay','lvmn'],'ebaysignin':['ebay','sin'],'p':['dp1','p'],'etfc':['dp1','etfc'],'keepmesignin':['dp1','kms'],'ItemList':['ebay','wl'],'BackToList':['s','BIBO_BACK_TO_LIST']};VjCookieJar.aFormatMap={'r':VjCookieJar.Default_Cookie_Format,'dp1':VjCookieJar.DP_Cookie_Format,'npii':VjCookieJar.DP_Cookie_Format,'ebay':VjCookieJar.Session_Cookie_Format,'reg':VjCookieJar.Session_Cookie_Format,'apcCookies':VjCookieJar.Session_Cookie_Format,'ds2':VjCookieJar.DS_Cookie_Format};VjCookieJar.aSpecialMap={'reg':''};VjCookieJar.sCOMPAT="10";VjCookieJar.sCONVER="01";VjCookieJar.sSTRICT="00";VjCookieJar.sModesCookie="ebay";VjCookieJar.sModesCookielet="cv";VjCookieJar.readCookie=function(psCookie,psCookielet)
{this.update();var cmap=this.aConversionMap[psCookie];var mode=null;var clet;var r="";if(cmap)
{mode=this.getMode(psCookie);psCookie=cmap[0];psCookielet=cmap[1];}
var val=this.aCookies[psCookie];if(!psCookie||!val)
{r="";}
else if(!psCookielet)
{clet=this.getCookielet(val,this.getFormatRegEx(psCookie,psCookielet));r=val;if(mode==this.sCOMPAT)
{r=val?val:clet;}
else if(mode==this.sCONVER)
{r=clet?clet:val;}
else if(mode==this.sSTRICT)
{r=clet;}}
else
{clet=this.getCookielet(val,this.getFormatRegEx(psCookie,psCookielet));var format=this.aFormatMap[psCookie];if(clet&&format&&format.bUseExp&&!(psCookielet in this.aSpecialMap))
{var d=clet.substring(clet.length-8);d=parseInt(d.hex2Dec())*1000;if(d>=(new Date()).getTime()){clet=clet.substring(0,clet.length-8);}else{clet="";}}
r=clet;if(mode==this.sCOMPAT)
{r=val;}}
return(typeof(r)!="undefined")?r:"";};VjCookieJar.readMultiLineCookie=function(psCookie,psCookielet)
{if(!psCookie||!psCookielet)
return"";var val;var cmap=this.aConversionMap[psCookie];if(cmap)
{val=this.readCookie(cmap[0],cmap[1])||"";var format=this.aFormatMap[psCookie];if(format&&format.escapedValue)
{val=decodeURIComponent(val);}}
var r="";if(val)
{r=this.getCookielet(val,this.getFormatRegEx(psCookie,psCookielet))||"";}
return(typeof(r)!="undefined")?r:"";};VjCookieJar.writeCookie=function(psCookie,psVal,psExp)
{var cmap=this.aConversionMap[psCookie];if(cmap)
{this.writeCookielet(cmap[0],cmap[1],psVal,psExp);return;}
if(psCookie&&(psVal!=undefined))
{if((isNaN(psVal)&&psVal.length<4000)||(psVal+'').length<4000)
{document.cookie=psCookie+"="+(psVal||"")+
((psExp)?"; expires="+psExp:"")+"; domain="+this.sCookieDomain+"; path="+this.sPath;}}};VjCookieJar.writeCookieEx=function(psCookie,psVal,piDays)
{this.writeCookie(psCookie,psVal,this.getExpDate(piDays));};VjCookieJar.writeCookielet=function(psCookie,psCookielet,psVal,psExp,psContExp)
{if(psCookie&&psCookielet)
{this.update();var mode=this.getMode(psCookie);var format=this.aFormatMap[psCookie];if(format&&format.bUseExp&&!(psCookielet in this.aSpecialMap))
{var expDate=psExp?new Date(psExp):new Date(this.getExpDate(730));var expDateUTC=Date.UTC(expDate.getUTCFullYear(),expDate.getUTCMonth(),expDate.getUTCDate());expDateUTC=Math.floor(expDateUTC/1000);psVal+=expDateUTC.dec2Hex();}
var val=this.getCookieValue(psCookie,psCookielet,psVal,mode);if(format&&format.escapedValue)
{val=encodeURIComponent(val);}
this.writeCookie(psCookie,val,psContExp);}};VjCookieJar.writeMultiLineCookie=function(psCookie,psCookielet,psVal,psExp,psContExp)
{this.update();var val=this.getCookieValue(psCookie,psCookielet,psVal);if(val)
{var format=this.aFormatMap[psCookie];if(format&&format.escapedValue)
{val=encodeURIComponent(val);}
var cmap=this.aConversionMap[psCookie];this.writeCookielet(cmap[0],cmap[1],val,psExp,psContExp);}};VjCookieJar.getBitFlagOldVersion=function(piDec,piPos)
{piDec=parseInt(piDec,10);var b=piDec.toString(2),r=piDec?b.charAt(b.length-piPos-1):"";return(r=="1")?1:0;};VjCookieJar.setBitFlagOldVersion=function(piDec,piPos,piVal)
{var b="",p,i,e,l;piDec=parseInt(piDec,10);if(piDec)
{b=piDec.toString(2);}
l=b.length;if(l<piPos)
{e=piPos-l;for(i=0;i<=e;i++)
{b="0"+b;}}
p=b.length-piPos-1;return parseInt(b.substring(0,p)+piVal+b.substring(p+1),2);};VjCookieJar.getBitFlag=function(piDec,piPos)
{if(piDec!=null&&piDec.length>0&&piDec.charAt(0)=='#')
{var length=piDec.length;var q=piPos%4;var hexPosition=Math.floor(piPos/4)+1;var absHexPosition=length-hexPosition;var hexValue=parseInt(piDec.substring(absHexPosition,absHexPosition+1),16);var hexFlag=1<<q;return((hexValue&hexFlag)==hexFlag)?1:0;}
else
{return this.getBitFlagOldVersion(piDec,piPos);}};VjCookieJar.setBitFlag=function(piDec,piPos,piVal)
{if(piDec!=null&&piDec.length>0&&piDec.charAt(0)=='#')
{var length=piDec.length;var q=piPos%4;var hexPosition=Math.floor(piPos/4)+1;if(length<=hexPosition)
{if(piVal!=1){return piDec;}
var zeroCout=hexPosition-length+1;var tmpString=piDec.substring(1,length);while(zeroCout>0)
{tmpString='0'+tmpString;zeroCout--;}
piDec='#'+tmpString;length=piDec.length;}
var absHexPosition=length-hexPosition;var hexValue=parseInt(piDec.substring(absHexPosition,absHexPosition+1),16);var hexFlag=1<<q;if(piVal==1)
{hexValue|=hexFlag;}
else
{hexValue&=~hexFlag;}
piDec=piDec.substring(0,absHexPosition)+hexValue.toString(16)+piDec.substring(absHexPosition+1,length);return piDec;}
else
{if(piPos>31)
{return piDec;}
return this.setBitFlagOldVersion(piDec,piPos,piVal);}};VjCookieJar.getCookieValue=function(psName,psKey,psVal,psMode)
{var cmap=this.aConversionMap[psName];var format=this.aFormatMap[psName];var val;if(cmap&&(psMode==this.sSTRICT||psMode==this.sCONVER))
{val=this.readCookie(cmap[0],cmap[1])||"";if(format&&format.escapedValue)
{val=decodeURIComponent(val);}}
else
{val=this.aCookies[psName]||"";}
var re=this.getFormatRegEx(psName,psKey);if(re.test(val))
{val=val.replace(re,"$1"+psVal);}
else
{if(format&&psVal)
{val=val+psKey+format.NAME_VALUE_DELIMITER+
psVal+format.COOKIELET_DELIMITER;}}
return val;};VjCookieJar.update=function()
{var aC=document.cookie.split("; ");this.aCookies={};for(var i=0;i<aC.length;i++)
{var sC=aC[i].split("=");var format=this.aFormatMap[sC[0]];if(format&&format.escapedValue)
{sC[1]=decodeURIComponent(sC[1]);}
this.aCookies[sC[0]]=sC[1];}};VjCookieJar.getCookielet=function(psVal,psFormatRe)
{var rv;if(psFormatRe)
{var arr=psFormatRe.exec(psVal);if(arr&&arr.length>=3)
{rv=arr[2];}}
return rv;};VjCookieJar.getFormatRegEx=function(psCookie,psCookielet)
{var format=this.aFormatMap[psCookie];var re="";if(format)
{re="("+this.escapeSpecialChars(psCookielet+format.NAME_VALUE_DELIMITER)+")([^\\s"+this.escapeSpecialChars(format.COOKIELET_DELIMITER)+"]*)";}
return new RegExp(re);};VjCookieJar.escapeSpecialChars=function(psChar)
{var chars=['^','/'];for(var i=0;i<chars.length;i++)
{if(psChar==chars[i])
{return"\\"+psChar;}}
return psChar;};VjCookieJar.getExpDate=function(piDays)
{var expires;if(typeof piDays=="number"&&piDays>=0)
{var d=new Date();d.setTime(d.getTime()+(piDays*24*60*60*1000));expires=d.toGMTString();}
return expires;};VjCookieJar.getMode=function(psCookie)
{var h=this.readCookie(this.sModesCookie,this.sModesCookielet),b;if(!(psCookie in this.aConversionMap))
{return null;}
if(!h)
{return"";}
if(h==0)
{return this.sSTRICT;}
if(h&&h!="0")
{if(h.has("."))
{var a=h.split(".");for(i=0;i<a.length;i++)
{b=a[i].hex2Dec().toString(2)+b;}}
else
{b=h.hex2Dec().toString(2);}
i=0;var l=b.length,j;for(o in this.aConversionMap)
{j=l-(2*(i+1));f=b.substring(j,j+2).toString(10);f=(!f)?this.sSTRICT:f;if(psCookie==o)
{return(f.length==1)?"0"+f:f;}
i++;}
return null;}};

//32@@m14

String.prototype.hex2Dec=function(){return parseInt(this,16);}
Number.prototype.dec2Hex=function(){return parseInt(this,10).toString(16);}
var oCJ=VjCookieJar;function NSTracker(){var providerId="1";var rotationId;var svrGMT=0;var clientGMT=0;var thisPage=location.href.toLowerCase();var referrer=document.referrer.toLowerCase();var eBaySiteExp=new RegExp("^(http[s]?:\\/\\/)?[\\w-.]+\\.(ebay(objects|motors|promotion|development|static|express|liveauctions|rtm)?)\\.[\\w-.]+($|\\/.*)","i");this.setProviderId=function(id){providerId=id;}
this.setSvrGMT=function(gmtTime){svrGMT=gmtTime;clientGMT=new Date().getTime();}
this.setRotationId=function(id){rotationId=id;}
this.writeImg=function(){if(document.images){var im=new Image();im.src=this.getUrl();}else{document.write('<img width="1" height="1" src="'+this.getUrl()+'" />');}}
this.getUrl=function(){var im=Rover.getCoreUrl()+"roverns/"+providerId+"/";if(typeof(rotationId)!='undefined'){im+=rotationId;}else if(typeof(aSiteCodes[Rover.siteId])!='undefined'){im+=aRotationIDs[aSiteCodes[Rover.siteId]];}else{im+=aRotationIDs["us"];}
im+='?mpvl='+encodeURIComponent(referrer)+'&mpcl='+encodeURIComponent(thisPage);return im;}
this.hasTpimCookielet=function(){var clientTime=new Date().getTime();var cos=this.getClientTimeOffset();var npiiCkVal=oCJ.readCookie("npii");if(!(npiiCkVal!=null&&npiiCkVal.length>0)){return false;}
if(npiiCkVal.indexOf('tpim')<0){return false;}
var tpimval=npiiCkVal.replace(new RegExp("(.*\\^tpim\/)([a-fA-F0-9]+)\\^.*"),"$2");var tpimexp=tpimval.substring(tpimval.length-8);var expTime=parseInt(tpimexp,16)*1000+cos*1000;var gmtDelta=expTime-clientTime;var expiredTime=15552000000;if((gmtDelta>expiredTime||gmtDelta<0)&&typeof(RoverSyncDropped)=='undefined'&&typeof(RoverNsCapable)=='undefined'){this.dropRoverSyncImage();return false;}
return true;}
this.dropRoverSyncImage=function(){var im=document.createElement("img");im.width="1";im.height="1";im.src=Rover.getIntlUrl()+"roversync/?rtpim=1&mpt="+new Date().getTime();var headTpim=document.getElementsByTagName("head")[0];if(headTpim){headTpim.appendChild(im);}}
this.getClientTimeOffset=function(){var offsetInSec;var offset=oCJ.readCookie("ebay","cos");if(offset!=null&&offset!=""){offsetInSec=parseInt(offset,16);if(isNaN(offsetInSec)){offsetInSec=1800;oCJ.writeCookielet("ebay","cos","");}}
else if(svrGMT>0&&clientGMT>0){offsetInSec=Math.round((clientGMT-svrGMT)/1000.0);oCJ.writeCookielet("ebay","cos",offsetInSec.toString(16));}
return offsetInSec;}
this.isDroppingImage=function(){var nsObj=ebay.oDocument._getControl('RoverNS');if(nsObj!=null&&typeof(nsObj.objType)!='undefined'&&nsObj.objType=='EbayNSDetect'){return false;}
return(!this.hasTpimCookielet()&&(referrer!=null&&referrer.length>0&&!referrer.match(eBaySiteExp)))?true:false;}
this.track=function(){if(this.isDroppingImage()){this.writeImg();}}}
function SojTrack(){this.page="";this.config="";this.module="";this.linkId="";this.dest="0";this.segment="0";this.channel="9";this.nvp=null;this.aNames=new Array();this.aValues=new Array();this.aFlagBits=new Array(256);for(var i=0;i<this.aFlagBits.length;i++){this.aFlagBits[i]=0;}
this.setPage=function(id){this.page=id;}
this.setConfig=function(id){this.config=id;}
this.setModule=function(id){this.module=id;}
this.setLinkId=function(id){this.linkId=id;}
this.setFlagsList=function(list){if(list!=null){for(var i=0;i<list.length;i++){this.aFlagBits[list[i]]=1;}}}
this.setFlagBit=function(pos){this.aFlagBits[pos]=1;}
this.unsetFlagBit=function(pos){this.aFlagBits[pos]=0;}
this.resetFlags=function(){for(var i=0;i<this.aFlagBits.length;i++){this.aFlagBits[i]=0;}}
this.set1Nvp=function(name,value){this.aNames[this.aNames.length]=name;this.aValues[this.aValues.length]=value;}
this.setNVP=function(vp){if(vp!=null&&vp.length>0){this.nvp=vp.replace(new RegExp('^\&+'),'').replace(new RegExp('\&+$'),'');}}
this.setDest=function(val){this.dest=val;}
this.getDest=function(){return this.dest;}
this.setSegment=function(val){this.segment=val;}
this.getSegment=function(){return this.segment;}
this.setChannel=function(val){this.channel=val;}
this.getChannel=function(){return this.channel;}
this.getPage=function(){return this.page;}
this.getConfig=function(){return this.config;}
this.getModule=function(){return this.module;}
this.getLinkId=function(){return this.linkId;}
this.getFlagBits=function(){var maxInd=this.aFlagBits.length-1;while(maxInd>=0&&this.aFlagBits[maxInd]==0){maxInd--;}
if(maxInd<0){return null;}
var bits=new Array(maxInd+1);for(var i=0;i<bits.length;i++){bits[i]=this.aFlagBits[i];}
return bits;}
this.getNvp=function(){if(this.nvp==null&&this.aNames.length>0){var s="";for(var i=0;i<this.aNames.length;i++){s+="&"+this.aNames[i]+"="+encodeURIComponent(this.aValues[i]);}
this.nvp=s.substring(1);}
return this.nvp;}
this.unset1Nvp=function(name){for(i=0;i<this.aNames.length;i++){if(this.aNames[i]==name){this.aNames.splice(i,1);this.aValues.splice(i,1);}}}
this.resetNvp=function(){this.nvp=null;this.aNames.length=0;this.aValues.length=0;}
this.getSojUrl=function(stype,pageId){var url=Rover.getIntlUrl();url+=stype;var trknvp=pageId?pageId:"";var pairs=this.getNvp();if(pairs!=null&&pairs.length>0){if(trknvp.length>0){trknvp+='&';}
trknvp+=pairs;}
var flags=this.getFlagBits();if(flags!=null&&flags.length>0){if(trknvp.length>0){trknvp+='&';}
trknvp+="flgs="+encodeURIComponent(Base64.encode(flags));}
if(trknvp.length>0){if(url.charAt(url.length-1)!='?'){url+="&";}
url+="trknvp="+encodeURIComponent(trknvp);}
return url;}
this.validate=function(){if(Rover.isQA){var reqFields=new Array();if(page==null||page==''){reqFields[reqFields.length]="PageID";}
if(reqFields.length>0){alert("Missing required Sojourner params: "+reqFields);}}}}
function ImpTracker(){this.getUrl=function(){var type='roverimp/'+this.getDest()+"/"+this.getSegment()+"/"+
this.getChannel()+'?imp='+this.getPage();return this.getSojUrl(type);}
this.track=function(){Rover.track(this.getUrl());}}
ImpTracker.prototype=new SojTrack;function ClkTracker(){this.getUrl=function(){var type='roverclk/'+this.getDest()+"/"+this.getSegment()+"/"+
this.getChannel()+'?';var trkparam='sid=p'+this.getPage();var config=this.getConfig();if(config!=null&&config!=''){trkparam+='.c'+config;}
var module=this.getModule();if(module!=null&&module!=''){trkparam+='.m'+module;}
var linkId=this.getLinkId();if(linkId!=null&&linkId!=''){trkparam+='.l'+linkId;}
return this.getSojUrl(type,trkparam);}
this.track=function(){Rover.track(this.getUrl());}}
ClkTracker.prototype=new SojTrack;function ROITracker(){this.rotationId;this.nvp="";this.providerId="1";this.eiasId=null;this.itemId=null;this.mpuid=null;this.secure=document.location.href.indexOf('https://')>=0?true:false;this.setProviderId=function(id){this.providerId=id;}
this.setRotationId=function(id){this.rotationId=id;}
this.setContextNVP=function(vp){if(vp!=null&&vp.length>0){this.nvp=vp.replace(new RegExp('^\&+'),'').replace(new RegExp('\&+$'),'');}}
this.setMpuid=function(vp){this.mpuid=vp;}
this.setEiasId=function(eid){this.eiasId=eid;}
this.setItemId=function(id){this.itemId=id;}
this.setSecure=function(s){this.secure=s;}
this.getUrl=function(){var url=Rover.getCoreUrl(this.secure);url+="roverroi/"+this.providerId+"/"+this.rotationId+"?"+this.nvp;if(this.mpuid!=null){url+="&mpuid="+encodeURIComponent(this.mpuid);}else if(this.eiasId!=null&&this.itemId!=null){url+="&eias="+encodeURIComponent(this.eiasId)+"&itemid="+encodeURIComponent(this.itemId);}
return url;}
this.validate=function(){if(Rover.isQA){if(this.rotationId==null||this.rotationId.length==0){reqFields[reqFields.length]="Rotation ID";}
var reqFields=new Array();if(this.mpuid==null&&(this.eiasId==null||this.itemId==null)){reqFields[reqFields.length]="mpuid or eias user id + item id";}
if(this.nvp==null||this.nvp.length==0){reqFields[reqFields.length]="Name value pairs";}
if(reqFields.length>0){alert("Missing required ROI tag params: "+reqFields);}}}
this.track=function(){Rover.track(this.getUrl());}}
function Rover(){this.setEnvQA=function(){Rover.isQA=true;}
this.setQAPool=function(pool){Rover.isQA=true;Rover.qaPool=pool;}
this.setSiteId=function(id){var s=parseInt(id);if(typeof(s)!='NaN'&&aSiteCodes[s]){Rover.siteId=s;}}
this.createROITracker=function(){return new ROITracker();}
this.createNSTracker=function(){return new NSTracker();}
this.createImpTracker=function(){return new ImpTracker();}
this.createClkTracker=function(){return new ClkTracker();}}
Rover.isQA=false;Rover.country="";Rover.qaPool="";Rover.siteId=0;Rover.getCoreUrl=function(secure){var url=(secure?"https":"http")+"://rover.";if(Rover.isQA){if(Rover.qaPool!=null&&Rover.qaPool.length>0){url+=Rover.qaPool+".qa.";}else{url+="qa.";}}
url+="ebay.com/";return url;}
Rover.getIntlUrl=function(secure){var url=(secure?"https":"http")+"://rover.";if(Rover.isQA){if(Rover.siteId!="0"){url+=aSiteCodes[Rover.siteId]+".";}
if(Rover.qaPool!=null&&Rover.qaPool.length>0){url+=Rover.qaPool+".qa.";}else{url+="qa.";}
url+="ebay.com/";}else{url+=aProdDomains[Rover.siteId]+"/";}
return url;}
Rover.track=function(url){if(url&&url!=""){if(document.images){var img=new Image();img.src=url;}else{document.write('<img src = "'+url+'" height="1" width="1" alt = "" />');}}}
var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/*",encode:function(bitArr){var len=bitArr.length;bitArr.length=len;var byteArrSize=Math.floor(len/8);if((byteArrSize==0)||((len%8)!=0)){byteArrSize++;}
var bytes=new Array(byteArrSize);for(var i=0;i<bytes.length;i++){var b=0;for(var j=0;j<8;j++){b=b<<1;if(bitArr[(i*8)+j]){b+=1;}}
bytes[i]=b;}
var output="";var chr1,chr2,chr3,enc1,enc2,enc3,enc4;var i=0;while(i<bytes.length){chr1=bytes[i++];chr2=bytes[i++];chr3=bytes[i++];enc1=chr1>>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64;}else if(isNaN(chr3)){enc4=64;}
output=output+
this._keyStr.charAt(enc1)+this._keyStr.charAt(enc2)+
this._keyStr.charAt(enc3)+this._keyStr.charAt(enc4);}
return output;}}
var aSiteCodes={"16":"at","15":"au","23":"befr","123":"benl","2":"ca","193":"ch","223":"cn","77":"de","186":"es","71":"fr","101":"it","146":"nl","3":"uk","0":"us","203":"in","205":"ie","212":"pl","201":"hk","216":"sg"};var aProdDomains={"16":"ebay.at","15":"ebay.com.au","23":"befr.ebay.be","123":"benl.ebay.be","2":"ebay.ca","193":"ebay.ch","223":"ebay.com.cn","77":"ebay.de","186":"ebay.es","71":"ebay.fr","101":"ebay.it","146":"ebay.nl","3":"ebay.co.uk","0":"ebay.com","203":"ebay.in","205":"ebay.ie","212":"ebay.pl","201":"ebay.com.hk","216":"ebay.com.sg"};if(typeof(ebay)!='object'){ebay={oDocument:{_getControl:function(s){var obj={objType:"NonEbayNS",init:function(){}}
return obj;}}}}

//33@@m49

ebay.oDocument.oPage.onBeforeLoad=function()
{var oC=this.oDocument.getConfig("ViewItem.BackToList");if(oC)
new EbayBackToList(ebay.oDocument.oPage,"BackToList",oC);var oConfig=this.oDocument.getConfig("DynamicTransit");if(oConfig)
new EbayDynamicTransit(ebay.oDocument.oPage,"DynamicTransit",oConfig);var oD=this.parent,a,b,l,oCfg,un="undefined",oC=this.oGlobals.oClient,oTB;if(typeof selfHostedIMAGEURL!=un&&selfHostedIMAGEURL!="")
eBayUser_SelfHosted_image_v.src=selfHostedIMAGEURL;oCfg=oD.getConfig("SupersizeListingConfig");if(typeof oCfg!=un&&!document.layers)
{a=new EbayHTMLAnchor(this,oCfg.linkName);l=new EbayHTMLLayer(this,oCfg.layerName);a.onclick=function(){l.setValue(oCfg.ssHTML);return false;};}
oCfg=oD.getConfig("ebaytoolbar");if(oC.bIE&&oCfg!=null&&oCfg.objType=="EBayToolbarConfig")
{oTB=new EbayToolbar(this,"toolbar",oCfg);oTB.refresh();}
oCfg=oD.getConfig("Vero.Viewitem.Preview")
if(typeof oCfg!=un)
{b=new EbayHTMLButton(this,oCfg.closeBtnId);b.onclick=function(){ebay.oDocument.win.close();};}
oCfg=oD.getConfig("ViewItem.Freight.Calculator");if(oCfg){var anch=new EbayHTMLAnchor(this,oCfg.sAnchName),calc=new EbayHTMLPopup(this,oCfg.sTargetName,oCfg),frm=new EbayHTMLForm(this,oCfg.sFormName);frm._registerEvent("onsubmit","onSubmit");frm.onSubmit=function(){calc.show();return true;}
anch._registerEvent("onclick","onClick");anch.onClick=function(){calc.show();frm.eElem.submit();return false;}}
oCfg=oD.getConfig("BusinessSellerInfo.BusinessSellerInfoWidget.PrintFriendly");if(oCfg)
{var oPopup=new EbayHTMLPopup(this,"Popup",oCfg),oAnch=new EbayHTMLAnchor(this,oCfg.sAnchId);new EbayHTMLText(this,oCfg.sTextareaId);oAnch._registerEvent("onclick","onClick");oAnch.onClick=function()
{oPopup.show();}}
if(this.createRolloverHelp)
this.createRolloverHelp();var oC=oD.getConfig("ViewItem.SkypeCheck");if(oC)
{var oAnchChat=new EbayHTMLAnchor(this,oC.sChatAnch);var oAnchCall=new EbayHTMLAnchor(this,oC.sCallAnch);var e=oAnchCall._registerEvent("onclick","parent.skypecheck");var e1=oAnchChat._registerEvent("onclick","parent.skypecheck");this.skypecheck=function()
{var c=ebay.oDocument.addConfig(new EbayConfig('SkypeCheck'));c.sPluginURL=oC.sPluginURL;c.iPluginWidth=oC.iPluginWidth;c.iPluginHeight=oC.iPluginHeight
c.oLink=this;return oD.oSkypeCheck.checkInstall();}}
var oSkypeCfg=this.parent.getConfig("ViewItem.SkypeRequest");if(oSkypeCfg)
{oFrame=new EbayHTMLFrame(this,oSkypeCfg.sSkypeiFrame);var oSkypeDiv=new EbayHTMLLayer(this,oSkypeCfg.sSkypeDiv);var oNADiv=new EbayHTMLLayer(this,oSkypeCfg.sNonAvailableDiv);oFrame._registerListener(this.oDocument._getEvent("load"),this.EVENT_AFTER,"setUrl");oFrame.setUrl=function()
{var oSkype=new EbaySkype(this,"skype");if(oSkypeCfg.sSkypeName&&oSkype.bInstalled)
{var sSkypeUrl="skype:"+oSkypeCfg.sSkypeName+"?";if(parseInt(oSkypeCfg.iSkypeAction)==1)
sSkypeUrl+="chat";else if(parseInt(oSkypeCfg.iSkypeAction)==2)
sSkypeUrl+="call";this.oDocument.doc.location.href=sSkypeUrl;}
var oSkypeSectionDiv=new EbayHTMLLayer(this.parent,oSkypeCfg.sSkypeSectionDiv);oSkypeSectionDiv.bind();if(this.oGlobals.oClient.bSafari)
this.eElem.src=oSkypeCfg.sUrl
else
this.setSource(oSkypeCfg.sUrl);}}
var picShowCfg=oD.getConfig("ViewItem.PictureShow");if(picShowCfg)
{this.aSlideshows=[];with(this)
{picShowCfg.aImageUrls=extractPictureArray(ssPopupData.imageUrls,picShowCfg.iImgDisplayIdx);window.itemPopup=openPicShowPopup;createSlideshow('view_item_pic_show',picShowCfg);var picCfgLarge=oD.getConfig("ViewItem.PictureShow.Larger");if(picCfgLarge)
{picCfgLarge.aImageUrls=extractPictureArray(ssPopupData.imageUrls,picCfgLarge.iImgDisplayIdx);createSlideshow('larger_view_item_pic_show',picCfgLarge);}}}
var oCfg=this.parent.getConfig("ViewItem.FastRefresh");if(oCfg)
this.fastRefresh(oCfg);var oMCfg=this.parent.getConfig('Express.Merch.Widget');if(oMCfg)
this.initMerchWidget();var oCfgMVI=this.parent.getConfig('Motors.ViewItem.TabNavigation'),oTab;if(oCfgMVI)
{oTab=this.oTabNavigation=new EbayTabNavigation(this,'Tab_Navigation',oCfgMVI);oTab.iPrevSelInd=oTab.iDefIndex;this.showTab=function(pIndex,pHref)
{oTab.iDefIndex=pIndex;oTab.initOnAfterLoad();oTab.sHref=pHref;}}
var oCfgPC=this.parent.getConfig('Motors.ViewItem.PaymentCalculator');if(oCfgPC)
new EbayVIPaymentCalculator(this,'Payment_Calculator',oCfgPC);var oCfgBC=this.parent.getConfig('Motors.ViewItem.BuyerChecklist');if(oCfgBC)
new EbayVIBuyerChecklist(this,'Buyer_Checklist',oCfgBC);var oCfgWI=oD.getConfig("ViewItem.WatchThisItem");var oCl=this.parent.oGlobals.oClient;if(oCfgWI)
{var sUrl;if(oCfgWI.aWatchLinkTop)
{var a=new EbayHTMLAnchor(this,oCfgWI.aWatchLinkTop[0]);a._registerEvent("onclick","onclick");a.onclick=function()
{if(oCfgWI.bIdentified)
{this.parent.parent.redirect(oCfgWI.sIdentifiedWatchUrl);}else if(ebay.oClientServer!=null){oCfgWI.ssPageName="VIP:WATCHLINK:TOP:";sUrl=oCfgWI.aWatchLinkTop[2]+"ebay.oDocument.oPage.watchItemResult";ebay.oClientServer.callDynamicScriptObject(sUrl);if(oCfgWI.sTacodaDiv)
{var oTacodaDiv=new EbayHTMLLayer(this,oCfgWI.sTacodaDiv);oTacodaDiv.bind();oTacodaDiv.setValue(_tacodaCachecontent);}}
return false;}}
var f=new EbayHTMLForm(this,"watch_thisItem");f._registerEvent("onsubmit","onsubmit");f.onsubmit=function()
{if(oCfgWI.bIdentified)
{this.parent.parent.redirect(oCfgWI.sIdentifiedWatchUrl);}else if(ebay.oClientServer!=null){oCfgWI.ssPageName="VIP:WATCHLINK:MIDDLE:";sUrl=oCfgWI.aWatchLinkMiddle[2]+"ebay.oDocument.oPage.watchItemResult";ebay.oClientServer.callDynamicScriptObject(sUrl);if(oCfgWI.sTacodaDiv)
{var oTacodaDiv=new EbayHTMLLayer(this,oCfgWI.sTacodaDiv);oTacodaDiv.bind();oTacodaDiv.setValue(_tacodaCachecontent);}}
return false;}}
var oCfgCB=oD.getConfig("ViewItem.OneClickBid");if(oCfgCB)
{var oAnchOcb=new EbayHTMLAnchor(this,oCfgCB.aOneClickBidLinks[0]);var maxBid=document.getElementById(oCfgCB.aMaxBidText[0]);oAnchOcb._registerEvent("onclick","onclick");oAnchOcb.onclick=function()
{oCfgCB.url=oCfgCB.sOneClickBidUrl+"&maxbid=";if(maxBid!=null)
oCfgCB.url=oCfgCB.url+maxBid.value;var ocbLyr=new EbayHTMLOverlayUrl(this,oCfgCB.sOneClickBidDiv,oCfgCB);var goLyr=new EbaySYI3Grayout(this,'grayout_lyr');goLyr.display(document.body.scrollWidth,document.body.scrollHeight);ocbLyr.bDowngradeDomain=false;ocbLyr.display();return false;}
var oAnchOcbTop=new EbayHTMLAnchor(this,oCfgCB.aOneClickBidLinks[1]);var maxBidTop=document.getElementById(oCfgCB.aMaxBidText[1]);oAnchOcbTop._registerEvent("onclick","onclick");oAnchOcbTop.onclick=function()
{oCfgCB.url=oCfgCB.sOneClickBidUrl+"&maxbid=";if(maxBidTop!=null)
oCfgCB.url=oCfgCB.url+maxBidTop.value;var ocbLyr=new EbayHTMLOverlayUrl(this,oCfgCB.sOneClickBidDiv,oCfgCB);var goLyr=new EbaySYI3Grayout(this,'grayout_lyr');goLyr.display(document.body.scrollWidth,document.body.scrollHeight);ocbLyr.bDowngradeDomain=false;ocbLyr.display();return false;}}
var oCfgC=oD.getConfig("ViewItem.Counter");if(oCfgC)
{if(oCfgC.bShowCounter)
{var sUrl=oCfgC.sCounterUrl+"&cb=ebay.oDocument.oPage.showCounter";ebay.oClientServer.callDynamicScriptObject(sUrl);}}
var oP=ebay.oDocument.oPage;var oCfgAegis=oD.getConfig("ViewItem.Aegis");if(oCfgAegis)
{if(oP.oGlobals.oClient.bSafari)
{if(oP.bResized)
{window.clearInterval(oP.iIntervalId);}else{oP.iIntervalId=window.setInterval('window.updateAegis()',1000);}}}
oP.setOptimCookie();}
ebay.oDocument.oPage.onAfterLoad=function()
{var oFeedScoreConfig=this.parent.getConfig("ViewItem.User.FeedBack");if(oFeedScoreConfig)
new RequestFeedBack(oFeedScoreConfig);var oMSTCfg=this.parent.getConfig("ViewItem.Motors.SiteTracking");if(oMSTCfg)
{var aElemInfos=oMSTCfg.aElemInfos,iLen=aElemInfos.length;var oImg=new EbayHTMLImage(this,oMSTCfg.sImgElem);oImg.bind();for(var i=0;i<iLen;i++)
{var sName=aElemInfos[i][0];var oElem=this.oDocument._getControl(sName);if(!oElem)
{oElem=new EbayHTML(oImg,sName,sName);oElem.subscribeEvents("onclick");oElem.bind();}
oElem.sParam=aElemInfos[i][1];oElem._registerListener(oElem._registerEvent("onclick"),this.EVENT_BEFORE,"setSrc");oElem.setSrc=function()
{oImg.source(oMSTCfg.sBaseUrl+this.sParam);}}}
with(this)
{var oPicCfg=parent.getConfig("ViewItem.PictureShow");if(oPicCfg)
for(var i=0;i<aSlideshows.length;i++)
{var oShow=this._getControl(aSlideshows[i]);if(oShow)
oShow.next();}}
var oCfgCB=this.parent.getConfig("ViewItem.OneClickBid");if(oCfgCB)
{if(oCfgCB.bShowOCB)
this.parent._getControl(oCfgCB.sOneClickBidLink).onclick();}
var oD=ebay.oDocument;var oP=oD.oPage;var oCfgAegis=oD.getConfig("ViewItem.Aegis");if(oCfgAegis)
{oP.initAegis();}}
ebay.oDocument.oPage.createSlideshow=function(pName,pConfig)
{var oShow=new EbayHTMLSlideshow(this,pName,false,pConfig);if(pConfig.iStartIndex)
oShow.iCurrentIdx=pConfig.iStartIndex-1;this.aSlideshows[this.aSlideshows.length]=pName;return oShow;}
ebay.oDocument.oPage.extractPictureArray=function(pArray,pIdx)
{var aImgs=[];for(var i=0;i<pArray.length;i++)
{var aSlide=pArray[i];aImgs[aImgs.length]=aSlide[pIdx];}
return aImgs;}
ebay.oDocument.oPage.fastRefresh=function(pCfg)
{var oCfg=pCfg,aRAIds=oCfg.aRefreshAnchIds,iLen=aRAIds.length;var oRI=new EbayFastRefresh(this,oCfg.sRefreshIframe,oCfg);for(var i=0;i<iLen;i++)
{oAnch=this.parent._getControl(aRAIds[i]);if(!oAnch)
oAnch=new EbayHTMLAnchor(this,aRAIds[i]);oAnch._registerEvent("onclick","submitIframe");oAnch.submitIframe=function()
{oRI.sendRequest(oCfg.sReqUrl);return false;}}
if(oCfg.bFastRefFuncKey&&this.oGlobals.oClient.bIE)
{this.parent.doc.onkeydown=function(pEvent)
{var evt=pEvent||event,sUrl;if(evt&&evt.keyCode==116)
{sUrl=oCfg.sReqUrl+(oCfg.sFuncKeyParam?oCfg.sFuncKeyParam:"");evt.keyCode=505;oRI.sendRequest(sUrl);return false;}}}
if(oCfg.bAutoRefresh&&oCfg.iAutoRfhTimer&&oCfg.iAutoRfhTimer>0)
{var sAutoRefresh="ebay.oDocument.oPage.autoRefresh()";this.autoRefresh=function()
{oRI.sendRequest(oCfg.sReqUrl);window.setTimeout(sAutoRefresh,oCfg.iAutoRfhTimer);}
window.setTimeout(sAutoRefresh,oCfg.iAutoRfhTimer);}}
ebay.oDocument.oPage.watchItemResult=function(watchResult)
{var oD=this.parent;var c=oD.getConfig("ViewItem.WatchThisItem");var item,result,ct,str,bBidMgr,sin;for(i=0;i<watchResult.length;i++)
{item=watchResult[i]['item'];result=watchResult[i]['result'];ct=watchResult[i]['watchcount'];bBidMgr=watchResult[i]['showBidManagerLink'];sin=watchResult[i]['signin'];}
if(result==3)
{this.parent.redirect(c.sGuestWatchFullUrl);}
if(result==1||result==2)
{str=(sin==0)?c.sMsgSuccessGuest:c.sMsgSuccess;if(c.sMsgItemQuantity||c.sMsgItemsQuantity)
{str=(ct==1)?str+c.sMsgItemQuantity:str+c.sMsgItemsQuantity;str=str.replaceTokensEx("##n##",ct);}
if(ebay.oGlobals.oClient.bIE)
{var tb=new EbayToolbar(this,"toolbar",c);tb.refresh();}}
var mLyr=oD._getControl(c.aWatchLinkMiddle[1]);if(!mLyr)
mLyr=new EbayHTMLLayer(this,c.aWatchLinkMiddle[1]);mLyr.bind();if(result==4)
str=mLyr.getValue();if(result!=3)
mLyr.setValue(str);if(c.aWatchLinkTop)
{var tLyr=oD._getControl(c.aWatchLinkTop[1]);if(!tLyr)
tLyr=new EbayHTMLLayer(this,c.aWatchLinkTop[1]);tLyr.bind();if(result==4)
str=tLyr.getValue();if(result!=3)
tLyr.setValue(str);}
if(sin==0)
{var gLyr=oD._getControl(c.sGuestWatchDiv);if(!gLyr)
gLyr=new EbayHTMLLayer(this,c.sGuestWatchDiv);gLyr.bind();if(result!=4&&result!=3)
gLyr.show(true);var oAnch=new EbayHTMLAnchor(this,c.sSignInLink);var e=oAnch.getElem(c.sSignInLink);if(e&&c.sSignInUrl)
e.href=c.sSignInUrl;}
if(bBidMgr)
{var baLyr=oD._getControl(c.sBidAssistantDiv);if(!baLyr)
baLyr=new EbayHTMLLayer(this,c.sBidAssistantDiv);baLyr.bind();if(result!=4&&result!=3)
baLyr.show(true);}
var ctry=ebay.oGlobals.oEnvironment.sCountry;var siteid=ebay.oGlobals.oEnvironment.sSiteID;ctry=ctry.toUpperCase();var bStores=c.bStores;var bSeller=c.bSeller;var pn,page="WatchConfirm_";if(sin==0&&!bStores)
pn=page+"guest";if(sin==0&&bStores)
pn=page+"guest_Stores";if(sin!=0&&!bSeller&&!bStores)
pn=page+"Buyer";if(sin!=0&&!bSeller&&bStores)
pn=page+"BuyerStores";if(sin!=0&&bSeller&&!bStores)
pn=page+"Seller";if(sin!=0&&bSeller&&bStores)
pn=page+"SellerStores";if(typeof(pageName)!="undefined"&&typeof(ssDoRequest)!="undefined")
{var sc=oD._getControl("siteCatalyst");var scTmp=sc.sPageName;var tmp=pageName;pageName=ctry+";"+siteid+";"+pn;sc.sPageName=pageName;sc.eventsWatchConfirm();sc.propertyReportsViewItem();s_prop8=sc.readCookie("ssFND2")+";WAT";s_eVar10=ctry+";;"+c.ssPageName+ctry;sc.cookiesSearchListingsViewItemWrite();s_prop18=pageName+";"+c.ssPageName+ctry;sc.cookiesLastListWrite();sc.biboSetProp21();s_prop22=s_prop26=pageName;sc.propertyReportsError();sc.propertyReportsWatchConfirm();sc.propertyReportsHomepage();sc.propertyReportsPaypalRegistration();ssDoRequest();pageName=tmp;sc.sPageName=scTmp;}}
ebay.oDocument.oPage.showCounter=function(vicResponse)
{var oD=this.parent;var c=oD.getConfig("ViewItem.Counter");var result,ct,lyr;for(i=0;i<vicResponse.length;i++)
{result=vicResponse[i].result;ct=vicResponse[i].vicount;}
if(result!=0&&ct!=-1)
{if(ct<10)
ct="0000"+ct;if(ct<100&&ct>=10)
ct="000"+ct;if(ct<1000&&ct>=100)
ct="00"+ct;if(ct<10000&&ct>=1000)
ct="0"+ct;for(var x in c.aCounterDivIds)
{lyr=new EbayHTMLLayer(this,c.aCounterDivIds[x]);lyr.bind();lyr.setValue(ct);}}}
function Localize(pStr)
{return pStr;}

//34@@m1

String.prototype.hasAllInArray=function(pArray)
{var l=pArray.length;for(var i=0;i<l;i++)
{if(!this.hasArg(pArray[i]))
return false;}
return true;}

//35@@m11

function EbayBACException(pParent,pString,pFullString)
{if(!this.objType)
this.objType="EbayBACException";this.base=EbayObject;this.base(pParent,"BAC Exception");this.sString=pString;this.sFullString=pFullString;}
function EbayBlockActiveContent(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayBlockActiveContent";this.base=EbayBaseControl;this.base(pParent,pName);this.sDocWrite='';this.aExceptions=[];this.iVersion=0;this.oConfig=pCfg||null;this.aAllowed=pCfg.aCustomStrings||["blockActiveContent","EbayBlockActiveContent","open\\s*\\(","createPopup\\s*\\(","ookie\\s*\\(","\\.\\s*cookie","\\.\\s*location\\s*[=.]","replace\\s*\\(","onerror","<iframe","<ilayer","<frameset","eval\\s*\\(","standardWrite","standardCreateElement","writePersonalHeader"];var ih=ebay.oGlobals.oEnvironment.sIncludeHost;this.aAllowedTags=pCfg.aTags||[["script","src",ih],["base","href"],["meta","refresh"],["frame","src",ih]];this.aAllowedElements=pCfg.aElements||["frame","script","layer"];this.addException=function(pStr,pFullString)
{with(this)
aExceptions[aExceptions.length]=new EbayBACException(this,pStr,pFullString);}
this.hasBlockedString=function(pStr)
{var b=this.aAllowed,len=b.length,rv=false,re;pStr=pStr.toLowerCase();for(var i=0;i<len&&!rv;i++)
{re=new RegExp(b[i].toLowerCase());rv=re.test(pStr);}
return rv;}
this.checkTagAndAttribute=function(pStr,pData)
{var tagRegExp=new RegExp("<"+pData[0]+"\\s");var attrRegExp=new RegExp("\\s*"+pData[1]+"\\s*="),attrInd;var str=tstr=pStr,tagInd=str.search(tagRegExp),exInd,qInd,bInd,rv=false;while(tagInd>-1)
{str=str.substr(tagInd+1);attrInd=str.search(attrRegExp);exInd=pData[2]?str.indexOf(pData[2],attrInd):-1;bInd=str.indexOf('>');if(attrInd>bInd)
{qInd=tstr.indexOf('\"');while((attrInd>bInd)&&(bInd!=-1)&&(qInd!=-1)&&(qInd<attrInd))
{tstr=tstr.substr(qInd+1);qInd=tstr.indexOf('\"');bInd=tstr.indexOf('>');}}
if(bInd==-1)
bInd=str.length;tagInd=str.search(tagRegExp);if((attrInd>-1)&&(bInd>attrInd)&&((exInd==-1)||(exInd>bInd)))
{rv=true;tagInd=-1;}}
return rv;}
this.hasTagAndAttribute=function(pStr)
{var ta=this.aAllowedTags;var rv=false,len=ta.length;for(var i=0;i<len&&!rv;i++)
rv=this.checkTagAndAttribute(pStr,ta[i]);return rv;}
this.blockString=function(pStr)
{with(this)
{var s=sDocWrite+pStr;var rv=(hasBlockedString(s)||hasTagAndAttribute(s));if(!rv)
{var a=oConfig.aFixedStrings||["<","<s","<sc","<scr","<scri","<scrip"];for(var i=0;i<a.length;i++)
{if(pStr.toLowerCase()==(a[i]))
return true;}}
sDocWrite+=rv?'':pStr;return rv;}}
this.doDocWrite=function(pStr,pWriteln)
{var ctl=ebay.oDocument._getControl("blockActiveContent");var fdws=ctl.sDocWrite;if(window.event)ctl.addException(pStr);else if(ctl.blockString(pStr))ctl.addException(pStr,fdws+pStr);else if(pWriteln)document.standardWriteln(pStr);else document.standardWrite(pStr);}
document.standardWrite=document.write;this.documentWrite=function(pStr)
{ebay.oDocument._getControl("blockActiveContent").doDocWrite(pStr);}
document.standardWriteln=document.writeln;this.documentWriteln=function(pStr)
{ebay.oDocument._getControl("blockActiveContent").doDocWrite(pStr,true);}
document.standardCreateElement=document.createElement;this.createElement=function(pStr)
{var ctl=ebay.oDocument._getControl("blockActiveContent"),b=ctl.aAllowedElements,tmp='pStr.hasAny(';for(var i=0;i<b.length;i++)
tmp+=(i<b.length-1)?'b['+i+'],':'b['+i+']';if(eval(tmp+')'))
ctl.addException(pStr,"document.createElement");else
return document.standardCreateElement(pStr);}}
ebay.oDocument.createBlockActiveContent=function()
{var g=this.parent.oGlobals,cl=g.oClient,e=g.oEnvironment,cfg=ebay.oDocument.getBACConfig(),v=cfg.iBACVersion,path="";if(!(cl.bMac&&cl.bIE))
{var c=new EbayBlockActiveContent(this,"blockActiveContent",cfg);if(typeof(v)!='undefined'&&(v!=c.iVersion))
{path=e.sIncludeDir+"features/block_active_content/filter_"+v+".js";var tag='<sc'+'ript src="'+path+'"> </sc'+'ript>';this.write(tag);}
document.write=c.documentWrite;document.writeln=c.documentWriteln;document.createElement=c.createElement;}
this._registerListener(this._getEvent("load"),this.EVENT_AFTER,"checkBlockActiveContent");}
ebay.oDocument.getBACConfig=function()
{var s="ViewItem.BlockActiveContent";var c=ebay.oDocument.getConfig(s)||new EbayConfig(s);return c;}
ebay.oDocument.checkBlockActiveContent=function()
{var aa=[],ee,ss,ih,ct,oD=this.doc,i,j,k,tt=["div","span"],cfg=this.getBACConfig(),aLayerStrings=cfg.aLayerStrings||[[["href","mailto:"],["position: absolute;","z-index: 1;"]]];for(var j=0;j<tt.length;j++)
{t=tt[j];if(oD.getElementsByTagName)
aa=oD.getElementsByTagName(t);else if(oD.all)
aa=oD.all;for(i=0;i<aa.length;i++)
{ee=aa[i];if(ee.tagName.toLowerCase()==t.toLowerCase())
{ih=ee.innerHTML;if(ih)
{ih=ih.toLowerCase();ct=ee.style.cssText.toLowerCase();for(k=0;k<aLayerStrings.length;k++)
{var a=aLayerStrings[k];if(ih.hasAllInArray(a[0])&&ct.hasAllInArray(a[1]))
{ee.innerHTML='<img src="http://pics.ebaystatic.com/aw/pics/s.gif" id="imgBlockActiveContent">';break;}}}}}}}
ebay.oDocument.createBlockActiveContent();

//36@@m2

function EBayAttributesLinkReplacer(pSpanId,pLinkText)
{var s;var str="";if(document.getElementById)
{s=document.getElementById(pSpanId);str="getElementById";}
else if(document.all)
{s=document.all(pSpanId);str="all";}
if(typeof s!="undefined")
{var repA=new RegExp("\"","g");var repB=new RegExp("\'","g");var newInner=s.innerHTML.replace(repA,"&quot;");newInner=newInner.replace(repB,"\\'");newInner=newInner.replace(/(\n|\r)/g,"");s.innerHTML='<a href="#" onclick="document.'+str+'(\''+pSpanId+'\').innerHTML=\''+newInner+'\';return false;">'+pLinkText+'</a>';}}

//37@@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");

//38@@m8

function updateAegis(pHash){var oD=ebay.oDocument;var oP=ebay.oDocument.oPage;var oCl=ebay.oGlobals.oClient;var c=oD.getConfig("ViewItem.Aegis");var size;if(c)
{if(oCl.bSafari&&window.location.hash!=""){size=oP.parseData(window.location.hash);oP.bResized=true;}
if(pHash!=null&&typeof(pHash)!="undefined"){size=oP.parseData(pHash);}
if(size&&size[0]!=0){var h=size[0];var w=size[1];var pad=24;if((oP.lastHeight!=="")&&(oP.lastHeight>h)){if(oCl.bSafari){h=oP.lastHeight-pad;}else{h=oP.lastHeight;}
size[0]=h;}
if((oP.lastWidth!=="")&&(oP.lastWidth>w)){w=oP.lastWidth;size[1]=w;}
if((h==="")||(w==="")){return;}
oP.lastHeight=h;oP.lastWidth=w;oP.resizeFrm(size);}}}
ebay.oDocument.oPage.parseData=function(pHash){var rv=[0,0];var data=pHash;var s=data.indexOf("ht_");var e=data.indexOf("wt_");var h=data.substring(s+3,e);var w=data.substring(e+3);rv[0]+=Number(h);rv[1]+=Number(w);return rv;}
ebay.oDocument.oPage.resizeFrm=function(size){var oD=this.parent;var oCl=ebay.oGlobals.oClient;var pad,h,w;var c=oD.getConfig("ViewItem.Aegis");if(c)
{pad=24;document.getElementById(c.sDescIframeId).height=size[0]+pad;if(size[1]!=0)
document.getElementById(c.sDescIframeId).width=size[1];}}
ebay.oDocument.oPage.initAegis=function(){var oD=this.parent;var c=oD.getConfig("ViewItem.Aegis");if(c)
{this.lastHeight="";this.lastWidth="";this.bResized=false;this.bWarn=true;this.setWarn(this.bWarn);document.onkeypress=this.handleKeys;document.onkeyup=this.resetWarn;document.onmousedown=this.handleMouse;document.onmousemove=this.resetWarn;}}
ebay.oDocument.oPage.warn=function(e){e=(e)?e:((window.event)?event:null);var elem=(e.target)?e.target:((e.srcElement)?e.srcElement:null);var oD=ebay.oDocument;var c=oD.getConfig("ViewItem.Aegis");if(c.bWarn){return c.sWarnMessage;}else if(c.bAVS){var oImg=new Image();oImg.src=c.sAVSUrl;}}
ebay.oDocument.oPage.setWarn=function(bOn){window.onbeforeunload=(bOn)?this.warn:null;}
ebay.oDocument.oPage.handleMouse=function(e){var oP=ebay.oDocument.oPage;e=(e)?e:((window.event)?event:null);var elem=(e.target)?e.target:((e.srcElement)?e.srcElement:null);if(elem&&elem.tagName&&elem.tagName.toLowerCase()=="a")
{oP.setWarn(false);return;}
oP.setWarn(true);}
ebay.oDocument.oPage.handleKeys=function(e){var oP=ebay.oDocument.oPage;if(window.onbeforeunload!=null){return;}
e=(e)?e:((window.event)?event:null);if(e.keyCode==13){oP.setWarn(false);return;}
oP.setWarn(true);}
ebay.oDocument.oPage.resetWarn=function(){var oP=ebay.oDocument.oPage;if(!oP.bWarn){oP.setWarn(true);return;}}
ebay.oDocument.oPage.setOptimCookie=function()
{this.parent.oCookieJar.setOptimizationCookie();}

//39@@m4

ebay.oDocument.oPage.updateFeedbackScore=function(pResponse)
{this.oResponse=pResponse;this.oFeedConfig=this.oDocument.getConfig("ViewItem.User.FeedBack");if(this.oFeedConfig&&this.oFeedConfig.bTimerBoolean)
{with(this)
{oSellerData=oResponse.slr;if(oSellerData)
{for(x in oFeedConfig.aSellerScoreDiv)
{var oSellerScoreDiv=new EbayHTMLLayer(this,oFeedConfig.aSellerScoreDiv[x]);if(!oSellerScoreDiv.eElem)
oSellerScoreDiv.bind();if(oSellerScoreDiv.eElem&&oSellerData.score!=null)
{if(oFeedConfig.iFeedScore)
oFeedConfig.iFeedScore=oSellerData.score;}
if(oSellerScoreDiv.eElem)
{if(oFeedConfig.aThrobeDivs)
{for(iIndex in oFeedConfig.aThrobeDivs)
{var oThrobeDiv=new EbayHTMLLayer(this,oFeedConfig.aThrobeDivs[iIndex]);if(!oThrobeDiv.eElem)
oThrobeDiv.bind();if(oThrobeDiv.eElem)
oThrobeDiv.show(false)}}
oSellerScoreDiv.setValue(oFeedConfig.iFeedScore);oSellerScoreDiv.show(true);}}
for(x in oFeedConfig.aSellerPntDiv)
{var oSellerPntDiv=new EbayHTMLLayer(this,oFeedConfig.aSellerPntDiv[x]);if(!oSellerPntDiv.eElem)
oSellerPntDiv.bind();if(oSellerPntDiv.eElem&&oSellerData.pospnt!=null)
{var percentVal=Math.round(oSellerData.pospnt/Math.pow(10,1))/Math.pow(10,1);if(oFeedConfig.iFeedPercent)
oFeedConfig.iFeedPercent=percentVal;}
if(oSellerPntDiv.eElem){if(oFeedConfig.aThrobeDivs)
{for(iIndex in oFeedConfig.aThrobeDivs)
{var oThrobeDiv=new EbayHTMLLayer(this,oFeedConfig.aThrobeDivs[iIndex]);if(!oThrobeDiv.eElem)
oThrobeDiv.bind();if(oThrobeDiv.eElem)
oThrobeDiv.show(false)}}
oSellerPntDiv.setValue(oFeedConfig.iFeedPercent);oSellerPntDiv.show(true);}}}}}}
function RequestFeedBack(oFeedScoreConfig)
{for(x in oFeedScoreConfig.aSellerScoreDiv)
{var oSellerScoreDiv=new EbayHTMLLayer(this,oFeedScoreConfig.aSellerScoreDiv[x]);if(!oSellerScoreDiv.eElem)
oSellerScoreDiv.bind();if(oSellerScoreDiv.eElem)
{oFeedScoreConfig.iFeedScore=oSellerScoreDiv.getValue();}}
for(x in oFeedScoreConfig.aSellerPntDiv)
{var oSellerPntDiv=new EbayHTMLLayer(this,oFeedScoreConfig.aSellerPntDiv[x]);if(!oSellerPntDiv.eElem)
oSellerPntDiv.bind();if(oSellerPntDiv.eElem)
{oFeedScoreConfig.iFeedPercent=oSellerPntDiv.getValue();}}
oFeedScoreConfig.bTimerBoolean=true;var e=ebay.oDocument.createElement("script");e.src=oFeedScoreConfig.sUrl;this.form=ebay.oDocument.doc.getElementsByTagName("form")[0];this.form.appendChild(e);setTimeout(function(){oFeedScoreConfig.bTimerBoolean=false;for(x in oFeedScoreConfig.aSellerScoreDiv)
{var oSellerScoreDiv=new EbayHTMLLayer(this,oFeedScoreConfig.aSellerScoreDiv[x]);if(!oSellerScoreDiv.eElem)
oSellerScoreDiv.bind();if(oSellerScoreDiv.eElem){if(oFeedScoreConfig.aThrobeDivs)
{for(iIndex in oFeedScoreConfig.aThrobeDivs)
{var oThrobeDiv=new EbayHTMLLayer(this,oFeedScoreConfig.aThrobeDivs[iIndex]);if(!oThrobeDiv.eElem)
oThrobeDiv.bind();if(oThrobeDiv.eElem)
oThrobeDiv.show(false)}}
oSellerScoreDiv.show(true);}}
for(x in oFeedScoreConfig.aSellerPntDiv)
{var oSellerPntDiv=new EbayHTMLLayer(this,oFeedScoreConfig.aSellerPntDiv[x]);if(!oSellerPntDiv.eElem)
oSellerPntDiv.bind();if(oSellerPntDiv.eElem){if(oFeedScoreConfig.aThrobeDivs)
{for(iIndex in oFeedScoreConfig.aThrobeDivs)
{var oThrobeDiv=new EbayHTMLLayer(this,oFeedScoreConfig.aThrobeDivs[iIndex]);if(!oThrobeDiv.eElem)
oThrobeDiv.bind();if(oThrobeDiv.eElem)
oThrobeDiv.show(false)}}
oSellerPntDiv.show(true);}}},oFeedScoreConfig.iUpdateDelay);}
ebay.oDocument.oPage.tabFeedBackRequest=function()
{var oTabFeedConfig=parent.ebay.oDocument.getConfig("ViewItem.User.FeedBack");if(oTabFeedConfig)
{for(x in oTabFeedConfig.aSellerScoreDiv)
{var oSellerScoreDiv=new EbayHTMLLayer(this,oTabFeedConfig.aSellerScoreDiv[x]);if(!oSellerScoreDiv.eElem)
oSellerScoreDiv.bind();if(oSellerScoreDiv.eElem&&oTabFeedConfig.iFeedScore)
{if(oTabFeedConfig.aThrobeDivs)
{for(iIndex in oTabFeedConfig.aThrobeDivs)
{var oThrobeDiv=new EbayHTMLLayer(this,oTabFeedConfig.aThrobeDivs[iIndex]);if(!oThrobeDiv.eElem)
oThrobeDiv.bind();if(oThrobeDiv.eElem)
oThrobeDiv.show(false)}}
oSellerScoreDiv.setValue(oTabFeedConfig.iFeedScore);oSellerScoreDiv.show(true);}}
for(x in oTabFeedConfig.aSellerPntDiv)
{var oSellerPntDiv=new EbayHTMLLayer(this,oTabFeedConfig.aSellerPntDiv[x]);if(!oSellerPntDiv.eElem)
oSellerPntDiv.bind();if(oSellerPntDiv.eElem&&oTabFeedConfig.iFeedPercent)
{if(oTabFeedConfig.aThrobeDivs)
{for(iIndex in oTabFeedConfig.aThrobeDivs)
{var oThrobeDiv=new EbayHTMLLayer(this,oTabFeedConfig.aThrobeDivs[iIndex]);if(!oThrobeDiv.eElem)
oThrobeDiv.bind();if(oThrobeDiv.eElem)
oThrobeDiv.show(false)}}
oSellerPntDiv.setValue(oTabFeedConfig.iFeedPercent);oSellerPntDiv.show(true);}}}}

//40@@m3

ebay.oDocument.doc.onclick=function(e)
{var c=ebay.oDocument.getConfig("MyeBay.Tracking");if(c)
{ebay.oDocument.oPage.MyeBayDDTracking(e);}}
ebay.oDocument.oPage.MyeBayDDTracking=function(e)
{var pEvent=window.event?window.event:e;var elem=pEvent.srcElement||pEvent.target;if(elem==null||elem==undefined){return;}
var c=ebay.oDocument.getConfig("MyeBay.Tracking");if(c)
{var paramVal=elem.getAttribute(c.sParamVal);if(paramVal==null||paramVal==undefined||paramVal==""){return;}
var paramName=c.sParamName;}
var sUrl=elem.href;if((sUrl.charAt(sUrl.length-1)=="/"||sUrl.charAt(sUrl.length-1)=="l"||sUrl.charAt(sUrl.length-1)=="m"||sUrl.indexOf('&')==-1)&&sUrl.indexOf('?')==-1)
{elem.href=elem.href+"?"+paramName+"="+paramVal;}
else
elem.href=elem.href+"&"+paramName+"="+paramVal;}

//41@@m3

function EbayContentRetrieval(pParent,pName)
{if(!this.objType)
this.objType="EbayContentRetrieval";this.base=EbayBaseControl;this.base(pParent,pName);this.bTimeoutElapsed=false;this.bServerResponse=false;this.aTimeoutEntities=null;this._registerEvent("onInit");this._registerEvent("onUpdateContent");this.getChildConfig=function(pConfig)
{if(pConfig)
new EbayDynamicTransit(ebay.oDocument.oPage,"DynamicTransit",pConfig);}
this.init=function(oCfg)
{this.oConfig=oCfg;this.aEntities=oCfg.aEntities;this.aTimeoutEntities=oCfg.aTimeoutEntities;this.bindElements(this.aEntities);this.bindElements(this.aTimeoutEntities);var dc=new EbayHTMLLayer(this,oCfg.sDataCommElemName);dc.bind();dc.setValue("<iframe id='datacommframe' style='width=0;height=0;visibility:hidden;display:none'></iframe>");var dcf=new EbayHTMLFrame(this,"datacommframe");dcf.bind();if(oCfg.bRetriveInline)
{this.execute();}
else
{for(var i=0;i<this.aEntities.length;i++)
this.aEntities[i][2].show(true);}
this._exec("onInit");}
this.execute=function(args)
{var url=this.oConfig.sDataUrl;url+=url.indexOf("?")!=-1?"&":"?";url+="ej2child=true&downgradeDomain=true";if(args)
{for(var i=0;i<args.length;i++)
{var elem=args[i];if(typeof(elem[1])!="undefined")
url+="&"+elem[0]+"="+elem[1];}}
var dcf=this._getControl("datacommframe");dcf.setSource(url);oTimer=setTimeout(ebay.oUtils.controlPath(this)+".populateTimeoutEntities();",this.oConfig.iTimeoutMS);}
this.populateEntities=function(pElems)
{if(!this.bTimeoutElapsed)
{this.bServerResponse=true;var elems=pElems;for(var i=0,elem=elems[i];i<elems.length;i++,elem=elems[i])
this.populateEntity(elem[0],elem[2].getValue());this._exec("onUpdateContent");}
var oCnfig=this.oDocument.getConfig("DynamicTransit");if(oCnfig)
new EbayDynamicTransit(ebay.oDocument.oPage,"DynamicTransit",oCnfig);}
this.populateTimeoutEntities=function()
{if(!this.bServerResponse)
{this.bTimeoutElapsed=true;var elems=this.aTimeoutEntities;for(var i=0,elem=elems[i];i<elems.length;i++,elem=elems[i])
this.populateEntity(elem[0],elem[2].getValue());this._exec("onUpdateContent");}}
this.populateEntity=function(pName,pInnerHtml)
{var div=this.getEntity(pName);div.setValue(pInnerHtml);div.show(true);}
this.getEntity=function(pName)
{for(var i=0;i<this.aEntities.length;i++)
if(pName==this.aEntities[i][0])
return this.aEntities[i][2];}
this.bindElements=function(a)
{for(e in a)
with(a[e][2]=new EbayHTMLLayer(this,a[e][1]))
bind();}}
new EbayContentRetrieval(ebay.oDocument,"ContentRetrieval");

//42@@m7

function EbayShippingDetails(pParent,pName)
{if(!this.objType)
this.objType="EbayShippingDetails";this.base=EbayBaseControl;this.base(pParent,pName);this.oContentRetrieval=this.oDocument._getControl("ContentRetrieval");with(this)
{_registerListener(oContentRetrieval._getEvent("onInit"),EVENT_AFTER,"init");_registerListener(oContentRetrieval._getEvent("onUpdateContent"),EVENT_AFTER,"update");}
this.execute=function()
{with(this)
oContentRetrieval.execute([["country",oCountrySelect.getSelectedValue()],["zipcode",oZipCodeText.getValue()],["scquantity",oQuantityText.getValue()]]);}
this.updateZipcodeState=function()
{if(this.oCountrySelect.eElem!=null)
{var cur_site=this.oCountrySelect.getSelectedValue();var elems=this.oConfig.aZipCountries;for(var i=0;i<elems.length;i++)
{if(cur_site==elems[i])
{this.oZipCodeLayer.show(true);return;}
this.oZipCodeLayer.show(false);}}}
this.init=function()
{this.oConfig=this.oDocument.getConfig("ViewItem.ContentRetrieval.ShippingDetails");this.createElements();this.bindElements();this.oCalcLink._registerEvent("onclick","onClick");this.oCalcLink.onClick=function()
{this.parent.execute();}
this.oCountrySelect._registerEvent("onchange","onChange");this.oCountrySelect.onChange=function()
{this.parent.updateZipcodeState();this.parent.oZipCodeText.setValue("");if(this.parent.oConfig.bEnableSubmitOnCountryChange)
this.parent.execute();}
this.oErrorLink._registerEvent("onclick","onClick");this.oErrorLink.onClick=function()
{this.parent.oErrorLayer.show(true);this.show(false);return false;}
this.oForm._registerEvent("onsubmit","onSubmit");this.oForm.onSubmit=function()
{this.parent.execute();return false;}}
this.update=function()
{this.bindElements();this.updateZipcodeState();}
this.createElements=function()
{this.oCalcLink=new EbayHTMLButton(this,this.oConfig.sCalculateLinkElemName);this.oCountrySelect=new EbayHTMLSelect(this,this.oConfig.sCountrySelectElemName);this.oQuantityText=new EbayHTMLText(this,this.oConfig.sQuantityTextElemName);this.oZipCodeText=new EbayHTMLText(this,this.oConfig.sZipCodeTextElemName);this.oZipCodeLayer=new EbayHTMLLayer(this,this.oConfig.sZipCodeLayerElemName);this.oErrorLink=new EbayHTMLAnchor(this,this.oConfig.sErrorLinkElemName);this.oErrorLayer=new EbayHTMLLayer(this,this.oConfig.sErrorLayerElemName);this.oForm=new EbayHTMLForm(this,this.oConfig.sFormElemName);}
this.bindElements=function()
{with(this)
{oCalcLink.bind();oCountrySelect.bind();oQuantityText.bind();oZipCodeText.bind();oZipCodeLayer.bind();oErrorLink.bind();oErrorLayer.bind();oForm.bind();}}}
new EbayShippingDetails(ebay.oDocument,"ShippingDetails");

//43@@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=7640024 -->