//<!--
// \include\lib\_global\features\natural_search\_base\base.js@@\main\1 

function EbayNaturalSearch(pParent,pName,pConfig)
{if(!this.objType)
this.objType="EbayNaturalSearch";this.base=EbayBaseControl;this.base(pParent,pName);this.aEngines=new Array();this.aRotationIDs=new Array();this.init=function()
{if(this.oDocument.doc.location.search.indexOf("xpufu=x")!=-1)
window.cleanUp=new Function();this.track();}
this.track=function()
{with(this)
{var env=oGlobals.oEnvironment,engs=aEngines,nss=false;for(var i=engs.length-1;i>-1&&!nss;i--)
nss=env.sLastPagePath.has(engs[i])?env.sLastPage:false;if(nss)
{var im='<img width="1" height="1" src="http://adfarm.mediaplex.com/a'+'d/lt/';im+=aRotationIDs[env.sCountry]+'?mpt=';im+=escape((new Date()).toGMTString())+'&mpcl=';im+=escape(env.sThisPage)+'&mpvl='+escape(nss)+'">';oDocument.write(im);}}}
this.addEngines=function(pArray)
{this.aEngines=pArray;}
this.addRotationId=function(pKey,pValue)
{this.aRotationIDs[pKey]=pValue;}}
new EbayNaturalSearch(ebay.oDocument,"naturalSearch");

// \include\lib\_global\features\natural_search\features\engines.js@@\main\4 

ebay.oDocument._getControl("naturalSearch").addEngines(new Array("A9.com",".altavista.com","clusty.com","google.co.jp","google.co.kr","google.ru","www.google.com","icerocket.com","infospace.com","mooter.com","search.msn.","snap.com","search.yahoo.com","search.yahoo.co.jp","search.aon.at/newsearch/aon/","austronaut.at/page.php","www.google.at","suche.lycos.at","www.allsearchengine.com","au.anzwers.yahoo.com","search.aol.com.au","search.bigpond.com","www.goeureka.com.au","www.google.com.au","images.google.com.au","www.information.com","www.kanoodle.com.au","www.looksmart.com.au","www.mysearch.com.au","ninemsn.com.au","websearch.optusnet.com.au","www.searchtheweb.com.au","www.webwombat.com","www.yellowpages.com.au/search/searchEntry.do","yellow.advalvas.be/av2/scripts/YellowSearch.dll","altavista.advalvas.be/av2/","www.google.be","search.fr.msn.be","startpagina.be","www.alltheweb.com","www.overture.com/d/search/p/altavista/odp/ca/","www.google.ca","www.toile.qc.ca","www.looksmart.com","www.lycos.ca","search.lycos.com/default.asp","ca.yahoo.com","search.bluewin.ch","www.google.ch","www.search.ch","cns.3721.com","seek.3721.com","www.8848.com/search.dll","www.baidu.com","image.baidu.com","site.baidu.com","images.google.com","search.google.com","nisearch.163.com","psearch.163.com","picsearch.163.com","www.sogou.com","image.search.sohu.com","search.tom.com","sitesearch.tom.com","cn.websearch.yahoo.com","cn.imagesearch.yahoo.com","www.yisou.com/search","image.yisou.com","page.zhongsou.com","hc360.zhongsou.com","site.zhongsou.com","directory.google.com","suche.aol.de/suche/","suche.aol.de/shopping/suche/index.jsp","suche.freenet.de/suche","shopping.freenet.de/suchergebnis/index.html","www.gmx.net/de/suche/","www.google.de/search","images.google.de/images","suche.lycos.de","webkatalog.lycos.de","brisbane.t-online.de/fast-cgi/tsc","shopping1.t-online.de/toi/scripts/query.php","suche.web.de/search/","dir.web.de","suche.web.de","www.google.es","images.google.es","buscador.terra.es","busca.wanadoo.es/search","buscar.ya.com","www2.yatv.com","www.overture.com/d/search/p/altavista","www.antisearch.net/cgi-bin/findall","www.recherche.aol.fr","www.images.aol.fr","www.deepindex.com/search.php?search","fr.dir.com/cgi/recherche","beta.exalead.fr/search","search1-2.free.fr","www.freesurf.fr/search","www.google.fr","images.google.fr","search.hotbot.fr/cgi-bin/pursuit","vachercher.lycos.fr/cgi-bin/pursuit","www.netscape.fr/rech","www.neuf.fr/recherche/recherche.asp","rechercher.nomade.tiscali.fr/recherche.asp","search.ke.voila.fr","recherche.wanadoo.fr","wanadoo.fr/bin/frame.cgi?u=http%3A//r.voila.fr","www.godado.it","www.google.it","news.google.it","search.iltrovatore.it","arianna.libero.it","business.libero.it/arianna","cerca.lycos.it","it.encarta.msn.com/encnet","www.overture.com/d","search.tiscali.it","search-dyn.tiscali.it","www.tuttogratis.it","search.virgilio.it","www.google.nl","www.ilse.nl/searchresults.dbl","ixquick.com/ned/","lycos.nl","pagina.nl","vinden.nl","vindex.nl","www.zoek.nl","www.zoeken.nl","www.google.com.tw","images.google.com.tw","www.msn.com.tw","www.pchome.com.tw","image.pchome.com.tw","dir.pchome.com.tw","tw.yahoo.com","www.yam.com","wps.yam.com","dir.yam.com","search.aol.co.uk/web","search.aol.co.uk/web_uk.adp","search.aol.co.uk/image","web.ask.co.uk/web","images.google.co.uk/images","search.hotbot.co.uk/cgi-bin/pursuit","search.lycos.co.uk/cgi-bin/pursuit","search.msn.co.uk/results.aspx","www.webfinder.co.uk/Search/Page.aspx","www.google.co.uk/search","www.ask.co.uk/res.asp","www.overture.com/d/search/p/altavista/","aolsearch.aol.com","search.aol.com","web.ask.com","pictures.ask.com","images.google.com","groups.google.com","www.google.com/search","www.hotbot.com","search.netscape.com","s.teoma.com/","www.wisenut.com"));

// \include\lib\_global\features\natural_search\features\base.js@@\main\2 

with(ebay.oDocument._getControl("naturalSearch"))
{addRotationId("at","5221-27090-11243-0");addRotationId("au","705-16386-7124-0");addRotationId("befr","1553-16392-7839-0");addRotationId("benl","1553-16392-7839-0");addRotationId("ca","706-5385-7828-0");addRotationId("ch","5222-27091-11242-0");addRotationId("cn","4080-21866-9194-0");addRotationId("de","707-16360-3220-0");addRotationId("es","1185-16394-7840-0");addRotationId("fr","709-16363-2357-0");addRotationId("it","724-16468-4166-0");addRotationId("nl","1346-16393-7838-0");addRotationId("tw","1631-7654-5203-0");addRotationId("uk","710-16388-7832-0");addRotationId("us","711-13271-9788-0");addRotationId("in","4686-23749-10070-0");addRotationId("ie","5282-27434-11362-0");init();}

// \include\lib\_global\features\site_catalyst\_base\ssObjs.js@@\main\8 

function EbaySiteCatalystFiles(pParent,pName)
{if(!this.objType)
this.objType="EbaySiteCatalystFiles";this.base=EbayBaseControl;this.base(pParent,pName);var env=this.oGlobals.oEnvironment;this.aFiles=new Array;var sd=this.sSourceDir=includeHost+"aw/pics/lib/_global/features/site_catalyst/";var pd=this.sPackageDir=env.sIncludeHost+"js/v/"+
env.sCountry+"/site_catalyst/";this.sBaseDir=sd+"_base/";this.sPageNamesDir=pd+"pagenames/";this.sPropertyReportsDir=pd+"property_reports/";this.sEventsDir=pd+"events/";this.sCookiesDir=pd+"cookies/";this.add=function()
{var args=arguments,aLen=args.length,fs=this.aFiles;for(var i=0;i<aLen;i++)
{var found=false,len=fs.length;for(var j=0;j<len&&!found;j++)
found=(fs[j]==args[i]);if(!found)
fs[len]=args[i];}}}
function EbaySiteCatalyst(pParent,pName)
{if(!this.objType)
this.objType="EbaySiteCatalyst";this.base=EbayBaseControl;this.base(pParent,pName);var env=this.oGlobals.oEnvironment;this.oFiles=new EbaySiteCatalystFiles(this,"files");this.aAccounts=new Array;this.sCookieDom=env.sThisPagePath.has(env.sQADomain)?".ebay.com":env.sCountryDomain.substring(0,env.sCountryDomain.length-1);this.sCookieName="ebay";this.sCountry=this.sQA=this.sSample=this.sPage=this.sHost=this.sPageName=this.sChannel="";this.sUser="Nonreg";this.bL10Sample=this.bLoadBaseCode=false;this.bDebugMode=env.sThisPageQuery.has("ebscdebug=on");this.dExpires=new Date();this.writeCookie=function(pName,pVal)
{writeMultiCookie(this.sCookieName,pName,pVal,this.sCookieDom,"/");}
this.readCookie=function(pName)
{return readMultiCookie(this.sCookieName,pName);}
this.addAccount=function(pAccount)
{this.aAccounts[this.aAccounts.length]=pAccount;}
this.setCountry=function()
{with(this)
{var env=oGlobals.oEnvironment;var c=env.sCountry.toUpperCase(),tp=sPage;c=c.substring(0,2);if(env.sCountry.is("tw")&&bL10Sample)
addAccount("ebaytaiwan10"+sQA);if(tp.has('.com/nz/'))c="NZ";else if(tp.has('ebaysweden'))c="SE";else if(tp.has('.com.sg/'))c="SG";sCountry=c+";;";}}
this.getOrDropLuckyCookie=function()
{with(this)
{var l9="lucky9",v=oDocument.getCookie(l9);if(v.is(""))
v=new String(Math.floor(Math.random()*1000000));WriteCookie(l9,v,sCookieDom,"/",dExpires);sSample=v;return v;}}
this.checkRegCookie=function()
{with(this)
{if((readMultiCookie("reg","flagReg")=="1")||(ReadCookie("ebaysignin")=="in")||(ReadCookie("reg")=="1"))
{sUser="Reg";writeMultiCookie("reg","flagReg","1",sCookieDom,"/",dExpires);}}}
this.determineAccounts=function()
{with(this)
{var l9=getOrDropLuckyCookie(),len=(l9.length>0);var doc=oDocument;sChannel=oGlobals.oEnvironment.sCountryDesc;if(len)
{if(l9%10==6)
bL10Sample=true;if(l9%100==6)
{addAccount("ebay1"+sQA);}
else
{if(isTrackSearchAd())
{var mod=l9%3000,acc=["a","b","c","d","e","f","g"];if(mod>=51&&mod<=57)
{addAccount("ebaysearchadseg"+acc[mod%50-1]+sQA);}}}
if(l9%1000==6)
{var reg=(sUser=="Reg")?"":"non";addAccount("ebay"+reg+"reg"+sQA);}
if((l9%1000==6)&&sQA.is(''))
addAccount("ebay"+sChannel);if(typeof(is)!="undefined")
{if(l9%1000==7&&env.sCountry.is("us")&&!is.safari)
addAccount("ebayfindingexper"+sQA);}}}}
this.isTrackSearchAd=ebSiteCatalystIsTrackSearchAd;this.loadFiles=function()
{with(this)
{var fs=oFiles.aFiles,len=fs.length;for(var i=0;i<len;i++)
oDocument.write(oGlobals.scriptTag(fs[i]+".js"));}}
this.init=function()
{with(this)
{var yr=dExpires.getYear();if(yr<1900)
yr=yr+1900;dExpires.setYear(yr+5);var doc=oDocument;doc.write('<img name="s_i_ebay" width=1 height=1 border=0>');var env=oGlobals.oEnvironment,tp=env.sThisPage;sPage=tp.toLowerCase();sHost=env.sThisPageHost.toLowerCase();sQA=env.sThisPagePath.has(env.sQADomain)?"qa":"";checkRegCookie();determineAccounts();setCountry();bLoadBaseCode=(aAccounts.length||bDebugMode);}}
this.init();}
function ebSiteCatalystIsTrackSearchAd()
{return false;}
new EbaySiteCatalyst(ebay.oDocument,"siteCatalyst");

// \include\lib\us\features\site_catalyst\track_searchad.js@@\main\2 

function ebSiteCatalystIsTrackSearchAd()
{return false;}

// \include\lib\_global\features\site_catalyst\_base\ssPageType.js@@\main\6 

ebay.oDocument._getControl("siteCatalyst").attachFunctionality=function()
{this.sPageNameCountrySite="";this.ssADMEC=this.sSBR=this.sFND2=this.sDomValue=this.aBibo=this.aSegF="";this.aCustomFunctions=new Array;this.sCookieNames=new Array;this.debug=new Function("");this.registerFunction=function(pName)
{this.aCustomFunctions[this.aCustomFunctions.length]=pName;}
this.addCookieName=function(pName,pInSSCookie)
{this.sCookieNames[pName]=pInSSCookie;}
this.getAndSetPageName=function()
{with(this)
{var pn=oDocument.doc.title,un="undefined";if((typeof(pageName)!=un)&&(pageName!="document.title"))
pn=pageName;sPageNameCountrySite=sCountry+pn;with(oFiles)
{var p=parent,pnl=pn.toLowerCase(),pg=p.sPage.toLowerCase(),ed=sEventsDir;var pnd=sPageNamesDir,prd=sPropertyReportsDir,cd=sCookiesDir;var pkdir=sPackageDir;add(pkdir+"common");if((typeof(keyword)!=un)&&keyword)
add(cd+"keyword");p.addCookieName("ssSBR",true);if(typeof(SBR)!=un)
add(cd+"sbrWrite");p.addCookieName("ssFND2",true);if(typeof(FND2)!=un)
add(cd+"fnd2Write");p.addCookieName("ADME",true);if(pg.has("adme:"))
add(cd+"admeWrite");if(pg.has("sspagename="))
{if(pg.has("mops"))
add(pkdir+"mops");add(cd+"ssPagename");writeLL=true;}
p.addCookieName("lastList",true);if(pnl.hasAny('viewsUsersPage','aboutmystore','storefrontlistings','sPagestorefrontlistings','storeinternalsearchresults','storebinitemsearchresults')||(typeof(writeLL)!=un))
add(cd+"lastListWrite");if(pnl.has('viewitem'))
add(pkdir+"viewitem");if(pnl.hasAny('search','listings'))
{p.addSBRPropReportFiles();add(pkdir+"search_listings");}
if(pnl.hasAny('productpage','storesearch','pageviewsellersotheritems'))
p.addSBRPropReportFiles();if(pnl.hasAny('bincongrats','acceptbid'))
{var f=pnl.has('bincongrats')?"n":"d";add(pkdir+"bid_bin/bi"+f);p.ssADMEC="B";p.addFND2PropReportFiles();}
if(pnl.isAny('pagemakebid','pagebinverify'))
{var f=pnl.is('sPagebinverify')?"n":"d";add(pkdir+"bid_bin/attempt_bi"+f);}
if(pnl.has('watchconfirm'))
{add(prd+"CommonSBRFND2");add(pkdir+"watch_confirm");p.addFND2PropReportFiles();}
if(pnl.hasAny('pageaddnewitem','pagesyi_confirm'))
{p.ssADMEC="L";add(pkdir+"listing_confirm");}
if(pnl.hasAny('registersuccess','registercongrats','registeraolcongrats'))
{p.ssADMEC="R";add(ed+"registerSuccess");}
if(!p.ssADMEC.is(""))
add(cd+"admeRead");if(pnl.has('pageregisterenterinfo'))
add(ed+"registerEnter");if(pnl.has('pageregisterconfirmemail'))
add(ed+"registerConfirm");pn=p.setOtherPagenames(pnl,pn);if((typeof(pfType)!=un)&&pfType)
add(prd+"productFinder");if((typeof(relatedStores)!=un)&&(relatedStores==1))
add(prd+"relatedStores");if(pnl.hasAny('checkoutreview','checkout_challenge')&&sCountry.isAny("us","uk"))
add(ed+"checkout");}
sPageName=sCountry+pn;}}
this.addSBRPropReportFiles=function()
{with(this.oFiles)
add(sPropertyReportsDir+"sbr");}
this.addFND2PropReportFiles=function()
{with(this.oFiles)
add(sPropertyReportsDir+"fnd2");}
this.setOtherPagenames=function(pPnl,pPn)
{var tp=this.sPage,rv=pPn;if(pPnl.is("sPagesignin")&&(this.oDocument.getCookie("ebaysignin")=="in"))
rv="PageSignOut";if(tp.has('liveauctions.'))rv="LiveAuctions:"+rv;if(tp.hasAny("searchcat","&pilot"))rv+=":CIS";if(tp.has("&allcats"))rv+=":AllCats";if(tp.has("&mocat"))rv+=":MoreCats";if(tp.has("&top10"))rv+=":Top10";return rv;}}
ebay.oDocument._getControl("siteCatalyst")._exec("attachFunctionality");

// \include\lib\_global\features\site_catalyst\_base\ssLoad.js@@\main\2 

ebay.oDocument._getControl("siteCatalyst").load=function()
{with(this)
{var stores=((typeof(eBayTREiasId)!="undefined")&&(typeof(eBayTRPageName)!="undefined"));if(bLoadBaseCode||stores)
{if(typeof(getAndSetPageName)=="function")
getAndSetPageName();with(oFiles)
{var pd=sPackageDir;if(bDebugMode&&oGlobals.oClient.bIE)
add(pd+"debug");add(pd+"omniture/base");if(stores)add(pd+"omniture/stores");if(parent.bLoadBaseCode)add(pd+"base");}
loadFiles();}}}
ebay.oDocument._getControl("siteCatalyst")._exec("load");

// \include\lib\_global\features\ads\adfooter_ns.js@@\main\1 

var isNS4x=false;if(document.layers)
isNS4x=true;function processAdLayers()
{if(isNS4x)
{if(typeof(oAdManager)!="undefined")
{var h="";var aAds=oAdManager.ads;for(var i=0;i<aAds.length;i++)
{var lId=aAds[i].layerId;var lW=aAds[i].config.ifWidth;var lH=aAds[i].config.ifHeight;h+='<LAYER SRC="'+aAds[i].adUrl+'" width="'+lW+'" height="'+lH+'" visibility="hidden" ';h+='onLoad="moveToAbsolute('+lId+'.pageX,'+lId+'.pageY);clip.height='+lH+';clip.width='+lW+';';h+=' visibility=\'show\';"></LAYER>';}
document.write(h);}}}
function eOnResize()
{if(innerWidth!=origWidth||innerHeight!=origHeight)location.reload();}
if(isNS4x)
{processAdLayers();origWidth=innerWidth;origHeight=innerHeight;onresize=eOnResize();}

// \include\lib\_global\features\cobrand\footer.js@@\main\2 

var cCobrandCollection=ebay.oDocument._getControl("cobrandCollection");if(cCobrandCollection)
cCobrandCollection._exec("cobrandPage");
//-->