//<!--
// \include\js\util\attributes.js@@\main\17 

attr_useragent=navigator.userAgent.toLowerCase();attr_webtv=(attr_useragent.indexOf("webtv")!=-1);attr_opera=(attr_useragent.indexOf("opera")!=-1);attr_net60=(attr_useragent.indexOf("netscape6/6.0")!=-1);attr_net40=(attr_useragent.indexOf("4.7")!=-1);function attr_init(widgetname){var values=attr_get_values(widgetname);if(!values){attr_disable_children(widgetname);return;}
for(var i=0;i<values.length;i++){if(values[i]==null||values[i]==""||values[i].indexOf("-")>-1){attr_disable_children(widgetname);}else{var children=attr_dependencies[widgetname].children;for(var j=0;j<children.length;j++){attr_set_values(children[j]);attr_init(children[j]);}}}}
function attr_reset_pf(){var theform=document.forms[attr_formname];for(var i=0;i<theform.elements.length;i++){if(theform.elements[i].type.indexOf("select")>=0){attr_reset_select(theform.elements[i]);}}}
function attr_reset_select(theselect){for(var i=0;i<theselect.options.length;i++){var opt=theselect.options[i];if(opt.defaultSelected){opt.selected=true;}}}
function createButtonLoad(){document.write("<input type='hidden' name='ActionAttributeLoad'>");}
function array_equals(a,b){if(a.length&&b.length){if(a.length!=b.length)return false;for(var i=0;i<a.length;i++){if(a[i]!=b[i])return false;}
return true;}else{return(a==b);}}
function array_intersect(array1,array2){if(array1==null||array2==null)return null;var numvalues=0;for(var i=0;i<array1.length;i++){for(var j=0;j<array2.length;j++){if(array1[i]==array2[j]){numvalues++;break;}}}
if(numvalues==0)return null;var newarray=new Array(numvalues);var tmpindex=0;for(var i=0;i<array1.length;i++){for(var j=0;j<array2.length;j++){if(array1[i]==array2[j]){newarray[tmpindex++]=array1[i];break;}}}
return newarray;}
function array_merge(array1,array2){if(array1==null)return array2;if(array2==null)return array1;var newarray=new Array();for(var i=0;i<array1.length;i++){newarray[newarray.length]=array1[i];}
var testval="";var isNew=0;for(var i=0;i<array2.length;i++){testval=array2[i][1];isNew=0;for(var j=0;j<array1.length;j++){if(testval==array1[j][1]){isNew=1;}}
if(isNew==0){newarray[newarray.length]=array2[i];}}
return newarray;}
function array_minus(array1,array2){if(array1==null||array1.length==0)return null;if(array2==null)return array1;var numvalues=0;var flag=0;for(var i=0;i<array1.length;i++){flag=0;for(var j=0;j<array2.length;j++){if(array1[i]==array2[j])flag++;}
if(flag==0)numvalues++;}
if(numvalues==0)return null;var newarray=new Array(numvalues);var tmpindex=0;for(var i=0;i<array1.length;i++){flag=0;for(var j=0;j<array2.length;j++){if(array1[i]==array2[j])flag++;}
if(flag==0)newarray[tmpindex++]=array1[i];}
return newarray;}
function attr_get_widget(widgetname){return document.forms[attr_formname][widgetname];}
function attr_get_values(widgetname){var widget=attr_get_widget(widgetname);if(!widget)return null;if(widget.type!='select-one'&&widget.type!='select-multiple'&&!widget.length){if(widget.value!=null){if(widget.type=="checkbox"){if(widget.checked){return new Array(widget.value);}else{return null;}}else{return new Array(widget.value);}}else{return null;}}
var numvalues=0;var len=(widget.options)?widget.options.length:widget.length;for(var i=0;i<len;i++){if(widget.options){if(widget.options[i].selected)numvalues++;}else{if(widget[i].checked)numvalues++;}}
if(numvalues==0){return null;}else{selectedvalues=new Array(numvalues);var tmpindex=0;for(var i=0;i<len;i++){if(widget.options){if(widget.options[i].selected)selectedvalues[tmpindex++]=widget.options[i].value;}else{if(widget[i].checked)selectedvalues[tmpindex++]=widget[i].value;}}}
return selectedvalues;}
function attr_set_values(widgetname){var current=attr_dependencies[widgetname];var parents=attr_dependencies[widgetname].parents;var childvalues=null;var tmpparentvalues=null;for(var i=0;i<parents.length;i++){tmpparentvalues=attr_get_values(parents[i]);if(tmpparentvalues!=null){var attr_widget_obj=attr_dependencies[parents[i]][widgetname];if(attr_widget_obj!=null){for(var j=0;j<tmpparentvalues.length;j++){childvalues=array_merge(childvalues,attr_dependencies[parents[i]][widgetname]["v"+tmpparentvalues[j]]);}}}}
if(childvalues!=null){var widget=attr_get_widget(widgetname);widget.disabled=false;widget.className="fieldenabled";if(widget.type.indexOf('select')>=0){widget.options.length=0;var hasDefaults=false;for(var i=0;i<childvalues.length;i++){widget.options[i]=new Option(childvalues[i][0],childvalues[i][1]);if(childvalues[i][2]){widget.options[i].selected=true;hasDefaults=true;}}
if(!hasDefaults){widget.options[0].selected=true;}}else{widget.value=childvalues[0][1];}}else{attr_disable(widgetname);attr_disable_children(widgetname);}}
function attr_disable_children(widgetname){var children=attr_dependencies[widgetname].children;for(var i=0;i<children.length;i++){attr_disable(children[i]);}
for(var i=0;i<children.length;i++){attr_disable_children(children[i]);}}
function attr_disable(widgetname){var widget=attr_get_widget(widgetname);if(!widget){return;};if(widget.type=="hidden"){widget.value="";return;}
if(!widget.options)return;if(widget.size>1||(!document.getElementById||document.all))widget.options.length=1;widget.options[0]=new Option(attr_dependencies[widgetname].disabledlabel,"-10");widget.options[1]=new Option(attr_dependencies[widgetname].disabledlabel,"-10",true,true);widget.options[0].selected=true;widget.options[1].selected=false;if(!attr_net60){widget.disabled=true;widget.className="fielddisabled";}
return;}
function attr_clear_children(widgetname){var children=attr_dependencies[widgetname].children;for(var i=0;i<children.length;i++){attr_clear(children[i]);}
for(var i=0;i<children.length;i++){attr_clear_children(children[i]);}}
function attr_clear(widgetname){widget=attr_get_widget(widgetname);if(attr_net40&&widget.type.indexOf('select')>=0){widget.options[widget.selectedIndex].value="-10";}else{widget.value="";}}
function attr_onchange(widgetname){if(attr_webtv)attr_submit();if(typeof(attr_dependencies)!="undefined"){var current=attr_dependencies[widgetname];if(current!=null){if(current.vvp.length>0){var widgetvvpvalues=array_intersect(attr_get_values(widgetname),current.vvp);var newvvpvalues=array_minus(widgetvvpvalues,current.vvpselected);var lostvvpvalues=array_minus(current.vvpselected,widgetvvpvalues);if(newvvpvalues!=null||lostvvpvalues!=null){attr_clear_children(widgetname);attr_submit();return;}}
var children=current.children;for(var i=0;i<children.length;i++){attr_set_values(children[i]);}
for(var i=0;i<children.length;i++){attr_onchange(children[i]);}}}}
function attr_submit(){var theform=document.forms[attr_formname];for(var i=0;i<theform.length;i++){if(theform.elements[i].name=="aus_form_changed")theform.elements[i].value=1;}
if(typeof(theform.ButtonBack)!="undefined")
{theform.ButtonBack.value="";}
theform.ButtonLoad.value=1;theform.submit();}
function SetAttrValues(search_form){var pf=document.product_finder;var sf=eval("document."+search_form);if(pf.combinetmp){if(pf.combinetmp.checked){pf.combine.value="Y";pf.satitle.value=sf.query.value;if(sf.sotextsearched!=null){if(sf.sotextsearched.checked){pf.sotextsearched.value="2";}
else{pf.sotextsearched.value="";}}}
else{pf.combine.value="N";pf.satitle.value="";pf.sotextsearched.value="";}}}

// \include\js\util\compare.js@@\main\10 

var coKeepValues="";var coBeforeBucks="";var coTotalSelected=0;var coCurSelected=0;var coMaxLimit,coTotalSelected;var coDomain=null;if(!coMaxLimit){coMaxLimit=50;}
function coGetDomain(){var domLoc=coCookieArr[0].indexOf("domain=");if(domLoc!=-1){var endLoc=coCookieArr[0].indexOf("~",domLoc);if(endLoc==-1){endLoc=coCookieArr[0].indexOf("$",domLoc);}
if(endLoc==-1){endLoc=coCookieArr[0].length;}
var newDom=coCookieArr[0].substring(domLoc+7,endLoc);if(newDom!=''){coDomain=newDom;}}}
function coSaveBTL(){var coBTLStart=coCookieArr[0].indexOf("BTL=");if(coBTLStart!=-1){coCookieArr[0]=coCookieArr[0].substring(0,coBTLStart+4)+escape(document.location)+coCookieArr[0].substring(coCookieArr[0].indexOf("~",coBTLStart));coSetStoredItemList();}else{coCookieArr[0]="BTL="+escape(document.location)+"~"+coCookieArr[0];coSetStoredItemList();}}
function getCookieArr(){var x=new EbayCookie("ebay",null,null,"/",null,null,true);x.read();TmpCookie=x.getCookielet("compare-items");x=null;if(TmpCookie==""){arrOut=new Array("","");}else{arrOut=TmpCookie.split("$");}
if(arrOut.length<2){arrOut[1]="";}
return arrOut;}
function coAddToCookie(thisValue){if(coCookieArr[1].indexOf(thisValue)==-1){coCookieArr[1]=coCookieArr[1]+"|"+thisValue;coSetStoredItemList();return true;}
return false;}
function coRemoveFromCookie(thisValue){curLoc=coCookieArr[1].indexOf(thisValue);if(curLoc<0){return false;}
if(curLoc>0){coCookieArr[1]=coCookieArr[1].substring(0,curLoc-1)+coCookieArr[1].substring(curLoc+thisValue.length);}else if(curLoc==0){coCookieArr[1]=coCookieArr[1].substring(thisValue.length);}
coSetStoredItemList();return true;}
function coOnLoad(thisForm){var cookie=ebGetKeyValuePairArray(coCookieArr[0],"~","=");if(typeof(cookie)!="undefined")
{if(typeof(cookie["use"])!="undefined")
{coCookieArr[1]="";cookie=ebRemoveFromKeyValuePairs(cookie,"~","=","use");coCookieArr[0]=ebBuildKeyValuePairString(cookie,"~","=");var CookieVal=coCookieArr[0]+"$"+coCookieArr[1];var x=new EbayCookie("ebay",null,coDomain,"/",null,null,true);x.read();x.addCookielet("compare-items",CookieVal);x.set();x=null;}}
coGetDomain();var cbName1,cbName2;if(thisForm){var arrCoItems=coGetStoredItemList();var arrBoxNames=new Array("LineID","coitem");for(var i=0;i<arrCoItems.length;i++){for(var q=0;q<arrBoxNames.length;q++){var isHere=false;var thisBoxName=arrBoxNames[q];if(thisForm.elements[thisBoxName]){if(thisForm.elements[thisBoxName].length){for(var j=0;j<thisForm.elements[thisBoxName].length;j++){if(thisForm.elements[thisBoxName][j].value==arrCoItems[i]){thisForm.elements[thisBoxName][j].checked=true;isHere=true;}}}else{if(thisForm.elements[thisBoxName].value==arrCoItems[i]&&thisForm.elements[thisBoxName].type=="checkbox"){thisForm.elements[thisBoxName].checked=true;isHere=true;}}}}
if(!isHere){coKeepValues+=arrCoItems[i]+"|";}else{coCurSelected++;}
if(arrCoItems[i]!=''){coTotalSelected++;}}
if(document.all||document.getElementById){coUpdatePrevSelText();coChangeDisplay();}}}
function compareLimitTest(thisCheckbox){if(thisCheckbox.checked){if(coTotalSelected+1>coMaxLimit){coAlertMax();thisCheckbox.checked=false;return false;}else{if(coAddToCookie(thisCheckbox.value)==true){coTotalSelected++;coCurSelected++;coChangeDisplay();}}}else{if(coRemoveFromCookie(thisCheckbox.value)==true){coTotalSelected=coTotalSelected-1;coCurSelected=coCurSelected-1;coChangeDisplay();}}}
function coChangeDisplay(){var ID="compareDContent";newStr=coCurSelText();newStr+=coPrevSelectedText;if(document.getElementById&&document.getElementById(ID)){document.getElementById(ID).innerHTML=newStr;}else if(document.all&&document.all[ID]){document.all[ID].innerHTML=newStr;}}
function coGetStoredItemList(){var cookieList=getCookieArr();return cookieList[1].split("|");}
function coSetStoredItemList(){var CookieVal=coCookieArr[0]+"$"+coCookieArr[1];var x=new EbayCookie("ebay",null,coDomain,"/",null,null,true);x.read();x.addCookielet("compare-items",CookieVal);x.set();x=null;}
var siMaxLimit=12;function EbayItemPicker(pForm)
{this.thisForm=pForm;this.maxLimit=siMaxLimit;this.init=function()
{with(this)
{cleanCookieForItemPicker();bindCheckboxes();preSelectCheckboxes();}}
this.cleanCookieForItemPicker=function()
{var cookie=this.getKeyValuePairArray(coCookieArr[0],"~","=");if(typeof(cookie)!="undefined")
{if(typeof(cookie["use"])=="undefined")
{coCookieArr[1]="";this.addToKeyValuePairs(cookie,"use","I");coCookieArr[0]=this.buildKeyValuePairString(cookie,"~","=");var CookieVal=coCookieArr[0]+"$"+coCookieArr[1];var x=new EbayCookie("ebay",null,coDomain,"/",null,null,true);x.read();x.addCookielet("compare-items",CookieVal);x.set();x=null;}}}
this.bindCheckboxes=function()
{with(this)
{var checkboxes=document.getElementsByName("itemPicker");var cbLen=checkboxes.length;for(var i=0;i<cbLen;i++)
{checkboxes[i].onclick=siProcessItem;}}}
this.preSelectCheckboxes=function()
{with(this)
{coGetDomain();var cbName1;var cbName2;if(thisForm)
{var arrCoItems=coGetStoredItemList();var arrBoxNames=new Array("itemPicker");for(var i=0;i<arrCoItems.length;i++)
{for(var q=0;q<arrBoxNames.length;q++)
{var isHere=false;var thisBoxName=arrBoxNames[q];if(thisForm.elements[thisBoxName])
{if(thisForm.elements[thisBoxName].length)
{for(var j=0;j<thisForm.elements[thisBoxName].length;j++)
{if(thisForm.elements[thisBoxName][j].value==arrCoItems[i])
{thisForm.elements[thisBoxName][j].checked=true;isHere=true;}}}
else
{if(thisForm.elements[thisBoxName].value==arrCoItems[i]&&thisForm.elements[thisBoxName].type=="checkbox")
{thisForm.elements[thisBoxName].checked=true;isHere=true;}}}}
if(!isHere)
{coKeepValues+=arrCoItems[i]+"|";}
else
{coCurSelected++;}
if(arrCoItems[i]!='')
{coTotalSelected++;}}}}}
this.siProcessItem=function()
{with(this)
{if(checked)
{if(coTotalSelected+1>siMaxLimit)
{siAlertMax();checked=false;return false;}
else
{if(coAddToCookie(value)==true)
{coTotalSelected++;coCurSelected++;}}}
else
{if(coRemoveFromCookie(value)==true)
{coTotalSelected=coTotalSelected-1;coCurSelected=coCurSelected-1;}}}}
this.addToKeyValuePairs=ebAddToKeyValuePairs;this.removeFromKeyValuePairs=ebRemoveFromKeyValuePairs;this.getKeyValuePairArray=ebGetKeyValuePairArray;this.buildKeyValuePairString=ebBuildKeyValuePairString;with(this)
{init();}}
function siOnLoad(thisForm)
{var ebItemPicker=new EbayItemPicker(thisForm);doFindingFormSubmit=function(){};}
function ebAddToKeyValuePairs(pArray,pKey,pValue)
{pArray[pKey]=pValue;}
function ebBuildKeyValuePairString(pArray,pDel1,pDel2)
{var str="";for(var i in pArray)
{str+=pDel1+i+pDel2+pArray[i];}
str+=pDel1;return str;}
function ebRemoveFromKeyValuePairs(pArray,pDel1,pDel2,pRemove)
{var str="";for(var i in pArray)
{if(i!=pRemove)
{str+=pDel1+i+pDel2+pArray[i];}}
str+=pDel1;return ebGetKeyValuePairArray(str,pDel1,pDel2);}
function ebGetKeyValuePairArray(pParsable,pDel1,pDel2)
{var kvp=pParsable;var kvp_array=new Array();while(kvp.indexOf(pDel1)!=-1)
{var outterdel=kvp.indexOf(pDel1);var innerdel=kvp.indexOf(pDel2);if(outterdel>innerdel)
{var key=kvp.substring(0,innerdel);var value=kvp.substring(innerdel+1,outterdel);if(key!="")
{kvp_array[key]=value;}}
kvp=kvp.substring(outterdel+1);}
if(kvp!="")
{var innerdel=kvp.indexOf(pDel2);var key=kvp.substring(0,innerdel);var value=kvp.substring(innerdel+1);if(key!="")
{kvp_array[key]=value;}
kvp="";}
return kvp_array;}
var coCookieArr=getCookieArr();

// \include\js\popout\promo_popout_mediaplex.js@@\main\27 

var bPopUpWindow=true,winPopped=false;var platform=navigator.platform.toLowerCase();var surveyCookie="surveySays";var surveyValue="shown";var surveyTempPopupFile="popout/temp_survey_popup.html";function eBayIsIE4()
{var agent=navigator.userAgent.toLowerCase();var is_ie=(agent.indexOf("msie")!=-1);var minor=is_ie?parseFloat(agent.substring(agent.indexOf('msie')+5)):parseFloat(navigator.appVersion);var isie4=parseInt(minor)==4;return isie4;}
function setPopOutSwitch(bOnOrOff,myfunction)
{bPopUpWindow=bOnOrOff;}
function popupWindow(mypage,target,w,h,scroll,no,pLeft,pTop,params){if(target=="_self")
return false;LeftPosition=(screen.width)?(screen.width-w)/2:0;TopPosition=(screen.height)?(screen.height-h)/2:0;if(pLeft)
LeftPosition=pLeft;if(pTop)
TopPosition=pTop;settings='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable='+no+'';top.win=window.open(mypage,target,settings+","+params);winPopped=true;return false;}
function checkHome(){var valueOfCheckHome=false;var agt=navigator.userAgent.toLowerCase();var myopera=(agt.indexOf("opera")!=-1);if(eBayIsIE4())
{return false;}
if(!myopera&&platform.indexOf('mac')==-1&&typeof(oHomePage)!='undefined')
{valueOfCheckHome=eval('oHomePage.isHomePage("http://"+document.location.host+"/")');}
else
{valueOfCheckHome=false;}
return valueOfCheckHome;}
function findForms()
{var formsArray=document.forms;var i;var strFormSubmit="";for(i=0;i<formsArray.length;i++)
{strFormSubmit+='<SC'+'RIPT FOR=\"'+formsArray[i].name+'\" EVENT=\"onsubmit\" LANGUAGE=\"JavaScript\">';strFormSubmit+='setPopOutSwitch(false)\;';strFormSubmit+='<\/SC'+'RIPT>';}
document.write(strFormSubmit);}
function startCounterCookie(){var now="";var countscookie="";var countcookie="";now=new Date();Year=now.getUTCFullYear();Month=now.getMonth();Day=now.getDate();now=new Date(Year,Month,Day);now.setHours(now.getHours()+24);var x=new EbayDPCookie("dp1",null,null,"/",null,null,true);x.read();countcookie=x.getCookielet("count");if(!countcookie){countcookie=1;}else{countcookie=parseInt(countcookie)+1;}
x.addCookielet("count",countcookie,now);x.set();testIt();}
function popOutWindow(pURL,width,height,pSurvey,pSampleRate)
{if(typeof(width)=='undefined')
width='275';if(typeof(height)=='undefined')
width='375';var valueOfCounts=0;var valueOfCheckHome=false;var valueOfKeepMeSignIn=null;var valueOfEbaySignIn=null;if(!pSurvey)
{valueOfKeepMeSignIn=ReadCookie("keepmesignin");valueOfEbaySignIn=ReadCookie("ebaysignin");valueOfCheckHome=checkHome();var x=new EbayDPCookie("dp1",null,null,"/",null,null,true);x.read();testIt();valueOfCounts=x.getCookielet("count");;}
testIt();if(bPopUpWindow)
{if((valueOfCheckHome!=true)&&(valueOfCounts<2))
{if((valueOfEbaySignIn!="in")&(valueOfKeepMeSignIn!="in"))
{var notMac=((navigator.userAgent.toLowerCase()).indexOf("mac")==-1);if(pSurvey&&!winPopped&&notMac&&(ReadCookie(surveyCookie)!=surveyValue))
return showSurveyWindow(pURL,width,height,pSampleRate);else if(!pSurvey)
return popupWindow(pURL,'SureYouWantToLeave',width,height,'no','yes');}}}}
function showExitPollSurveyWindow(pURL,pWidth,pHeight)
{var chn=document.location.hostname;var host="http://pages"+chn.substr(chn.indexOf("."));host+="/";var sInd=host.indexOf(".stores.");if(sInd!=-1)
host=host.substring(0,sInd+1)+host.substring(sInd+8,host.length);pURL=host+surveyTempPopupFile+"?"+pURL;pURL+="&ep=&ts="+new String(new Date())+"&width=600&height=400";var pWin=popupWindow(pURL,'ebSurvey',600,400,'yes','yes','5000','5000');return pWin;}
function showSurveyWindow(pURL,pWidth,pHeight,pSampleRate)
{var rnd=Math.floor(Math.random()*10000);if((rnd%3)!=0)
return false;var reg=ReadCookie("reg");var etfc=ReadCookie("etfc");var uType="A";if(reg=="1")
{if(etfc=="1")
uType="C";else if(etfc=="2")
uType="D";else
uType="B";}
pURL+=uType;var chn=document.location.hostname;var host="http://pages"+chn.substr(chn.indexOf("."));host+="/";var sInd=host.indexOf(".stores.");if(sInd!=-1)
host=host.substring(0,sInd+1)+host.substring(sInd+8,host.length);pURL=host+surveyTempPopupFile+"?"+pURL;pURL+="&ts="+new String(new Date())+"&width=600&height=400";var pWin=popupWindow(pURL,'ebSurvey',600,400,'yes','yes','5000','5000');return pWin;}
function writeClickListener()
{var agt=navigator.userAgent.toLowerCase();var mymac=(agt.indexOf("mac")!=-1);var myopera=(agt.indexOf("opera")!=-1);if(platform.indexOf('mac')==-1&&!myopera)
{var string='';string+='<SCR'+'IPT FOR="document" EVENT="onmousedown()" LANGUAGE="JavaScript">';string+='var eventTag = window.event.srcElement.tagName.toLowerCase();';string+='if(eventTag == "a" || eventTag == "img" || eventTag == "area" || eventTag == "input")';string+='{';string+='setPopOutSwitch(false)\;';string+='}';string+='<\/SC'+'RIPT>';string+='<SCR'+'IPT FOR="document" EVENT="onkeypress()" LANGUAGE="JavaScript">';string+='var eventTag = window.event.srcElement.tagName.toLowerCase();';string+='if(eventTag == "input")';string+='{';string+='setPopOutSwitch(false)\;';string+='}';string+='<\/SC'+'RIPT>';document.write(string);}}
function eBayIsFramed()
{if(top==self)
{return false;}
else
{return true;}}
function eBayToolbarPluginDetect()
{var plugin=false;var mimetype="application/x-eBay-Toolbar-Plugin-Functions";var nsname="eBay Plugin Functions";if(typeof(navigator.mimeTypes)!='undefined'&&navigator.mimeTypes[mimetype]&&navigator.mimeTypes[mimetype].enabledPlugin)
{if(navigator.plugins)
plugin=true;}
else if(navigator.userAgent&&navigator.userAgent.indexOf("MSIE")>=0&&(navigator.userAgent.indexOf("Windows")>=0)){if(eBayIsIE4())
{return false;}
else if(typeof(IECheckClient)=="unknown")
{plugin=IECheckClient();}}
return plugin;}
if(eBayToolbarPluginDetect()){setPopOutSwitch(false,"toolbar");}
if(eBayIsFramed()){setPopOutSwitch(false,"framed");}
function testIt()
{}
var popWinLoaded=true;

// \include\js\popout\epoll_determine.js@@\main\3 

var NOREG="NONREG";var INACT="INACTIVE";var ACTIV="ACTIVE";var ALL="ALL";var gSurveys;var gTokens;function epShown(){if(ReadCookie("exitpoll")=="shown"||ReadCookie("surveySays")=="shown")
{return true;}
else
{return false;}}
function epIsFromPartner()
{if(lastPageURL.indexOf("google")>-1)
return true;}
function epPop(url){epSetCookie();window.open(url,"epSurvey","height=480,width=640,location=yes,scrolling=auto,status=yes");}
function epSetCookie(){var today=new Date();today.setMonth(today.getMonth()+3);WriteCookie("exitpoll","shown",CookieDomain,"/",today);}
function determineToLoadSurvey()
{var loadedSurveys=false;var loadedLibrary=false;var file="";if(!epShown()&&!epIsFromPartner())
{loadedLibrary=true;if(loadedLibrary)
{gSurveys=new SurveyHolder();var x=getURLParam("config");if(x!="")
{file=includeDir+"popout/"+x+".js";document.write(scriptOpen+file+scriptClose);}
else
{file=countryIncludeDir+"popout/exitsurveys.js";document.write(scriptOpen+file+scriptClose);}}}}
function wait()
{}
function getURLParam(name)
{var searchString=unescape(document.location.search.substring(1,document.location.search.length));var param=searchString.split("&");var spotName="";for(i=0;i<param.length;i++)
{tempParam=param[i].split("=");if(tempParam[0].toLowerCase()==name)
{spotName=tempParam[1];}}
return spotName;}
function epUser()
{this.segGeneric;this.buyerSeg="";this.sellerSeg="";this.determineSegment=_epSegment;}
function _epSegment()
{var CC1=readMultiCookie("reg","bibo");if(!((CC1=="")||(CC1==null)||(typeof(CC1)=='undefined')))
{var x=CC1.split("#");for(var i=0;i<x.length;i++)
{var supersegment=x[i].substring(0,1);var subsegment=parseInt(x[i].substring(1,x[i].length));if(supersegment=="B")
{this.buyerSeg=subsegment;}
else if(supersegment=="S")
{this.sellerSeg=subsegment;}
if(x[i]=="B0")
{this.segGeneric=INACT;}
else if(supersegment=="B"&&subsegment>0)
{this.segGeneric=ACTIV;}}}
else
{this.segGeneric=NOREG;}}
function SurveyHolder()
{this.eBaySurveys=new Array(1);this.addSurvey=b_addSurvey;this.getSurvey=b_getSurvey;this.dWhichSurvey=_dSurveyToShow;}
function _dSurveyToShow(user)
{for(var i=1;i<this.eBaySurveys.length;i++)
{var s=this.eBaySurveys[i];if(s.getOnOff())
{if(isInSegment(user,s)&&s.determineIsInSample())
{return s;}}}
return false;}
function isInSegment(user,survey)
{var supersegment=survey.targetSegment.substring(0,1);var subsegment=parseInt(survey.targetSegment.substring(1,survey.targetSegment.length));if(survey.targetSegment==ALL)
{return true;}
else if(supersegment=="B"&&user.buyerSeg==subsegment)
{return true;}
else if(supersegment=="S"&&user.sellerSeg==subsegment)
{return true;}
else if(survey.targetSegment==NOREG&&user.segGeneric==NOREG)
{return true;}
else if(survey.targetSegment==ACTIV&&user.segGeneric==ACTIV)
{return true;}
else if(survey.targetSegment==INACT&&user.segGeneric==INACT)
{return true;}
else
{return false;}}
function b_getSurvey(id)
{return this.eBaySurveys[id];}
function b_addSurvey(targetSegment,samplingRate,surveyType,linkTemplate,startDate,expDate,linkGif)
{var x=new Survey();x.setSurveyID(this.eBaySurveys.length)
x.setTargetSegment(targetSegment);x.setSamplingRate(samplingRate);x.setSurveyType(surveyType);x.setLinkTemplate(linkTemplate);x.setStartDate(startDate);x.setExpDate(expDate);x.setLinkGif(linkGif);x.determineIsOn();this.eBaySurveys[this.eBaySurveys.length++]=x;}
function Survey()
{this.surveyID;this.targetSegment;this.samplingRate;this.surveyType;this.linkTemplate;this.startDate;this.expDate;this.onoff;this.linkgif;this.getSurveyID=g_SurveyID;this.setSurveyID=s_SurveyID;this.getTargetSegment=g_TargetSegment;this.setTargetSegment=s_TargetSegment;this.getSamplingRate=g_SamplingRate;this.setSamplingRate=s_SamplingRate;this.getSurveyType=g_SurveyType;this.setSurveyType=s_SurveyType;this.getLinkTemplate=g_LinkTemplate;this.setLinkTemplate=s_LinkTemplate;this.getStartDate=g_StartDate;this.setStartDate=s_StartDate;this.getExpDate=g_ExpDate;this.setExpDate=s_ExpDate;this.getOnOff=g_OnOff;this.setLinkGif=s_LinkGif;this.getLinkGif=g_LinkGif;this.determineIsOn=b_IsOn;this.determineIsInSample=_dIsInSample;this.showSurvey=_showSurvey;}
function outputStringToDisplay(str){if(is.nav==true&&is.ver==4)
{with(document.displayID.document){open();str='<SPAN STYLE="position: relative;">'+str+'</SPAN>';write(str);close();}}
else if(is.nav&&is.ver>=5){document.getElementById("displayID").innerHTML=str;}
else if(document.all)
{document.all.foundSoFar.innerHTML=str;}
else(document.getElementById())
{divel=document.createElement("DIV");hitxt=document.createTextNode(str);}}
function _showSurvey(bPopup)
{if(typeof(gSurveys)=='undefined'||typeof(gSurveys.getSurvey(1))=='undefined')
{return false;}
var user=new epUser();user.determineSegment();var popup=gSurveys.dWhichSurvey(user);if(!popup)
{return false;}
gTokens=new URLTokenHolder();gTokens.addToken('SBR',(typeof(SBR)!='undefined'?SBR:''));gTokens.addToken('SITEID',(typeof(SiteId)!='undefined'?SiteId:''));gTokens.addToken('SEGMENT',(typeof(popup.getTargetSegment())!='undefined'?popup.getTargetSegment():''));gTokens.addToken('SURVEYTYPE',(typeof(popup.getSurveyType())!='undefined'?popup.getSurveyType():''));gTokens.addToken('COMPLETED_SURVEY',(readMultiCookie('exitpoll','shown')!=''?readMultiCookie('exitpoll','shown'):''));gTokens.replaceTokens(popup);if(!bPopup)
{if(popup.getSurveyType()=="LINK"||popup.getSurveyType()=="LINKPOPUP")
{var str="";if(pageName.indexOf("PageViewSellersOtherItems")!=-1)
{str="<a href=\"#\" onclick=\"epPop('"+popup.getLinkTemplate()+"');return false;\" target=\"_new\"><img border=\"0\" src=\"http:\/\/pics.ebay.com\/aw\/pics\/exitpolls\/"+country+"_SOI_exitPoll_88x31.gif\"><\/a>";outputStringToDisplay(str);return true;}
else
{str="<a href=\"#\" onclick=\"epPop('"+popup.getLinkTemplate()+"');return false;\" target=\"_new\"><img src=\"http:\/\/pics.ebay.com/aw/pics/exitpolls/"+country+"_exitPollBanner_580x60.gif\" border=\"0\"></a>";document.write(str);return true;}}
return false;}
else if(bPopup)
{var type=popup.getSurveyType();if(type=="LINKPOPUP"||type=="POPUP")
{showExitPollSurveyWindow(popup.getLinkTemplate(),480,640);return true;}}
return false;}
function showSideSurveyUI()
{var s=new Survey();return s.showSurvey(false);}
function checkForSurvey()
{if(!is.nav)
{var s=new Survey();s.showSurvey(true);}}
function _dIsInSample()
{var max=this.samplingRate;var x=Math.round(Math.random()*(max-1));var y=x==(max-1);return y;}
function s_SurveyID(a){this.surveyID=a;}
function g_SurveyID(){return this.surveyID;}
function g_TargetSegment(){return this.targetSegment;}
function s_TargetSegment(a){this.targetSegment=a;}
function g_SamplingRate(){return this.samplingRate;}
function s_SamplingRate(a){this.samplingRate=a;}
function g_SurveyType(){return this.surveyType;}
function s_SurveyType(a){this.surveyType=a;}
function g_LinkTemplate(){return this.linkTemplate;}
function s_LinkTemplate(a){this.linkTemplate=a;}
function g_StartDate(){return this.startDate;}
function s_StartDate(a){this.startDate=new Date(a);}
function g_ExpDate(){return this.expDate;}
function s_ExpDate(a){this.expDate=new Date(a);}
function g_OnOff(){return this.onoff;}
function g_LinkGif(){return this.linkGif;}
function s_LinkGif(a){this.linkGif=a}
function b_IsOn()
{var today=new Date();if(this.startDate-today>0)
{this.onoff=false;}
else if(this.expDate-today<0)
{this.onoff=false;}
else
{this.onoff=true;}}
function URLTokenHolder()
{this.eBayURLParamArray=new Array();this.addToken=b_addToken;this.replaceTokens=rTokens;}
function URLTokens(name,value)
{this.name=name;this.value=value;}
function eBayEncodeURL(strURL)
{var newURL=escape(strURL);return newURL;}
function b_addToken(name,value)
{this.eBayURLParamArray[name]=new URLTokens(name,value);}
function rTokens(survey)
{var temp=survey.linkTemplate;for(j in this.eBayURLParamArray)
{temp=eBayReplace(temp,"["+this.eBayURLParamArray[j].name+"]",this.eBayURLParamArray[j].value);}
survey.linkTemplate=temp;}
function eBayReplace(s,t,u)
{i=s.indexOf(t);r="";if(i==-1)return s;r+=s.substring(0,i)+u;if(i+t.length<s.length)
r+=eBayReplace(s.substring(i+t.length,s.length),t,u);return r;}

// \include\js\finding\packagefiles\constants.js@@\main\9 

function ConstantVariableNames(wireOn){this.bShortValue=wireOn;this.bConvert=wireOn;this.aOldParamName=new Array();this.aNewParamName=new Array();this.aConstantParamName=new Array();this.addParam=function(o,n,c){this.aOldParamName[o]=c;this.aNewParamName[c]=n;this.aConstantParamName[this.aConstantParamName.length]=c;this[c]=(this.bShortValue)?n:o;}
this.convertParam=function(p){var constant=this.aOldParamName[p];return(this.bConvert&&typeof constant!="undefined")?this.aNewParamName[constant]:p;}
this.addParam("sousecase","fwc","USE_CASE");this.addParam("socolumnlayout","fcl","COLUMN_LAYOUT");this.addParam("socomparecolumnlayout","fccl","COMPARE_COLUMN_LAYOUT");this.addParam("socurrencydisplay","fcd","CURRENCY_DISPLAY");this.addParam("soitemstatus","fis","ITEM_STATUS");this.addParam("sokeywordredirect","fkr","KEYWORD_INTERCEPT_AUTO_REDIRECT");this.addParam("somediaplexredirected","fmr","MEDIAPLEX_REDIRECTED");this.addParam("sonewuser","fnu","NEW_USER");this.addParam("sorecordsperpage","frpp","RECORDS_PER_PAGE");this.addParam("sorecordstoskip","frts","RECORDS_TO_SKIP");this.addParam("somorecategories","fmc","SHOW_MORE_CATEGORIES");this.addParam("somoreattrid","fmai","SHOW_MORE_ATTRIBUTE_ID");this.addParam("somorecategoryid","fmci","SHOW_MORE_CATEGORY_ID");this.addParam("sorecentlyvieweditems","frvi","SHOW_RECENTLY_VIEWED_ITEMS");this.addParam("soreco","fris","RIS_RECO");this.addParam("sosimilaritems","fsi","SHOW_SIMILAR_ITEMS");this.addParam("sosortorder","fsoo","SORT_ORDER");this.addParam("sosortproperty","fsop","SORT_PROPERTY");this.addParam("socondcol","fcc","DISPLAY_CONDITION");this.addParam("sotextsearched","fts","TEXT_SEARCHED");this.addParam("sotimedisplay","ftid","TIME_DISPLAY");this.addParam("sospellrecommendation","fspr","SPELL_RECO");this.addParam("soincludewords","fiw","INCLUDE_WORDS");this.addParam("soexcludewords","few","EXCLUDE_WORDS");this.addParam("sosearchwordscombine","fswc","SEARCH_WORDS_COMBINE");this.addParam("solocationselector","fls","LOCATION_SELECTOR");this.addParam("soattrs","fa","SHOW_ATTRS");this.addParam("soloctog","flt","LOCATION_TOGGLE");this.addParam("sodisstem","fds","DISABLE_STEMMING");this.addParam("socolorid","fci","STORE_COLOR_ID");this.addParam("sostorename","fsn","STORE_NAME");this.addParam("sopdextmode","fpdem","PRODUCT_EXTENDED_MODE");this.addParam("soptitle","fpt","PRODUCT_TITLE_STRING");this.addParam("sopimurl","fpimu","PRODUCT_IMAGE_URL");this.addParam("soptmode","fptm","PRODUCT_TITLE_MODE");this.addParam("sorefprod","frp","PRODUCT_IDS_FROM_REFERRER");this.addParam("soselectregion","fser","SELECT_REGION");this.addParam("sosimquery","fsq","SIMILAR_QUERY");this.addParam("sosyic","fsc","SYI_LOWER_PRICE_SEARCH");this.addParam("socustoverride","fco","OVERRIDE_DISPLAY_FROM_CUSTOMIZATION");this.addParam("sotime","ft","TIME");this.addParam("sopostal","fpos","SPOT_ZIP_CODE");this.addParam("sopostalchg","fpc","LOCATION_CHANGE_REQUEST");this.addParam("socmd","fcmd","COMMAND");this.addParam("saanythingpoints","saayp","ANYTHING_POINTS");this.addParam("saavailabletocountry","saatc","AVAILABLE_TO_COUNTRY_ID");this.addParam("saavailabletosite","saats","AVAILABLE_TO_SITE_ID");this.addParam("sacharity","sacha","CHARITY");this.addParam("sactlgid","sacti","LIVE_AUCTION_CATALOG_ID");this.addParam("sadepartment","sadpt","DEPARTMENT_NUMBER");this.addParam("sagallery","sagal","GALLERY");this.addParam("sagiftservice","sagfs","GIFT_SERVICES");this.addParam("sagift","sagft","GIFT");this.addParam("sahasreserveprice","sahrp","HAS_RESERVE_PRICE");this.addParam("saitem","saitm","ITEM_ID");this.addParam("salistedinsite","salis","LISTED_IN_SITE_ID");this.addParam("sacurrency","sacur","LISTING_CURRENCY_ID");this.addParam("saregion","sargn","LISTING_REGION_ID");this.addParam("salocatedincountry","salic","LOCATED_IN_COUNTRY_ID");this.addParam("salot","salot","LOT");this.addParam("samotorscategorymap","samcm","MOTORS_CATEGORY_MAP");this.addParam("samotorsendyear","samsy","MOTORS_ENDYEAR");this.addParam("samotorsmake","sammk","MOTORS_MAKE");this.addParam("samotorsmodel","samml","MOTORS_MODEL");this.addParam("samotorsstartyear","samsy","MOTORS_STARTYEAR");this.addParam("samotorswarranty","samwy","MOTORS_WARRANTY_FILTER");this.addParam("sas_partnerid","saspi","MOTORS_S_PARTNER_ID");this.addParam("sapricehi","saprchi","PRICE_HIGH");this.addParam("sapricelo","saprclo","PRICE_LOW");this.addParam("saprice","saprc","NORMED_CURRENT_PRICE");this.addParam("sanormstartprice","sansp","NORMED_START_PRICE");this.addParam("sanownew","sannw","NOW_AND_NEW");this.addParam("sacategory","sacat","PARENT_CATEGORY");this.addParam("sapaypal","sappl","PAYPAL");this.addParam("saescrow","saesw","ESCROW");this.addParam("sapaypalofferid","sapoi","PAYPAL_BUYER_CREDIT");this.addParam("saquantity","saqty","QUANTITY");this.addParam("sasaleclass","sascs","SALE_CLASS");this.addParam("saseller","sasel","SELLER_ID");this.addParam("saschid","sasci","LIVE_AUCTION_SCHEDULE_ID");this.addParam("saSl","sasl","SELLER");this.addParam("saSs","sass","SINGLE_SELLER");this.addParam("sastartprice","saspr","START_PRICE");this.addParam("sastarttime","sastt","START_TIME");this.addParam("sastoreid","sasid","STORE_ID");this.addParam("sastorename","sastn","STORE_NAME2");this.addParam("safeatured","safea","FEATURED");this.addParam("sagalleryfeatured","sagaf","GALLERY_FEATURED");this.addParam("sasuperfeatured","saspf","SUPER_FEATURED");this.addParam("saendtimeoffset","saeto","END_TIME_OFFSET");this.addParam("saendtime","saetm","END_TIME");this.addParam("sadistance","sadis","SPOT_DISTANCE");this.addParam("sacqty","sacqy","COMPOUND_QUANTITY");this.addParam("sonotimefilter","fntf","TIME_FILTER_DISABLED");this.addParam("sotr","sotr","TIME_FILTER");this.addParam("sotrtype","ftrt","TR_TRY");this.addParam("sotrvalue","ftrv","TR_VALUE");this.addParam("sacqty","sacqy","COMPOUND_QUANTITY");this.addParam("sacqtyop","sacqyop","COMPOUND_QUANTITY_OP");this.addParam("sofindtype","sofindtype","FIND_TYPE");this.addParam("dff","dff","DATE_FILTER");this.addParam("dfs","dfs","DATE_FILTER_START_DATE");this.addParam("dfts","dfts","DATE_FILTER_START_TIME");this.addParam("dfe","dfe","DATE_FILTER_END_DATE");this.addParam("dfte","dfte","DATE_FILTER_END_TIME");this.addParam("fscl","fscl","SALE_CLASS_CB");this.addParam("floc","floc","LOCATION_CB");this.addParam("fgtp","fgtp","GOTOPAGE");}
var wireOnSEO3b;if(typeof wireOnSEO3b=='undefined')wireOnSEO3b=false;var SEO=new ConstantVariableNames(wireOnSEO3b);

// \include\js\finding\packagefiles\browsecategories.js@@\main\4 

var category_level0,cat0_name,category_level1,cat1_name,category_level2,cat2_name,category_level3,cat3_name,category_level4,cat4_name,category_level5,cat5_name,category_name,region_id;function setCategoryLevel(){for(var i=0;i<setCategoryLevel.arguments.length;i++){var val=setCategoryLevel.arguments[i].split(',');eval('category_level'+i+'="'+val[0]+'";');eval('cat'+i+'_name="'+val[1]+'";');}}
function setCategoryName(name,region){eval('category_name="'+name+'";');eval('region_id="'+region+'";');}

// \include\js\finding\packagefiles\browser.js@@\main\4 

function Browser()
{var agt=navigator.userAgent.toLowerCase();this.majVer=parseInt(navigator.appVersion);this.minVer=parseFloat(navigator.appVersion);this.nav=((agt.indexOf('mozilla')!=-1)&&(agt.indexOf('spoofer')==-1)&&(agt.indexOf('compatible')==-1)&&(agt.indexOf('opera')==-1)&&(agt.indexOf('webtv')==-1)&&(agt.indexOf('hotjava')==-1));this.nav2=(this.nav&&(this.majVer==2));this.nav3=(this.nav&&(this.majVer==3));this.nav4=(this.nav&&(this.majVer==4));this.nav4up=(this.nav&&(this.majVer>=4));this.nav6=(this.nav&&(this.majVer==5));this.nav6up=(this.nav&&(this.majVer>=5));this.ie=((agt.indexOf('msie')!=-1)&&(agt.indexOf('opera')==-1));this.ie3=(this.ie&&(this.majVer<4));this.ie4=(this.ie&&(this.majVer==4)&&(agt.indexOf('msie 4')!=-1));this.ie4up=(this.ie&&(this.majVer>=4));this.ie5=(this.ie&&(this.majVer==4)&&(agt.indexOf('msie 5.0')!=-1));this.ie5_5=(this.ie&&(this.majVer==4)&&(agt.indexOf('msie 5.5')!=-1));this.ie5up=(this.ie&&!this.ie3&&!this.ie4);this.ie5_5up=(this.ie&&!this.ie3&&!this.ie4&&!this.ie5);this.ie6=(this.ie&&(this.majVer==4)&&(agt.indexOf('msie 6.')!=-1));this.ie6up=(this.ie&&!this.ie3&&!this.ie4&&!this.ie5&&!this.ie5_5);this.aol=(agt.indexOf('aol')!=-1);this.aol3=(this.aol&&this.ie3);this.aol4=(this.aol&&this.ie4);this.aol5=(agt.indexOf('aol 5')!=-1);this.aol6=(agt.indexOf('aol 6')!=-1);this.opera=(agt.indexOf('opera')!=-1);this.opera2=(agt.indexOf('opera 2')!=-1||agt.indexOf('opera/2')!=-1);this.opera3=(agt.indexOf('opera 3')!=-1||agt.indexOf('opera/3')!=-1);this.opera4=(agt.indexOf('opera 4')!=-1||agt.indexOf('opera/4')!=-1);this.opera5=(agt.indexOf('opera 5')!=-1||agt.indexOf('opera/5')!=-1);this.opera5up=(this.opera&&!this.opera2&&!this.opera3&&!this.opera4);this.opera6=(agt.indexOf('opera 6')!=-1||agt.indexOf('opera/6')!=-1);this.opera6up=(this.opera5up&&!this.opera5);this.webtv=(agt.indexOf('webtv')!=-1);this.safari=(agt.indexOf('safari')!=-1);this.win=((agt.indexOf('win')!=-1)||(agt.indexOf('16bit')!=-1));this.mac=(agt.indexOf('mac')!=-1);this.isJsEnabled=(this.ie5up||(this.nav4up&&this.minVer>4.7)||this.opera6up||this.safari);this.setJsCookie=EbaySetJsCookie;}
Browser.prototype.getElementById=function(id)
{if(document.getElementById)return document.getElementById(id);else if(document.all)return document.all[id];else if(document.layers)return document.layers[id];else return null;}
function IsNetscape4(){var agt=navigator.userAgent.toLowerCase();var isMajor=parseInt(navigator.appVersion);var isMinor=parseFloat(navigator.appVersion);var isNav=((agt.indexOf('mozilla')!=-1)&&(agt.indexOf('spoofer')==-1)&&(agt.indexOf('compatible')==-1)&&(agt.indexOf('opera')==-1)&&(agt.indexOf('webtv')==-1)&&(agt.indexOf('hotjava')==-1));var isNav4=(isNav&&(isMajor==4));return isNav4;}
function IsWebTV(){var agt=navigator.userAgent.toLowerCase();return(agt.indexOf('webtv')==-1)?false:true;}
function EbaySetJsCookie(){if(this.isJsEnabled&&typeof EbayCookie=="function"){var x=new EbayCookie("ebay",null,CookieDomain,"/",null,null,true);x.read();var v=x.getCookielet("js");if(v!="1"){x.addCookielet("js",1);x.addCookielet("d","js/1");x.set();}}}
var browserObj=new Browser();browserObj.setJsCookie();var isBorders;

// \include\js\finding\packagefiles\findsort.js@@\main\5 

function doFindSortChange(position)
{sortURL=findSortArray[position];if(typeof sortURL!="undefined"&&sortURL!=null&&sortURL!="")
{window.location.href=sortURL;}}

// \include\js\finding\packagefiles\itemlist.js@@\main\32 

var Pbp_Site='0';var Column=new Array();var ColumnLookup=new Array();var Subtitle=new Array();var Gcs=new Array();var Sale=new Array();var ALT=new Object();var STR=new Object();var SVR=new Object();var ENV=new Object();var CLR={highlight:"#E6CCFF",bgcolor:new Array("#EEEEEE","#FFFFFF"),findItem:"#FFFF00"};var OUTPUT="";var ATTR_COUNT=0;var COLUMN_ALIGN={picture:"center",itemNumber:"center",title:"left",price:"right",bids:"center",time:"right",attr:"left",distance:"right",shipping:"center",location:"right",country:"right",action:"left",listedRegion:"center"};var COLUMN_VALIGN={picture:"middle",itemNumber:"top",title:"top",price:"top",bids:"top",time:"top",attr:"top",distance:"top",shipping:"top",location:"top",store:"top",paypal:"top",paisapay:"top",country:"top",action:"middle",listedRegion:"top"};var COLUMN_WIDTH={picture:"1%",itemNumber:"8%",price:"8%",bids:"8%",time:"8%",attr:"8%",distance:"8%",shipping:"8%",location:"8%",country:"8%",estimate:"12%",paypal:"1%",paisapay:"1%",escrow:"1%",action:"16%",listedRegion:"8%"};var COLUMN_NOWRAP={shipping:"nowrap",distance:"nowrap",location:"nowrap",action:"nowrap",picture:"nowrap"};var isWebTV=(navigator.appVersion.indexOf("WebTV")!=-1)?true:false;function flush(){ebay.oDocument.write(OUTPUT);OUTPUT="";}
function wrt(str){OUTPUT+=str;}
function strReplace(str,old,nw){var re=new RegExp(old);return str.replace(re,nw);}
function txt(str,c){wrt('<span class="'+c+'">'+str+'</span>');}
function popWindow(u,n,o,x,y){var s=o+',width='+x+',height='+y
window.open(u,n,s)}
function table(cs,cp,w,b,h,bg,st){wrt('<table  ');if(b!=null)wrt('border="'+b+'" ');if(cs!=null)wrt('cellspacing="'+cs+'" ');if(w!=null)wrt('width="'+w+'" ');if(cp!=null)wrt('cellpadding="'+cp+'" ');if(h!=null)wrt('height="'+h+'" ');if(st!=null)wrt('style="'+st+'" ');if(bg!=null)wrt('bgcolor="'+bg+'" ');else wrt('bgcolor="#ffffff" ');wrt('>');}
function img(src,h,w,b,alt){wrt('<img ');if(h!=null)wrt('height="'+h+'" ');if(w!=null)wrt('width="'+w+'" ');if(src!=null)wrt('src="'+src+'" ');if(alt!=null)wrt('alt="'+alt+'" title="'+alt+'" ');if(b!=null)wrt('border="'+b+'" ');wrt('>');}
function td(valign,align,width,bgcolor,height,rowspan,colspan,nowrap,css,background,style){wrt('<td ');if(valign!=null)wrt('valign="'+valign+'" ');if(align!=null)wrt('align="'+align+'" ');if(width!=null)wrt('width="'+width+'" ');if(bgcolor!=null)wrt('bgcolor="'+bgcolor+'" ');if(height!=null)wrt('height="'+height+'" ');if(rowspan!=null)wrt('rowspan="'+rowspan+'" ');if(colspan!=null)wrt('colspan="'+colspan+'" ');if(nowrap!=null)wrt('nowrap="'+nowrap+'" ');if(css!=null)wrt('class="'+css+'" ');if(background!=null)wrt('background="'+background+'" ');if(style!=null)wrt('style="'+style+'" ');wrt('>');}
function tr(bgcolor,valign){wrt('<tr ');if(bgcolor!=null)wrt('bgcolor="'+bgcolor+'" ');if(valign!=null)wrt('valign="'+valign+'" ');wrt('>');}
function a(href,name,target,onclick){wrt('<a ');if(href!=null)wrt('href="'+href+'" ');if(name!=null)wrt('name="'+name+'" ');if(target!=null)wrt('target="'+target+'" ');if(onclick!=null)wrt('onclick="'+onclick+'" ');wrt('>');}
function dC(){var a=arguments;var col=new Object();col.id=a[0];col.type=a[1];if(col.type=='picture')ENV.showPictureIcons=false;col.showPictureLink=a[2];col.showBin=(a[3]=='true');col.showAuction=(a[4]=='true');col.highlight=a[5];col.sortIcon=a[6];col.subtype=a[7];col.converted=a[8];col.URL=a[9];col.maxLen=a[10];col.timeZone=a[11];col.page=a[12];col.label=a[13];col.index=Column.length;Column[Column.length]=col;ColumnLookup[col.type]=col;}
function dS(){var a=arguments;var subtitle=new Object();subtitle.id=a[0];subtitle.showLabel=a[1];subtitle.separator=a[2];subtitle.label=a[3];subtitle.maxLen=a[4];Subtitle[Subtitle.length]=subtitle;}
function dSI(){var a=arguments;sale=new Object();sale.paypalPayment=a[0];sale.pbpEligible=a[1];sale.featured=a[2];sale.galleryType=a[3];sale.giftIconType=a[4];sale.siteId=a[5];sale.saleType=a[6];sale.IsHighlightSearch=a[7];sale.IsBoldSearch=a[8];sale.IsPicturePackItem=a[9];sale.IsNewItem=(a[10]==1);sale.IsHomesDirect=a[11];sale.offerCount=a[12];sale.IsBorder=a[13];sale.ItemId=a[14];sale.ItemTitle=a[15];sale.ItemSubTitle=a[16];sale.ItemURL=a[17];sale.ConvertedPrice=a[18];sale.CurrentPrice=a[19];sale.ConvertedBinPrice=a[20];sale.BinPrice=a[21];sale.IsFixedPrice=(sale.saleType==9||sale.saleType==7);sale.IsBinAvailable=(sale.BinPrice!="");sale.TimeType=a[22];sale.Date=a[23];sale.Time=a[24];sale.Attr=(typeof(a[25])=="undefined")?new Object():a[25];var icon=a[26].split(",");sale.mIcon={Inspect:icon[0],SecPay:icon[1],US:icon[2],Check:icon[3],Four:icon[4],Gift:icon[5],Grad:icon[6],JP:icon[7],Anchor:icon[8],Cone:icon[9],Wrench:icon[10],Tire:icon[11]};sale.Distance=a[27];sale.Shipping=a[28];sale.Feedback=a[29];sale.galleryVersion=a[30];sale.Store=(a[31]==null)?{name:''}:a[31];sale.Location=a[32];sale.MatureItem=a[33];sale.escrow=a[34];sale.NowAndNew=a[35];sale.Country=a[36];sale.HasProdRefId=(a[37]==1);sale.SimilarItemsURL=a[38];sale.IsEnded=(a[39]==1);sale.IsSuccessful=(a[40]==1);sale.IsReserveNotMet=(a[41]==1);sale.SoldAsBin=(a[42]==1);sale.IsMotors=(ENV.Completed&&(ENV.layout=="spanning"));sale.ImageSize=(a[43]==null)?64:a[43];sale.Region=a[44];sale.paisaPayment=a[45];sale.Attr.isLoaded=0;for(var i in sale.Attr)if(sale.Attr[i]!="")sale.Attr.isLoaded=1;sale.findItem=0;Sale[Sale.length]=sale;}
function getResults(layout,mode){var featured_sales=new Array();var regular_sales=new Array();var featured_sif_sales=new Array();var sif_sales=new Array();for(i=0;i<Sale.length;i++){if(mode=='featured')featured_sales[featured_sales.length]=Sale[i];else if(mode=='mixed')regular_sales[regular_sales.length]=Sale[i];else{if(Sale[i].saleType==7&&ENV.showSIF==true){if(Sale[i].featured==1)
featured_sif_sales[featured_sif_sales.length]=Sale[i];else
sif_sales[sif_sales.length]=Sale[i];}else{if(Sale[i].featured==1)
featured_sales[featured_sales.length]=Sale[i];regular_sales[regular_sales.length]=Sale[i];}}}
if(ENV.showFeaturedSection&&featured_sales.length>0){featuredHeader(layout);searchItemSections(layout,featured_sales,true);drawFooter(layout);}
ENV.bg=1;searchItemSections(layout,regular_sales,false);sif_sales=concatArray(featured_sif_sales,sif_sales);if(sif_sales.length>0){featuredHeader(layout,STR.SIFDivider);searchItemSections(layout,sif_sales);}
Sale=new Array();flush();}
function searchItemSections(layout,sale,featured){if(layout=='single')saleSingle(sale,layout);else if(layout=='double')saleDouble(sale,layout);else if((layout=='spanning')&&ENV.Completed)saleDouble(sale,"double");else if(layout=='spanning')saleMotors(sale,layout);else saleSingle(sale,"single");}
function featuredHeader(layout,headerTxt){if(headerTxt==null)
headerTxt=STR.FeaturedItems;tr();td('top',null,null,null,null,null,Column.length+2,null,'navigation');wrt('<b>'+headerTxt+'</b></td></tr>');}
function drawFooter(layout){tr();td('top',null,null,null,null,null,Column.length+2);table(0,0,"100%",0,null,null,"padding: 5px 0px 3px 0px; border-bottom: 2px solid #999999; margin-bottom: 12px");tr();td(null,null,null,null,null,null,null,null,"navigation");wrt(STR.FeaturedText);if(ENV.page!='listings'||ENV.siteId=='0')a(SVR.cgi5+"ws1/ebayISAPI.dll?PromoteItemLanding",null,null,null);else a(SVR.app+"services/buyandsell/featuremyitem.html");wrt(STR.FeaturedAuctions);wrt('</a>');wrt('</td></tr></table></td></tr>');}
function saleSingle(sale,layout){for(i=0;i<sale.length;i++){tr(getRowColor(sale[i]));endColumn(sale[i],layout,'left');for(j=0;j<Column.length;j++)formatColumn(sale[i],Column[j],null,null,null,null,0);endColumn(sale[i],layout,'right');wrt('</tr>');spacerRow();flush();}}
function saleDouble(sale,layout){var titleColumn=ColumnLookup['title'];var actionColumn=ColumnLookup['action'];var leftColumns=Column.slice(0,titleColumn.index);var rightColumns=(actionColumn!=null)?Column.slice(actionColumn.index):new Array();var spannedColumns=Column.slice(titleColumn.index+1,(rightColumns.length>0)?rightColumns[0].index:Column.length);if(layout=="double")
COLUMN_VALIGN['title']="middle";for(i=0;i<sale.length;i++){var clr=getRowColor(sale[i]);tr(clr);endColumn(sale[i],layout,'left');for(j=0;j<leftColumns.length;j++)formatColumn(sale[i],leftColumns[j],2,null,null,null,0);formatColumn(sale[i],titleColumn,null,spannedColumns.length+1,null,null,1);for(j=0;j<rightColumns.length;j++)formatColumn(sale[i],rightColumns[j],2,null,null,null,0);endColumn(sale[i],layout,'right');wrt('</tr>');tr(clr);formatColumn(sale[i],{type:"empty"},null,null,null,null,2);for(j=0;j<spannedColumns.length;j++)formatColumn(sale[i],spannedColumns[j],null,null,null,null,2);wrt('</tr>');spacerRow();flush();}}
function saleMotors(sale,layout){var titleIndex=2;var lastAttrIndex=4;for(var i=0;i<Column.length;i++){if(Column[i].type=='title')titleIndex=i;else if(Column[i].type=='attr')lastAttrIndex=i;}
var leftCols=Column.slice(0,titleIndex);var titleCol=Column[titleIndex];var attrCols=Column.slice(titleIndex+1,lastAttrIndex+1);var rightCols=Column.slice(titleIndex+attrCols.length+1);for(i=0;i<sale.length;i++){var clr=getRowColor(sale[i]);tr(clr);endColumn(sale[i],layout,'left');for(j=0;j<leftCols.length;j++)formatColumn(sale[i],leftCols[j],2,null,null,null,0);formatColumn(sale[i],titleCol,null,null,true,true,1);for(j=0;j<attrCols.length;j++)formatColumn(sale[i],attrCols[j],null,null,null,null,1);for(j=0;j<rightCols.length;j++)formatColumn(sale[i],rightCols[j],2,null,null,null,0);endColumn(sale[i],layout,'right');wrt('</tr>');tr(clr);formatColumn(sale[i],titleCol,null,attrCols.length+1,true,false,2);wrt('</tr>');spacerRow();flush();}}
function getRowColor(sale){ENV.bg=(ENV.bg==0)?1:0;if(sale.findItem==0)return(sale.IsHighlightSearch==1)?CLR.highlight:CLR.bgcolor[ENV.bg];else return CLR.findItem;}
function formatColumn(sale,col,rs,cs,motors,toprow,position){col.rowspan=rs;col.colspan=cs;col.align=COLUMN_ALIGN[col.type];if(ENV.layout=="single")
col.valign="middle";else col.valign=COLUMN_VALIGN[col.type];col.width=COLUMN_WIDTH[col.type];col.nowrap=COLUMN_NOWRAP[col.type];col.css=getCSS(sale,position);if(col.type=='picture')drawPictureColumn(sale,col,sale.ImageSize);else if(col.type=='itemNumber')drawItemNumberColumn(sale,col);else if((col.type=='title')&&motors)drawTitleMotors(sale,col,toprow);else if((col.type=='title')&&!motors)drawTitleColumn(sale,col);else if(col.type=='price')drawPriceColumn(sale,col);else if(col.type=='bids')drawBidsColumn(sale,col);else if(col.type=='time')drawTimeColumn(sale,col);else if(col.type=='attr')drawAttrColumn(sale,col);else if(col.type=='distance')drawDistanceColumn(sale,col);else if(col.type=='compare')drawCompareColumn(sale,col);else if(col.type=='itemPicker')drawItemPickerColumn(sale,col);else if(col.type=='store')drawStoreColumn(sale,col);else if(col.type=='location')drawLocationColumn(sale,col);else if(col.type=='country')drawCountryColumn(sale,col);else if(col.type=='paypal')drawPayPalColumn(sale,col);else if(col.type=='paisapay')drawPaisaPayColumn(sale,col);else if(col.type=='escrow')drawEscrowColumn(sale,col);else if(col.type=='shipping')drawShippingColumn(sale,col);else if(col.type=='action')drawActionColumn(sale,col);else if(col.type=='listedRegion')drawRegionColumn(sale,col);else drawEmptyColumn(sale,col);}
function columnStart(col)
{wrt('<td');if(col.align!=null)wrt(' align="'+col.align+'"');if(col.valign!=null)wrt(' valign="'+col.valign+'"');if(col.width!=null)wrt(' width="'+col.width+'"');if(col.height!=null)wrt(' height="'+col.height+'"');if(col.rowspan!=null)wrt(' rowspan="'+col.rowspan+'"');if(col.colspan!=null)wrt(' colspan="'+col.colspan+'"');if(col.css!=null)wrt(' class="'+col.css+'"');if(col.style!=null)wrt(' style="'+col.style+'"');if(col.bgcolor!=null)wrt(' bgcolor="'+col.bgcolor+'"');if(col.background!=null)wrt(' background="'+col.background+'"');if(col.nowrap!=null)wrt(' nowrap="'+col.nowrap+'"');wrt('>');}
function columnEnd(col)
{wrt('</td>');}
function endColumn(sale,layout,position){var rs=(layout=='single')?1:2;var styl=(position=='left')?"border-left":"border-right";var css=(sale.IsBorder==1)?styl:null;if((ENV.siteId=='223'||ENV.siteId=='196')&&(ENV.layout=="single"||ENV.layout=="double"))
height=sale.ImageSize+8;else height=null;td(null,null,null,null,height,rs,null,null,css);wrt(STR.no_break+"</td>");}
function getCSS(sale,position){if(sale.IsBorder==1){if(position==0)return"border-top-bottom";else if(position==1)return"border-top";else return"border-bottom";}else return null;}
function spacerRow(){tr();td(null,null,null,null,null,null,null,null,null,null,"padding:0px;");img(SVR.image_core+'s.gif');wrt('</td></tr>');}
function drawEmptyColumn(sale,col)
{columnStart(col);wrt(STR.no_break);columnEnd(col);}
function drawPictureColumn(sale,col,image_size){if(sale.galleryType!=0&&(sale.MatureItem!=1||(sale.MatureItem==1&&ENV.isAdultSignedIn=='true'))){columnStart(col);var itemTitle=sale.ItemTitle;if(itemTitle.indexOf("<wbr>")!=-1)itemTitle=strReplace(itemTitle,"<wbr>","");wrt('<div style="width:'+image_size+'px;overflow-x:hidden">');a(SVR.itemURL+sale.ItemURL,null,null,null);img(SVR.thumb+sale.ItemId+image_size+image_size+"_"+sale.galleryVersion+".jpg",null,null,0,itemTitle);wrt('</a>');wrt('</div>');}else if((sale.IsPicturePackItem==1)||(sale.MatureItem==1)){col.valign="middle";columnStart(col);a(SVR.itemURL+sale.ItemURL,null,null,null);img(SVR.image_core+"icon/iconPic_20x20.gif",20,20,0,ALT.Picture);wrt('</a>');}else{columnStart(col);if(ENV.siteId=='223'||ENV.siteId=='196'){wrt('<span class="navigation">'+STR.NoPhoto+'</span');}else{img(SVR.image_core+"lst/____64x15.gif",15,64,0,null);}}
columnEnd(col);}
function drawItemNumberColumn(sale,col){columnStart(col);wrt(sale.ItemId);columnEnd(col);}
function drawTitleColumn(sale,col)
{columnStart(col);findItemAnchor(sale);newIcon(sale);displayItemTitle(sale);if(ENV.showSubtitle){wrt('<div class="navigation" style="padding:2px 0px 2px 0px;">');displaySubtitles(sale,!(sale.IsMotors&&sale.IsEnded));wrt('</div>');}
columnEnd(col);}
function drawTitleMotors(sale,col,toprow)
{columnStart(col);if(toprow)
{findItemAnchor(sale);newIcon(sale);var subtitles=displayAttrSubtitles(sale);if(subtitles.length>0)wrt('<span style="font-weight:bold">'+subtitles+'</span>');wrt(STR.no_break);}
else
{displayItemTitle(sale);wrt('<div class="navigation" style="padding:2px 0px 2px 0px;">');displaySubtitles(sale,false);wrt('</div>');}
columnEnd(col);}
function displayItemTitle(sale)
{if(sale.MatureItem==1&&ENV.isAdultSignedIn!='true')
{wrt('<b>Hidden</b> - Requires ');a(SVR.itemURL+sale.ItemURL,null,null,null);wrt('adult verification</a>');}
else if(sale.IsMotors&&sale.IsEnded)
{a(SVR.itemURL+sale.ItemURL,null,null,null);var subtitles=displayAttrSubtitles(sale);if(subtitles.length>0)wrt('<span style="font-weight:bold">'+subtitles+STR.no_break+'</span>');wrt(sale.ItemTitle);wrt('</a>');}
else
{a(SVR.itemURL+sale.ItemURL,null,null,null);if(sale.IsBoldSearch==1)wrt('<b>'+sale.ItemTitle+'</b>');else wrt(sale.ItemTitle);wrt('</a>');}
if(ENV.Completed&&sale.IsReserveNotMet)
wrt('<span style="color:#ff0000"> ('+STR.ReserveNotMet+')</span>');displayIcons(sale);}
function displaySubtitles(sale,showAttr)
{var censor=(sale.MatureItem==1&&ENV.isAdultSignedIn!='true');if(censor==false)
{if(showAttr&&(Subtitle.length>0))
{wrt(displayAttrSubtitles(sale));wrt('<br />');}
if(sale.ItemSubTitle!="")
{wrt(sale.ItemSubTitle);wrt('<br />');}}
if(typeof sale.Feedback.fbType!="undefined"&&sale.Feedback.fbType!=-1)
{wrt(STR.Feedback+':'+STR.no_break);drawFeedback(sale);wrt('<br />');}}
function displayAttrSubtitles(sale){var subtitles=""
for(var s=0;s<Subtitle.length;s++){var sub=getAttr(sale.Attr,new Array(Subtitle[s].id),false);if((sub.length>0)&&(sub!=STR.no_break)){if(Subtitle[s].showLabel=='true')sub=Subtitle[s].label+" "+sub;subtitles+=truncateString(sub,Subtitle[s].maxLen-2);if(checkIfSeparatorIsNeeded(s+1,sale))subtitles+=Subtitle[s].separator;}}
return subtitles;}
function drawPriceColumn(sale,col)
{columnStart(col);if(col.showAuction)
{if(sale.IsEnded&&sale.SoldAsBin)displayBinPrice(sale,false);else if(sale.IsEnded&&!sale.SoldAsBin)displayCurrentPrice(sale,false);else if(col.showBin&&!sale.IsFixedPrice)displayCurrentPrice(sale,true);else if((sale.saleType==7)||(sale.saleType==9));else displayCurrentPrice(sale,true);}
if(col.showBin)
{if(sale.IsFixedPrice)displayCurrentPrice(sale,!col.showAuction);else if(col.showAuction&&sale.IsBinAvailable)displayBinPrice(sale,false);else if(sale.IsBinAvailable)displayBinPrice(sale,true);}
if(!col.showAuction&&!col.showBin&&sale.IsEnded)displayCurrentPrice(sale,true);columnEnd(col);}
function drawBidsColumn(sale,col)
{columnStart(col);if(sale.IsEnded)displayBidsCompleted(sale,col);else displayBids(sale,col);columnEnd(col);}
function displayBids(sale,col)
{if(sale.saleType==6)displayBidsRealEstate(sale,col);else displayBidsAuction(sale,col);}
function displayBidsRealEstate(sale,col)
{if(sale.IsHomesDirect==1){a(SVR.app+"help/community/fcexplain.html",null,null,null);img(SVR.image+"icons/fc_icon_16x15.gif",16,15,0,ALT.HomesDirect);wrt('</a>');}else{a(SVR.app+"help/basics/adformat-listing.html",null,null,null);img(SVR.image_core+"realestate/classifiedAd_16x15.gif",16,15,0,ALT.RealEstateAd);wrt('</a>');}}
function displayBidsAuction(sale,col)
{var showBinIcon=(col.showBin&&(sale.IsFixedPrice||sale.IsBinAvailable));var showOfferCount=(col.showAuction&&!sale.IsFixedPrice);if(showOfferCount==true){if(sale.offerCount!=0){wrt(sale.offerCount);}else{wrt('-');}
if(showBinIcon==true)wrt('<br />');}else{wrt(STR.no_break);}
if(showBinIcon)displayBidsIcon(sale);}
function displayBidsCompleted(sale,col)
{if((sale.saleType==1)&&sale.SoldAsBin)displayBidsIcon(sale);else if(sale.IsFixedPrice)displayBidsIcon(sale);else if(sale.saleType==6)wrt(STR.no_break);else wrt(sale.offerCount);}
function displayBidsIcon(sale)
{if(sale.NowAndNew==1)img(SVR.image+"nn.gif",null,null,0,ALT.NowAndNew);else img(SVR.image+"bin_15x54.gif",null,null,0,ALT.BuyItNow);}
function drawTimeColumn(sale,col){columnStart(col);wrt('<nobr>');if(showTime(sale)){if(sale.TimeType==2&&(col.subtype=='ends'||col.subtype=='timeLeft'))wrt('<font color="red">'+sale.Time+'</font>');else if(sale.IsEnded)wrt(sale.Date+STR.no_break+sale.Time);else if(sale.TimeType==1||col.subtype=='timeLeft')wrt(sale.Time);else wrt(sale.Date+STR.no_break+sale.Time);}
else wrt(STR.no_break);wrt('</nobr>');columnEnd(col);}
function drawAttrColumn(sale,col){columnStart(col);var attr_val=getAttr(sale.Attr,new Array(col.id),false);if(attr_val==STR.no_break){attr_val="--"};if((col.id=="27776"||col.id=="29")&&attr_val!="--"){wrt(STR.no_break);wrt(attr_val);}
else{wrt(STR.no_break);wrt(truncateString(attr_val,col.maxLen-2));}
columnEnd(col);}
function drawShippingColumn(sale,col){columnStart(col);var shippingText="--";if((sale.Shipping.shipType=="0")&&(sale.IsEnded)){shippingText=STR.NotSpecified;}else if(sale.Shipping.shipType=="1"){if(sale.Shipping.converted=="1")shippingText="<i>"+sale.Shipping.shipFee+"</i>";else shippingText=sale.Shipping.shipFee;}else if(sale.Shipping.shipType=="2"){shippingScriptText="popWindow(this.href,'','status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,titlebar=no',630,450);return false;"
shippingText="<a href='"+SVR.shippingcalc+"&amp;itemId="+sale.ItemId+"' target='_blank' onclick=\""+shippingScriptText+"\">"+STR.Calculate+"</a>";}else if(sale.Shipping.shipType=="3")shippingText=STR.Free;wrt(shippingText);columnEnd(col);}
function drawActionColumn(sale,col){columnStart(col);if((ENV.siteId=='196')||(ENV.siteId=='223'))displayActionMultibyte(sale,col)
else displayActionNormal(sale,col);columnEnd(col);}
function displayActionNormal(sale,col){var saleVIP=(sale.HasProdRefId)?searchProductURL:searchTitleURL;wrt('<table cellspacing="0" cellpadding="0" border="0">');wrt(' <tr>');wrt('  <td width="3"><img src="'+jPicsPath+'questAssets/leftNav/bulletGray_3x3.gif" height="3" hspace="5" width="3"/></td>');wrt('  <td class="navigation" nowrap="nowrap"><a href="'+saleVIP+sale.SimilarItemsURL+'">'+STR.ViewSimilarActiveItems+'</a></td>');wrt(' </tr>');if(ENV.ShowListAnItemLikeThisWiredOn)
{wrt(' <tr>');wrt('  <td width="3"><img src="'+jPicsPath+'questAssets/leftNav/bulletGray_3x3.gif" height="3" hspace="5" width="3"/></td>');wrt('  <td class="navigation" nowrap="nowrap"><a href="'+jCgi5Path+'ws2/eBayISAPI.dll?SellLikeItem&Item='+sale.ItemId+'">'+STR.ListAnItemLikeThis+'</a></td>');wrt(' </tr>');}
wrt('</table>');}
function displayActionMultibyte(sale,col){var saleVIP=(sale.HasProdRefId)?searchProductURL:searchTitleURL;wrt('<table cellspacing="0" cellpadding="0" border="0"><tr>');wrt('<td class="standard" nowrap="nowrap"><a href="'+saleVIP+sale.SimilarItemsURL+'">'+STR.ViewSimilarActiveItems+'</a></td>');if(ENV.ShowListAnItemLikeThisWiredOn)
{wrt('<td>'+STR.no_break+'|'+STR.no_break+'</td>');wrt('<td class="standard" nowrap="nowrap"><a href="'+jCgi5Path+'ws2/eBayISAPI.dll?SellLikeItem&Item='+sale.ItemId+'">'+STR.ListAnItemLikeThis+'</a></td>');}
wrt('</tr></table>');}
function drawFeedback(sale){var feedbackText="";if(sale.Feedback.fbType=="0"){feedbackText="(<a href='"+SVR.viewfeedback+"&amp;userid="+sale.Feedback.userId+"'>"+sale.Feedback.fbScore+"</a>)";}else if(sale.Feedback.fbType=="1"){feedbackText="(<a href='"+SVR.viewfeedback+"&amp;userid="+sale.Feedback.userId+"'>"+STR.strPrivate+"</a>)";}else if(sale.Feedback.fbType=="2"){feedbackText=STR.NotApplicable;}else{feedbackText="--";}
var feedbackPercentText="";if(sale.Feedback.fbType=="0"&&sale.Feedback.fbPercent){feedbackPercentText="<font color='#666666'>"+sale.Feedback.fbPercent+"%</font>";}
wrt(feedbackText+'&nbsp;'+feedbackPercentText);}
function drawPayPalColumn(sale,col){columnStart(col);wrt(STR.no_break);if((sale.paypalPayment!=0)||(sale.pbpEligible!=0)){if(sale.pbpEligible!=0)img(SVR.image_core+"paypal/logo_paypalPPBuyerProtection_28x16.gif",16,28,0,ALT.pbpEligible);else if(sale.paypalEligible!=0)img(SVR.image_core+"paypal/logo_paypalPP_16x16.gif",16,16,0,ALT.PayPal);}
columnEnd(col);}
function drawPaisaPayColumn(sale,col){columnStart(col);wrt(STR.no_break);if(sale.paisaPayment!=0){img(SVR.image+"icons/iconPaisaPay_16x16.gif",16,16,0,ALT.PaisaPay);}
columnEnd(col);}
function drawEscrowColumn(sale,col){columnStart(col);if(sale.escrow!=0)img(SVR.image+"icon/icon_anfutong_16x16.gif",16,16,0,ALT.Escrow);else wrt(STR.no_break);columnEnd(col);}
function drawStoreColumn(sale,col){columnStart(col);if(typeof sale.Store.name!='undefined'){a("http://stores."+SVR.domain+"/id="+sale.Store.id+"?sspagename=L2");wrt(sale.Store.name+'</a>');}else{wrt(STR.no_break);}
columnEnd(col);}
function drawCompareColumn(sale,col){columnStart(col);wrt('<input type="checkbox" name="coitem" value="'+sale.ItemId+'" onclick="compareLimitTest(this)"/>');columnEnd(col);}
function drawItemPickerColumn(sale,col){columnStart(col);var fcii=window.document.forms["find"].elements["fcii"].value;if(fcii==sale.ItemId)
{wrt('<input type="checkbox" name="itemPicker" value="'+sale.ItemId+'" disabled>');}
else
{wrt('<input type="checkbox" name="itemPicker" value="'+sale.ItemId+'">');}
columnEnd(col);}
function findItemAnchor(sale){if(sale.findItem==2)wrt('<a name="findit_featured"/>');else if(sale.findItem==1)wrt('<a name="findit"/>');}
function newIcon(sale){if(sale.IsNewItem&&!sale.IsEnded){img(SVR.image_core+'icon/iconNew_16x16.gif',null,null,0,ALT.New);wrt(' ');}}
function displayIcons(sale){if(ENV.showPictureIcons==true){if(sale.galleryType!=0){wrt(STR.no_break);img(SVR.image_core+"icon/iconGal_16x16.gif",16,16,0,ALT.Gallery);}
if(sale.IsPicturePackItem==1){wrt(STR.no_break);img(SVR.image_core+"icon/iconPic_16x16.gif",16,16,0,ALT.Picture);}}
if(sale.giftIconType!=0){if(sale.siteId!="100"||ENV.commandName!='StoreFront'){wrt(STR.no_break);if(ENV.page=='listings'){a(SVR.app+"help/buy/browsing_gifticons.html",null,"helpwin","return openHelpWindow(this.href);");}
else{a(SVR.app+"help/sell/gift_icon.html",null,"helpwin","return openHelpWindow(this.href);");}
if(sale.siteId=="100"){img(SVR.image+"motors/icons/gift_16x16.gif",16,16,0,ALT.GiftsAndServices);}else{img(SVR.image+"icon/iconGiftBlu_20x20.gif",20,20,0,ALT.GiftsAndServices);}
wrt('</a>');}}
if(sale.IsHomesDirect!=0&&sale.saleType!=6){wrt(STR.no_break);a(SVR.app+"help/community/fcexplain.html",null,null,null);img(SVR.image+"icons/fc_icon_16x15.gif",16,15,0,ALT.HomesDirect);wrt('</a>');}
if(sale.saleType==5){wrt(STR.no_break);a("http://pages.liveauctions.ebay.com/help/welcome/overview.html",null,null,null);img(SVR.image_core+"LiveAuctions/icons/paddle_noflash_16x15.gif",16,15,0,ALT.LiveAuctions);wrt('</a>');}
if(sale.siteId=='100'){if(sale.mIcon.Inspect==1){wrt(STR.no_break);a(SVR.app_motors+'services/inspection/inspection.html',null,null,null);img(SVR.image_core+'icon/iconRibbon_20x20.gif',20,20,0,"Vehicle Inspection");wrt('</a>');}
if(ENV.page=='listings'||ENV.commandName=='StoreFront'){if(sale.mIcon.US==1){wrt(STR.no_break);a(SVR.app+'help/basics/listing_options.html#listingicon',null,null,null);img(SVR.image_core+'motors/icons/usflag_16x16.gif',null,null,0,"US Flag");wrt('</a>');}
if(sale.mIcon.JP==1){wrt(STR.no_break);a(SVR.app+'help/basics/listing_options.html#listingicon',null,null,null);img(SVR.image+'motors/icons/japanFlag_16x16.gif',null,null,0,"Japan Flag");wrt('</a>');}
if(sale.mIcon.Check==1){wrt(STR.no_break);a(SVR.app+'help/basics/listing_options.html#listingicon',null,null,null);img(SVR.image_core+'motors/icons/checkeredFlag_16x16.gif',null,null,0,"Checkered Flag");wrt('</a>');}
if(sale.mIcon.Four==1){wrt(STR.no_break);a(SVR.app+'help/basics/listing_options.html#listingicon',null,null,null);img(SVR.image+'motors/icons/4x4_16x16.gif',null,null,0,"4X4");wrt('</a>');}
if(sale.mIcon.Gift==1){wrt(STR.no_break);a(SVR.app+'help/basics/listing_options.html#listingicon',null,null,null);img(SVR.image+'motors/icons/gift_16x16.gif',null,null,0,"Gift");wrt('</a>');}
if(sale.mIcon.Grad==1){wrt(STR.no_break);a(SVR.app+'help/basics/listing_options.html#listingicon',null,null,null);img(SVR.image+'motors/icons/gradCap_16x16.gif',null,null,0,"Graduate");wrt('</a>');}
if(sale.mIcon.Anchor==1){wrt(STR.no_break);a(SVR.app+'help/basics/listing_options.html#listingicon',null,null,null);img(SVR.image+'motors/icons/ancor_16x16.gif',null,null,0,"Anchor");wrt('</a>');}
if(sale.mIcon.Cone==1){wrt(STR.no_break);a(SVR.app+'help/basics/listing_options.html#listingicon',null,null,null);img(SVR.image+'motors/icons/cone_16x16.gif',null,null,0,"Cone");wrt('</a>');}
if(sale.mIcon.Wrench==1){wrt(STR.no_break);a(SVR.app+'help/basics/listing_options.html#listingicon',null,null,null);img(SVR.image+'motors/icons/wrench_16x17.gif',null,null,0,"Wrench");wrt('</a>');}
if(sale.mIcon.Tire==1){wrt(STR.no_break);a(SVR.app+'help/basics/listing_options.html#listingicon',null,null,null);img(SVR.image+'motors/icons/tire_16x16.gif',null,null,0,"Tire");wrt('</a>');}}}
if(sale.escrow!=0){wrt(STR.no_break);img(SVR.image+"icon/icon_anfutong_16x16.gif",16,16,0,ALT.Escrow);}}
function drawDistanceColumn(sale,col){columnStart(col);if(sale.Distance.m||sale.Distance.l){if(sale.Distance.l.length>14)sale.Distance.l=sale.Distance.l.substring(0,14)+'...';if(sale.Distance.s)if(sale.Distance.s==1)wrt('< ');if(sale.Distance.m)wrt(sale.Distance.m+STR.no_break);if(sale.Distance.u){if(sale.Distance.u=="mi")wrt(STR.Miles);else wrt(STR.Kilometers);}
if(sale.Distance.m&&sale.Distance.l)wrt('<br />');if(sale.Distance.l)wrt(' <font color="#666666"><span class="navigation">'+sale.Distance.l+'</span></font>');}else{wrt('--');}
columnEnd(col);}
function drawLocationColumn(sale,col){columnStart(col);if(sale.Location!=""){wrt(sale.Location);}else{wrt('--');}
columnEnd(col);}
function drawCountryColumn(sale,col){columnStart(col);if(sale.Country!=""){wrt(truncateString(sale.Country,14));}else{wrt('--');}
columnEnd(col);}
function checkIfSeparatorIsNeeded(s,sale){var check=false;for(var i=s;i<Subtitle.length;i++){var sub=getAttr(sale.Attr,new Array(Subtitle[i].id),false);if(sub.length>0){check=true;break;}}
return check;}
function truncateString(str,len){return(str.length>len&&len>0)?str.substring(0,len)+"...":str;}
function getAttr(attr,id,get_all){var str="";if(attr.isLoaded==1){for(var j=0;j<id.length;j++){var key="a"+id[j];if(attr[key]){if(get_all)str+=attr[key];else return attr[key];}}}else{str+=STR.no_break;}
return str;}
function displayCurrentPrice(sale,bold){var fontWeight='normal';if(sale.IsEnded&&sale.IsSuccessful)fontWeight='bold';else if(sale.IsEnded&&!sale.IsSuccessful)fontWeight='normal';else if(bold)fontWeight='bold';var fontColor='#000000';if(sale.IsEnded&&(sale.saleType==6))fontColor='#000000';else if(sale.IsEnded&&sale.IsSuccessful)fontColor='#006600';else if(sale.IsEnded&&!sale.IsSuccessful)fontColor='#ff0000';wrt('<table cellspacing="0" cellpadding="0" border="0"><tr><td style="padding:1px 4px 1px 0px;">');wrt('<span style="font-weight:'+fontWeight+';color:'+fontColor+';">');if(sale.ConvertedPrice!="")wrt('<i><nobr>'+formatSalePrice(sale,sale.ConvertedPrice)+'</nobr></i>');else if(sale.CurrentPrice!="")wrt('<nobr>'+formatSalePrice(sale,sale.CurrentPrice)+'</nobr>');else wrt(STR.no_break);wrt('</span>');wrt('</tr></table>');}
function displayBinPrice(sale,bold)
{var fontWeight='normal';if(sale.IsEnded&&sale.IsSuccessful)fontWeight='bold';else if(sale.IsEnded&&!sale.IsSuccessful)fontWeight='normal';else if(bold)fontWeight='bold';var fontColor='#000000';if(sale.IsEnded&&sale.IsSuccessful)fontColor='#006600';else if(sale.IsEnded&&!sale.IsSuccessful)fontColor='#ff0000';wrt('<table cellspacing="0" cellpadding="0" border="0"><tr><td style="padding:1px 4px 1px 0px;">');wrt('<span style="font-weight:'+fontWeight+';color:'+fontColor+';">');if(sale.ConvertedBinPrice!="")wrt('<i><nobr>'+formatSalePrice(sale,sale.ConvertedBinPrice)+'</nobr></i>');else if(sale.BinPrice!="")wrt('<nobr>'+formatSalePrice(sale,sale.BinPrice)+'</nobr>');else wrt(STR.no_break);wrt('</span>');wrt('</tr></table>');}
function formatSalePrice(sale,price)
{return(sale.IsEnded)?price.replace(/<[^>]*>/g,""):price;}
function showTime(sale){if(ENV.page=='store'&&sale.saleType==7){return false;}else{return true;}}
function drawTimeLabel(col){if(col.subtype=='timeLeft')wrt(STR.TimeLeft+': ');else if(col.subtype=='listed')wrt(STR.Listed+': ');else if(col.subtype=='startTime')wrt(STR.StartTime+': ');else if(col.subtype=='ends')wrt(STR.Ends+': ');}
function drawRegionColumn(sale,col){columnStart(col);if(sale.Region!=""){wrt(sale.Region);}else{wrt('--');}
columnEnd(col);}
function concatArray(firstArray,secondArray){var newArray=new Array();for(var i=0;i<firstArray.length;i++){newArray[newArray.length]=firstArray[i];}
for(var i=0;i<secondArray.length;i++){newArray[newArray.length]=secondArray[i];}
return newArray;}
function iSvr(){var a=arguments;SVR.image=a[0];SVR.app=a[1];SVR.domain=a[2];SVR.itemURL=a[3];SVR.thumb=a[4];SVR.image_core=a[5];SVR.cgi3=a[6];SVR.cgi5=a[7];SVR.app_motors=a[8];SVR.viewfeedback=a[9];SVR.shippingcalc=a[10];}
function iEnv(){var a=arguments;ENV.bg=1;ENV.fp=0;ENV.siteId=a[0];ENV.reducedThumbnails=a[1];ENV.commandName=a[2];ENV.hasBorder=a[3];ENV.showFeaturedSection=a[4];ENV.page=a[5];ENV.layout=a[6];ENV.isAdultSignedIn=a[7];ENV.showPictureIcons=true;ENV.ShowListAnItemLikeThisWiredOn=a[8];ENV.showSIF=a[9];ENV.showSubtitle=a[10];ENV.Completed=(ENV.page.indexOf("completed")>=0);}
function iStr(){var a=arguments;STR.no_break=a[0];STR.FeaturedText=a[1];STR.FeaturedAuctions=a[2];STR.FeaturedItems=a[3];STR.Miles=a[4];STR.Kilometers=a[5];STR.NoPhoto=a[6];STR.TimeLeft=a[7];STR.Calculate=a[8];STR.Free=a[9];STR.strPrivate=a[10];STR.NotApplicable=a[11];STR.Shipping=a[12];STR.Feedback=a[13];STR.Listed=a[14];STR.StartTime=a[15];STR.Ends=a[16];STR.NotSpecified=a[17];STR.ViewSimilarActiveItems=a[18];STR.ListAnItemLikeThis=a[19];STR.SIFDivider=a[20];STR.ReserveNotMet=a[21];}
function iAlt(){var a=arguments;ALT.BuyItNow=a[0];ALT.Picture=a[1];ALT.New=a[2];ALT.Gallery=a[3];ALT.GiftsAndServices=a[4];ALT.HomesDirect=a[5];ALT.LiveAuctions=a[6];ALT.RealEstateAd=a[7];ALT.Sothebys=a[8];ALT.PayPal=a[9];ALT.pbpEligible=a[10];ALT.NowAndNew=a[11];ALT.Escrow=a[12];ALT.PaisaPay=a[13];}
var addBorderSpacer=false;var salejs=1;

// \include\js\finding\packagefiles\lvm.js@@\main\6 

function getDomain(domain){if(domain.indexOf(".qa")>0){return domain.substring(domain.indexOf("."));}
else{if(domain.indexOf(".es.")>0){return domain.substring(domain.indexOf(".es"));}
else if(domain.indexOf(".tw.")>0){return domain.substring(domain.indexOf(".tw"));}
else if(domain.indexOf(".benl.")>0){return domain.substring(domain.indexOf(".benl"));}
else if(domain.indexOf(".befr.")>0){return domain.substring(domain.indexOf(".befr"));}
else{return domain.substring(domain.indexOf(".ebay"));}}}
function replaceSubstring(inputString,fromString,toString){var temp=inputString;if(fromString==""){return inputString;}
if(toString.indexOf(fromString)==-1){while(temp.indexOf(fromString)!=-1){var toTheLeft=temp.substring(0,temp.indexOf(fromString));var toTheRight=temp.substring(temp.indexOf(fromString)+fromString.length,temp.length);temp=toTheLeft+toString+toTheRight;}}
else{var midStrings=new Array("~","`","_","^","#");var midStringLen=1;var midString="";while(midString==""){for(var i=0;i<midStrings.length;i++){var tempMidString="";for(var j=0;j<midStringLen;j++){tempMidString+=midStrings[i];}
if(fromString.indexOf(tempMidString)==-1){midString=tempMidString;i=midStrings.length+1;}}}
while(temp.indexOf(fromString)!=-1){var toTheLeft=temp.substring(0,temp.indexOf(fromString));var toTheRight=temp.substring(temp.indexOf(fromString)+fromString.length,temp.length);temp=toTheLeft+midString+toTheRight;}
while(temp.indexOf(midString)!=-1){var toTheLeft=temp.substring(0,temp.indexOf(midString));var toTheRight=temp.substring(temp.indexOf(midString)+midString.length,temp.length);temp=toTheLeft+toString+toTheRight;}}
return temp;}
function drawFrame(val)
{var lvmHost=location.hostname.toLowerCase();var valArr=val.split(LVMSeparator);var topBottomBarHeight=60;var bottomBarWrappedHeight=30;var itemRowHeight=75;if(lvmHost.indexOf(".it")>0){itemRowHeight=100;}
else{itemRowHeight=75;}
if(valArr[0]==0)
{return 0;}
var numOfItems=valArr[0];var domainIndex=lvmHost.indexOf(".ebay");var httpIndex=lvmHost.indexOf("//");var startStr="http://";var subDomain=".ebay.com";var htValue=1;if(typeof(ebSelCBObj)!="undefined")
{if(ebSelCBObj!=null)
{if(ebSelCBObj.ht!=1)
{htValue=ebSelCBObj.ht;var cobrandStr=ebSelCBObj.name+".";var toStr="";lvmHost=replaceSubstring(lvmHost,cobrandStr,toStr);}}}
if(domainIndex>0)
{subDomain=getDomain(lvmHost);}
if(httpIndex>0)
{startStr=lvmHost.substring(0,httpIndex+2);}
if(typeof(EBAY_DOMAIN)!="undefined")
{if(EBAY_DOMAIN!=null)
{subDomain="."+EBAY_DOMAIN;}}
var host=startStr+"search-lvm"+subDomain;var htParam="&ht="+htValue;var randomNumber=Math.round(Math.random()*1000);var t=escape(new Date());var randomParam="&cb"+randomNumber+"="+t;lvmSrc=host+"/ws/eBayISAPI.dll?LastViewedMerchandising"+htParam+randomParam;var lvmHeight=0;lvmHeight=topBottomBarHeight+bottomBarWrappedHeight+(itemRowHeight*numOfItems);document.write('<table width="100%" height="'+lvmHeight+'" border="0" cellPadding="0" cellSpacing="1" bgColor="#FFFFFF">');document.write('<tr align="left" bgColor="#FFFFFF" vAlign="middle"><td height="'+lvmHeight+'" vAlign="top" width="100%">');document.write('<iframe NAME="LVMFrame" width="100%" bgcolor="#FFCC00" border="0" frameBorder="0" height="'+lvmHeight+'" marginHeight="0" marginWidth="0" scrolling="no" ');document.write('>');document.write('<ilayer id="layerLVM" width="100%" bgcolor="#FFCC00" height="'+lvmHeight+'" border="1" src="'+lvmSrc+'">');document.write('<NOLAYER><NOFRAME></NOFRAME></NOLAYER></ilayer></iframe>');document.write('</td><td bgColor="#ffffff" vAlign="top"/></tr></table>');return 1;}
function drawFrame2(cats)
{var catsArr=cats.split(LVMSeparator);var numOfItems=parseInt(catsArr[1]);var statics=52;var itemRowHeight=20;if(numOfItems>0)statics+=40;else return false;drawFrame2Windows(numOfItems,statics,itemRowHeight);return 1;}
function displayLVMWidget()
{var agt=navigator.userAgent.toLowerCase();var is_opera=(agt.indexOf("opera")!=-1);var is_NS62=(agt.indexOf("netscape6/6.2")!=-1);if(document.layers||is_opera){return 0;}
var val=checkCookieStatus("ebay","lvmn");if(val==null||val.lenght<=0){val=ReadCookie("LVM");}
if(val!=null)
{var visible=drawFrame(val);if(visible)
{if(is_NS62)
{setTimeout('updateForNS62()',2000);}
else
{parent.frames['LVMFrame'].location.replace(lvmSrc);}}
return visible;}
else
{return 0;}}
function checkCookieStatus(name,cookielet)
{var ebayVal=new EbayCookie(name);ebayVal.isCookielet=true;ebayVal.read();var tmpVal=ebayVal.getCookielet(cookielet);if(tmpVal==null||tmpVal.length<=0){tmpVal=null;}
return tmpVal;}
function displayLVMWidget2()
{var agt=navigator.userAgent.toLowerCase();var is_opera=(agt.indexOf("opera")!=-1);var is_NS62=(agt.indexOf("netscape6/6.2")!=-1);if(document.layers||is_opera){return 0;}
var cats=checkCookieStatus("ebay","lvmn");var oldLVM2=false;var searches;if(cats==null){searches=ReadCookie("LVM");cats=ReadCookie("LVM2");if(searches==null)searches=false;if(cats==null)cats=false;if(searches||cats){oldLVM2=true;}}
if(cats!=null)
{var visible;if(oldLVM2){visible=drawFrame2Old(searches,cats);}else{visible=drawFrame2(cats);}
if(visible)
{if(is_NS62){setTimeout('updateForNS62()',2000);}
else{parent.frames['LVMFrame'].location.replace(lvmSrc);}}
return visible;}
else{return 0;}}
function drawFrame2Old(searches,cats)
{if(searches)var searchArr=searches.split("|");else var searchArr=[0,0];if(cats)var catsArr=cats.split("|");else var catsArr=[0];var statics=52;var itemRowHeight=20;if(parseInt(catsArr[0])>0&&parseInt(searchArr[1])>0)statics+=40;var numOfItems=parseInt(searchArr[1])+parseInt(catsArr[0]);if(numOfItems<1)return false;drawFrame2Windows(numOfItems,statics,itemRowHeight);return 1;}
function drawFrame2Windows(numOfItems,statics,itemRowHeight){var lvmHost=thisHost;var domainIndex=lvmHost.indexOf(".ebay");var httpIndex=lvmHost.indexOf("//");var startStr="http://";var subDomain=".ebay.com";var htValue=1;if(typeof(ebSelCBObj)!="undefined")
{if(ebSelCBObj!=null)
{if(ebSelCBObj.ht!=1)
{htValue=ebSelCBObj.ht;var cobrandStr=ebSelCBObj.name+".";var toStr="";lvmHost=replaceSubstring(lvmHost,cobrandStr,toStr);}}}
if(domainIndex>0)
{subDomain=getDomain(lvmHost);}
if(httpIndex>0)
{startStr=lvmHost.substring(0,httpIndex+2);}
if(typeof(EBAY_DOMAIN)!="undefined")
{if(EBAY_DOMAIN!=null)
{subDomain="."+EBAY_DOMAIN;}}
var host=startStr+"search-lvm"+subDomain;var htParam="&ht="+htValue;var randomNumber=Math.round(Math.random()*1000);var t=escape(new Date());var randomParam="&cb"+randomNumber+"="+t;lvmSrc=host+"/ws/eBayISAPI.dll?LastViewedMerchandising"+htParam+randomParam+"&pi=sc_b";var lvmHeight=0;lvmHeight=(statics-(5*numOfItems))+(itemRowHeight*numOfItems);document.write('<iframe NAME="LVMFrame" width="280" bgcolor="#FFCC00" border="0" frameBorder="0" height="'+lvmHeight+'" marginHeight="0" marginWidth="0" scrolling="no" ');document.write('>');document.write('<ilayer id="layerLVM" width="280" bgcolor="#FFCC00" height="'+lvmHeight+'" border="1" src="'+lvmSrc+'">');document.write('<NOLAYER><NOFRAME></NOFRAME></NOLAYER></ilayer></iframe>');}
function updateForNS62()
{parent.frames['LVMFrame'].location.replace(lvmSrc);}
function clearLVM()
{var ebayVal=new EbayCookie("ebay");ebayVal.isCookielet=true;ebayVal.read();var lvmnCookie=ebayVal.getCookielet("lvmn");if(lvmnCookie==null){DeleteCookie("LVM",cookieDom,"/");DeleteCookie("LVM2",cookieDom,"/");}
else{ebayVal.addCookielet("lvmn","0"+LVMSeparator+"0");ebayVal.set();}
location.reload();}
function clearLVMCookie(theCookie){var ebayVal=new EbayCookie("ebay");ebayVal.isCookielet=true;ebayVal.read();var lvmnCookie=ebayVal.getCookielet("lvmn");if(lvmnCookie==null){DeleteCookie("LVM2",cookieDom,"/");}
else{var tempArr=lvmnCookie.split(LVMSeparator);var numOfItems=parseInt(tempArr[0]);if(isNaN(numOfItems))
{numOfItems=0;}
var tmpStr=numOfItems+LVMSeparator+"0";for(i=2;i<(numOfItems+2);i++){tmpStr=tmpStr+LVMSeparator+tempArr[i];}
ebayVal.addCookielet("lvmn",tmpStr);ebayVal.set();}
location.reload();}
var cookieDom="ebay.com";var machineHost=location.hostname.toLowerCase();if(machineHost.indexOf(".ebay.")>0){cookieDom=machineHost.substring(machineHost.indexOf("ebay."));}
var lvmSrc="";var LVMSeparator="|";if(!is.ie&&!is.mac)
document.domain=cookieDom;var lvm=1;

// \include\lib\_global\_ui\_ex\frame_autosize.js@@\main\9 

function EbayAutoSizeFrame(pParent,pName,pElemId,pDisabled,pConfig)
{if(!this.objType)
this.objType="EbayAutoSizeFrame";this.base=EbayHTML;this.base(pParent,pName,pElemId,pDisabled,pConfig);this.AUTOSIZE_WIDTH_MAX_HEIGHT=0;this.AUTOSIZE_HEIGHT_MAX_WIDTH=1;this.AUTOSIZE_WIDTH_HEIGHT=2;this.sContentUrl=this.oConfig.contentUrl;this.sFrameId=pName+"ContentFrame";this.eContentFrame=null;this.eCopyDiv=null;this.frameDoc=null;this.frameWin=null;this.sContentWidth='0px';this.sContentHeight='0px';this.sSizingStrategy=this.oConfig.sizingStrategy||this.AUTOSIZE_WIDTH_HEIGHT;this.bPageLoaded=false;this.bFrameLoaded=false;this.bIssuedRequest=false;this.bCalcDimension=false;this.bProcessing=false;this.getElem=ebAutoSizeFrameGetElem;this.bindHTMLBase=this.bindHTML;this.bindHTML=ebAutoSizeFrameBindHTML;this.onAfterFrameLoad=ebAutoSizeFrameOnAfterFrameLoad;this.onAfterPageLoad=ebAutoSizeFrameOnAfterPageLoad;this.processLoad=ebAutoSizeFrameProcessLoad;this.calcContentDimension=ebAutoSizeFrameCalcContentDimension;this.copyDiv=ebAutoSizeFrameCopyDiv;this.adjustSize=ebAutoSizeFrameAdjustSize;this.writeHtml=ebAutoSizeFrameWriteHtml;this.onBeforeWriteHtml=null;this.getElemHtml=ebAutoSizeFrameGetElemHtml;this.onBeforeUnloadBase=this.onBeforeUnload;this.onBeforeUnload=ebAutoSizeFrameOnBeforeUnload;this.onBeforeResize=null;this.onAfterResize=null;with(this)
_registerListener(oDocument._getEvent("load"),EVENT_AFTER,"onAfterPageLoad");var oC=this.oGlobals.oClient;if(!(oC.bIE&&oC.iVer>=5)&&!(oC.bNav&&oC.iVer>=7)&&!(oC.bSafari&&oC.iVer>=1)&&!(oC.bOpera&&oC.iVer>=7)&&navigator.userAgent.toLowerCase().indexOf("firefox")==-1)
{this.enable(false);}}
function ebAutoSizeFrameOnBeforeUnload()
{this.onBeforeUnloadBase();if(this.eContentFrame)
this.eContentFrame.jsObj=null;if(this.frameWin)
this.frameWin.jsObj=null;}
function ebAutoSizeFrameGetElem(pName)
{var el=null,d=this.oDocument.doc;if(d.getElementById)
{el=d.getElementById(pName);}
else if(d.all)
{el=d.all[pName];}
return el;}
function ebAutoSizeFrameBindHTML()
{var oC=ebay.oGlobals.oClient;with(this)
{bindHTMLBase();if(oC.bIE&&oC.iVer==5)
{var self=this;var nTimerId=0;checkIfLoadedForIE50=function()
{var f=self.oDocument.win.frames[self.sFrameId];if(f&&f.document&&f.document.readyState=='complete')
{self.onAfterFrameLoad();self.oDocument.win.clearInterval(nTimerId);}};nTimerId=oDocument.win.setInterval(checkIfLoadedForIE50,30);}
oDocument.downgradeDomain();if(eElem&&!bDisabled&&!bIssuedRequest)
{var htmlStr=this.getElemHtml();if(onBeforeWriteHtml)onBeforeWriteHtml();eElem.innerHTML=htmlStr;eContentFrame=oDocument.doc.getElementById(sFrameId);eContentFrame.jsObj=this;if(eContentFrame.contentWindow)
{eContentFrame.contentWindow.location.href=sContentUrl;}}
if(oC.bOpera)
{if(oC.iVer==7&&oC.fMinorVer<0.5)
{var self=this;var nTimerId=0;var checkIfLoadedForOpera7x=function()
{var f=eContentFrame;if(f&&f.contentDocument&&f.contentDocument.readyState=='complete')
{self.onAfterFrameLoad();self.oDocument.win.clearInterval(nTimerId);}};nTimerId=oDocument.win.setInterval(checkIfLoadedForOpera7x,20);}}}}
function ebAutoSizeFrameOnAfterFrameLoad()
{with(this)
{bFrameLoaded=true;if(bPageLoaded&&!bDisabled)
{this.processLoad();}}}
function ebAutoSizeFrameOnAfterPageLoad()
{with(this)
{bPageLoaded=true;if(bFrameLoaded&&!bDisabled)
{this.processLoad();}}}
function ebAutoSizeFrameProcessLoad()
{this.calcContentDimension();if(!this.bCalcDimension)
{var self=this;var tId;var oWin=this.oDocument.win;var checkCalc=function()
{if(self.bCalcDimension)
{oWin.clearInterval(tId);self.adjustSize();}};tId=oWin.setInterval(checkCalc,110);}
else
{this.adjustSize();}}
function ebAutoSizeFrameCalcContentDimension()
{var oC=ebay.oGlobals.oClient;var oCfg=this.oConfig;with(this)
{oDocument.downgradeDomain();if(oC.bIE)
{var body;if(oC.iVer==5)
{frameWin=oDocument.win.frames[sFrameId];frameDoc=frameWin.document;}
else
{frameWin=eContentFrame.contentWindow;frameDoc=eContentFrame.contentWindow.document;}
with(frameDoc.body)
{if(sSizingStrategy==AUTOSIZE_HEIGHT_MAX_WIDTH)
{eContentFrame.style.width=sContentWidth='100%';frameDoc.body.scroll='no';var self=this;var fbody=frameDoc.body;oDocument.win.setTimeout(function(){self.sContentHeight=fbody.scrollHeight;self.bCalcDimension=true;},200);bCalcDimension=false;}
else if(sSizingStrategy==AUTOSIZE_WIDTH_MAX_HEIGHT)
{eContentFrame.style.height=sContentHeight='100%';frameDoc.body.scroll='no';eContentFrame.style.width='auto';var self=this;var fbody=frameDoc.body;oDocument.win.setTimeout(function(){self.sContentWidth=fbody.scrollWidth;self.bCalcDimension=true;},100);bCalcDimension=false;}
else
{frameDoc.body.scroll='no';sContentWidth=parseInt(scrollWidth)+parseInt(leftMargin)+parseInt(rightMargin)+'px';sContentHeight=parseInt(scrollHeight)+parseInt(topMargin)+parseInt(bottomMargin)+'px';var self=this;var fbody=frameDoc.body;oDocument.win.setTimeout(function(){self.sContentHeight=fbody.scrollHeight;self.bCalcDimension=true;},200);bCalcDimension=false;}}}
else if(oC.bOpera)
{frameWin=oDocument.win.frames[sFrameId];frameDoc=eContentFrame.contentDocument;eContentFrame.style.visibility='visible';eContentFrame.scrolling='yes';if(sSizingStrategy==AUTOSIZE_HEIGHT_MAX_WIDTH)
{eContentFrame.style.width='100%';sContentWidth='100%';sContentHeight=frameDoc.body.scrollHeight;var self=this;oDocument.win.setTimeout(function(){self.sContentHeight=self.frameDoc.body.scrollHeight;bCalcDimension=true;},300);bCalcDimension=false;}
else
{if(sSizingStrategy==AUTOSIZE_WIDTH_MAX_HEIGHT)
{eContentFrame.style.height='100%';}
copyDiv();var self=this;oDocument.win.setTimeout(function()
{self.sContentWidth=self.eCopyDiv.scrollWidth;frameDoc.body.removeChild(self.eCopyDiv);self.sContentHeight=self.frameDoc.body.scrollHeight;self.bCalcDimension=true;},300);bCalcDimension=false;}}
else if(eContentFrame&&eContentFrame.contentDocument)
{frameWin=eContentFrame.contentWindow?eContentFrame.contentWindow:oDocument.win.frames[sFrameId];frameDoc=eContentFrame.contentDocument;if(sSizingStrategy==AUTOSIZE_HEIGHT_MAX_WIDTH)
{eContentFrame.style.width=sContentWidth='100%';eContentFrame.style.visibility='visible';var fdoc=frameDoc;var self=this;oDocument.win.setTimeout(function(){self.sContentHeight=fdoc.body.scrollHeight;self.bCalcDimension=true;},100);bCalcDimension=false;}
else if(sSizingStrategy==AUTOSIZE_WIDTH_MAX_HEIGHT)
{eContentFrame.style.height=sContentHeight='100%';eContentFrame.style.visibility='visible';var fdoc=frameDoc;var self=this;oDocument.win.setTimeout(function(){self.sContentWidth=fdoc.body.scrollWidth;self.bCalcDimension=true;},100);bCalcDimension=false;}
else
{eContentFrame.style.visibility='visible';sContentHeight=parseInt(frameDoc.body.scrollHeight)+'px';sContentWidth=parseInt(frameDoc.body.scrollWidth)+'px';bCalcDimension=true;}}
else
{enable(false);}}}
function ebAutoSizeFrameCopyDiv()
{with(this)
{var eDiv=this.eCopyDiv=frameDoc.createElement('div');eDiv.innerHTML=frameDoc.body.innerHTML;;frameDoc.body.appendChild(eDiv);eDiv.style.overflow='scroll';if(sSizingStrategy==AUTOSIZE_HEIGHT_MAX_WIDTH)
{eDiv.style.width='100%';}
else if(sSizingStrategy==AUTOSIZE_WIDTH_MAX_HEIGHT)
{eDiv.style.height='100%';}}}
function ebAutoSizeFrameAdjustSize()
{with(this)
{if(frameWin){frameWin.jsObj=this;}
if(!bDisabled)
{if(onBeforeResize)this.onBeforeResize();eContentFrame.style.width=sContentWidth;eContentFrame.style.height=sContentHeight;eContentFrame.style.visibility='visible';eContentFrame.scrolling='no';eContentFrame.scroll='no';if(onAfterResize&&!this.bDisabled)this.onAfterResize();}}}
function ebAutoSizeFrameWriteHtml()
{with(this)
{if(!bDisabled&&sContentUrl)
{var htmlStr=this.getElemHtml();if(onBeforeWriteHtml)onBeforeWriteHtml();this.oDocument.doc.write(htmlStr);eContentFrame=this.oDocument.doc.getElementById(sFrameId);eContentFrame.jsObj=this;if(eContentFrame.contentWindow)
{eContentFrame.contentWindow.location.replace(sContentUrl);}}
bIssuedRequest=true;}}
function ebAutoSizeFrameGetElemHtml()
{var htmlStr='';with(this)
{var oC=this.oGlobals.oClient;var iwh=(oC.bIE?'1px':'1px');var visble='hidden';htmlStr+='<iframe  name="'+sFrameId+'" id="'+sFrameId+'"  src="'+sContentUrl+'" marginwidth="0" marginheight="0"  frameborder="0" style="width:'+iwh+';height:'+iwh+';visibility:'+visble+'" onload="{this.jsObj.onAfterFrameLoad();}" ></iframe>';}
return htmlStr;}

// \include\lib\_global\features\rvi\rvi.js@@\main\7 

function EbayRVI(pParent,pName,pConfig)
{if(!this.objType)
this.objType="EbayRVI";this.base=EbayAutoSizeFrame;this.base(pParent,pName,pConfig.rviLayerId,false,pConfig);this.ORIENTATION_HORIZONTAL=0;this.ORIENTATION_VERTICAL=1;this.sSeparator='|';this.sCookieVal=null;this.sSourceCookie=null;this.iNumItems=0;if(!this.oConfig.orientation)
{this.oConfig.orientation=this.ORIENTATION_HORIZONTAL;}
this.sLvmCmdUrl=null;this.init=function()
{if(this.oConfig.orientation==this.ORIENTATION_HORIZONTAL)
{this.sSizingStrategy=this.AUTOSIZE_HEIGHT_MAX_WIDTH;}
var val;if((val=this.getCookieVal("dp1","vrvi",true))!=null&&val.length>0&&val.charAt(0)!='0')
{this.sSourceCookie="vrvi";}
else if((val=this.getCookieVal("ebay","lvmn"))!=null&&val.length>0&&val.charAt(0)!='0')
{this.sSourceCookie="lvmn";}
else if(!this.sSourceCookie&&(val=this.getCookieVal("LVM"))!=null&&val.length>0&&val.charAt(0)!='0')
{this.sSourceCookie="LVM";}
if(!this.sSourceCookie)this.enable(false);with(this)
{sCookieVal=val;parse();if(iNumItems==0)this.enable(false);if(!sContentUrl)genContentUrl();}};this.baseEnable=this.enable;this.enable=function(pEnable)
{with(this)
{baseEnable(pEnable);if(eContentFrame)
{if(bDisabled)
{eContentFrame.style.display='none';}
else
{eContentFrame.style.display='inline';}}}};this.getCookieVal=function(pCName,pClName,pDelimited)
{var oC=pDelimited?new EbayDPCookie(pCName):new EbayCookie(pCName);if(pClName)oC.isCookielet=true;oC.read();return pClName?oC.getCookielet(pClName):oC.value;}
this.parse=function()
{var aVal=this.sCookieVal.split(this.sSeparator);this.iNumItems=parseInt(aVal[0]);}
this.genContentUrl=function()
{var lvmHost=this.oConfig.searchHost;if(lvmHost)lvmHost=lvmHost.replace(new RegExp('/*$'),'');var protocol=location.protocol;var htValue=1;if(typeof(ebSelCBObj)!="undefined")
{if(ebSelCBObj!=null)
{if(ebSelCBObj.ht!=1)
{htValue=ebSelCBObj.ht;var cobrandStr=ebSelCBObj.name+".";var c_re=new RegExp(cobrandStr,'g');if(lvmHost)lvmHost=lvmHost.replace(c_re,'');}}}
var targetHost=(lvmHost?lvmHost:protocol+'//'+"search-lvm"+ebay.oGlobals.oEnvironment.sCountryDomain);targetHost=targetHost.replace(new RegExp('/*$'),'');var htParam="&ht="+htValue;var randomNumber=Math.round(Math.random()*1000);var t=escape(new Date());var randomParam="&cb"+randomNumber+"="+t;var pgname=this.oConfig.rviPageName?'&pageName='+this.oConfig.rviPageName:'';var orient="horizontal";switch(this.oConfig.orientation)
{case 0:orient="horizontal";break;case 1:orient="vertical";break;}
var cmdUrl=targetHost+"/ws/eBayISAPI.dll?LastViewedMerchandising"+htParam+randomParam+pgname+'&orientation='+orient;this.sContentUrl=cmdUrl;}
this.clear=function()
{with(this)
{if(!sSourceCookie)return;var oC;switch(sSourceCookie)
{case"vrvi":oC=new EbayDPCookie("dp1");oC.isCookielet=true;oC.read();oC.addCookielet("vrvi","0"+this.sSeparator+"0");break;case"lvmn":oC=new EbayCookie("ebay");oC.isCookielet=true;oC.addCookielet("lvmn","0"+this.sSeparator+"0");break;case"LVM":oC=new EbayCookie("ebay");oC.read();oC.value="0"+this.sSeparator+"0";break;}
oC.set();if(oC.bNav&&oC.iVer>=7||navigator.userAgent.toLowerCase().indexOf("firefox")!=-1)
{var url=location.href;window.location.replace(url);}
else
{location.reload();}}}
this.onBeforeResize=function()
{with(this)
{if(frameWin&&frameWin.disableRvi&&frameWin.disableRvi())
{this.enable(false);}}}
this.init();this.baseWriteHtml=this.writeHtml;this.writeHtml=function()
{this.genContentUrl();this.baseWriteHtml();}
this.base1BindHTML=this.bindHTML;this.bindHTML=function()
{this.genContentUrl();this.base1BindHTML();}}

// \include\lib\_global\features\search\main.js@@\main\7 

ebay.oDocument.oPage.onBeforeLoad=function()
{}
function ebCreateConfigurations()
{var c=ebay.oDocument.addConfig(new EbayConfig("rviConfig"));c.rviLayerId="recentlyViewedItemsLayer";c.orientation=0;c.rviPageName="LVMPage_Visitor_Search";c.merchAdId="merchAd";}
function ebCreateControls()
{var cfg=ebay.oDocument._exec("getConfig","rviConfig");if(!cfg)return;var oRvi=new EbayRVI(ebay.oDocument.oPage,"rvi",cfg);oRvi.onAfterResize=function()
{with(this)
{if(!bDisabled)
{var eMerchAd=oDocument.doc.getElementById(oConfig.merchAdId);if(eMerchAd)eMerchAd.innerHTML='';}}}
oRvi.aAdLayers=[];oRvi.writeMerchAdHtml=function(pDARTSite,pZone,pTile,pW,pH,pIFW,pIFH,pCustomParams,pCustomSets){var delayAdCall=false;var nItems=this.iNumItems;if(this.bDisabled)
{delayAdCall=false;}
else
{delayAdCall=true;}
if(!delayAdCall)
{writeAd(pDARTSite,pZone,pTile,pW,pH,pIFW,pIFH,pCustomParams,pCustomSets);return;}
var cfg=getStandardAdConfig("generic",pDARTSite,[pZone],pTile,pW,pH,pIFW,pIFH);setCustomAdParam(cfg,pCustomParams);if(typeof(pCustomSets)=="string")
pCustomSets=pCustomSets.parseSets();setCustomAdSet(cfg,pCustomSets);var str=getStandardAdHTML(cfg);var regex=new RegExp('<iframe[^>]+>(.*)</iframe>','i');var matches=regex.exec(str);if(matches==null)this.enable(false);var adHtml=matches[0];var adLyrId="adLayer"+pTile;this.oDocument.doc.write('<div id="'+adLyrId+'"></div>');var aAds=this.aAdLayers;var ad=aAds[aAds.length]=this.oDocument.doc.getElementById(adLyrId);ad.sHtml=adHtml;ad.iTile=pTile;return;}
oRvi.baseRviEnable=oRvi.enable;oRvi.enable=function(pEnable)
{this.baseRviEnable(pEnable);var oC=this.oGlobals.oClient;with(this)
{if(!pEnable&&aAdLayers)
{for(var i=0;i<aAdLayers.length;++i)
{aAdLayers[i].innerHTML=aAdLayers[i].sHtml;}}}}
if(oRvi.iNumItems&&oRvi.sSourceCookie)ebay.oDocument.oPage.oConfig.disableRTM=true;}
ebCreateConfigurations();ebCreateControls();

// \include\js\finding\packagefiles\processurl.js@@\main\13 

var searchBaseURL,searchActionURL,searchTitleURL,searchDescURL,searchCompletedURL;var searchBase=new FindPool('searchBase','',searchBaseURL);if(searchActionURL==null||searchActionURL==''){searchActionURL=searchBaseURL;}
var searchTitle=new FindPool('searchTitle',searchTitleURL,searchActionURL);var searchDesc=new FindPool('searchDesc',searchDescURL,searchActionURL);var searchCompleted=new FindPool('searchCompleted',searchCompletedURL,searchActionURL);var browser=new Browser();var SEO;function FindPool(pName,pHost,pUrl){this.name=pName;this.host=pHost;this.url=pUrl;this.fullUrl=this.host+this.url;}
function findGetArgs(){var args=new Object();var query=location.search.substring(1);var pairs=query.split("&");for(i=0;i<pairs.length;i++){var pos=pairs[i].indexOf("=");if(pos==-1)continue;var argname=pairs[i].substring(0,pos);var value=pairs[i].substring(pos+1);args[argname]=unescape(value);}
return args;}
function findURL(myForm){if(typeof searchBase.fullUrl!="undefined"&&searchBase.fullUrl.indexOf("http://")==0)
myForm.action=searchBase.fullUrl;else
{if(typeof searchDesc.host!="undefined"&&typeof searchTitle.host!="undefined")
{if(myForm.elements[SEO.TEXT_SEARCHED]!=null)
{if(myForm.elements[SEO.TEXT_SEARCHED].checked==true)
myForm.action=searchDesc.fullUrl;else
myForm.action=searchTitle.fullUrl;}
else if(myForm.srchdesc!=null)
{if(myForm.srchdesc.checked==true)
myForm.action=searchDesc.fullUrl;else
myForm.action=searchTitle.fullUrl;}}}}
function findHost(myForm,pPage)
{var myHost=null;switch(pPage)
{case"search":if(typeof searchDesc.host!="undefined"&&typeof searchTitle.host!="undefined")
{if(myForm.elements[SEO.TEXT_SEARCHED]!=null)
{if(myForm.elements[SEO.TEXT_SEARCHED].checked==true)
{myHost=searchDesc.host;}
else
{myHost=searchTitle.host;}}
else if(myForm.srchdesc!=null)
{if(myForm.srchdesc.checked==true)
{myHost=searchDesc.host;}
else
{myHost=searchTitle.host;}}}
return myHost;break;case"refineSearch":if(myForm.elements[SEO.ITEM_STATUS]!=null)
{if(myForm.elements[SEO.ITEM_STATUS].checked==true)
myHost=searchCompleted.host;else if(myForm.elements[SEO.TEXT_SEARCHED].checked==true)
myHost=searchDesc.host;else
myHost=searchTitle.host;}
else if(myForm.elements[SEO.TEXT_SEARCHED].checked==true)
myHost=searchDesc.host;else
myHost=searchTitle.host;return myHost;break;default:return null;break;}}
function getPageClicked(){var page=document.forms['find'].elements[SEO.GOTOPAGE].value;var isNum=(isNaN(page))?false:true;var url=gotoformurl+SEO.GOTOPAGE+"="+page;return(typeof gotoformurl!='undefined'&&isNum)?url:document.location;}
function doFindingFormSubmit(myForm,pUseEncoding)
{if(typeof zip_element!='undefined'&&zip_element!=null){updateZipCode(zip_element);}
if(myForm.sofocus.value=='goto')
{document.location=getPageClicked();return false;}
else
{findURL(myForm);if(myForm.sofocus.value=='pf'&&typeof myForm.pf_query!='undefined'&&typeof myForm.satitle!='undefined')
myForm.satitle.value=myForm.pf_query.value;var myHost=findHost(myForm,'search');var browser=new Browser();var sSite=ebay.oGlobals.oEnvironment.sCountry;var bUtfSite=(sSite=="in"||sSite=="cn"||sSite=="tw");if(pUseEncoding&&(browser.nav4up||browser.ie4up)&&myHost!=null&&myHost.length>0&&typeof self.isEncodingEnabled!='undefined'&&isEncodingEnabled()){var returnUrl=(browser.nav6up||browser.ie4up)?true:false;var url=encodeUrl(myHost,myForm,siteId,returnUrl);if(url==false)return false;else if(typeof url=="string")
myForm.action="javascript: document.location='"+url+"'";}else if((browser.nav6up||browser.ie4up)&&!bUtfSite){var defaultOptionValues;var dForm=new SeoForm(myForm,defaultOptionValues);return dForm.submit();}
return true;}}
function doProductFindingFormSubmit(myForm,pUseEncoding){var myHost="http://"+document.location.host;var browser=new Browser();if(pUseEncoding&&(browser.nav4up||browser.ie4up)&&myHost!=null&&myHost.length>0&&typeof self.isEncodingEnabled!='undefined'&&isEncodingEnabled()){var returnUrl=(browser.nav6up||browser.ie4up)?true:false;var url=encodeProductUrl(myHost,myForm,0,returnUrl);if(url==false)return false;else if(typeof url=="string"){window.location.href=url;return false;}}
return true;}
function refineSearchURL(myForm)
{if(myForm.elements[SEO.ITEM_STATUS]!=null)
{if(myForm.elements[SEO.ITEM_STATUS].checked==true)
myForm.action=searchCompleted.fullUrl;else if(myForm.elements[SEO.TEXT_SEARCHED].checked==true)
myForm.action=searchDesc.fullUrl;else
myForm.action=searchTitle.fullUrl;}
else if(myForm.elements[SEO.TEXT_SEARCHED].checked==true)
myForm.action=searchDesc.fullUrl;else
myForm.action=searchTitle.fullUrl;}
function doRefineSearchFormSubmit(myForm)
{var myHost=findHost(myForm,'refineSearch');refineSearchURL(myForm);if(isItemNumber(myForm))
return false;else
{if(typeof self.isEncodingEnabled!='undefined')
{if(isEncodingEnabled())
return encodeUrl(myHost,myForm,siteId);}
else
return true;}}

// \include\js\finding\packagefiles\searchform.js@@\main\e405_caboose\1 

var SEO;var basic_search=["satitle",SEO.TEXT_SEARCHED,SEO.PARENT_CATEGORY,"bs",SEO.SPOT_ZIP_CODE];var search_options;var selected_search_options;var selected_location_options
var text_search_options;var price_search_options;var quantity_search_options;var seller_search_options;var bid_search_options;var selected_time_filter;var selected_date_filter;var selected_distance_filter;var sale_class_search_options;var location_search_options;var pf_options;var form_init;function initSearch(){search_options[search_options.length]="so";if(IsWebTV()==false){var find=document.forms['find'];bindEvent(find);if(typeof(find.sofocus)!="undefined")find.sofocus.value='bs';if(typeof find.sass!='undefined'){setInitSellerID(strSoiInit);}}}
function bindEvent(form){var e=form.elements;for(var i=0;i<e.length;i++)if(e[i].type!='hidden'&&e[i].name!=''){if(e[i].onfocus==null){var b=new Browser();if(b.safari)e[i].addEventListener("click",setFocus,false);else e[i].onfocus=setFocus;}}}
function setFocus(){var focus=getFocus(this);document.forms['find'].sofocus.value=focus;if(focus=='pf')updatePFTracking();}
function getFocus(element){for(var i=0;i<basic_search.length;i++)if(basic_search[i]==element.name)return'bs';for(var i=0;i<search_options.length;i++)if(search_options[i]==element.name)return'so';if(element.name==SEO.GOTOPAGE)return'goto';if(element.name=="pdquery"||element.name=="pd")return'pd';return'pf';}
function formParam(n,v,t){fp=new Object();fp.name=n;fp.value=v;fp.type=t;return fp;}
function isArray(obj){return(typeof obj.length=="undefined")?false:true;}
function clearFields(element){var find=document.forms['find'];for(var i=0;i<text_search_options.length;i++){var fld=find.elements[text_search_options[i].name];if(typeof fld!='undefined')fld.value=(element.checked)?text_search_options[i].value:'';}}
function clearPriceFields(element){var find=document.forms['find'];for(var i=0;i<price_search_options.length;i++){var fld=find.elements[price_search_options[i].name];if(typeof fld!='undefined')fld.value=(element.checked)?price_search_options[i].value:'';}}
function clearQuantityField(element){var find=document.forms['find'];for(var i=0;i<quantity_search_options.length;i++){var fld=find.elements[quantity_search_options[i].name];if(typeof fld!='undefined'){if(fld.name==SEO.COMPOUND_QUANTITY_OP){for(var j=0;j<fld.options.length;j++){if(element.checked){fld.options[j].selected=(quantity_search_options[i].value.indexOf(fld.options[j].value)>-1)?true:false;}
else{fld.options[j].selected=(j==0)?true:false;}}
if(fld.selectedIndex==-1)
fld.selectedIndex=0;}
else{fld.value=(element.checked)?quantity_search_options[i].value:'';}}}}
function clearSellerField(element){var find=document.forms['find'];for(var i=0;i<seller_search_options.length;i++){var fld=find.elements[seller_search_options[i].name];if(typeof fld!='undefined'){if(element.checked)
fld.value=seller_search_options[i].value;else fld.value='';}}}
function clearBidFields(element){var find=document.forms['find'];for(var i=0;i<bid_search_options.length;i++){var fld=find.elements[bid_search_options[i].name];if(typeof fld!='undefined')fld.value=(element.checked)?bid_search_options[i].value:'';}}
function checkSeller(element){var find=document.forms['find'];find.seller.checked=(element=='')?false:true;}
function checkInitSellerID(pSoiInit){var find=document.forms['find'];if(find.sass.value==pSoiInit){find.sass.value='';}}
function setInitSellerID(pSoiInit){var find=document.forms['find'];if(find.sass.value=='')
find.sass.value=pSoiInit;}
function checkPrice(){var find=document.forms['find'];find.price.checked=(find.elements[SEO.PRICE_HIGH]==''&&find.elements[SEO.PRICE_HIGH]=='')?false:true;}
function checkQnty(){var find=document.forms['find'];find.quantity.checked=(find.elements[SEO.COMPOUND_QUANTITY]=='')?false:true;}
function clearGiftOptions(element){for(var i=0;i<selected_gift_options.length;i++){myGift=selected_gift_options[i];myGift.checked=element.checked;}}
function checkBids(){var find=document.forms['find'];find.fbd.checked=(find.sabdlo==''&&find.sabdhi=='')?false:true;}
function checkDateFilter(){var find=document.forms['find'];find.dff.checked=true;}
var DEFAULT_DISTANCE_RANGE="200";var DEFAULT_ZIP_TEXT="ZIP/Postal";var usingDefaultZip=true;function resetDistanceFilter(element){var find=document.forms['find'];if(typeof(find.elements["fspt"])!="undefined"&&typeof selected_distance_filter!='undefined'){for(var i=0;i<selected_distance_filter.length;i++){var fld=find.elements[selected_distance_filter[i].name];if(typeof fld!='undefined'){if(fld.name==SEO.SPOT_DISTANCE){for(var j=0;j<fld.options.length;j++){if(element.checked){fld.options[j].selected=(selected_distance_filter[i].value.indexOf(fld.options[j].value)>-1)?true:false;}
else{fld.options[j].selected=(fld.options[j].value==DEFAULT_DISTANCE_RANGE)?true:false;}}
if(fld.selectedIndex==-1)
fld.selectedIndex=0;}
else{fld.value=(element.checked)?selected_distance_filter[i].value:DEFAULT_ZIP_TEXT;if(element.checked)
usingDefaultZip=false;else
usingDefaultZip=true;}}}}}
function updateZipCode(element){var find=document.forms['find'];for(var i=0;i<find.elements.length;i++){var fld=find.elements[i];if(fld.name==SEO.SPOT_ZIP_CODE){fld.value=element.value;}}}
var zip_element=null;function updateZipElement(element){zip_element=element;}
function clearZipField(element){if(usingDefaultZip){element.value="";usingDefaultZip=false;}}
function resetTimeFilter(element){var find=document.forms['find'];if(typeof(find.elements[SEO.TIME])!="undefined"&&find.elements[SEO.TIME].type=="checkbox"){if(element.checked==true&&typeof selected_time_filter!='undefined'){for(var j=0;j<selected_time_filter.length;j++){var dropdown=find.elements[selected_time_filter[j].name];if(typeof dropdown!='undefined'){for(var i=0;i<dropdown.options.length;i++){if(dropdown.options[i].value==selected_time_filter[j].value)dropdown.options[i].selected=true;}}}}else{for(var j=0;j<selected_time_filter.length;j++){var dropdown=find.elements[selected_time_filter[j].name];dropdown.selectedIndex=0;}}}}
function resetDateFilter(element){var find=document.forms['find'];if(typeof(find.elements["dff"])!="undefined"&&find.elements["dff"].type=="checkbox"){if(element.checked==true&&typeof selected_date_filter!='undefined'){for(var j=0;j<selected_date_filter.length;j++){var dropdown=find.elements[selected_date_filter[j].name];if(typeof dropdown!='undefined'){for(var i=0;i<dropdown.options.length;i++){if(dropdown.options[i].value==selected_date_filter[j].value)dropdown.options[i].selected=true;}}}}else{for(var j=0;j<selected_date_filter.length;j++){var dropdown=find.elements[selected_date_filter[j].name];if(dropdown)
dropdown.selectedIndex=0;}}}}
function checkSaleClass(){var find=document.forms['find'];find.elements[SEO.SALE_CLASS_CB].checked=true;}
function clearSaleClassField(element){var find=document.forms['find'];for(var i=0;i<sale_class_search_options.length;i++){var fld=find.elements[sale_class_search_options[i].name];if(typeof fld!='undefined'){for(var j=0;j<fld.options.length;j++){if(element.checked){fld.options[j].selected=(sale_class_search_options[i].value.indexOf(fld.options[j].value)>-1)?true:false;}
else{fld.options[j].selected=(j==0)?true:false;}}
if(fld.selectedIndex==-1)
fld.selectedIndex=0;}}}
function clearHiddenOptions(element,hidden_options){var find=document.forms['find'];if(typeof(hidden_options)!='undefined'){for(var i=0;i<hidden_options.length;i++){var myHidden=hidden_options[i];var myObj=find.elements[myHidden.name];if(typeof myObj!='undefined'){if(myObj.length){if((element.checked)){for(var j=0;j<myObj.length;j++){if(typeof myObj[j]!='undefined'){if(myObj[j].value==""){myObj[j].value=myHidden.value;j=myObj.length;}}}}else{for(var j=0;j<myObj.length;j++){if(typeof myObj[j]!='undefined'){myObj[j].value='';}}}}else{if((element.checked)){myObj.value=myHidden.value;}
else{myObj.value='';}}}}}}
function clearLocalGlobal(element)
{if(self.selected_locglob_options)
{var myObj=new Object();for(var i=0;i<selected_locglob_options.length;i++)
{myObj=selected_locglob_options[i];myObj.checked=element.checked;}}}
function resetLocation(element){var find=document.forms['find'];if(typeof(find.elements[SEO.LOCATION_CB])!="undefined"&&find.elements[SEO.LOCATION_CB].type=="checkbox"){if(element.checked==true&&typeof location_search_options!='undefined'){for(var j=0;j<location_search_options.length;j++){var dropdown=find.elements[location_search_options[j].name];if(typeof dropdown!='undefined'){for(var i=0;i<dropdown.options.length;i++){if(dropdown.options[i].value==location_search_options[j].value)dropdown.options[i].selected=true;}}}}}else{if(!element.checked&&typeof(find.elements[SEO.LISTING_REGION_ID])!="undefined"){if(find.elements[SEO.LISTING_REGION_ID].type=="select")
find.elements[SEO.LISTING_REGION_ID].options[0].value="-1";else find.elements[SEO.LISTING_REGION_ID].value="-1";}}}
function checkLocation(){var find=document.forms['find'];var element=find.elements[SEO.LOCATION_CB];if(typeof(element)!="undefined"){element.checked=true;}}
function updateSearchOptions(element){var myForm=document.forms['find'];for(var i=0;i<selected_search_options.length;i++){var param=selected_search_options[i];var myObj=myForm.elements[param.name];if(myObj)
if(myObj.type=='checkbox')myObj.checked=element.checked;else myObj.value=(element.checked)?param.value:'';}
clearLocalGlobal(element);clearGiftOptions(element);clearPriceFields(element);clearQuantityField(element);clearHiddenOptions(element,hidden_search_options);clearSellerField(element);clearBidFields(element);resetTimeFilter(element);resetDateFilter(element);if(typeof(myForm.elements[SEO.LISTING_REGION_ID])=="undefined")
resetDistanceFilter(element);switchStoreShowItems(element);}
function updateLocationSearchOptions(element){var myForm=document.forms['find'];for(var i=0;i<selected_location_options.length;i++){var param=selected_location_options[i];var myObj=myForm.elements[param.name];if(myObj.type=='checkbox')myObj.checked=element.checked;else myObj.value=(element.checked)?param.value:'';}
resetLocation(element);resetDistanceFilter(element);clearHiddenOptions(element,hidden_location_options);}
function switchStoreShowItems(element)
{if(element.form.sofp)
{for(var i=0;i<element.form.sofp.length;i++)
{if(!element.form.sofp[i].checked)
{element.form.sofp[i].checked=true;break;}}}}
function setSbrTog(element){var myObj=document.forms['find'].sbrftog;if(element.checked==true){myObj.value="1";}
else if(element.checked==false){myObj.value="0";}}
function updatePFOptions(attr_checkbox){var checked=attr_checkbox.checked;for(var i=0;i<pf_options.length;i++)updatePFOption(pf_options[i],checked);updatePFTracking();}
function updatePFOption(param,checked){var find=document.forms['find'];var element=find.elements[param.name];if(typeof element!="undefined"){if(element.type=="select-one"||element.type=="select-multiple"){var values="";for(var j=0;j<pf_options.length;j++)if(pf_options[j].name==param.name)values+=pf_options[j].value+";";updatePFSelect(element,checked,param,values);}else if(element.type=="hidden"){updatePFHidden(element,checked,param);}else if(element.type=="text"||element.type=="textarea"||element.type=="hidden"){updatePFText(element,checked,param);}else if(element.type=="checkbox"){updatePFCheckbox(element,checked,param);}else if(element.length){var values="";for(var j=0;j<pf_options.length;j++)if(pf_options[j].name==param.name)values+=pf_options[j].value+";";updatePFRadioCheckbox(element,checked,values);}}}
function updatePFRadioCheckbox(element,checked,values){if(checked)for(var i=0;i<element.length;i++)element[i].checked=(values.indexOf(element[i].value)>-1)?true:false;else for(var i=0;i<element.length;i++)element[i].checked=(i==0)?true:false;}
function updatePFCheckbox(element,checked,param){element.checked=checked;}
function updatePFHidden(element,checked,param){if(checked)element.value=param.value;else element.value="";}
function updatePFText(element,checked,param){if(checked)element.value=param.value;else element.value="";}
function updatePFTracking(){var find=document.forms['find'];if(typeof find.rctrack!='undefined')find.rctrack.value='0';}
function updatePFSelect(element,checked,param,values){if(checked)for(var i=0;i<element.options.length;i++)element.options[i].selected=(values.indexOf(element.options[i].value)>-1)?true:false;else for(var i=0;i<element.options.length;i++)element.options[i].selected=(i==0)?true:false;attr_onchange(param.name);}
function updateRefineOptions(checkbox)
{for(var idx=0;(idx<refine_options.length);idx++)
{var option=refine_options[idx];updatePFOption(new formParam("a"+option.name,option.value),checkbox.checked);updatePFOption(new formParam("mb"+option.name,option.value),checkbox.checked);}}
function UpdateCategoryChar(pFormName){var isNav4=IsNetscape4();if(pFormName==null||pFormName==''){pFormName="find";}
var categories=document.forms[pFormName].elements[SEO.PARENT_CATEGORY].options;if(typeof(categories)!="undefined"){categories.selectedIndex=0;if(!isNav4){for(i=0;i<categories.length;i++){var cat=categories[i];if(cat.text.indexOf('>')==0){cat.text="\u2514"+cat.text.substr(1);categories[i]=cat;}}}}}
function writeCheckbox(nm,val,checked,click){document.write('<td width="1%" valign="top">');var str='<input type="checkbox" name="'+nm+'" value="'+val+'" ';if(checked=='true')str+='checked="checked" ';str+='onclick="'+click+'"/>';if(IsWebTV()==false)document.write(str);document.write('</td>');}
function IsLinksModePF(nm){return(nm=='attrfilters'&&typeof document.forms['find'].pf=='undefined')?true:false;}
var form_init=1;

// \include\js\finding\packagefiles\string.js@@\main\4 

function strLTrim()
{return this.replace(/^\s+/,'');}
function strRTrim()
{return this.replace(/\s+$/,'');}
function strTrim()
{return this.replace(/^\s+/,'').replace(/\s+$/,'');}
String.prototype.lTrim=strLTrim;String.prototype.rTrim=strRTrim;String.prototype.trim=strTrim;

// \include\js\lib\_toolbox\_base\ebayFrame.js@@\main\5 

function EbayFrame(pEbayDoc,pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayFrame";this.baseObject=EbayControl;this.baseObject(pEbayDoc,pParent,pEbayDoc.htmlDoc,pName);this.config=pCfg||(new EBayConfig(pName));this.bindHTML=EbayFrameBindHTML;this.resize=EbayFrameResize;}
window.EbayFrame=EbayFrame;function EbayFrameBindHTML()
{if(typeof(document.getElementById)!="undefined")
{this.htmlElement=EbayGetObject(this.ebayDoc.htmlDoc,this.htmlElementName);if(this.config.url)
{this.htmlElement.src=this.config.url;}
if(typeof(this.config.autoHeight)=="undefined")
{this.config.autoHeight=true;}}}
function EbayFrameResize()
{if(typeof(this.htmlElement)=="undefined")
{return false;}
if(this.beforeResize)
{this.beforeResize();}
var iframeElement=this.htmlElement;var iframeWindow=parent.frames[iframeElement.name];if(is.safari)
{iframeWindow=iframeElement;}
var adjustSize=false;var iframeWidth=0;var iframeHeight=0;if(iframeWindow.document.height||is.safari)
{if(is.safari)
{var calc=iframeWindow.document.body.offsetHeight;}
iframeWidth=iframeWindow.document.width;iframeHeight=iframeWindow.document.height+1;adjustSize=true;}
else if(document.all)
{if(is.win)
{iframeWidth=iframeWindow.document.body.scrollWidth;iframeHeight=iframeWindow.document.body.scrollHeight;adjustSize=true;}
else
{iframeWidth=iframeWindow.document.body.offsetWidth;iframeHeight=iframeWindow.document.body.offsetHeight;adjustSize=true;}}
if(adjustSize)
{if(this.config.autoWidth)
{iframeElement.style.width=iframeWidth+"px";}
if(this.config.autoHeight)
{iframeElement.style.height=iframeHeight+"px";}}
if(this.afterResize)
{this.afterResize();}}

// \include\js\lib\features\favnav\favoritesNavigation.js@@\main\12 

function eBayFavNavOnload()
{if(typeof(favnav_frame_config)=="undefined")
{return false;}
if(!(is.mac&&is.ie))
{ebayDowngradeDomain();}
var init_ebayDoc=false;if(typeof(document.ebayDoc)=="undefined")
{ebayDoc=new EbayDocument(window,"favnav");init_ebayDoc=true;}
else
{ebayDoc=document.ebayDoc;}
if(favnav_frame_config)
{frame=new EbayFrame(ebayDoc,ebayDoc,"favnav_iframe",favnav_frame_config);}
var x=new EbayCookie("ebay",null,null,null,null,null,true);x.read();var fn_user_lmd=x.getCookielet("sfLMD");var un="undefined";if(typeof(frame)!=un)
{if(typeof(frame.config)!=un)
{if(typeof(frame.config.url)!=un)
{var parsed_url=frame.config.url.replaceTokens(fn_user_lmd);frame.config.url=parsed_url;}}}
if(init_ebayDoc)
{ebayDoc.onLoad();}}
if(typeof(ebay)!="undefined")
{ebay._registerListener(ebay.oDocument._getEvent("load"),ebay.EVENT_BEFORE,"eBayFavNavOnload");}
if(!window.toolboxOnLoad)
{window.toolboxOnLoad=function(){};}
function toolboxOnUnload()
{killControls(ebayDoc);ebayDoc.htmlDoc.ebayDoc=null;}
function killControls(pObj)
{var cts=pObj.controls,len=cts.length;for(var i=0;i<len;i++)
{killControls(cts[i]);if(cts[i].htmlElement)
cts[i].htmlElement.ebayControl=null;}}

// \include\js\doubleclick_prevent\dclick_killer.js@@\main\6 

var ebAllowClick=true;function ebDCKillCheckMousedown()
{if(ebAllowClick)
{ebAllowClick=false;setTimeout("ebAllowClick=true;",1250);}}
document.onclick=ebDCKillCheckMousedown;

// \include\js\jspack\reserve.js@@\main\1 

var g_isReserved="page_package_reservation";

// \include\lib\_global\_ui\_base\layer.js@@\main\4 

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)
return this.eElem.innerText;else
return this.eElem.innerHTML;}
else
return"";}
function ebHTMLLayerSetValue(pVal,pIsText)
{if(this.eElem)
{if(pIsText)
this.eElem.innerText=pVal;else
this.eElem.innerHTML=pVal;}}

// \include\lib\_global\_ui\_ex\rtm.js@@\main\4 

function EbayRTM(pParent,pId,pDefUrl,pW,pH,pType)
{if(!this.objType)
this.objType="EbayRTM";this.base=EbayBaseControl;this.base(pParent,this.name);this.name="rtm_"+pId;this.config=new ebRTMConfig(pParent,pId,pDefUrl,pW,pH,pType);this.writeILayer=ebWriteRTMLayer;this.writeIFrame=ebWriteRTMFrame;}
function ebRTMConfig(pParent,pId,pDefUrl,pW,pH,pType)
{this.base=EbayConfig;this.base('rtm_'+pId);this.divname="div_"+pId;this.id=pId;this.defUrl=pDefUrl;this.defAdUrl="";this.w=(pDefUrl==null?1:pW);if(this.w<=1)
this.w="100%";this.h=(pDefUrl==null?1:pH);this.type=pType||0;this.collapsed=pDefUrl==null||pW<=1||pH<=1?true:false;this.setIFContent=ebSetIFRTMContent;this.getIFContent=ebGetIFRTMContent;this.getIFHTML=ebGetIFRTMHTML;this.setILContent=ebSetILRTMContent;this.ifResize=ebIFResize;}
function ebWriteRTMFrame()
{var cfg=this.config;var f="",d=this.oDocument;var xsrc=this.oGlobals.oEnvironment.sPicsDir+'spacer.gif';f+='<div id="'+cfg.divname+'">';f+='<img src="'+xsrc+'" height="'+cfg.h+'" width="'+cfg.w+'" border="0">';f+='</div>';d.write(f);var l=new EbayHTMLLayer(ebay.oDocument.oPage,cfg.divname);l.bind();}
function ebGetIFRTMHTML(pUrl)
{with(this)
{var f="";f+='<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"';f+=' id="'+name+'"';f+=' name="'+name+'"';f+=' src="'+pUrl+'"';f+=' width="'+w+'" height="'+h+'"';f+='>';f+='</iframe>';return f;}}
function ebSetIFRTMContent(pUrl)
{var d=ebay.oDocument,ifUrl="",cType=0;var oP=d.oPage;if(typeof(oP.controls[this.divname])!='undefined')
{var aUrlType=ebGetRTMUrlNType(pUrl);var ifUrl=aUrlType[0],cType=aUrlType[1];if(cType==0)
{oP.controls[this.divname].setValue(this.getIFHTML(ifUrl));}
else if(cType==1)
{this.type=cType;oP.controls[this.divname].setValue(ifUrl);}}}
function ebGetIFRTMContent(pName)
{var d=ebay.oDocument,eF=top.frames[pName],retStr;if(typeof(eF)!='undefined')
{if(typeof(eF.document)=='object')
return eF.document.body.innerHTML;}}
function ebIFResize(pW,pH)
{var d=ebay.oDocument,eF=d.doc.getElementById(this.name);if(typeof(eF)!='undefined')
{eF.style.width=pW+'px';eF.style.height=pH+'px';}}
function ebWriteRTMLayer()
{var cfg=this.config;var l="",d=this.oDocument;l='<ILAYER id="'+cfg.name+'" visibility="show" width="';l+=cfg.w+'" height="'+cfg.h+'"></ILAYER>';d.write(l);}
function ebSetILRTMContent(pUrl,pSize)
{var eL=document.layers[this.name];if(typeof(eL)=='undefined')
return;var l="";var aUrlType=ebGetRTMUrlNType(pUrl);var ilUrl=aUrlType[0],cType=aUrlType[1];if(cType==0)
{if(pUrl.is('-1'))pUrl=this.defUrl;l+='<LAYER SRC="'+pUrl+'" width="'+this.w+'" height="'+this.h+'" ';l+='onLoad="moveToAbsolute('+this.name+'.pageX,'+this.name+'.pageY);';l+='clip.height='+this.h+';clip.width='+this.w+';';l+=' visibility=\'show\';"></LAYER>';document.write(l);}
else if(cType==1)
{this.type=cType;var lW=this.w,lH=this.h;if(typeof(pSize)!='undefined')
{lW=pSize.indexOf(":")!=-1?pSize.split(":")[0]:lW;lH=pSize.indexOf(":")!=-1?pSize.split(":")[1]:lH;}
l+='<layer onload="moveToAbsolute('+this.name+'.pageX,'+this.name+'.pageY);" ';l+='width="'+lW+'" height="'+lH+'">'+ilUrl+'</layer>';document.write(l);}}
function ebGetRTMUrlNType(pUrl)
{var retArray=new Array("",0);if(pUrl&&pUrl.indexOf('*t*')!=-1)
retArray=pUrl.split('*t*');else if(typeof(pUrl)!='undefined')
retArray[0]=pUrl;return retArray;}
function isValidContent(pStr)
{if(pStr==null||typeof(pStr)=='undefined')
return false;var pageNotFound='The page cannot be found';var pageCannotBeDisplayed='The page cannot be displayed';if(pStr.hasAny(pageNotFound,pageNotFound))
return false;return true;}

// \include\lib\_global\features\rtm\placement.js@@\main\9 

if(typeof(oAdManager)=="undefined")
var oAdManager=new EbayAdManager();function EbayRTMPlacement(pParent,pName)
{if(!this.objType)
this.objType="EbayRTMPlacement";this.base=EbayBaseControl;this.base(pParent,pName);this.rtms=new Array;this.register=ebRegisterRTM;this.delimiter="*t*";this.timeoutID=0;this.rdUrl="";var oC=ebay.oDocument.oPage.oConfig;var un='undefined';this.disableRTM=(typeof(oC.disableRTM)!=un)?oC.disableRTM:false;this.writePlacement=function(pId,pAdCfg,pDefUrl,pType)
{var c=pAdCfg;if(!c||c.objType!="EbayAdConfig")
return;if(this.disableRTM)
return;var defAd=new EbayAd(ebay,c.name,c,oAdManager);defAd.setCountryGlobals=setAdCountryGlobals;defAd.setCountryLocals=setAdCountryLocals;defAd.setCountryGlobals(defAd.globals);defAd.globals.resetGlobals();defAd.setCountryLocals(defAd.config);var gb=defAd.globals;var adParams=c.getAdParamString(gb,defAd.ord);var defAdUrl=gb.iframeUrl+adParams;pDefUrl=pDefUrl?pDefUrl:defAdUrl;var p=new EbayRTM(pParent,pId,pDefUrl,c.width,c.height,pType);p.config.defAdUrl=defAdUrl;this.register(p.config);if(document.layers)
p.writeILayer();else
p.writeIFrame();}
this.getRTMContent=function(pCfg)
{if(this.disableRTM)
return;if(pCfg)
{var path,rHost,id,l;var timeout=0;var qs=document.location.search;var qi=qs.indexOf("i=");with(pCfg)
{if(typeof(rtmEngineHost)!=un&&!rtmEngineHost.is(''))
rHost=rtmEngineHost;if(typeof(userId)!=un&&!userId.is(''))
id=userId;else if(qi!=-1)
{var ci=qs.indexOf(";");if(ci!=-1)
id=qs.substring(qi+2,ci);else
id=qs.substring(qi+2);}
else if(typeof(login)!=un&&!login.is(''))
l=login;else if(typeof(u1p)!=un&&!u1p.is(''))
{var u1pd=u1p.decodeBase64().decodeUTF8();if(!u1pd.has('@@__@@__@@'))
l=u1pd;}}
if(typeof(pCfg.timeout)!=un)
timeout=pCfg.timeout;if(typeof(rHost)==un)
return;if(this.rtms.length==0)
return;var pids=this.collectPids(this.rtms);var params=(pCfg.params)?pCfg.params:"";path=rHost+pids+params;if(typeof(id)!=un)
path+="&i="+id;else if(typeof(l)!=un)
path+="&l="+l;var d=this.oDocument,g=this.oGlobals;path+="&ord="+(new Date()).getTime();this.rdUrl=(typeof(pCfg.rdUrl)!=un)?pCfg.rdUrl:"";var sTimout="";if(!this.rdUrl.is("")&&timeout>0)
sTimeout="document.location.replace('"+this.rdUrl+"')";else
{var rtmArr="";for(var i=0;i<this.rtms.length;i++)
rtmArr+="-1,";rtmArr=(rtmArr!="")?rtmArr.substr(0,rtmArr.length-1):"";sTimeout="ebay.oDocument._getControl('rtm').setRTMContent(["+
rtmArr+"],["+rtmArr+"])";timeout=1500;}
this.timeoutID=window.setTimeout(sTimeout,timeout);d.write(g.scriptTag(path));}}
this.collectPids=function(pRTMs)
{var ret="";if(pRTMs.length>0)
{ret="&p=";for(var i=0;i<pRTMs.length;i++)
ret+=pRTMs[i].id+(i<pRTMs.length-1?":":"");}
return ret;}
this.setRTMContent=function(pUrlArr,pSizeArr)
{if(this.disableRTM)
return;window.clearTimeout(this.timeoutID)
var aRTMs=this.rtms;if(aRTMs.length>0)
{for(i=0;i<aRTMs.length;i++)
{var isdc=(pUrlArr[i]!=-1&&pUrlArr[i].indexOf(';')==0)?true:false;if(pUrlArr[i]==-1&&!document.layers)
pUrlArr[i]=aRTMs[i].defUrl;else if(isdc)
{var sz=";sz";if(pUrlArr[i].length==1)
pUrlArr[i]=aRTMs[i].defAdUrl;else if(aRTMs[i].defAdUrl.indexOf(sz)!=-1)
pUrlArr[i]=aRTMs[i].defAdUrl.replace(sz,pUrlArr[i]+sz)}
if(document.layers)
aRTMs[i].setILContent(pUrlArr[i]+'',pSizeArr[i]+'');else
aRTMs[i].setIFContent(pUrlArr[i]+'');if(!isdc&&typeof(pSizeArr[i])!=un&&pSizeArr[i]!=-1)
{if(pSizeArr[i].indexOf(":")!=-1)
{var rSize=pSizeArr[i].split(":");aRTMs[i].ifResize(rSize[0],rSize[1]);}}}}}
this.rdPage=function()
{if(!this.rdUrl.is(''))
document.location.replace(this.rdUrl)}}
function ebRegisterRTM(pRTM)
{if(pRTM)
{var r=this.rtms.length;this.rtms[r]=pRTM;}}
new EbayRTMPlacement(ebay.oDocument,"rtm");
//-->