//<!--
//1@@m2

function initCookieJar()
{var u="undefined";if(typeof(ebay)!=u&&typeof(getParent)!=u)
{var p=getParent();if(p.ebay)
{var cj=p.ebay.oDocument.oCookieJar;ebay.oDocument.oCookieJar=cj;ebay.oDocument._addControl('cookieJar',cj);}}}
initCookieJar();

//2@@m10

var s_ClickMapFilter="ebayus,ebayusqa";var s_disableLegacyVars=true;var s_account="ebay1";var s_currencyCode="USD";var s_eVarCFG="";var s_trackDownloadLinks=true;var s_trackExternalLinks=true;var s_trackInlineStats=true;var s_linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,doc,pdf,xls";var s_linkInternalFilters="javascript:,ebay,e-bay,ebey,half";var s_linkLeaveQueryString=false;var s_linkTrackVars="None";var s_linkTrackEvents="None";var s_charSet="UTF-8";if(typeof s_server!='undefined'){s_server="[G.6]"+s_server}else{var s_server="[G.6]"}
var s_usePlugins=false;function s_doPlugins(){}
var s_un,s_ios=0,s_q='',code='',s_bcr=0,s_lnk='',s_eo='',s_vb,s_pl,s_tfs=0,s_etfs=0,s_wd=window,s_d=s_wd.document,s_ssl=(s_wd.location.protocol.toLowerCase().indexOf('https')>=0),s_n=navigator,s_u=s_n.userAgent,s_apn=s_n.appName,s_v=s_n.appVersion,s_apv,s_i,s_ie=s_v.indexOf('MSIE '),s_ns6=s_u.indexOf('Netscape6/')
if(s_v.indexOf('Opera')>=0||s_u.indexOf('Opera')>=0)s_apn='Opera';var
s_isie=(s_apn=='Microsoft Internet Explorer'),s_isns=(s_apn=='Netscape'),s_isopera=(s_apn=='Opera'),s_ismac=(s_u.indexOf('Mac')>=0)
if(s_ie>0){s_apv=parseInt(s_i=s_v.substring(s_ie+5));if(s_apv>3)s_apv=parseFloat(s_i)}else if(s_ns6>0)s_apv=parseFloat(s_u.substring(s_ns6
+10));else s_apv=parseFloat(s_v);function s_fl(s,l){return(s+'').substring(0,l)}function s_co(o){if(!o)return o;var n=new Object
for(x in o)n[x]=o[x];return n}function s_num(x){var s=x.toString(),g='0123456789',p,d;for(p=0;p<s.length;p++){d=s.substring(p,p+1);if(g.indexOf(d)<0)return 0}return 1}function s_rep(s,o,n){var i=s.indexOf(o),l=n.length>0?n.length:1;while(s&&i>=0){s=s.substring(0,i)
+n+s.substring(i+o.length);i=s.indexOf(o,i+l)}return s}function s_ape(s){return s?s_rep(escape(''+s),'+','%2B'):s}function s_epa(s){return s?unescape(s_rep(''+s,'+',' ')):s}function s_pt(s,d,f,a){var t=s,x=0,y,r;while(t){y=t.indexOf(d);y=y<0?t.length:y;t=t.substring(0,y)
r=f(t,a);if(r)return r;x+=y+d.length;t=s.substring(x,s.length);t=x<s.length?t:''}return''}function s_isf(t,a){if(t.substring(0,2)=='s_')
t=t.substring(2);return(t!=''&&t==a)}function s_fsf(t,a){if(s_pt(a,',',s_isf,t))s_fsg+=(s_fsg!=''?',':'')+t;return 0}var s_fsg
function s_fs(s,f){s_fsg='';s_pt(s,',',s_fsf,f);return s_fsg}var
s_c_d='';function s_c_gdf(t,a){if(!s_num(t))return 1;return 0}
function s_c_gd(){var d=s_wd.location.hostname,n=s_gg('cookieDomainPeriods'),p;if(d&&!s_c_d){n=n?parseInt(n):2;n=n>2?n:2;p=d.lastIndexOf('.');while(p>=0&&n>1){p=d.lastIndexOf('.',p-1);n--}
s_c_d=p>0&&s_pt(d,'.',s_c_gdf,0)?d.substring(p):''}return s_c_d}
function s_c_r(k){k=s_ape(k);var c=' '+s_d.cookie,s=c.indexOf(' '+k
+'='),e=s<0?s:c.indexOf(';',s),v=s<0?'':s_epa(c.substring(s+2
+k.length,e<0?c.length:e));return v}function s_c_w(k,v,e){var d=s_c_gd(),l=s_gg('cookieLifetime');v=''+v;l=l?(''+l).toUpperCase():''
if(e&&l!='SESSION'&&l!='NONE'){l=parseInt(l);if(l){e=new Date
e.setTime(e.getTime()+(parseInt(l)*1000))}}if(k&&l!='NONE'){s_d.cookie=k+'='+s_ape(v)+'; path=/;'+(e&&l!='SESSION'?' expires='
+e.toGMTString()+';':'')+(d?' domain='+d+';':'');return s_c_r(k)==v}
return 0}function s_cet(f,a,et,oe,fb){var r,d=0
if(!d){if(s_ismac&&s_u.indexOf('MSIE 4')>=0)return fb(a);else{s_wd.s_oe=s_wd.onerror;s_wd.onerror=oe;r=f(a);s_wd.onerror=s_wd.s_oe
return r}}}function s_gtfset(e){return s_tfs}function s_gtfsoe(e){s_wd.onerror=s_wd.s_oe;s_etfs=1;var code=s_gs(s_un);if(code)s_d.write(code);s_etfs=0;return true}function s_gtfsfb(a){return s_wd}
function s_gtfsf(w){var p=w.parent,l=w.location;s_tfs=w;if(p&&p.location!=l&&p.location.host==l.host){s_tfs=p;return s_gtfsf(s_tfs)}
return s_tfs}function s_gtfs(){if(!s_tfs){s_tfs=s_wd;if(!s_etfs)s_tfs=s_cet(s_gtfsf,s_tfs,s_gtfset,s_gtfsoe,s_gtfsfb)}return s_tfs}
function s_ca(un){un=un.toLowerCase();var ci=un.indexOf(','),fun=ci<0?un:un.substring(0,ci),imn='s_i_'+fun;if(s_d.images&&s_apv>=3&&!s_isopera&&(s_ns6<0||s_apv>=6.1)){s_ios=1;if(!s_d.images[imn]&&(!s_isns||(s_apv<4||s_apv>=5))){s_d.write('<im'+'g name="'+imn
+'" height=1 width=1 border=0 alt="">');if(!s_d.images[imn])s_ios=0}}}
function s_it(un){s_ca(un)}function s_mr(un,sess,q,ta){un=un.toLowerCase();var ci=un.indexOf(','),fun=ci<0?un:un.substring(0,ci),unc=s_rep(fun,'_','-'),imn='s_i_'+fun,im,b,e,rs='http'+(s_ssl?'s':'')+'://'+(s_ssl?'102':unc)+'.112.2O7.net/b/ss/'+un+'/1/G.6-Pd-R/'
+sess+'?[AQB]&ndh=1'+(q?q:'')+(s_q?s_q:'')+'&[AQE]';if(s_ios){im=s_wd[imn]?s_wd[imn]:s_d.images[imn];if(!im)im=s_wd[imn]=new Image;im.src=rs
if(rs.indexOf('&pe=')>=0&&(!ta||ta=='_self'||ta=='_top'||(s_wd.name&&ta==s_wd.name))){b=e=new Date;while(e.getTime()-b.getTime()<500)e=new Date}return''}return'<im'+'g sr'+'c="'+rs
+'" width=1 height=1 border=0 alt="">'}function s_gg(v){var g='s_'+v
return s_wd[g]||s_wd.s_disableLegacyVars?s_wd[g]:s_wd[v]}var s_qav=''
function s_havf(t,a){var b=t.substring(0,4),s=t.substring(4),n=parseInt(s),k='s_g_'+t,m='s_vpm_'+t,q=t,v=s_gg('linkTrackVars'),e=s_gg('linkTrackEvents');if(!s_wd['s_'+t])s_wd['s_'+t]='';s_wd[k]=s_wd[m]?s_wd['s_vpv_'+t]:s_gg(t);if(s_lnk||s_eo){v=v?v+',pageName,charSet,'
+'cookieDomainPeriods,cookieLifetime,currencyCode,eVarCFG,purchaseID':'';if(v&&!s_pt(v,',',s_isf,t))s_wd[k]='';if(t=='events'&&e)s_wd[k]=s_fs(s_wd[k],e)}s_wd[m]=0;if(t=='charSet')q='ce';else if(t=='cookieDomainPeriods')q='cdp';else if(t=='cookieLifetime')q='cl'
else if(t=='currencyCode')q='cc';else if(t=='channel')q='ch';else if(t=='campaign')q='v0';else if(s_num(s)){if(b=='prop')q='c'+n;else if(b=='eVar')q='v'+n;else if(b=='hier')q='h'+n}if(s_wd[k]&&t!='linkName'&&t!='linkType')s_qav+='&'+q+'='+s_ape(s_wd[k]);return''}
function s_hav(){var n,av='charSet,cookieDomainPeriods,cookieLifetime'
+',pageName,channel,server,pageType,campaign,state,zip,events,product'
+'s,currencyCode,purchaseID,eVarCFG,linkName,linkType'
for(n=1;n<31;n++)av+=',prop'+n+',eVar'+n+',hier'+n;s_qav='';s_pt(av,',',s_havf,0);return s_qav}function s_lnf(t,h){t=t?t.toLowerCase():''
h=h?h.toLowerCase():'';var te=t.indexOf('=');if(t&&te>0&&h.indexOf(t.substring(te+1))>=0)return t.substring(0,te);return''}
function s_ln(h){if(s_gg('linkNames'))return s_pt(s_gg('linkNames'),',',s_lnf,h);return''}function s_ltdf(t,h){t=t?t.toLowerCase():'';h=h?h.toLowerCase():'';var qi=h.indexOf('?');h=qi>=0?h.substring(0,qi):h
if(t&&h.substring(h.length-(t.length+1))=='.'+t)return 1;return 0}
function s_ltef(t,h){t=t?t.toLowerCase():'';h=h?h.toLowerCase():'';if(t&&h.indexOf(t)>=0)return 1;return 0}function s_lt(h){var lft=s_gg('linkDownloadFileTypes'),lef=s_gg('linkExternalFilters'),lif=s_gg('linkInternalFilters')?s_gg('linkInternalFilters'):s_wd.location.hostname;h=h.toLowerCase();if(s_gg('trackDownloadLinks')&&lft&&s_pt(lft,',',s_ltdf,h))return'd';if(s_gg('trackExternalLinks')&&(lef||lif)&&(!lef||s_pt(lef,',',s_ltef,h))&&(!lif||!s_pt(lif,',',s_ltef,h)))return'e';return''}function s_lc(e){s_lnk=s_co(this)
s_gs('');s_lnk='';if(this.s_oc)return this.s_oc(e);return true}
function s_ls(){var l,ln,oc;for(ln=0;ln<s_d.links.length;ln++){l=s_d.links[ln];oc=l.onclick?l.onclick.toString():'';if(oc.indexOf("s_gs(")<0&&oc.indexOf("s_lc(")<0){l.s_oc=l.onclick;l.onclick=s_lc}}}
function s_bc(e){s_eo=e.srcElement?e.srcElement:e.target;s_gs('')
s_eo=''}function s_ot(o){var x=o.type,y=o.tagName;return(x&&x.toUpperCase?x:y&&y.toUpperCase?y:o.href?'A':'').toUpperCase()}
function s_oid(o){var t=s_ot(o),p=o.protocol,c=o.onclick,n='',x=0;if(!o.s_oid){if(o.href&&(t=='A'||t=='AREA')&&(!c||!p||p.toLowerCase().indexOf('javascript')<0))n=o.href;else if(c){n=s_rep(s_rep(s_rep(s_rep(c.toString(),"\r",''),"\n",''),"\t",''),' ','');x=2}else if(o.value&&(t=='INPUT'||t=='SUBMIT')){n=o.value;x=3}else if(o.src&&t=='IMAGE')n=o.src;if(n){o.s_oid=s_fl(n,100);o.s_oidt=x}}return o.s_oid}
function s_rqf(t,un){var e=t.indexOf('='),u=e>=0?','+t.substring(0,e)
+',':'';return u&&u.indexOf(','+un+',')>=0?s_epa(t.substring(e+1)):''}
function s_rq(un){var c=un.indexOf(','),v=s_c_r('s_sq'),q='';if(c<0)
return s_pt(v,'&',s_rqf,un);return s_pt(un,',',s_rq,0)}var s_sqq,s_squ
function s_sqp(t,a){var e=t.indexOf('='),q=e<0?'':s_epa(t.substring(e
+1));s_sqq[q]='';if(e>=0)s_pt(t.substring(0,e),',',s_sqs,q);return 0}
function s_sqs(un,q){s_squ[un]=q;return 0}
function s_sq(un,q){return 1;}
function s_wdl(e){s_wd.s_wd_l=1;var r=true;if(s_wd.s_ol)r=s_wd.s_ol(e);if(s_wd.s_ls)s_wd.s_ls();return r}function s_wds(un){un=un.toLowerCase();var fz=s_gg('ClickMapFilter');un=s_fs(un,fz);if(un){s_wd.s_wd_l=1;if(s_apv>3&&(!s_isie||!s_ismac||s_apv>=5)){s_wd.s_wd_l=0;if(!s_wd.s_unl)s_wd.s_unl=new Array;s_wd.s_unl[s_wd.s_unl.length]=un;if(s_d.body&&s_d.body.attachEvent){if(!s_wd.s_bcr&&s_d.body.attachEvent('onclick',s_bc))s_wd.s_bcr=1}
else if(s_d.body&&s_d.body.addEventListener){if(!s_wd.s_bcr&&s_d.body.addEventListener('click',s_bc,false))s_wd.s_bcr=1}else{var
ol=s_wd.onload?s_wd.onload.toString():'';if(ol.indexOf("s_wdl(")<0){s_wd.s_ol=s_wd.onload;s_wd.onload=s_wdl}}}}}function s_iepf(i,a){if(i.substring(0,1)!='{')i='{'+i+'}';if(s_d.body.isComponentInstalled(i,'ComponentID')){var n=s_pl.length;s_pl[n]=new Object;s_pl[n].name=i
+':'+s_d.body.getComponentVersion(i,'ComponentID')}return 0}
function s_vs(un,x){var s=s_gg('visitorSampling'),g=s_gg('visitorSamplingGroup'),k='s_vsn_'+un+(g?'_'+g:''),n=s_c_r(k),e=new Date,y=e.getYear();e.setYear(y+10+(y<1900?1900:0));if(s){s*=100
if(!n){if(!s_c_w(k,x,e))return 0;n=x}if(n%10000>s)return 0}return 1}
function s_gs(un){un=un.toLowerCase()
s_un=un;var trk=1,tm=new Date,sed=Math&&Math.random?Math.floor(Math.random()*10000000000000):tm.getTime(),sess='s'+Math.floor(tm.getTime()/10800000)%10+sed,yr=tm.getYear(),t,ta='',q='',qs='';yr=yr<1900?yr+1900:yr;t=tm.getDate()+'/'+tm.getMonth()+'/'+yr+' '
+tm.getHours()+':'+tm.getMinutes()+':'+tm.getSeconds()+' '+tm.getDay()
+' '+tm.getTimezoneOffset();if(!s_q){var tfs=s_gtfs(),tl=tfs.location,r=tfs.document.referrer,s='',c='',v='',p='',bw='',bh='',j='1.0',g=s_wd.location,k='Y',hp='',ct='',iepl=s_gg('iePlugins'),pn=0,ps;if(s_apv>=4)s=screen.width+'x'+screen.height;if(s_isns||s_isopera){if(s_apv>=3){j='1.1';v=s_n.javaEnabled()?'Y':'N'
if(s_apv>=4){j='1.2';c=screen.pixelDepth;bw=s_wd.innerWidth;bh=s_wd.innerHeight;if(s_apv>=4.06)j='1.3'}}s_pl=s_n.plugins}else if(s_isie){if(s_apv>=4){v=s_n.javaEnabled()?'Y':'N';j='1.2';c=screen.colorDepth;if(s_apv>=5){bw=s_d.documentElement.offsetWidth;bh=s_d.documentElement.offsetHeight;j='1.3';if(!s_ismac&&s_d.body){s_d.body.addBehavior("#default#homePage");hp=s_d.body.isHomePage(tl)?"Y":"N";s_d.body.addBehavior("#default#clientCaps");ct=s_d.body.connectionType;if(iepl){s_pl=new Array;s_pt(iepl,',',s_iepf,'');}}}}else r='';if(!s_pl&&iepl)s_pl=s_n.plugins}if(s_pl)while(pn<s_pl.length&&pn<30){ps=s_fl(s_pl[pn].name,100)+';';if(p.indexOf(ps)<0)
p+=ps;pn++}s_q=(g?'&g='+s_ape(s_fl(g,255)):'')+(r?'&r='+s_ape(s_fl(r,255)):'')+(s?'&s='+s_ape(s):'')+(c?'&c='+s_ape(c):'')+(j?'&j='+j:'')+(v?'&v='+v:'')+(k?'&k='+k:'')+(bw?'&bw='+bw:'')+(bh?'&bh='+bh:'')+(ct?'&ct='+s_ape(ct):'')+(hp?'&hp='+hp:'')+(s_vb?'&vb='+s_vb:'')+(p?'&p='
+s_ape(p):'')}if(s_gg('usePlugins'))s_wd.s_doPlugins();q+=(t?'&t='
+s_ape(t):'')+s_hav();if(s_lnk||s_eo){var o=s_eo?s_eo:s_lnk;if(!o)
return'';var p=s_wd.s_g_pageName,w=1,t=s_ot(o),n=s_oid(o),x=o.s_oidt,h,l,i,oc;if(s_eo&&o==s_eo){while(o&&!n&&t!='BODY'){o=o.parentElement?o.parentElement:o.parentNode;if(!o)return'';t=s_ot(o);n=s_oid(o);x=o.s_oidt}oc=o.onclick?o.onclick.toString():'';if(oc.indexOf("s_gs(")>=0)return''}ta=o.target;h=o.href?o.href:'';i=h.indexOf('?');h=s_gg('linkLeaveQueryString')||i<0?h:h.substring(0,i);l=s_gg('linkName')?s_gg('linkName'):s_ln(h);t=s_gg('linkType')?s_gg('linkType').toLowerCase():s_lt(h);if(s_gg('trackInlineStats')&&(!t||(!h&&!l))&&(p||s_wd.s_g_pageURL)&&n&&s_ot(o)){t='lnk_o';h='';l='Track ClickMap'}
if(t&&(h||l))q+='&pe=lnk_'+(t=='d'||t=='e'?s_ape(t):'o')+(h?'&pev1='+s_ape(h):'')+(l?'&pev2='+s_ape(l):'');else
trk=0;if(s_gg('trackInlineStats')){if(!p){p=s_wd.location.href;w=0}p=p?s_fl(p,255):'';t=s_ot(o);i=o.sourceIndex;if(s_gg('objectID')){n=s_gg('objectID');x=1;i=1}if(p&&n&&t)qs='&pid='+s_ape(p)+(w?'&pidt='+w:'')+'&oid='+s_ape(n)+(x?'&oidt='+x:'')+'&ot='+s_ape(t)+(i?'&oi='+i:'')}s_wd.s_linkName=s_wd.s_linkType=s_wd.s_objectID=s_lnk=s_eo='';if(!s_wd.s_disableLegacyVars)s_wd.linkName=s_wd.linkType=s_wd.objectID=''}if(!trk&&!qs)return'';var code='';if(un){if(trk&&s_vs(un,sed))code+=s_mr(un,sess,q+(qs?qs:s_rq(un)),ta);s_sq(un,trk?'':qs)}else if(s_wd.s_unl)for(var unn=0;unn<s_wd.s_unl.length;unn++){un=s_wd.s_unl[unn];if(trk&&s_vs(un,sed))code+=s_mr(un,sess,q+(qs?qs:s_rq(un)),ta)
s_sq(un,trk?'':qs)}return code}function s_dc(un){un=un.toLowerCase()
s_wds(un);s_ca(un);return s_gs(un)}

//3@@m11

function EbaySiteCatalystIframeHelper(pParent,pName)
{if(!this.objType)
this.objType="EbaySiteCatalystIframeHelper";this.baseObject=EbayBaseControl;this.baseObject(pParent,pName);this.sendSSRequest=function()
{var tempPN="";var oP=window.parent;if(oP)
{if(typeof(oP.document)=="unknown")
return;this.ssParent=oP.ebay.oDocument._getControl("siteCatalyst");if(this.ssParent==null)
return;with(this.ssParent)
{var un="undefined";if(typeof(oP.s_pageName)!=un&&typeof(pageName)!=un)
oP.s_pageName=sCountry+pageName;if(sSample%100==6)
this.execSCIframe();}}}
this.init=function(){var oP=ebay.oDocument;var c=this.oConfig;this._registerListener(oP._getEvent('load'),this.EVENT_AFTER,"sendSSRequest");}
this.execSCIframe=function()
{var src=window.parent.s_gs("ebayiframes"+this.ssParent.sQA);}
this.init();}
new EbaySiteCatalystIframeHelper(ebay,"siteCatalystIframeHelper");

//4@@m3

(function(){var oD=ebay.oDocument,sImg="i_sGauge",oE=oD.oGlobals;if(!oE){return;};oE=oE.oEnvironment;oD.write("<img src='"+oE.sPicsDir+"s.gif' name='"+sImg+"' border=0 height='1' width='1'/>");oD.gaugeSite=function()
{var oCJ=oD.oCookieJar,sbf=oCJ.readCookielet("ebay","sbf");oCJ.writeCookielet("ebay","sbf",oCJ.setBitFlag(sbf,20,1));if(typeof(oGaugeInfo)!='undefined'&&oGaugeInfo.bFlag!=1){var img=document.images[sImg],delta=(new Date()).getTime()-oGaugeInfo.iST;if(img)img.src=oGaugeInfo.sUrl.replace(/&amp;/g,'&').trim()+delta;}}
oD._registerListener(oD._getEvent("load"),oD.EVENT_AFTER,"gaugeSite");})();

//5@@m9

function EbayCobrand(pParent,pName,pHT,pCBName,pCoPartnerID)
{if(!this.objType)
this.objType="EbayCobrand";this.base=EbayBaseControl;this.base(pParent,pName);this.oEnv=this.oGlobals.oEnvironment;this.iHT=pHT;this.sCBName=this.sHeaderName=pCBName;this.sCo_partnerid=this.sS_partnerid=pCoPartnerID||this.iHT;this.sFolder=null;this.aPathIdentifiers=new Array("."+this.sCBName+".");this.aQueryIdentifiers=new Array("ht="+this.iHT,"co_partnerid="+this.sCo_partnerid,"s_partnerid="+this.sS_partnerid);this.urlDetect=ebCobrandUrlDetect;this.cookieDetect=ebCobrandCookieDetect;this.writeHeader=this.writeFooter=true;}
function ebCobrandUrlDetect(pPath,pQuery,pIsIframe)
{var rv=false;with(this)
{var oC=this.oGlobals.oClient;if((oC.bFirefox||oC.bNav||typeof(window.parent.document)=="unknown")&&pIsIframe)
this.parent.parent.parent.downgradeDomain();var p=pPath||(pIsIframe?window.parent.ebay.oGlobals.oEnvironment.sThisPagePath:oEnv.sThisPagePath);rv=p.hasAny(aPathIdentifiers);if(rv)
rv=_exec("detectException");else
{var q=(pQuery==null)?oEnv.sThisPageQuery:pQuery;q=q.substr(1).split("&");for(var i=0;i<q.length&&!rv;i++)
rv=q[i].isAny(aQueryIdentifiers);}}
return rv?this:null;}
function ebCobrandCookieDetect()
{return this.oDocument.getCookie("ebay","ht").is(this.iHT)?this:null;}
function EbayPool(pParent,pName)
{if(!this.objType)
this.objType="EbayPool";this.base=EbayBaseControl;this.base(pParent,pName);this.sPool=pName;this.isSupportedPool=ebPoolSupported;}
function ebPoolSupported(pPool)
{return this.sPool.is(pPool);}

//6@@m23

function EbayCobrandCountry(pParent,pName)
{if(!this.objType)
this.objType="EbayCobrandCountry";this.base=EbayBaseControl;this.base(pParent,pName);this.init=function()
{new EbayCobrand(this,"MSN","51","msn");new EbayCobrand(this,"Earthlink","52","earthlink");new EbayCobrand(this,"MSNBC","53","msnbc");new EbayCobrand(this,"WORLDOFGOOD","507","worldofgood");o=new EbayCobrand(this,"Carpoint","28","carpoint");o.detectException=function(){var tpp=this.oEnv.sThisPagePath;return(tpp.hasAny("ebaymotors","motors.")||!tpp.hasAny("pages.","www.ebay.com","cgi","listings"));}
o=new EbayCobrand(this,"Sandbox","99","sandbox");o.aPathIdentifiers=new Array("sandbox.");}
this.init();}
function EbayCobrandFunctionsCountry(pParent,pName)
{if(!this.objType)
this.objType="EbayCobrandFunctionsCountry";this.base=EbayBaseControl;this.base(pParent,pName);this.createFunctionExceptions=function()
{var p=this.parent,so=p.oSelCobrand,n=so.name;if(n.is("Carpoint"))
{so.linksConditionsException=function(pLink)
{return pLink.hasAny('com/ebaymotors/','ebaymotors');}}
else if(n.is("Sandbox"))
{this.parent.isSupportedPool=function(){return true;}
ebay._getControl("cobrandFunctions").isEbayLink=function(pLink){with(this)
{if(pLink.has(sQA+oGlobals.oEnvironment.sCountryDomain))
return true;}
return false;}
so.linksConditionsException=function(pLink)
{return!pLink.hasAny('developer.ebay.com','dev-forums.ebay.com','affiliates.ebay.com');}}
else if(n.is("Earthlink"))
{ebay.oDocument.win.cleanUp=new Function();so.linksConditionsException=function(pLink)
{return!pLink.hasAny('half.','express.');}}
else if(n.is("MSN"))
{so.linksConditionsException=function(pLink)
{return!pLink.hasAny('half.','express.');}}
else if(n.is("MSNBC"))
{so.linksConditionsException=function(pLink)
{return!pLink.hasAny('express.');}}
else if(n.is("WORLDOFGOOD"))
{so.linksConditionsException=function(pLink)
{return!pLink.hasAny('half.','express.');}}}
this.init=function()
{this.createFunctionExceptions();}
this.init();}

//7@@e1

function EbayCobrandCollection(pParent,pName,pIsIframe)
{if(!this.objType)
this.objType="EbayCobrandCollection";this.base=EbayBaseControl;this.base(pParent,pName);var g=this.oGlobals;var env=this.oEnv=g.oEnvironment;this.aMicroBrands=[["100","techrepublic"],["101","lego"]];this.aMBPages=["viewitem","acceptbid","autosviewitemforvehicle","binconfirm","bincongrats","makebid"];this.sMBCookieName="mb";this.oSelCobrand=this.sMBFile=null;this.sQA=env.sThisPagePath.has(env.sQADomain)?".qa":"";this.sCBCountryDir=env.sCountryIncludeDir+"features/cobrand/";this.bIsIframe=pIsIframe;this.bIsSandbox=pParent.doc.location.host.has("sandbox.");with(this)
_registerListener(oDocument._getEvent("load"),EVENT_AFTER,"onAfterLoad");this.createStandardPoolObjs=function()
{with(this)
{var pools=["www","pages","portals","payments","offer","promo","k2b-bulk","syicatalogs","previewitem","spchk","my","sandbox","bcl","portals","sell","myworld"];for(var i=pools.length-1;i>-1;i--)
new EbayPool(this,pools[i]);}}
this.isSupportedPool=function(pPool)
{var cs=this.controls;if(cs)
{for(var i in cs)
{if((cs[i].objType=="EbayPool")&&cs[i].isSupportedPool(pPool))
return true;}}
return false;}
this.checkMicroBrand=function()
{with(this)
{var mba=aMicroBrands,len=mba.length;var lp=oEnv.sLastPagePath,rv=false;var c=oDocument.getCookie(sMBCookieName);for(var i=0;i<len&&!rv;i++)
rv=(lp.has(mba[i][1])||c.is(mba[i][0]));if(rv)
{var pn=((typeof(pageName)!="undefined")?pageName:"").toLowerCase();var mbpa=aMBPages,mpbLen=mbpa.length;for(i=0;i<mpbLen&&!sMBFile;i++)
{if(pn.indexOf(mbpa[i])==0)
{for(var j=0;j<len&&!sMBFile;j++)
{sMBFile=lp.has(mba[j][1])?mba[j][1]+".js":null;}}}}
return sMBFile;}}
function writeMicroBrandHeader()
{with(this)
oDocument.write(oUtils.scriptTag(sCBCountryDir+"mb/"+sMicroBrandFile));}
this.setCookie=function(pVal)
{if(!this.bIsIframe)
this.oDocument.oCookieJar.writeCookielet("ebay","ht",pVal,"","/");}
this.detectCobrand=function(pCobrands,pUrl)
{var cbs=pCobrands.controls,sc;if(cbs)
{for(var i in cbs)
{sc=pUrl?cbs[i].urlDetect(null,null,this.bIsIframe):cbs[i].cookieDetect();if(sc)
break;}}
return sc;}
this.init=function()
{var c=new EbayCobrandCountry(this,"countryCobrands");with(this)
{createStandardPoolObjs();var sup=true;if(!bIsSandbox)
sup=isSupportedPool(oEnv.sThisPagePool);if(checkMicroBrand())
this.writeHeader=writeMicroBrandHeader;else if(!oDocument.getCookie("ebay","ht").is("")||sup)
{var sc=oSelCobrand=detectCobrand(c,true);if(!sc&&!sup)
sc=oSelCobrand=detectCobrand(c);if(oEnv.sThisPagePool.is("my")&&!sc)
sc=oSelCobrand=detectCobrand(c);if(sc)
{if(!bIsSandbox)
setCookie(sc.iHT);new EbayCobrandFunctions(this,"cobrandFunctions");new EbayCobrandFunctionsCountry(this,"countryCobrandFunctions");if(typeof(noCobrandHeader)=="undefined")
{oDocument.write(oUtils.scriptTag(oEnv.sIncludeHost+"js/"+oEnv.sTrainId+"/"+oEnv.sCountry+"/features/cobrand/"+sc.sHeaderName+oEnv.sJSPackageSuffix));}}
else
{}}
else{var sc=detectCobrand(c,true);if(sc&&sc.sHeaderName=="worldofgood")
{oDocument.write(oUtils.scriptTag(oEnv.sIncludeHost+"js/"+oEnv.sTrainId+"/"+oEnv.sCountry+"/features/cobrand/"+sc.sHeaderName+oEnv.sJSPackageSuffix));}}}}
this.onAfterLoad=function()
{var d=this.oDocument,h="cobrandHeader",f="cobrandFooter";if(d.getUIElem(h))
this._exec("writeHeader",h)
if(d.getUIElem(f))
this._exec("writeFooter",f);}
this.init();}

//8@@m17

function EbayCobrandFunctions(pParent,pName)
{if(!this.objType)
this.objType="EbayCobrandFunctions";this.base=EbayBaseControl;this.base(pParent,pName);var g=this.oGlobals;var env=this.oEnv=g.oEnvironment;var p=pParent;this.sServer=null;this.oSelCobrand=p.oSelCobrand;this.sQA=p.sQA;this.sCBCountryDir=p.sCBCountryDir;this.sRedirectString="ebayredir=";this.urlIDBranding=function(pURL)
{var so=this.oSelCobrand;if(so._exec("urlIDBrandingException",pURL))
return false;if(pURL.hasAny("&s_partnerid=","&co_partnerid="))
{var ids=so.aQueryIdentifiers;pURL=pURL.replace(/s_partnerid=[0-9]*/g,ids[1]);pURL=pURL.replace(/co_partnerid=[0-9]*/g,ids[2]);return pURL;}
return false;}
this.cobrandURL=function(pURL)
{var qInd=pURL.indexOf("?"),path=pURL,query="";if(qInd!=-1)
{path=pURL.substring(0,qInd);query=pURL.substring(qInd);}
var so=this.oSelCobrand;if(so.urlDetect(path,query))
return pURL;var rv=this.urlIDBranding(pURL);if(rv)
return rv;with(this)
{var folder=so.sFolder||"",dom=oGlobals.oEnvironment.sCountryDomain.toLowerCase();var st=dom;if(pURL.hasAny('com/ebaymotors/','ebaymotors')&&so.name.is("AOL Home"))
folder="";st=pURL.indexOf(st);if(st<1)
{return((pURL.indexOf("/")==0)&&(folder!="")&&(pURL.indexOf(folder)!=0))?folder+pURL:pURL;}
var off=pURL.indexOf(dom,st)+dom.length;rv=pURL.substring(0,st);if(!pURL.has(so.sCBName+dom)&&so._exec("linksConditionsException",pURL))
{rv+=so.sCBName+dom+folder+
pURL.substr(off);}
else if(!path.has(so.sCBName+dom)&&so._exec("linksConditionsException",path))
{st=dom
st=path.indexOf(st);off=path.indexOf(dom,st)+dom.length;rv=path.substring(0,st);rv+=so.sCBName+dom+folder+
path.substr(off)+query;}
else
rv=pURL;}
return rv;}
this.isEbayLink=function(pLink)
{with(this)
{var cs=parent.controls,l=pLink.toLowerCase();if(l.has(oGlobals.oEnvironment.sCountryDomain.toLowerCase()))
{if(cs)
{var tPool=l.substring(l.indexOf("://")+3,l.indexOf("."));for(var i in cs)
{if(cs[i].objType.is("EbayPool"))
{if(cs[i].isSupportedPool(tPool))
return true;}}}}}
return false;}
this.cobrandLinks=function()
{var dl=this.oDocument.doc.links,len=dl.length,temp,txt;for(var i=0;i<len;i++)
{temp=false;txt=dl[i].innerText;if(this.oGlobals.oClient.bIE&&txt.hasAny("@","http:"))
temp=txt;if(this.isEbayLink(dl[i].href))
dl[i].href=this.cobrandURL(dl[i].href);else if(this.isRedirectLink(dl[i].href))
dl[i].href=this.cobrandRedirectURL(dl[i].href);if(temp)
dl[i].innerText=temp;}}
this.cobrandRedirectURL=function(pUrl)
{var r=this.sRedirectString;var curl=pUrl.substring(pUrl.indexOf(r)+r.length,pUrl.length),rurl,furl;if(!this.isEbayLink(curl))
return pUrl;rurl=pUrl.substring(0,pUrl.length-curl.length);curl=this.cobrandURL(curl);furl=rurl+curl;return furl;}
this.isRedirectLink=function(pLink)
{var l=pLink.toLowerCase();return l.has(this.sRedirectString);}
this.cobrandForms=function()
{var act;var f=this.oDocument.doc.forms,len=f.length;for(var i=0;i<len;i++)
{act=f[i].action;if(typeof(act)=="string")
{if(this.isEbayLink(act))
f[i].action=this.cobrandURL(act);}
var fe=f[i].elements,eLen=fe.length;var un="undefined";for(var j=0;j<eLen;j++)
{with(fe[j])
{if(typeof(type)!=un&&typeof(value)!=un)
{if(type.is("hidden")&&(value.indexOf("http")==0)&&this.isEbayLink(value))
value=this.cobrandURL(value);}}}}}
this.updateSiteFormElem=function(pElem,pID)
{if(pElem)
{var idx=pElem.value.indexOf("&"),rest="";if(idx!=-1)
rest=pElem.value.substring(idx);pElem.value=pID+rest;}}
this.cobrandSearchAttribs=function()
{with(this)
{var df=oDocument.doc.forms,len=df.length;var sc=oSelCobrand,dfe;for(var i=0;i<len;i++)
{dfe=df[i].elements;updateSiteFormElem(dfe["ht"],sc.ht);updateSiteFormElem(dfe["s_partnerid"],sc.s_partnerid);updateSiteFormElem(dfe["co_partnerid"],sc.co_partnerid);}}}
this.cobrandPage=function()
{with(this)
{oSelCobrand.sCBName="."+oSelCobrand.sCBName;sServer="";if(!sQA.is(""))
{var tpp=env.sThisPagePath,c='.'+env.sCountry;sServer=tpp.substring(tpp.indexOf("."),(tpp.indexOf(c)!=-1?tpp.indexOf(c):tpp.indexOf(sQA)));var ex=[".motors",oSelCobrand.sCBName,".listings",".stores"],len=ex.length;for(var i=0;i<len;i++)
{if(sServer.indexOf(ex[i])==0)
sServer=sServer.substr(ex[i].length);}}
cobrandLinks();cobrandForms();cobrandSearchAttribs();parent._exec("writeFooter");}}
this.parent.cobrandPage=new Function("return this._getControl('cobrandFunctions')._exec('cobrandPage');");}

//9@@m1

new EbayCobrandCollection(ebay.oDocument,"cobrandCollection");
// b=5762509 -->
