//<!--
//\include\js\mips\merch_view_item.js@@\main\18
<!--
function adjustIFrameSize(iframeWindow){var adjHeight=0;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+adjHeight+5+'px';iframeElement.style.width=iframeWindow.document.body.scrollWidth+5+'px';}}}
function changeFrame()
{if(!is.mac)
{if(parent.adjustIFrameSize)parent.adjustIFrameSize(window);}}
function adjustIFrameHeight(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';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(!is.mac)
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 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();
// -->
