//<!--
// \include\js\mips\merch_view_item.js@@\main\14 
<!--
function adjustIFrameSize(iframeWindow){if(is.mac)
return false;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';iframeElement.style.width=iframeWindow.document.width+'px';}
else if(document.all){if(iframeWindow.document.compatMode&&iframeWindow.document.compatMode!='BackCompat')
{iframeElement.style.height=iframeWindow.document.documentElement.scrollHeight+5+'px';iframeElement.style.width=iframeWindow.document.documentElement.scrollWidth+5+'px';}
else{iframeElement.style.height=iframeWindow.document.body.scrollHeight+5+'px';iframeElement.style.width=iframeWindow.document.body.scrollWidth+5+'px';}}}
function changeFrame()
{if(!is.mac)
{if(parent.adjustIFrameSize)parent.adjustIFrameSize(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 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 iframeDownGrade()
{if(!(is.mac&&is.ie))
{ebayDowngradeDomain();}}
iframeDownGrade();

// \include\lib\_global\_ui\_base\form.js@@\main\2 

function EbayHTMLForm(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayHTMLForm";this.base=EbayHTML;this.base(pParent,pName,pName,false,pCfg);this.getElem=new Function("return this.getDocElem(arguments[0],'forms');");this.enable=new Function("");this.getElementValue=ebHTMLFormGetElementValue;this.setElementValue=ebHTMLFormSetElementValue;this.getElements=ebHTMLFormGetElements;this.getElement=ebHTMLFormGetElement;this.setAction=ebHTMLFormSetAction;this.setTarget=ebHTMLFormSetTarget;this.submit=ebHTMLFormSubmit;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 ebHTMLFormSetTarget(pTarget)
{var e=this.eElem;if(e)
e.target=pTarget;}
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");}

// \include\lib\_global\_ui\_ex\ebaytoolbar.js@@\main\e385_caboose\4 

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.client.bIE)
{var form=this.controls[this.config.signinFormID];var PageType=0;this.nPageType=form.getElementValue("pageType");this.aPageTypes=this.config.pageTypes.split(",");if(this.nPageType!=""&&this.qualifyPageType())
{if(this.client.bActiveXSupported&&typeof(vbCheckActiveXControl)!="undefined"&&vbCheckActiveXControl(this.TBDaemonID))
{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';document.forms[this.config.signinFormID].appendChild(newItem);newItem=document.createElement("input");newItem.type='hidden';newItem.name='SID';newItem.value=sID;document.forms[this.config.signinFormID].appendChild(newItem);}}}}}
this.refresh=function()
{with(this)
{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();}}}}}
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('  on error resume next');d.writeln('  aX = IsObject(CreateObject(pActXName))');d.writeln('  vbCheckActiveXControl = aX');d.writeln('End Function');d.writeln('</scr'+'ipt>');

// \include\js\finding\find_sort.js@@\main\2 

function doFindSortChange(position)
{sortURL=findSortArray[position];if(typeof sortURL!="undefined"&&sortURL!=null&&sortURL!="")
{window.location.href=sortURL;}}

// \include\lib\_global\features\viewitem\page.js@@\main\e385_caboose\1 

ebay.oDocument.oPage.onBeforeLoad=function()
{var c=this.parent._exec("getConfig","ebaytoolbar");if(ebay.oGlobals.oClient.bIE&&c!=null&&c.objType=="EBayToolbarConfig")
{var toolbar=new EbayToolbar(this,"toolbar",c);toolbar.refresh();}}

// \include\js\viewitem\_base\viBlockActiveContent.js@@\main\4 

function ebVIObj()
{this.docWriteString='';this.firstWrite=(typeof(viDocIms)!="undefined");this.incHostLower=includeHost.toLowerCase();function hasBlockedString(pStr)
{return pStr.containsAny("ebviewitem.","open(","createpopup(","cookie(",".cookie",".location","replace(","onerror","<meta","<iframe","eval(","document.standardwrite","document.standardwriteln");}
this.hasBlockedString=hasBlockedString;function checkTagAndAttribute(pStr,pTag,pAttr)
{var stInd=pStr.indexOf(pTag),rv=false;while(stInd>-1)
{var eInd=pStr.indexOf(">",stInd);var aInd=pStr.indexOf(pAttr,stInd);rv=((eInd>stInd)&&(aInd>stInd)&&(aInd<eInd));stInd=pStr.indexOf(pTag,eInd);}
return rv;}
this.checkTagAndAttribute=checkTagAndAttribute;function hasTagAndAttribute(pStr)
{var ta=new Array(new Array("<script","src="),new Array("<base","href="));var rv=false,len=ta.length;for(var i=0;i<len&&!rv;i++)
{rv=this.checkTagAndAttribute(pStr,ta[i][0],ta[i][1]);if(rv&&(i==0)&&pStr.contains(this.incHostLower))
rv=false;}
return rv;}
this.hasTagAndAttribute=hasTagAndAttribute;function blockString(pStr)
{with(this)
{var rv=false;if(!firstWrite)
docWriteString+=pStr;if(firstWrite)
{docWriteString='';firstWrite=false;}
else
{var s=(docWriteString+pStr).toLowerCase().replace(/\s/g,"");if(hasBlockedString(s)||hasTagAndAttribute(s))
{docWriteString='';rv=true;}}
return rv;}}
this.blockString=blockString;document.standardWrite=document.write;document.standardWriteln=document.writeln;function documentWrite(pStr)
{if(!ebViewItem.blockString(pStr))
document.standardWrite(pStr);}
this.documentWrite=documentWrite;function documentWriteln(pStr)
{if(!ebViewItem.blockString(pStr))
document.standardWriteln(pStr);}
this.documentWriteln=documentWriteln;}
var ebViewItem=new ebVIObj();document.write=ebViewItem.documentWrite;document.writeln=ebViewItem.documentWriteln;
//-->                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
