//<!--
//1@@m20
<!--
function adjustIFrameSize(iframeWindow)
{var iframeElement=this.document.getElementById(iframeWindow.name);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=this.document.getElementById(iframeWindow.name);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';}
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);}}

//2@@m28

var bPopUpWindow=true,winPopped=false;var platform=navigator.platform.toLowerCase();var surveyCookie="surveySays";var surveyValue="shown";var surveyTempPopupFile="popout/temp_survey_popup.html";function eBayIsIE4()
{var agent=navigator.userAgent.toLowerCase();var is_ie=(agent.indexOf("msie")!=-1);var minor=is_ie?parseFloat(agent.substring(agent.indexOf('msie')+5)):parseFloat(navigator.appVersion);var isie4=parseInt(minor)==4;return isie4;}
function setPopOutSwitch(bOnOrOff,myfunction)
{bPopUpWindow=bOnOrOff;}
function popupWindow(mypage,target,w,h,scroll,no,pLeft,pTop,params){if(target=="_self")
return false;LeftPosition=(screen.width)?(screen.width-w)/2:0;TopPosition=(screen.height)?(screen.height-h)/2:0;if(pLeft)
LeftPosition=pLeft;if(pTop)
TopPosition=pTop;settings='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable='+no+'';top.win=window.open(mypage,target,settings+","+params);winPopped=true;return false;}
function checkHome(){var valueOfCheckHome=false;var agt=navigator.userAgent.toLowerCase();var myopera=(agt.indexOf("opera")!=-1);if(eBayIsIE4())
{return false;}
if(!myopera&&platform.indexOf('mac')==-1&&typeof(oHomePage)!='undefined')
{valueOfCheckHome=eval('oHomePage.isHomePage("http://"+document.location.host+"/")');}
else
{valueOfCheckHome=false;}
return valueOfCheckHome;}
function findForms()
{var formsArray=document.forms;var i;var strFormSubmit="";for(i=0;i<formsArray.length;i++)
{strFormSubmit+='<SC'+'RIPT FOR=\"'+formsArray[i].name+'\" EVENT=\"onsubmit\" LANGUAGE=\"JavaScript\">';strFormSubmit+='setPopOutSwitch(false)\;';strFormSubmit+='<\/SC'+'RIPT>';}
document.write(strFormSubmit);}
function startCounterCookie(){var now="";var countscookie="";var countcookie="";now=new Date();Year=now.getUTCFullYear();Month=now.getMonth();Day=now.getDate();now=new Date(Year,Month,Day);now.setHours(now.getHours()+24);countcookie=readCookieletEx("dp1","count");if(!countcookie){countcookie=1;}else{countcookie=parseInt(countcookie)+1;}
writeCookieletEx("dp1","count",countcookie,"","/",now);testIt();}
function popOutWindow(pURL,width,height,pSurvey,pSampleRate)
{if(typeof(width)=='undefined')
width='275';if(typeof(height)=='undefined')
width='375';var valueOfCounts=0;var valueOfCheckHome=false;var valueOfKeepMeSignIn=null;var valueOfEbaySignIn=null;if(!pSurvey)
{valueOfKeepMeSignIn=readCookieEx("keepmesignin");valueOfEbaySignIn=readCookieEx("ebaysignin");valueOfCheckHome=checkHome();testIt();valueOfCounts=readCookieletEx("dp1","count");}
testIt();if(bPopUpWindow)
{if((valueOfCheckHome!=true)&&(valueOfCounts<2))
{if((valueOfEbaySignIn!="in")&(valueOfKeepMeSignIn!="in"))
{var notMac=((navigator.userAgent.toLowerCase()).indexOf("mac")==-1);if(pSurvey&&!winPopped&&notMac&&(readCookieEx(surveyCookie)!=surveyValue))
return showSurveyWindow(pURL,width,height,pSampleRate);else if(!pSurvey)
return popupWindow(pURL,'SureYouWantToLeave',width,height,'no','yes');}}}}
function showExitPollSurveyWindow(pURL,pWidth,pHeight)
{var chn=document.location.hostname;var host="http://pages"+chn.substr(chn.indexOf("."));host+="/";var sInd=host.indexOf(".stores.");if(sInd!=-1)
host=host.substring(0,sInd+1)+host.substring(sInd+8,host.length);pURL=host+surveyTempPopupFile+"?"+pURL;pURL+="&ep=&ts="+new String(new Date())+"&width=600&height=400";var pWin=popupWindow(pURL,'ebSurvey',600,400,'yes','yes','5000','5000');return pWin;}
function showSurveyWindow(pURL,pWidth,pHeight,pSampleRate)
{var rnd=Math.floor(Math.random()*10000);if((rnd%3)!=0)
return false;var reg=readCookieEx("reg");var etfc=readCookieEx("etfc");var uType="A";if(reg=="1")
{if(etfc=="1")
uType="C";else if(etfc=="2")
uType="D";else
uType="B";}
pURL+=uType;var chn=document.location.hostname;var host="http://pages"+chn.substr(chn.indexOf("."));host+="/";var sInd=host.indexOf(".stores.");if(sInd!=-1)
host=host.substring(0,sInd+1)+host.substring(sInd+8,host.length);pURL=host+surveyTempPopupFile+"?"+pURL;pURL+="&ts="+new String(new Date())+"&width=600&height=400";var pWin=popupWindow(pURL,'ebSurvey',600,400,'yes','yes','5000','5000');return pWin;}
function writeClickListener()
{var agt=navigator.userAgent.toLowerCase();var mymac=(agt.indexOf("mac")!=-1);var myopera=(agt.indexOf("opera")!=-1);if(platform.indexOf('mac')==-1&&!myopera)
{var string='';string+='<SCR'+'IPT FOR="document" EVENT="onmousedown()" LANGUAGE="JavaScript">';string+='var eventTag = window.event.srcElement.tagName.toLowerCase();';string+='if(eventTag == "a" || eventTag == "img" || eventTag == "area" || eventTag == "input")';string+='{';string+='setPopOutSwitch(false)\;';string+='}';string+='<\/SC'+'RIPT>';string+='<SCR'+'IPT FOR="document" EVENT="onkeypress()" LANGUAGE="JavaScript">';string+='var eventTag = window.event.srcElement.tagName.toLowerCase();';string+='if(eventTag == "input")';string+='{';string+='setPopOutSwitch(false)\;';string+='}';string+='<\/SC'+'RIPT>';document.write(string);}}
function eBayIsFramed()
{if(top==self)
{return false;}
else
{return true;}}
function eBayToolbarPluginDetect()
{var plugin=false;var mimetype="application/x-eBay-Toolbar-Plugin-Functions";var nsname="eBay Plugin Functions";if(typeof(navigator.mimeTypes)!='undefined'&&navigator.mimeTypes[mimetype]&&navigator.mimeTypes[mimetype].enabledPlugin)
{if(navigator.plugins)
plugin=true;}
else if(navigator.userAgent&&navigator.userAgent.indexOf("MSIE")>=0&&(navigator.userAgent.indexOf("Windows")>=0)){if(eBayIsIE4())
{return false;}
else if(typeof(IECheckClient)=="unknown")
{plugin=IECheckClient();}}
return plugin;}
if(eBayToolbarPluginDetect()){setPopOutSwitch(false,"toolbar");}
if(eBayIsFramed()){setPopOutSwitch(false,"framed");}
function testIt()
{}
var popWinLoaded=true;

//3@@m5

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();if(elems[pName])
elems[pName].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;}}}

//4@@m9

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;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);}

//5@@m7

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;this.onBeforeShow=null;this.onAfterShow=null;}
function ebHTMLPopupShow()
{with(this)
{if(onBeforeShow)
onBeforeShow();if(sUrl.length==0)
return null;var sP=getParamString();var tWin=this.oDocument.win;tWin.g_ebPopupParent=this;modality(tWin);var w=tWin.open(sUrl,name,sP);if(w)
w.focus();oWin=w;if(onAfterShow)
onAfterShow();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()
{g_ebPopupObject.focus();}}}}}
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);}}}

//6@@m3

function EbayHTMLButton(pParent,pElemName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLButton";this.base=EbayHTMLFormElem;this.base(pParent,pElemName,pDisabled,pCfg);this.subscribeEvents("onclick");}

//7@@m13

function EbayToolbar(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayToolbar";this.baseObject=EbayBaseControl;this.baseObject(pParent,pName);this.TBDaemonID="eBayToolbarCommLib.IWebEvent.1";var g=this.oGlobals;var env=this.oEnv=g.oEnvironment;this.isInstalled=false;this.client=this.oGlobals.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()
{if(this.oGlobals.oClient.bMac||this.oGlobals.oClient.bMacppc)return false;if(this.client.bIE)
{var form=this.controls[this.config.signinFormID];var PageType=0;this.nPageType=form.getElementValue("pageType");this.aPageTypes=this.config.pageTypes.split(",");var oSignInForm=document.forms[this.config.signinFormID];if(this.nPageType!=""&&this.qualifyPageType())
{if(ebay.oGlobals.oClient.bActiveXSupported&&typeof(vbCheckActiveXControl)!="undefined"&&vbCheckActiveXControl(this.TBDaemonID))
{if(oSignInForm!=null)
{var sAction=new String(oSignInForm.action);sAction=sAction.replace("http:","https:");oSignInForm.action=sAction;}
var u=form.getElementValue("userid");TBDaemon=new ActiveXObject(this.TBDaemonID);var sID=TBDaemon.GetSIDForUser(u);if(sID!="")
{newItem=document.createElement("input");newItem.type='hidden';newItem.name='runame';newItem.value='EBAYTOOLBAR';oSignInForm.appendChild(newItem);if(typeof(oSignInForm.sid)=="undefined")
{newItem=document.createElement("input");newItem.type='hidden';newItem.name='SID';newItem.value=sID;oSignInForm.appendChild(newItem);}}}}}}
this.refresh=function()
{with(this)
{if(this.oGlobals.oClient.bMac||this.oGlobals.oClient.bMacppc)return false;if(this.client.bIE)
{var cObjectName="eBayToolbar.Helper";var xATHOC;var done;if(this.client.bActiveXSupported&&typeof(vbCheckActiveXControl)!="undefined"&&vbCheckActiveXControl(cObjectName))
{xATHOC=new ActiveXObject(cObjectName);done=xATHOC.doSomething(this.config.toolbarCommand+"?00="+this.config.eBayUserId+"&05="+this.config.eBayItemId);}
cObjectName="eBayToolbarCommLib.IWebEvent.1";var xToolbar;if(this.client.bActiveXSupported&&typeof(vbCheckActiveXControl)!="undefined"&&vbCheckActiveXControl(cObjectName))
{xToolbar=new ActiveXObject(cObjectName);xToolbar.WatchListChanged();}}}}
this.refreshListItem=function()
{with(this)
{if(this.oGlobals.oClient.bMac||this.oGlobals.oClient.bMacppc)return false;if(this.client.bIE)
{var cObjectName="eBayToolbarCommLib.IWebEvent.1";var xToolbar;if(this.client.bActiveXSupported&&typeof(vbCheckActiveXControl)!="undefined"&&vbCheckActiveXControl(cObjectName))
{xToolbar=new ActiveXObject(cObjectName);if(typeof(xToolbar.OnItemListed)=="undefined"||typeof(xToolbar.OnItemListed)==false||typeof(xToolbar.OnItemListed)=="unknown")return;xToolbar.OnItemListed();}}}}}
function EBayToolbarConfig(name)
{if(!this.objType)
this.objType="EBayToolbarConfig";this.base=EbayConfig;this.base(name);}
var d=document;d.writeln('<scr'+'ipt language="vbscript" type="text/vbscript">');d.writeln(' Function vbCheckActiveXControl (pActXName)');d.writeln('  aX = false');d.writeln('  on error resume next');d.writeln('  aX = IsObject(CreateObject(pActXName))');d.writeln('  vbCheckActiveXControl = aX');d.writeln('End Function');d.writeln('</scr'+'ipt>');

//8@@m2

function EbayHTMLPopupPrintFriendly(pParent,pName,pConfig)
{if(!this.objType)
this.objType="EbayHTMLPopupPrintFriendly";this.base=EbayHTMLPopup;this.base(pParent,pName,pConfig);if(!pConfig)
{this.iCharPerLine=null;}
else
{var u="undefined";this.iCharPerLine=typeof(pConfig.iCharPerLine)!=u?pConfig.iCharPerLine:null;}
this.printFriendlyShow=ebHTMLPrintFriendlyShow;this.formatText=ebHTMLFormatText;}
function ebHTMLPrintFriendlyShow(pContent)
{with(this)
{if(onBeforeShow)
onBeforeShow();if(pContent.length==0)
return null;var sP=getParamString();var tWin=this.oDocument.win;tWin.g_ebPopupParent=this;this.bModal=true;modality(tWin);pContent=formatText(pContent);var pBodyContent='<body><pre>'+pContent+'</pre></body>';var w=tWin.open("javascript:document.write('"+pBodyContent+"')",name,sP);var w=tWin.open("javascript:document.close()",name,sP);if(w)
w.focus();oWin=w;if(onAfterShow)
onAfterShow();return w;}}
function ebHTMLFormatText(pText)
{var iC=this.iCharPerLine;if(!pText||!iC)
return null;var sOldText=new String(pText);var sNewText=new String("  ");var sCharacter,iCount=0,iLen=pText.length,iCurrLine=0,sSingleQuote="\'",sSlash="\\";while(iCount<iLen)
{sCharacter=sOldText.charAt(iCount);if(sSingleQuote==sCharacter)
sCharacter="\\'";if(sSlash==sCharacter)
sCharacter="\\\\";if(sCharacter=='#')
sCharacter="%23";sNewText+=sCharacter;if(sCharacter=='\r')
{sNewText+='%5c%6e'+"  ";iCurrLine=0;}
else if(iCurrLine>iC&&(sCharacter=='\t'||sCharacter==' '))
{sNewText+='%5c%6e'+"  ";iCurrLine=0;}
iCount++;iCurrLine++;}
return sNewText;}

//9@@m5

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)
return this.eElem.innerText;else
return this.eElem.innerHTML;}
else
return"";}
function ebHTMLLayerSetValue(pVal,pIsText)
{if(this.eElem)
{if(pIsText)
this.eElem.innerText=pVal;else
this.eElem.innerHTML=pVal;}}

//10@@m5

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=new Function("return this.getDocElem(arguments[0],'images');");this.source=ebHTMLImageSource;this.enableBase=this.enable;this.enable=ebHTMLImageEnable;this.subscribeEvents("onclick","onmouseover","onmouseout");}
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;}}

//11@@m4

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();if(numOver==1)
strHTMLPart1=strHTMLPart1.replaceTokensEx("##n##",c.sMsgSeg1Single,c.sMsgSeg2Single,numMinutes,c.sMsgSeg4Single);else
strHTMLPart1=strHTMLPart1.replaceTokensEx("##n##",c.sMsgSeg1,c.sMsgSeg2,numMinutes,c.sMsgSeg4);strHTMLPart1=strHTMLPart1.replaceTokensEx("##n##",numOver,this.iThreshold,c.sMsgseg4ahref,c.sMsgseg4ahrefend);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"));

//12@@m2

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.onAfterLoad=function()
{if(typeof(prefetch)!="undefined")
setTimeout("prefetch()",2000);}

//13@@m7

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;this.enableBase(pEnable);}
function setEbayLink(pS)
{return true;}

//14@@m9

ebay.oDocument.oPage.onBeforeLoad=function()
{var gt,oD,oBc,oVC,sGlblCfg;oD=ebay.oDocument;if(typeof selfHostedIMAGEURL!="undefined"&&selfHostedIMAGEURL!="")
eBayUser_SelfHosted_image_v.src=selfHostedIMAGEURL;var c=oD.getConfig("SupersizeListingConfig");if(typeof c!="undefined"&&!document.layers)
{var a=new EbayHTMLAnchor(this,c.linkName);var l=new EbayHTMLLayer(this,c.layerName);a.onclick=function(){l.setValue(c.ssHTML);return false;};}
var toolbarc=oD.getConfig("ebaytoolbar");if(ebay.oGlobals.oClient.bIE&&toolbarc!=null&&toolbarc.objType=="EBayToolbarConfig")
{var toolbar=new EbayToolbar(this,"toolbar",toolbarc);toolbar.refresh();}
var VeroCfg=oD.getConfig("Vero.Viewitem.Preview")
if(typeof VeroCfg!="undefined")
{var b=new EbayHTMLButton(this,VeroCfg.closeBtnId);b.onclick=function(){ebay.oDocument.win.close();};}
var toolbarc=oD.getConfig("ebaytoolbar");if(ebay.oGlobals.oClient.bIE&&toolbarc!=null&&toolbarc.objType=="EBayToolbarConfig")
{var toolbar=new EbayToolbar(this,"toolbar",toolbarc);toolbar.refresh();}
var oFC=oD.getConfig("ViewItem.Freight.Calculator");if(oFC){var anch=new EbayHTMLAnchor(this,oFC.sAnchName);var calc=new EbayHTMLPopup(this,oFC.sTargetName,oFC);var frm=new EbayHTMLForm(this,oFC.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;}}
var oCfg=this.parent.getConfig("BusinessSellerInfo.BusinessSellerInfoWidget.PrintFriendly");if(oCfg){var oAnchorPrint=new EbayHTMLAnchor(this,oCfg.sAnchId);var oTextArea=new EbayHTMLText(this,oCfg.sTextareaId);var oPrinterPopup=new EbayHTMLPopupPrintFriendly(this,"PrinterFriendly",oCfg);oAnchorPrint._registerEvent("onclick","onClick");oAnchorPrint.onClick=function()
{var sText=oTextArea.getValue();oPrinterPopup.printFriendlyShow(sText);}}}

//15@@m2

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)
{if(!this.objType)
this.objType="EbayBlockActiveContent";this.base=EbayBaseControl;this.base(pParent,pName);this.sDocWrite='';this.aExceptions=new Array;this.iVersion=0;this.aBlocks=["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.aBlockedTags=[["script","src",ih],["base","href"],["meta","refresh"],["frame","src",ih]];this.aBlockedElements=["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.aBlocks,len=b.length,rv=false,re;for(var i=0;i<len&&!rv;i++)
{re=new RegExp(b[i]);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.aBlockedTags;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));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=this.aBlockedElements,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
document.standardCreateElement(pStr);}}
ebay.oDocument.createBlockActiveContent=function()
{var g=this.parent.oGlobals,cl=g.oClient,e=g.oEnvironment,v=this.oPage.oConfig.iBACVersion,path="";if(!(cl.bMac&&cl.bIE))
{var c=new EbayBlockActiveContent(this,"blockActiveContent");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;}}
ebay.oDocument.createBlockActiveContent();

//16@@m2

function ebDowngradeDomainTo()
{var dd=document.domain,i=dd.indexOf(".ebay."),qs;if(i!=-1)
{dd=dd.substr(i+1);qs=unescape(document.location.search);if((i=qs.indexOf("downgradeDomainTo="))>-1)
dd=qs.substring(i+18,qs.indexOf(dd)+dd.length);document.domain=new String(dd);}}
ebDowngradeDomainTo();

//17@@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>';}}
// b=1815757 -->