//<!--
//1@@m3

function queryFocus()
{if(document.ucsearch&&document.ucsearch.satitle)
{document.ucsearch.satitle.focus();}}
function init()
{if(typeof cmdName=='undefined'||!cmdName||(cmdName!='TopReviewers'))
queryFocus();var oCJ=ebay.oDocument.oCookieJar;if(oCJ.readCookielet("ebay","js")!="1")oCJ.setOptimizationCookie();}

//2@@m2

URIBuilder=function(uri){this.uri=this.decode(uri);this.params=new Array();var match=this.uri.match("(([^:]*)://([^:/]*)(:([0-9]+))?)?([^?#]*)([?]([^#]*))?(#(.*))?");if(match==null)return;this.protocol=(match.length>2)?match[2]:"";this.host=(match.length>3)?match[3]:"";this.port=(match.length>5)?match[5]:"";this.href=(match.length>6)?match[6]:"";var query=(match.length>8)?match[8]:"";var isapi=this.href.match(/eBayISAPI.dll/i);if(isapi)this.parseIsapi(query);else this.parseQuery(query);this.fragment=(match.length>10)?match[10]:"";};URIBuilder.prototype.protocol="";URIBuilder.prototype.host="";URIBuilder.prototype.port="";URIBuilder.prototype.href="";URIBuilder.prototype.query="";URIBuilder.prototype.fragment="";URIBuilder.prototype.parseQuery=function(query){var pairs=(query)?query.split("&"):new Array();for(var pdx=0;(pdx<pairs.length);pdx++)this.parseParam(pairs[pdx]);};URIBuilder.prototype.parseIsapi=function(query){var pairs=(query)?query.split("&"):new Array();this.href=this.href.concat("?",(pairs.length>0)?pairs[0]:"");for(var pdx=1;(pdx<pairs.length);pdx++)this.parseParam(pairs[pdx]);};URIBuilder.prototype.parseParam=function(param){var pair=param.split("=");var name=pair[0];var param=(this.params[name]!=null)?this.params[name]:(this.params[name]=new Array());param[param.length]=decodeURIComponent((pair.length>1)?pair[1]:"");};URIBuilder.prototype.decode=function(uri){this.encoded=uri.match(/QQ/);if(this.encoded==null)return uri;uri=uri.replace(/QQ/,"?").replace(/QQ/g,"&");return uri.replace(/Z/g,"=");};URIBuilder.prototype.encode=function(uri){uri=uri.replace(/\?/,"QQ").replace(/&/g,"QQ");return uri.replace(/=/g,"Z");};URIBuilder.prototype.appendParam=function(name,value){var params=this.params;var param=(params[name]!=null)?params[name]:(params[name]=new Array());param.push(value);};URIBuilder.prototype.toString=function(encode){var uri=(this.protocol)?this.protocol.concat("://"):"";if(this.host)uri=uri.concat(this.host);if(this.port)uri=uri.concat(":",this.port);if(this.href)uri=uri.concat(this.href);var query="";for(var name in this.params){var param=this.params[name];for(var idx=0;(idx<param.length);idx++){query=param[idx]?query.concat("&",name,"=",encodeURIComponent(param[idx])):query.concat("&",name);}}
if(uri.match("[?]"))uri=uri.concat(query);else if(query=query.substring(1))uri=uri.concat("?",query);if(this.fragment)uri=uri.concat("#",this.fragment);encode=(encode!=null)?encode:this.encoded;return this.uri=(encode)?this.encode(uri):uri;};

//3@@m2

function onSearch()
{var form=document.forms["ucsearch"];if(form!=null)
form.submit();return false;}
function onUCSearchGoToPage(){var form=document.forms["rpaging"];this.config=ebay.oDocument.getConfig("UCSearchGoTo");if(this.config==null){return false;}
var page=form.elements[this.config.onUCSearchGoToPage.name];if((page==null)||isNaN(page.value))
return false;var uri=new URIBuilder(this.config.onUCSearchGoToPage.url);uri.appendParam(page.name,page.value);document.location.href=uri.toString();return false;};

//4@@m6

function EbayHTMLLayer(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLLayer";this.base=EbayHTML;this.base(pParent,pName,pName,pDisabled,pCfg);this.aBindEvents=new Array;this.getElem=ebHTMLLayerGetElem;this.getValue=ebHTMLLayerGetValue;this.setValue=ebHTMLLayerSetValue;}
function ebHTMLLayerGetElem(pName)
{var s=pName,d=this.oDocument.doc;if(d.getElementById)
return d.getElementById(s);else if(d.all)
return d.all(s);this.throwWarning("Not supported","getElem");}
function ebHTMLLayerGetValue(pIsText)
{if(this.eElem)
{if(pIsText)
{if(this.oDocument.oGlobals.oClient.bFirefox)
return this.eElem.textContent;else
return this.eElem.innerText;}
else
return this.eElem.innerHTML;}
else
return"";}
function ebHTMLLayerSetValue(pVal,pIsText)
{if(this.eElem)
{if(pIsText)
{if(this.oDocument.oGlobals.oClient.bFirefox)
this.eElem.textContent=pVal;else
this.eElem.innerText=pVal;}
else
this.eElem.innerHTML=pVal;}}

//5@@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);}

//6@@m2

function EbayAvalonHelpfullnessVote(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayAvalonHelpfullnessVote";this.base=EbayBaseControl;this.base(pParent,pName);var c=this.oConfig=pCfg;var sP1=c.sParam1;var aP1v=c.aParam1Values;var sP2=c.sParam2;var aP2v=c.aParam2Values;var sP3=c.sParam3;var sP4=c.sParam4;var aP4v=c.aParam4Values;var sP5=c.sParam5;var aP5v=c.aParam5Values;this.oIframeLayer=new EbayHTMLLayer(this,this.oConfig.sIframeLayer);this.oIframeLayer.bind();var oC=this.oGlobals.oClient;if(!oC.bSafari&&!oC.bNav)
{this.oIframeLayer.show(false);}
else if(oC.bNav)
this.oIframeLayer.show(true);var l=aP1v.length;this.aMsgLayers=new Array(l);this.createURL=ebAvalonHelpfullnessVoteCreateURL;this.processIframe=ebAvalonHelpfullnessVoteProcessIframeResponse;for(var i=0;i<l;i++)
{var yb=new EbayHTMLButton(this,c.sYesBtnElemName+'_'+i);yb.sUrl=this.createURL(c.sBaseURL,sP1,aP1v[i],sP2,aP2v[i],sP3,c.iVoteYes,sP4,aP4v[i],sP5,aP5v[i]);yb.iId=i;var nb=new EbayHTMLButton(this,c.sNoBtnElemName+'_'+i);nb.sUrl=this.createURL(c.sBaseURL,sP1,aP1v[i],sP2,aP2v[i],sP3,c.iVoteNo,sP4,aP4v[i],sP5,aP5v[i]);nb.iId=i;this.aMsgLayers[i]=[new EbayHTMLLayer(this,c.sSuccessDivElemName+'_'+i),new EbayHTMLLayer(this,c.sError1DivElemName+'_'+i),new EbayHTMLLayer(this,c.sError2DivElemName+'_'+i)];yb._registerEvent("onclick","ebAvalonHelpfullnessVoteSubmit");nb._registerEvent("onclick","ebAvalonHelpfullnessVoteSubmit");}}
function ebAvalonHelpfullnessVoteCreateURL(pB,p1,p1v,p2,p2v,p3,p3v,p4,p4v,p5,p5v)
{var u=pB;if(p1v)
u+="&"+p1+"="+p1v;if(p2v)
u+="&"+p2+"="+p2v;if(p3v)
u+="&"+p3+"="+p3v;if(p4v)
u+="&"+p4+"="+p4v;if(p5v)
u+="&"+p5+"="+p5v;return u;}
function ebAvalonHelpfullnessVoteSubmit()
{var oP=this.parent;var sHtml='<iframe id="RSIFrame_iframe"  border="0" marginwidth="0" marginheight="0" scrolling="no" name="RSIFrame_iframe" style="width:0px; height:0px; border: 0px" src="'+this.sUrl+'"></iframe>';oP.oIframeLayer.setValue(sHtml);oP.iId=this.iId;return false;}
function ebAvalonHelpfullnessVoteProcessIframeResponse(pRc,pRurl)
{if(pRc==-1)
{this.oDocument.redirect(pRurl);}
else
{var lyrs=this.aMsgLayers[this.iId],len=3;for(var i=0;i<len;i++)
{lyrs[i].show(i==pRc);}}}

//7@@m7

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(),len=elems.length;for(i=0;i<len;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;}}}

//8@@m11

function EbayHTMLAnchor(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLAnchor";this.base=EbayHTML;this.base(pParent,pName,pName,pDisabled,pCfg);this.getElem=ebHTMLAnchorGetElem;this.enableBase=this.enable;this.enable=ebHTMLAnchorEnable;this.subscribeEvents("onclick");}
function ebHTMLAnchorGetElem(pName)
{var d=this.oDocument.doc,l=null,len=null;l=d.links[pName];if(l)return l;if(d.getElementById)
l=d.getElementById(pName);if(l)return l;if(d.all)
l=d.all[pName];if(l)return l;if(d.layers)
{var lyrs=d.layers;len=lyrs.length;for(var i=0;i<len;i++)
{l=this.getElem(lyrs[i].document,pName);if(l)
return l;}}
len=d.links.length;for(var j=0;j<len;j++)
{l=d.links[j];if(typeof(l.name)=="undefined")
{if(l.onclick)
{var oc=l.onclick.toString();if(oc.indexOf("{#"+pName+"#}")!=-1)
return l;}}
else
{if(l.name==pName)
return l;}
l=null;}
return l;}
function ebHTMLAnchorEnable(pEnable)
{var cur=(pEnable)?"hand":"default";var el=this.eElem;if(el&&el.style)
{el.style.cursor=cur;el.style.color=pEnable?"":"gray";}
this.enableBase(pEnable);}
function setEbayLink(pS)
{return true;}

//9@@m11

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;this.enableBase=this.enable;this.enable=ebHTMLTextEnable;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();}
function ebHTMLTextEnable(pEnable)
{this.enableBase(pEnable);this.setStyle('backgroundColor',!pEnable?'#ccc':'#fff');}

//10@@m3

function EbayHTMLSlideShowTicker(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLSlideShowTicker";this.base=EbayBaseControl;this.base(pParent,pName);this.oConfig=pCfg;this.sWidth=this.oConfig.sSliderWidth;this.sHeight=this.oConfig.sSliderHeight;this.iSlideSpeed=this.oConfig.iSlideSpeed;this.iCopySpeed=this.iSlideSpeed;this.sBgColor=this.oConfig.sSliderBgColor;this.iGap=this.oConfig.iSlideShowGap;this.aAnchorObjects=new Array();this.aImageObjects=new Array();this.iActualWidth=this.oConfig.iActualWidth;this.oDivContent1=new EbayHTMLLayer(this,this.oConfig.sDivContent1,false,this.oConfig);this.oDivContent1.subscribeEvents("onmouseover","onmouseout");this.oDivContent1.onmouseover=function(){this.parent.iCopySpeed=0;return false;}
this.oDivContent1.onmouseout=function(){this.parent.iCopySpeed=this.parent.iSlideSpeed;return false;}
this.oDivContent2=new EbayHTMLLayer(this,this.oConfig.sDivContent2,false,this.oConfig);this.oDivContent2.subscribeEvents("onmouseover","onmouseout");this.oDivContent2.onmouseover=function(){this.parent.iCopySpeed=0;return false;}
this.oDivContent2.onmouseout=function(){this.parent.iCopySpeed=this.parent.iSlideSpeed;return false;}
this.init=function(){this.oDivContent2.setStyle("left",this.iActualWidth+this.iGap+"px");}
this.slideLeft=function(){var content1=this.oDivContent1;var content2=this.oDivContent2;if(parseInt(content1.getStyle("left"))>(this.iActualWidth*(-1)+10))
content1.setStyle("left",(parseInt(content1.getStyle("left"))-this.iCopySpeed)+"px");else
content1.setStyle("left",(parseInt(content2.getStyle("left"))+this.iActualWidth+this.iGap)+"px");if(parseInt(content2.getStyle("left"))>(this.iActualWidth*(-1)+10))
content2.setStyle("left",(parseInt(content2.getStyle('left'))-this.iCopySpeed)+"px");else
content2.setStyle("left",(parseInt(content1.getStyle('left'))+this.iActualWidth+this.iGap)+"px");}}

//11@@m5

ebay.oDocument.oPage.aTickers=[];ebay.oDocument.oPage.onBeforeLoad=function(pConfig)
{for(var e in this.oDocument.aConfigs)
{if(e.indexOf("Slide_Show_Ticker_Config")!=-1)
{var oConfig=this.oDocument.aConfigs[e];this.aTickers.push(new EbayHTMLSlideShowTicker(this,'ticker',false,oConfig));}}
var oC=this.oGlobals.oClient;var oCfg=this.parent.getConfig("PDP.FormSubmit");if(oCfg)
{var oDiv=new EbayHTMLLayer(this,oCfg.sDivId);var oAnchor=new EbayHTMLAnchor(this,oCfg.sAnchorId);var oForm=new EbayHTMLForm(this,oCfg.sFormId);var oHF=new EbayHTMLText(this,oCfg.sHiddenFieldName);oAnchor.onclick=function()
{oHF.setValue(oDiv.getValue());oForm.submit();return false;}}
var c=this.parent.getConfig("Avalon.Review.HelpfullnessVote");if(oC.bNav&&oC.fVer<=7.01)
return;else if(oC.bOpera&&oC.fVer<=8.0)
return;if(c)
new EbayAvalonHelpfullnessVote(this,"helpfullness vote",c);var oCfg=this.parent.getConfig("Product.Wiki.CreateEdit");if(!oCfg)
return
var oCreateWiki=new EbayHTMLButton(this,oCfg.sCreateWikiBtn);var oEditWiki=new EbayHTMLButton(this,oCfg.sEditWikiBtn);oWin=this.parent.win;var sActionUrl=oCfg.sBaseURL+'&'+oCfg.sParamType+'&'+oCfg.sParamVscID+'&'+oCfg.sParamEntityId+'&'+oCfg.sParamAction;oCreateWiki.onclick=function()
{if(!oCreateWiki.eElem)
return;var sUrl=sActionUrl+oCfg.sCreateParamValue;oWin.location.href=sUrl;}
oEditWiki.onclick=function()
{if(!oEditWiki.eElem)
return;var sUrl=sActionUrl+oCfg.sEditParamValue+'&'+oCfg.sVersionId;oWin.location.href=sUrl;}}
ebay.oDocument.oPage.onAfterLoad=function()
{for(var i=0;i<this.aTickers.length;i++)
{var ticker=this.aTickers[i];ticker.init();setInterval("ebay.oDocument.oPage.aTickers[ '"+i+"' ].slideLeft()",50);}}

//12@@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=10790584 -->
