//<!--
//1@@m8

var ns4=(document.layers);var ie4=(document.all&&!document.getElementById);var ie5=(document.all&&document.getElementById);var ns6=(!document.all&&document.getElementById);var webtv=false;if(navigator.appName.search(/webtv/i)!=-1)webtv=true;if(webtv){var begLayer='document.all[';var endLayer='].style';var styleLayerShow=".visibility = 'visible'";var styleLayerHide=".visibility = 'hidden'";}
if(ns4){var begLayer='document.layers[';var endLayer=']';var styleLayerShow=".visibility = 'show'";var styleLayerHide=".visibility = 'hide'";}
else if(ie4){var begLayer='document.all[';var endLayer='].style';var styleLayerShow=".visibility = ''";var styleLayerHide=".visibility = 'none'";}
else if(ie5||ns6){var begLayer='document.getElementById(';var endLayer=').style';var styleLayerShow=".display = ''";var styleLayerHide=".display = 'none'";}
function showItem(id){var form=window.document.forms[0];if((webtv)||(ns4)||(ie4))var checkID=eval(begLayer+'id'+']');else var checkID=eval(begLayer+'id'+')');if(checkID){eval(begLayer+'id'+endLayer+styleLayerShow);}}
function hideItem(id){var form=window.document.forms[0];if((webtv)||(ns4)||(ie4))var checkID=eval(begLayer+'id'+']');else var checkID=eval(begLayer+'id'+')');if(checkID){eval(begLayer+'id'+endLayer+styleLayerHide);}}
function showSeller(id){var form=window.document.forms[0];var divRemoveSeller='divRemoveSeller'+id;var divSeller='divSeller'+id;var divAddSeller='divAddSeller'+id;if(ns4)var checkID=eval(begLayer+'divAddSeller'+']');else var checkID=eval(begLayer+'divAddSeller'+')');if(checkID){eval(begLayer+'divAddSeller'+endLayer+styleLayerHide);eval(begLayer+'divSeller'+endLayer+styleLayerShow);eval(begLayer+'divRemoveSeller'+endLayer+styleLayerShow);eval('form.b'+id+'_state.value=1');if(hasLayer("divTransientStatus"))
setContent("divTransientStatus"," ")
displayTotals();confirmAddr();isFinalBucket();}}
function hideSeller(id){var form=window.document.forms[0];var divRemoveSeller='divRemoveSeller'+id;var divSeller='divSeller'+id;var divAddSeller='divAddSeller'+id;if(ns4)var checkID=eval(begLayer+'divRemoveSeller'+']');else var checkID=eval(begLayer+'divRemoveSeller'+')');if(checkID){eval(begLayer+'divRemoveSeller'+endLayer+styleLayerHide);eval(begLayer+'divSeller'+endLayer+styleLayerHide);eval(begLayer+'divAddSeller'+endLayer+styleLayerShow);eval('form.b'+id+'_state.value=2');if(hasLayer("divTransientStatus"))
setContent("divTransientStatus"," ")
displayTotals();confirmAddr();isFinalBucket();}}
function countPD(){var form=window.document.forms[0];var dupSeller=new Array();var sellerCount=0;var uniqueSellers=0;var numBuckets=form.no_of_buckets.value;for(var b=1;b<=numBuckets;b++){var bucket=eval('form.b'+b+'_state.value');var noItems=eval('form.js_b'+b+'_NoItemSelected.value');var shipFee=eval('form.b'+b+'_shipping_fee');if(typeof(shipFee)!='undefined'){if(bucket=='1'&&noItems=='false'&&shipFee.type=='text'&&shipFee.value==''){dupSeller[sellerCount]=eval('form.b'+b+'_seller_id.value');sellerCount++;}}}
var unduped=new Object;for(var i=0;i<dupSeller.length;i++){unduped[dupSeller[i]]=dupSeller[i];}
var uniques=new Array;for(var k in unduped){uniques[uniques.length]=unduped[k];}
uniqueSellers=uniques.length;if(uniqueSellers==0){hideItem('divSellersPDOff');}
else if(uniqueSellers==1){pdText=uniqueSellers+' seller has';showItem('divSellersPDOff');if(hasLayer('divSellersPDOffCount'))
setContent('divSellersPDOffCount',pdText)}
else{pdText=uniqueSellers+' sellers have';showItem('divSellersPDOff');if(hasLayer('divSellersPDOffCount'))
setContent('divSellersPDOffCount',pdText)}}
function confirmAddr(){var form=window.document.forms[0];var numBuckets=form.no_of_buckets.value;for(var b=1;b<=numBuckets;b++){var bucket=eval('form.b'+b+'_state.value');var addrReq=eval('form.b'+b+'_requires_confirm_address.value');if(bucket!='1'&&addrReq=='true'){var hideAddrError=true;}
else if(bucket=='1'&&addrReq=='true'){var hideAddrError=false;}}
if(hideAddrError==true){hideItem('AddressError');}
else if(hideAddrError==false){showItem('AddressError');}}
function isFinalBucket(){var form=window.document.forms[0];var numBuckets=form.no_of_buckets.value;var collapsed=0;for(var b=1;b<=numBuckets;b++){var bucket=eval('form.b'+b+'_state.value');if(bucket=='2'||bucket=='0'){collapsed++;}
else if(bucket=='1'){var id='divRemoveSeller'+b;}}
var total=Number(numBuckets)-Number(collapsed);if(total==1){hideItem(id);}
else if(total>1){for(var b=1;b<=numBuckets;b++){var bucket=eval('form.b'+b+'_state.value');if(bucket=='1'){var id='divRemoveSeller'+b;showItem(id);}}}}
function isDHTML(){if(document.getElementById||document.all)return true;else return false;}

//2@@m6

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();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;}}}

//3@@m21

function EbayHTMLSelect(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLSelect";this.base=EbayHTMLFormElem;this.base(pParent,pName,pDisabled,pCfg);this.iSelIndex=-1;this.createOption=ebHTMLSelectCreateOption;this.clearOptions=ebHTMLSelectClearOptions;this.getValueByIndex=ebHTMLSelectGetValueByIndex;this.getSelectedIndex=ebHTMLSelectGetSelectedIndex;this.getSelectedValue=ebHTMLSelectGetSelectedValue;this.getSelectedText=ebHTMLSelectGetSelectedText;this.getOptionsLength=ebHTMLSelectGetOptionsLength;this.setOption=ebHTMLSelectSetOption;this.insertOption=ebHTMLSelectInsertOption;this.deleteOption=ebHTMLSelectDeleteOption;this.selectByIndex=ebHTMLSelectSelectByIndex;this.selectByValue=ebHTMLSelectSelectByValue;this.selectByText=ebHTMLSelectSelectByText;this.doSelect=ebHTMLSelectDoSelect;this.getIndexByValue=ebHTMLSelectGetIndexByValue;this.getValue=this.getSelectedValue;this.setValue=this.selectByValue;this.subscribeEvents("onchange");}
function ebHTMLSelectClearOptions()
{var e=this.eElem;if(e)
{var opts=e.options;while(opts.length>0)
opts[opts.length-1]=null;}}
function ebHTMLSelectCreateOption(pName,pText)
{if(this.eElem)
{var nOpt=new Option(pText,pName,false,false),opts,lo,oC=ebay.oGlobals.oClient;opts=this.eElem.options;opts[opts.length]=nOpt;idx=opts.length-1;return idx;}}
function ebHTMLSelectGetValueByIndex(pIdx,pTextOnly)
{if(pIdx>-1)
{opt=this.eElem.options[pIdx];if(opt)
return pTextOnly?opt.text:opt.value;}
this.throwError("Invalid index","get");return"";}
function ebHTMLSelectGetSelectedIndex()
{return this.eElem.selectedIndex;}
function ebHTMLSelectGetSelectedValue()
{return this.getValueByIndex(this.eElem.selectedIndex);}
function ebHTMLSelectGetSelectedText()
{return this.getValueByIndex(this.eElem.selectedIndex,true);}
function ebHTMLSelectGetOptionsLength()
{return this.eElem.options.length;}
function ebHTMLSelectSelectByIndex(pIndex)
{this.eElem.selectedIndex=this.iSelIndex=pIndex;}
function ebHTMLSelectDoSelect(pVal,pIsText)
{if(this.eElem)
{var e=this.eElem,o,rv=false,opts=e.options,len=opts.length;for(var i=0;i<len&&!rv;i++)
{o=opts[i];if(((pIsText||(o.value==""))&&(pVal==o.text))||(!pIsText&&(o.value==pVal)))
{e.selectedIndex=this.iSelIndex=i;rv=true;}}}
else
this.throwWarning("HTML element '"+this.name+"' not found","selectByValue");return rv;}
function ebHTMLSelectSelectByValue(pVal)
{return this.doSelect(pVal);}
function ebHTMLSelectSelectByText(pVal)
{return this.doSelect(pVal,true);}
function ebHTMLSelectSetOption(pVal,pText,pInd)
{if(this.eElem)
{if((pInd!=null)&&(pInd>-1))
{var o=this.eElem.options[pInd];o.value=pVal;o.text=pText;}
else
this.createOption(pVal,pText);}
else
this.throwWarning("HTML element '"+this.name+"' not found","selectByValue");}
function ebHTMLSelectInsertOption(pVal,pText,pInd)
{with(this)
{var e=eElem,opts=e.options,len=opts.length;var inOpt=new Array(pText,pVal),tmpOpt=new Array(2);var sel=getSelectedValue();len++;if(pInd>=len)
return;for(i=pInd;i<len;i++)
{if(i<len-1)
tmpOpt=[e.options[i].text,e.options[i].value];opts[i]=new Option(inOpt[0],inOpt[1]);inOpt=tmpOpt;}
selectByValue(sel);}}
function ebHTMLSelectDeleteOption(pInd)
{if(typeof(pInd)!='undefined')
{var opts=this.eElem.options;if(opts[pInd])
opts[pInd]=null;}}
function ebHTMLSelectGetIndexByValue(pVal,pIsText)
{var opts=this.eElem.options,len=opts.length,i=0;for(;i<len;i++)
{o=opts[i];if((o.value==pVal)||(pIsText&&(o.text==pVal)))
return i;}
return-1;}

//4@@m10

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;el.style.color=pEnable?"":"gray";}
this.enableBase(pEnable);}
function setEbayLink(pS)
{return true;}

//5@@m7

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=ebHTMLImageGetElem;this.source=ebHTMLImageSource;this.enableBase=this.enable;this.enable=ebHTMLImageEnable;this.subscribeEvents("onclick","onmouseover","onmouseout");}
function ebHTMLImageGetElem(pName)
{return this.getDocElem(pName,'images');}
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;}}

//6@@m10

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;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();}

//7@@m23

function EbayHTMLFrame(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayHTMLFrame";this.base=EbayHTML;this.base(pParent,pName,pName,false,pCfg);this.eFrameElem=null;this.getElem=ebHTMLFrameGetElem;this.bindHTML=ebHTMLFrameBindHTML;this.bindEvents=this.enable=function(){};this.setSource=ebHTMLFrameSetSource;this.cleanupMemoryBase=this.cleanupMemory;this.cleanupMemory=ebHTMLFrameCleanupMemory;this.resize=ebHTMLFrameResize;this.onBeforeResize=this.onAfterResize=null;}
function ebHTMLFrameGetElem(pName)
{with(this)
{var f=null,oD=oDocument;var d=oD.doc,w=oD.win;if(w.frames)
f=eFrameElem=w.frames[pName];if(d.getElementById)
f=d.getElementById(pName);return f;}}
function ebHTMLFrameBindHTML()
{with(this)
{eElem=getElem(sElemName);if(eElem)
assignJSObject(eElem);}}
function ebHTMLFrameCleanupMemory()
{this.cleanupMemoryBase();this.eFrameElem=null;}
function ebHTMLFrameSetSource(pURL)
{if(pURL==null||pURL.trim()==''){return;}
with(this)
{oDocument.setGlobalParent(this);if(pURL.has("ej2child=true"))
pURL+="&ej2parent="+name;if(eFrameElem)
eFrameElem.location.replace(pURL);else if(eElem)
eElem.src=pURL;}}
function ebHTMLFrameResize(pMaxWidth)
{with(this)
{if(onBeforeResize)
onBeforeResize();var f=eFrameElem;if(!f||!(f.document||f.contentDocument))
f=getElem(sElemName);if(f&&typeof(f.document)!="unknown")
{var oDoc=f.document?f.document:f.contentDocument,db=oDoc.body,es=eElem.style,c=this.parent.oGlobals.oClient,w="100%",h=db.offsetHeight,oh;if(c.bSafari)
{oh=db.offsetHeight;w=oDoc.width;h=ebay.oDocument.doc.doctype!=null?oDoc.height+15:oDoc.height+1;}
else if(c.bFirefox)
{w=oDoc.width;h=oDoc.height}
else if(c.bWin||c.bOpera)
{w=db.scrollWidth;h=c.bNav&&ebay.oDocument.doc.doctype!=null?db.scrollHeight+30:db.scrollHeight;}
if(pMaxWidth&&c.bFirefox)
w="100%";if(this.oConfig)
{w=this.oConfig.iWidth||w;h=this.oConfig.iHeight||h;}
es.width=(w=="100%")?w:w+"px";es.height=h+"px";if(onAfterResize)
onAfterResize();}}}

//8@@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;}}

//9@@m25

var scShowRates="";var OfferingServices=false;var numShippingMethods=3;var userShippingMethods=0;var _pF,_cF;if(!is.mac&&scParentPageName!="DescribeYourItem")
{if(_wO()&&(typeof(_wO().document)!="unknown"))
{if(_wO()&&!_wO().closed){if(typeof(parentFormName)!='undefined')
_pF=_wO().document.forms[parentFormName];else
{var _cF=new Object;s=0;var foundItem=0;while(_wO().document.forms[s]){var formElements=_wO().document.forms[s].elements;var fLength=formElements.length
for(i=0;i<fLength;i++)
if(formElements[i].name=="ShippingMethod1")
foundItem=1;if(foundItem)break;else s++;}
var fId=s;_pF=_wO().document.forms[fId];if(!_pF){if(_wO().document.forms[0].name=='headerSearch')
_pF=_wO().document.forms[1];else
_pF=_wO().document.forms[0];}}}}}
function CheckIfOfferingServices(){if(_wO()&&!_wO().closed){OfferingServices=true;return true;}
else return false;}
function changeSelect(){_cF=window.document.forms[0];if(_cF.destinationZipCode.value!="")
_cF.destinationCity.selectedIndex=0;}
function changeText(){_cF=window.document.forms[0];var index=_cF.destinationCity.selectedIndex;if(index>0)
_cF.destinationZipCode.value=_cF.destinationCity[index].value;}
function updateShippingMethods(pString){_cF=window.document.forms[0];var disableCheckbox=false;if((pString)&&(_cF[pString].checked==1))userShippingMethods++
else if((pString)&&(_cF[pString].checked!=1))userShippingMethods--;if(userShippingMethods==numShippingMethods)disableCheckbox=true;for(i=0;i<_cF.length;i++)
if((_cF[i].type=="checkbox")&&(!_cF[i].checked))
if(_cF[i].name.substring(0,6)=='method')
_cF[i].disabled=disableCheckbox;}
function populateCalculator()
{if(_wo&&!_wo.closed&&foundItem){_cF=window.document.forms[0];if(_pF.WeightRange&&_cF.WeightRange)_cF.WeightRange.value=_pF.WeightRange.value;if(_wo.startPrice&&_cF.price)_cF.price.value=_wo.startPrice;if(_pF.HigherUnitWeight&&_cF.HigherUnitWeight)_cF.HigherUnitWeight.value=_pF.HigherUnitWeight.value;if(_pF.LowerUnitWeight&&_cF.LowerUnitWeight)_cF.LowerUnitWeight.value=_pF.LowerUnitWeight.value;if(_pF.LengthDimension&&_cF.LengthDimension)_cF.LengthDimension.value=_pF.LengthDimension.value;if(_pF.WidthDimension&&_cF.WidthDimension)_cF.WidthDimension.value=_pF.WidthDimension.value;if(_pF.HeightDimension&&_cF.HeightDimension)_cF.HeightDimension.value=_pF.HeightDimension.value;if(_pF.PackageSize&&_cF.PackageSize)_cF.PackageSize.value=_pF.PackageSize.value;if(_pF.OddShapedPackage&&_cF.OddShapedPackage){if(_pF.OddShapedPackage.checked)_cF.OddShapedPackage.checked=1
else _cF.OddShapedPackage.checked=0;}
if(_pF.OriginatingZip&&_cF.OriginatingZip){_cF.OriginatingZip.value=_pF.OriginatingZip.value;if(document.getElementById('divReadOnly_originZipCode')){document.getElementById('divReadOnly_originZipCode').innerHTML="<font face=\"Arial, Helvetica, sans-serif\" size=\"2\">"+_pF.OriginatingZip.value+"</font> <font face=\"Arial, Helvetica, sans-serif\" size=\"2\"><a href=\"javascript:ToggleOriginZipCode()\">Change</a></font>";}}
else if(_wo.scOZ&&_cF.OriginatingZip){_cF.OriginatingZip.value=_wo.scOZ.elems.OriginatingZip.value;document.getElementById('divReadOnly_originZipCode').innerHTML="<font face=\"Arial, Helvetica, sans-serif\" size=\"2\">"+_wo.scOZ.elems.OriginatingZip.value+"</font> <font face=\"Arial, Helvetica, sans-serif\" size=\"2\"><a href=\"javascript:ToggleOriginZipCode()\">Change</a></font>";}
if(_pF.HandlingFee&&_cF.PackHandlingFee&&_cF.nextMode.value=="2"){_cF.PackHandlingFee.value=_pF.HandlingFee.value;document.getElementById('divReadOnly_packageHandlingFee').innerHTML="<font face=\"Arial, Helvetica, sans-serif\" size=\"2\">"+_pF.HandlingFee.value+"</font>?<font face=\"Arial, Helvetica, sans-serif\" size=\"2\"><a href=\"javascript:TogglePackageHandlingFee()\">Change</a></font>";}
else if(_wo.scPHF&&_cF.HandlingFee){_cF.HandlingFee.value=_wo.scPHF.elems.HandlingFee.value;document.getElementById('divReadOnly_packageHandlingFee').innerHTML="<font face=\"Arial, Helvetica, sans-serif\" size=\"2\">"+_wo.scPHF.elems.HandlingFee.value+"</font>?<font face=\"Arial, Helvetica, sans-serif\" size=\"2\"><a href=\"javascript:TogglePackageHandlingFee()\">Change</a></font>";}
var listMethods=":"
for(m=1;m<=numShippingMethods;m++){var fieldName='ShippingMethod'+m;if((_pF[fieldName])&&(_pF[fieldName].type!='hidden')){if((_pF[fieldName].value!=-1)||(_pF[fieldName].value!="")){var method=_cF['method'+_pF[fieldName].value];if(method){method.checked=1;if(listMethods.indexOf(":"+_pF[fieldName].value)==-1)listMethods+=_pF[fieldName].value+":";}}}}
var s=listMethods.split(":");userShippingMethods=s.length-2;updateShippingMethods();}}
function manageDimentions()
{if(_wO().manageDimentions)
_wO().manageDimentions();}
function OfferServices(pPage)
{if(userShippingMethods<=0)
return;var oP=ebay.oDocument.oPage;if(oP.bSYI3Flow)
{oP.offerServicesDYI();return;}
var _wo=_wO();_cF=window.document.forms[0];if(_wo&&!_wo.closed&&_pF)
{if(_pF.HigherUnitWeight&&_cF.HigherUnitWeight)
_pF.HigherUnitWeight.value=_cF.HigherUnitWeight.value;if(_pF.LowerUnitWeight&&_cF.LowerUnitWeight)
_pF.LowerUnitWeight.value=_cF.LowerUnitWeight.value;if(_pF.PackageSize&&_cF.PackageSize)
{_pF.PackageSize.value=_cF.PackageSize.value;_pF.PackageSize.onchange();manageDimentions();}
if(_pF.WeightRange&&_cF.WeightRange)
{_pF.WeightRange.value=_cF.WeightRange.value;if(_pF.WeightRange.onchange)
_pF.WeightRange.onchange();}
if(_cF.HigherUnitWeight&&_cF.LowerUnitWeight&&(_cF.HigherUnitWeight.value!=''||_cF.LowerUnitWeight.value!=''))
{if(_wo.scCustomWeights)
{_wo.scCustomWeights.isMax=false;_wo.scCustomWeights.onChange();if(_pF.HigherUnitWeight)_pF.HigherUnitWeight.value=_cF.HigherUnitWeight.value;if(_pF.LowerUnitWeight)_pF.LowerUnitWeight.value=_cF.LowerUnitWeight.value;}}
if(_pF.OddShapedPackage&&_cF.OddShapedPackage)
{_pF.OddShapedPackage.checked=_cF.OddShapedPackage.checked;}
if(_pF.OriginatingZip&&_cF.OriginatingZip)
{_pF.OriginatingZip.value=_cF.OriginatingZip.value;}
else if(_wo.scOZ)
{if(_wo.scOZ.elems.OriginatingZip&&_cF.OriginatingZip)
{_wo.scOZ.elems.OriginatingZip.value=_cF.OriginatingZip.value;}}
if(_wo.scOZ&&_cF.OriginatingZip)
{var tmp=_wo.scOZ;tmp.isMax=true;tmp.minHTML=_cF.OriginatingZip.value+'&#160;<a href=\'#\' name=\'OriginatingZipLink\'></a>';tmp.maxHTML='<input type="text" name="OriginatingZip" value="'+_cF.OriginatingZip.value+'" size="5" maxlength="5"><div><font face="arial,sans-serif" size="-1" color="#666666">US Only</font></div>';tmp.onChange();}
if(_pF.HandlingFee&&_cF.HandlingFee)
{_pF.HandlingFee.value=_cF.HandlingFee.value;}
else if(_wo.scPHF)
{if(_wo.scPHF.elems.HandlingFee&&_cF.HandlingFee)
{_wo.scPHF.elems.HandlingFee.value=_cF.HandlingFee.value;}}
if(_wo.scPHF&&(_cF.HandlingFee||_cF.PackHandlingFee))
{var tmp=_wo.scPHF;var val=(_cF.HandlingFee)?_cF.HandlingFee.value:_cF.PackHandlingFee.value;tmp.isMax=true;tmp.minHTML='$'+val+'&#160;<a href=\'#\' name=\'PackHandlingFeeLink\'></a>';tmp.maxHTML='<font face="arial,sans-serif" size="-1">$ </font><input type="text" name="HandlingFee" value="'+val+'" size="5"><font face="arial,sans-serif" size="-1"> </font><div><font face="arial,sans-serif" size="-1" color="#666666">This will not be shown to buyers, but</font></div><div><font face="arial,sans-serif" size="-1" color="#666666">will be included in your shipping total.</font></div>';tmp.onChange();}
var methodOfShipping;if(scShowRates=="international"&&pPage=="SyiPayment")
methodOfShipping="IntlShippingMethod";else
methodOfShipping="ShippingMethod";for(m=1;m<=numShippingMethods;m++)
{if(_pF[methodOfShipping+m]&&_pF[methodOfShipping+m].type!='hidden')
{_pF[methodOfShipping+m].options[0].selected=1;var tmp='ShippingAndHandling';if(scShowRates=="international")
tmp='IntlShippingAndHandling';if(_pF[tmp+m])
_pF[tmp+m].value='';}}
var j=1;for(i=0;i<_cF.length&&j<=numShippingMethods;i++)
{if((_cF[i].type=="checkbox")&&(_cF[i].checked))
if(_cF[i].name.substring(0,6)=='method'){var fieldName=methodOfShipping+j;if((_pF[fieldName]&&_pF[fieldName].type=='hidden')||(!_pF[fieldName])){nMethod=j;if(j==1)nMethod='';var tmp='scSS'+j;if(scShowRates=="international")
tmp=(_wo.scIsFlatRateTab)?'scSS'+j+'IntlFF':'scSS'+j+'Intl';else
tmp=(_wo.scIsFlatRateTab)?'scSS'+j+'FF':'scSS'+j;if(_wo[tmp])
_wo[tmp].onChange();}
if(_pF[fieldName])
{var arrayLength=_pF[fieldName].length;for(k=0;k<arrayLength;k++){if(_pF[fieldName].options[k].value==_cF[i].name.substring(6))
_pF[fieldName].options[k].selected=1;}
tmp='ShippingAndHandling';if(scShowRates=="international"&&pPage=="SyiPayment")
tmp='IntlShippingAndHandling';if(_pF[tmp+j])
_pF[tmp+j].value=_cF['ShippingAndHandling'+_cF[i].name.substring(6)].value;j++;}}}
if(_wo.populateShippingServices)
_wo.populateShippingServices(fId);if(_wo.calculatetotal&&_pF.ShippingAndHandling1&&_pF.insurancefee&&_pF.salesdiscount)
_wo.calculatetotal(_pF.ShippingAndHandling1,_pF.insurancefee,_pF.salesdiscount);manageDimentions();if(_pF.LengthDimension&&_cF.LengthDimension)
_pF.LengthDimension.value=_cF.LengthDimension.value;if(_pF.WidthDimension&&_cF.WidthDimension)
_pF.WidthDimension.value=_cF.WidthDimension.value;if(_pF.HeightDimension&&_cF.HeightDimension)
_pF.HeightDimension.value=_cF.HeightDimension.value;}}
function TogglePackageHandlingFee()
{hideItem('divReadOnly_packageHandlingFee');showItem('divEdit_packageHandlingFee');}
function ToggleOriginZipCode()
{hideItem('divReadOnly_originZipCode');showItem('divEdit_originZipCode');}
function _wO()
{return window.opener;}
function changeDomesticDestText(){_cF=window.document.forms[0];var index=_cF.DomesticDestinationDropDown.selectedIndex;if(index>0){_cF.DomesticDestinationZipCode.value=_cF.DomesticDestinationDropDown[index].value;}}
function changeDomesticDestSelect(){_cF=window.document.forms[0];if(_cF.DomesticDestinationZipCode.value!=""){_cF.DomesticDestinationDropDown.selectedIndex=0;}}
function submitToSuccessPage(){if(userShippingMethods<=0)
return;_cF=window.document.forms[0];_cF.nextMode.value=successPageMode;_cF.submit();}
function isWinIE()
{return((scParentPageName=="DescribeYourItem")||((is.ie||is.firefox)&&!is.mac));}

//10@@m3

ebay.oDocument.oPage.bSYI3Flow=scParentPageName=="DescribeYourItem";ebay.oDocument.oPage.onBeforeLoad=function()
{var oConfig=this.oDocument.getConfig("Selling.Describe.ShippingCalculatorFedExInteg");if(oConfig){new EbayHTMLShippingCalculator(this,"Shipping_Calculator",oConfig);}
var c=this.oWeightCfg=this.parent.getConfig("ResearchRates.Weight");if(c&&this.bSYI3Flow)
{var oLnk=new EbayHTMLAnchor(this,c.sSwitchLink);oLnk.bMetricMode=true;oLnk.onclick=function()
{var p=this.parent,c=p.oWeightCfg,b=this.bMetricMode,oSel=p.controls[c.sEstWeightSel],oImg=p.controls[c.sGraphicName],oH=p.controls[c.sMeasureUnitField];this.setText(!b?c.sImperialText:c.sMetricText);oSel.enable(!b);if(b)
oSel.selectByValue('0');else
oSel.selectByIndex(0);showWeightFields(oSel.eElem);oImg.source(b?c.sImpImgSrc:c.sMetricImgSrc);oH.setValue(b?c.sImperialVal:c.sMetricVal);for(var i=0,l=c.aWeightLabelDivs.length;i<l;i++)
{var oL=p.controls[c.aWeightLabelDivs[i]];oL.setText(b?c.aImpWeightText[i]:c.aMetricWeightText[i]);}
for(var i=0,l=c.aDimLabelDivs.length;i<l;i++)
{var oL=p.controls[c.aDimLabelDivs[i]];oL.setText(b?c.sImpDimText:c.sMetricDimText);}
oLnk.bMetricMode=!b;}
var oSel=new EbayHTMLSelect(this,c.sEstWeightSel);oSel.onchange=function()
{showWeightFields(this.eElem);}
new EbayHTMLImage(this,c.sGraphicName);new EbayHTMLText(this,c.sMeasureUnitField);for(var i=0,l=c.aWeightLabelDivs.length;i<l;i++)
new EbayHTMLLayer(this,c.aWeightLabelDivs[i]);for(var i=0,l=c.aDimLabelDivs.length;i<l;i++)
new EbayHTMLLayer(this,c.aDimLabelDivs[i]);var oF=new EbayHTMLForm(this,c.sFormName);oF.onsubmit=function()
{var p=this.parent,oSel=p.controls[p.oWeightCfg.sEstWeightSel];if(oSel)
oSel.enable(true);}}}
ebay.oDocument.oPage.onAfterLoad=function()
{var c=this.parent.getConfig("ResearchRates.Weight");if(c&&this.bSYI3Flow)
{var ctls=this.controls,oSel=ctls[c.sEstWeightSel],v=ctls[c.sMeasureUnitField].getValue(),link=ctls[c.sSwitchLink],b=v==c.sMetricVal;if(link&&link.eElem)
{link.setText(b?c.sImperialText:c.sMetricText);oSel.enable(b);link.bMetricMode=b;}}}
ebay.oDocument.oPage.offerServicesDYI=function()
{var c=this.parent.getConfig("ResearchRates.OfferService");if(c)
{var aPosts=c.aPostFields,shipFields=scShowRates=="domestic"?c.sDYIDomShipFields:c.sDYIIntlShipFields,shipFees=scShowRates=="domestic"?c.sDYIDomShipFee:c.sDYIIntlShipFee,oF=document.forms[c.sFormName],elems=oF.elements,len=elems.length,s='';for(var i in aPosts)
{var e=elems[i];if(e&&e.value)
{if(s&&s.length>0)
s+=',';s+=aPosts[i]+':'+e.value}}
for(var i=0,j=1;i<len&&j<=numShippingMethods;i++)
{var cb=elems[i];if(cb.type=='checkbox'&&cb.checked&&cb.name.substring(0,6)==c.sShipFieldPrefix)
{var sv=cb.name.substring(6);if(s&&s.length>0)
s+=',';s+=(shipFields+j)+':'+sv+',';s+=(shipFees+j)+':'+elems[c.sShipFeePrefix+sv].value;j++;}}
if(j<=numShippingMethods)
{for(var i=j;i<=numShippingMethods;i++)
{s+=',';s+=(shipFields+i)+':0,';s+=(shipFees+i)+':""';}}
var ifUrl=c.sDYICallBackUrl;if(ifUrl)
{ifUrl+='&showRates='+scShowRates;ifUrl+='&aData=({'+s+'})';var oFrame=document.createElement('iframe');oFrame.name='callBackIF';oFrame.id='callBackIF';var oFrag=document.getElementsByTagName("body")||document.getElementsByTagName("head");oFrag[0].appendChild(oFrame);var oCallBackIF=new EbayHTMLFrame(this,'callBackIF');oCallBackIF.bind();oCallBackIF.setSource(ifUrl);}}}
if(ebay.oDocument.oPage.bSYI3Flow)
{submitToSuccessPage=function(){}}

//11@@m1

function EbayHTMLShippingCalculator(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EBayShippingCalculator";this.base=EbayBaseControl;this.base(pParent,pName);this.oConfig=pCfg;this.init=function()
{with(this)
{var oUPSDivArr=oConfig.aUPSDiv;var oFEDExDivArr=oConfig.aFedExDiv;var oUPSMainDiv=new EbayHTMLLayer(this,oConfig.sUPSMainDiv);var oFedExMainDiv=new EbayHTMLLayer(this,oConfig.sFedExMainDiv);var sClassName=oConfig.aClassName;var oUpslnk=new EbayHTMLAnchor(this,oConfig.sUPSlinkDiv);oUpslnk.onclick=function()
{for(i=0;i<oUPSDivArr.length;i++)
{var oUPSDiv=new EbayHTMLLayer(this,oUPSDivArr[i]);oUPSDiv.bind();oUPSDiv.show(true);oUPSMainDiv.setClass(sClassName[0]);}
for(i=0;i<oFEDExDivArr.length;i++)
{var oFedExDiv=new EbayHTMLLayer(this,oFEDExDivArr[i]);oFedExDiv.bind();oFedExDiv.show(false);oFedExMainDiv.setClass(sClassName[1]);}}
var Fedlnk=new EbayHTMLAnchor(this,oConfig.sFedlinkDiv);Fedlnk.onclick=function()
{for(i=0;i<oUPSDivArr.length;i++)
{var oUPSDiv=new EbayHTMLLayer(this,oUPSDivArr[i]);oUPSDiv.bind();oUPSDiv.show(false);oUPSMainDiv.setClass(sClassName[1]);}
for(i=0;i<oFEDExDivArr.length;i++)
{var oFedExDiv=new EbayHTMLLayer(this,oFEDExDivArr[i]);oFedExDiv.bind();oFedExDiv.show(true);oFedExMainDiv.setClass(sClassName[0]);}}}}
this.init();}
// b=5669671 -->
