//<!--
//1@@m7

function EbayOpenHelpWindow(pParent,pName)
{if(!this.objType)
this.objType="EbayOpenHelpWindow";this.base=EbayBaseControl;this.base(pParent,pName);var c=this.oGlobals.oClient;var p=new EbayHTMLPopup(this,"popup","popup");this.bFocusWin=(!c.bIE&&(c.iVer>4));this.openNonHelpWindow=function(pPath)
{p.showEx(pPath,400,620,1,1,1,1,1,1);if(this.bFocusWin)
win.focus();return false;}
this.openContextualHelpWindow=function(pPath,pNoDowngrade)
{var oD=this.oDocument,w,h,win;if(!(c.bMac&&c.bIE)&&!pNoDowngrade)
oD.downgradeDomain();w=440;h=500;p.showEx(pPath,w,h,0,0,0,1,1,0,parseInt(screen.availWidth-450),"0");win=p.oWin;if((!win||win.closed)&&(typeof(ebHelpStrPopupBlocked)=="string"))
{oD.messageBox(ebHelpStrPopupBlocked);}
return false;}
this.openWindow=function(pUrl,pWidth,pHeight,pToolbar,pLocation,pStatus,pScrollbars,pResizable,pMenubar,pLeft,pTop,pCustomsProps,pModal,pWBuffer,pHBuffer)
{if(!pLeft&&pWidth)
pLeft=parseInt(screen.availWidth-pWidth)/2;if(!pTop&&pHeight)
pTop=parseInt(screen.availHeight-pHeight)/2;p.showEx(pUrl,pWidth,pHeight,pToolbar,pLocation,pStatus,pScrollbars,pResizable,pMenubar,pLeft,pTop,pCustomsProps,pModal,pWBuffer,pHBuffer);if(this.bFocusWin)
win.focus();return false;}}
new EbayOpenHelpWindow(ebay.oDocument,"openHelpWindow");

//2@@m6

function ReadURL(url){var Inputs=unescape(url.search).split('?');var pairs=unescape(Inputs[1]).split('&');return(pairs);}
function getParams(array,variable){var nameVal=array.split('=');var value="";if(nameVal[0]==variable){value=nameVal[1];}else{value="";}
return(value);}

//3@@m4

function disableForm(state)
{if((is.ie&&is.win)||is.firefox)
{var f=document.forms['PreferencesForm'];for(var i=0;i<f.length;i++)
{if(f[i].type=="select-one")
{toggleDisable(f[i],state);}
if(f[i].type!='radio'||f[i].type=='hidden'||f[i].name=='CheckCrossPromote')
{continue;}
toggleDisable(f[i],state);}}}
function selectCrossPromote()
{document.forms['PreferencesForm']['CheckCrossPromote'][0].checked=true;checkSelections();}
function checkPromote()
{document.forms['PreferencesForm']['ccp'].checked=true;document.forms['PreferencesForm']['CrossPromote'].checked=true;checkSelections();}
function noCheckPromote()
{document.forms['PreferencesForm']['ccp'].checked=false;document.forms['PreferencesForm']['CrossPromote'].checked=false;disableForm(true);}
function checkSelections()
{disableForm(false);if(((is.ie&&is.win)||is.firefox)&&typeof(document.forms['PreferencesForm']['UpSellFormatDisplay'])!="undefined")
{if(document.forms['PreferencesForm']['UpSellFormatDisplay'][2].checked)
{disableOption('UpSellGalleryDisplay',1,true,2);}
if(document.forms['PreferencesForm']['UpSellGalleryDisplay'][1].checked)
{disableOption('UpSellFormatDisplay',2,true,3);}
if(document.forms['PreferencesForm']['UpSellSort'][5].checked)
{disableOption('UpSellGalleryDisplay',1,true,2);disableOption('UpSellFormatDisplay',2,true,3);}
if(document.forms['PreferencesForm']['CrossSellFormatDisplay'][2].checked)
{disableOption('CrossSellGalleryDisplay',1,true,2);}
if(document.forms['PreferencesForm']['CrossSellGalleryDisplay'][1].checked)
{disableOption('CrossSellFormatDisplay',2,true,3);}
if(document.forms['PreferencesForm']['CrossSellSort'][5].checked)
{disableOption('CrossSellGalleryDisplay',1,true,2);disableOption('CrossSellFormatDisplay',2,true,3);}}}
function disableOption(group,num,state,defaultOption)
{if(((is.ie&&is.win)||is.firefox)&&typeof(document.forms['PreferencesForm']['UpSellFormatDisplay'])!="undefined")
{var o=document.forms['PreferencesForm'][group][num];if(state==true&&o.checked)
{document.forms['PreferencesForm'][group][defaultOption].checked=true;}
toggleDisable(document.forms['PreferencesForm'][group][num],state);}}
function toggleDisable(theInput,state)
{if((is.ie&&is.win)||is.firefox)
{theInput.disabled=state;}}

//4@@m21
<!--
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';}
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);}}
// b=3546182 -->