//<!--
// \include\js\cobrand\cobrand_constants.js@@\main\10 

var EB_CB_EX_FUNC_STRING="string";var EB_CB_EX_FUNC_CONDITION="condition";var ebStores="stores";var ebSearch="search";var ebListings="listings";var ebPages="pages";var ebmStr="motors";var ebmSchStr=ebSearch+dot+ebStr+ebmStr+dotCom;var ebmDom=ebDom+ebmStr;var ebmURL=httpwww+ebmDom+dotCom;var ebmHdr="autos";var ebQuery="query-"+ebStr;var ebUsingSSL="ebayisapi.dll?signin&usingssl=1";var ebBrowFile="headers/brow.js";var ebFtrFile="footers/footers.";var ebHdrDir="headers/";var ebHdrFile="header.";var ebCBFFileArray=new Array();if(!typeof(isPackaged)=="undefined")
{ebCBFFileArray[ebCBFFileArray.length]=cobrandDir+"cobrand_functions_constants.js";ebCBFFileArray[ebCBFFileArray.length]=cobrandDir+"cobrand_functions_variables.js";ebCBFFileArray[ebCBFFileArray.length]=countryCobrandDir+"cobrand_functions_exception_objects.js";ebCBFFileArray[ebCBFFileArray.length]=cobrandDir+"cobrand_functions_main.js";}
var ebCBMBPages=new Array("viewitem","acceptbid","autosviewitemforvehicle","binconfirm","bincongrats","makebid");var ebCBMBFilePrefix="mb/";var aol="aol";var aolURLFol="/"+aol+"/";

// \include\js\cobrand\cobrand_variables.js@@\main\10 

var ebCBArray=new Array();var ebSelCBObj=null,eBayQueryIDValue=null;var ebHTCookie="";var ebCBQA="",ebCBMotorQA="",ebIsCobranded=false,ebCBSIDTracker=0;if(thisPageURL.contains(qaDom))
ebCBQA=".qa";var ssl_copartnerid;var ebCBThisPage=thisPage;var ebCBThisPageURL=thisPageURL;var ebCBThisPageURI=thisPageURI;var ebCBLastPageURL=lastPageURL;var ebCBLastPageURI=lastPageURI;var ebCBHTCookieletValue="";var ebDetEBayLinkConds="true";var ebCBPreCobDom=ebDom;var ebCBPostCobDom=dotCom;function ebayCBThisPageContains(pWanted)
{return ebCBThisPage.contains(pWanted);}
window.cbThisPageContains=ebayCBThisPageContains;function ebayCBThisPageURLContains(pWanted)
{return ebCBThisPageURL.contains(pWanted);}
window.cbThisPageURLContains=ebayCBThisPageURLContains;function ebayCBThisPageURIContains(pWanted)
{return ebCBThisPageURI.contains(pWanted);}
window.cbThisPageURIContains=ebayCBThisPageURIContains;function ebayCBThisPageURIParams(pWanted)
{var p=pWanted.split("=");return eBayURIParamsArray[p[0]]==p[1];}
window.cbThisPageURIParams=ebayCBThisPageURIParams;function ebayCBCookieLetParams(pWanted,htCookieletValue)
{var p=pWanted.split("=");return ebCBHTCookieletValue==p[1];}
window.cbCookieLetParams=ebayCBCookieLetParams;function ebayCBLastPageContains(pWanted)
{return ebCBLastPage.contains(pWanted);}
window.cbLastPageContains=ebayCBLastPageContains;function ebayCBLastPageURLContains(pWanted)
{return ebCBLastPageURL.contains(pWanted);}
window.cbLastPageURLContains=ebayCBLastPageURLContains;function ebayCBLastPageURIContains(pWanted)
{return ebCBLastPageURI.contains(pWanted);}
window.cbLastPageURIContains=ebayCBLastPageURIContains;

// \include\js\cobrand\cobrand_objects.js@@\main\11 

function eBayCBExObjGetString(){return this.values[0];}
function eBayCBExObjGetConditions()
{var retStr="";for(var i=0;i<this.conditions.length;i++)
retStr+=this.conditions[i];return retStr;}
function EBayCBExceptionObj(pName,pFunctionality,pValues,pConditions)
{if(!this.objType)
this.objType="EBayCBExceptionObj";this.name=pName;this.functionality=pFunctionality;this.values=pValues;this.conditions=pConditions;if(this.values)
this.getString=eBayCBExObjGetString;if(this.conditions)
this.getConditions=eBayCBExObjGetConditions;}
function ebayCBCBObjAddExceptionObj(pName,pFunctionality,pValue,pConditions,pFunctionName)
{this.exceptionObjs[pName]=new EBayCBExceptionObj(pName,pFunctionality,pValue,pConditions);var evalStr="this."+pName+" = "+pFunctionName;eval(evalStr);}
function ebayCBCBObjFindExceptionObj(pFnName)
{for(var i in this.exceptionObjs)
{if(this.exceptionObjs[i].name==pFnName)
return this.exceptionObjs[i];}
return null;}
function ebayCBCBObjExGetStr(pExObj){return pExObj.getString();}
function ebayCBCBObjExGetConds(pExObj){return pExObj.getConditions();}
function EBayCobrandObj(pHT,pCBName,pCoPartnerID,pSPartnerID,pDomain)
{if(!this.objType)
this.objType="EBayCobrandObj";this.name=pCBName;this.siteID=new String(ebCBSIDTracker);this.ht=pHT;this.co_partnerid=pCoPartnerID;if(!pCoPartnerID)
this.co_partnerid=this.ht;this.s_partnerid=pSPartnerID;if(!pSPartnerID)
this.s_partnerid=this.co_partnerid;this.headerName=this.name;this.cbURLIdentifiers=new Array(dot+this.name+dot);this.cbURIIdentifiers=new Array(ebHTSch+this.ht,ebSIDSch+this.co_partnerid,ebCIDSch+this.s_partnerid);this.siteLogic="";this.exceptionObjs=new Array();this.addExceptionObj=ebayCBCBObjAddExceptionObj;this.findExceptionObj=ebayCBCBObjFindExceptionObj;this.getString=ebayCBCBObjExGetStr;this.getConditions=ebayCBCBObjExGetConds;this.writeHeader=true;this.writeFooter=true;this.detectCobrand=ebayCBDetectCobrand;this.setUpURLMunger=ebayCBSetUpURLMunger;this.isThisCobrand=ebayCBIsThisParamCobrand;this.isThisHostCobranded=ebayCBIsThisHostCobrand;}
function ebayCBAddCobrandObject(pHT,pCBName,pCoPartnerID,pSPartnerID,pDomain)
{if(!ebCBArray[pHT])
{ebCBArray[pHT]=new EBayCobrandObj(pHT,pCBName,pCoPartnerID,pSPartnerID,pDomain);ebCBSIDTracker++;}
return ebCBArray[pHT];}

// \include\js\cobrand\cobrand_functions_constants.js@@\main\3 

var ebTCL="query-ebay.tcl";var ebCBFFormExs=new Array();

// \include\js\cobrand\cobrand_functions_variables.js@@\main\4 

var ebCBFCobrandName,ebCBFCBServer,ebCBFCheckCobrand;

// \include\us\js\cobrand\cobrand_functions_exception_objects.js@@\main\30 

function ebayCBFCreateCobrandExceptions()
{ebayCBFCreateFunctionObjects();if(ebSelCBObj.ht=="5")
{var values=new Array(dotCom+"/",dotCom+aolURLFol);var conds=new Array('hpLink.contains("'+dot+aol+dot+'")','&&hpLink.contains("'+ebListings+dot+'")','&&hpLink.contains("'+dotCom+aolURLFol+'")');ebSelCBObj.addExceptionObj("homepageLinks",EB_CB_EX_FUNC_CONDITION,values,conds,"ebayCBFHomepageLinks");values=new Array("/"+aol);ebSelCBObj.addExceptionObj("cbURLFolder",EB_CB_EX_FUNC_STRING,values,null,"this.getString");values=new Array("-"+aol);ebSelCBObj.addExceptionObj("cbTCLString",EB_CB_EX_FUNC_STRING,values,null,"this.getString");}
else if(ebSelCBObj.ht=="28")
{var conds=new Array('&&(inputURL.contains("'+dotCom+"/"+ebStr+ebmStr+'/")','||inputURL.contains("'+ebmDom+'"))');ebSelCBObj.addExceptionObj("cbLinksConditions",EB_CB_EX_FUNC_CONDITION,new Array(),conds,"this.getConditions");}
else if(ebSelCBObj.name=="sandbox"){ebCBFFormExs=new Array("www2","sandbox","forums");var conds=new Array('inputURL.indexOf(scgi)!=-1');ebSelCBObj.addExceptionObj("urlIDBranding",EB_CB_EX_FUNC_CONDITION,new Array(),conds,"this.getConditions");}
else if(ebSelCBObj.ht=="52")
{window.cleanUp=new Function();}
ebSelCBObj.updateDCPURL=ebayCBFUpdateDCPURL;}
function ebayCBFCreateFunctionObjects()
{var scp='pLink.contains(';var scc='")';var cdom=ebCBQA+ebCBPreCobDom+ebCBPostCobDom;if(qaMachineName!="")
cdom=dot+qaMachineName.toLowerCase()+cdom;var c='(('+scp+'"'+ebPages+dot+'")&&!'+scp+'"'+dot+'liveauctions"))';c+=or+scp+'"//'+cgi+scc;for(var i in ebPoolObjs)
c+=ebPoolObjs[i].getLinkCond(or,scp,cdom,scc);c+=or+scp+'"glistings'+cdom+scc;c+=or+scp+'"'+ebStr+ebmStr+dotCom+scc;c+=or+scp+'"'+ebSearch+'-cache'+scc;c+=or+scp+'"'+ebCID+scc;c+=or+'('+scp+'"contact")&&!'+scp+'"mailto:")))';c+=or+'('+scp+'"'+ebSearch+'")&&'+scp+'"'+ebCBPreCobDom+scc;c+='&&('+scp+'"'+and+ebHTSch+scc+or+scp+'"'+ebSID+scc;c+='))';ebDetEBayLinkConds=c;ebCBFFormExs=new Array("search","arribada",scgi,"webhelp","tibet","misterlister","certify","msa","signin","liveauctions","benl","befr");}

// \include\js\cobrand\cobrand_functions_main.js@@\main\29 

function ebayCBFHomepageLinks()
{var exObj=this.findExceptionObj("homepageLinks");if(!exObj||(exObj.values.length<2)||(exObj.conditions.length<1))
return;var dl=document.links,len=dl.length;for(var i=0;i<len;i++)
{var hpLink=dl[i].href;var condStr="",conds=exObj.conditions,cLen=conds.length;for(var j=0;j<cLen;j++)
condStr+=conds[j];if(eval(condStr))
dl[i].href=dl[i].href.replace(exObj.values[0],exObj.values[1]);}}
function ebayCBFUpdateDCPURL(pURL)
{var po,rv=pURL;for(var i in ebPoolObjs)
{po=ebPoolObjs[i];if(po.dcpPool&&ebCBThisPageURL.contains(http+po.pool+dot))
{var a=rv.split("/");if(rv.indexOf(".html")!=-1&&rv.indexOf("?")==-1)
{rv+="?ht="+this.ht+"&";}
else if(rv.indexOf("_W0QQ")!=-1)
{rv+="QQhtZ"+this.ht+"QQ"}
else if(a.length==4&&rv.indexOf("?")==-1)
{rv+="_W0QQhtZ"+this.ht+"QQ";}
else if(rv.indexOf("?")!=-1)
{rv+="&ht="+this.ht+"&";}
break;}}
return rv;}
function eBayURLIDBranding(inputURL)
{var exObj=ebSelCBObj.findExceptionObj("urlIDBranding");if(exObj&&ebSelCBObj.urlIDBranding(exObj))
return false;inputURL=inputURL.replace(/co_partnerId/g,ebCID);if(inputURL.contains(ebHTSch)||inputURL.contains(ebSID)||inputURL.contains(ebCID))
{var re1=/ht=[0-9]*/g,re2=/s_partnerid=[0-9]*/g;var re3=/co_partnerid=[0-9]*/g,ids=ebSelCBObj.cbURIIdentifiers;var temp=inputURL.replace(re1,ids[0]);temp=temp.replace(re2,ids[1]);temp=temp.replace(re3,ids[2]);return temp;}
return false;}
function ebayCBFCobrandURL(inputURL)
{ebIsCobranded=false;var qInd=inputURL.indexOf(qstn);if(qInd==-1)
{ebCBThisPageURL=inputURL;ebCBThisPageURI="";}
else
{ebCBThisPageURL=inputURL.substring(0,qInd);ebCBThisPageURI=inputURL.substring(qInd);}
ebCBLastPageURL=ebCBLastPageURI="";eval(ebSelCBObj.siteLogic);if(ebIsCobranded)
return inputURL;if(ebSelCBObj.updateDCPURL)
{var urltemp=ebSelCBObj.updateDCPURL(inputURL);if(urltemp!=inputURL)
return urltemp;}
var postDom=ebCBPostCobDom;if(ebSelCBObj.getPostDomException)
{var exObj=ebSelCBObj.findExceptionObj("getPostDomException");if(exObj&&(exObj.values.length>0))
postDom=ebSelCBObj.getPostDomException(exObj);}
var urltemp=eBayURLIDBranding(inputURL);if(urltemp)
return urltemp;var ebaymotors="";var ebayDomain="";if(inputURL.contains(ebStr+ebmStr+ebCBQA+ebCBMotorQA+ebCBPostCobDom)&&!inputURL.contains(ebmSchStr)){ebaymotors=ebmDom;var startString=ebmDom+ebCBQA+ebCBMotorQA+ebCBPostCobDom;if(ebCBQA!="")
ebayDomain=ebCBPreCobDom;if(ebSelCBObj.ht=="10")
return inputURL;}
else
{var startString=ebCBFCBServer+ebCBQA+ebCBPreCobDom;if(!ebSelCBObj.reverseCBDomain)
startString+=postDom;ebayDomain=ebCBPreCobDom;}
var cbFolder="";if(ebSelCBObj.cbURLFolder)
{var exObj=ebSelCBObj.findExceptionObj("cbURLFolder");if(exObj&&(exObj.values.length>0))
cbFolder=ebSelCBObj.cbURLFolder(exObj);}
var start=inputURL.toLowerCase().indexOf(startString);if(start<1)
{if((inputURL.indexOf("/")==0)&&(cbFolder!="")&&(inputURL.indexOf(cbFolder)!=0))
return cbFolder+inputURL;return inputURL;}
var offset=inputURL.indexOf(postDom,start)+postDom.length;var temp=inputURL.substring(0,start);var linksConds="";if(ebSelCBObj.cbLinksConditions)
{var exObj=ebSelCBObj.findExceptionObj("cbLinksConditions");if(exObj&&(exObj.conditions.length>0))
linksConds=ebSelCBObj.cbLinksConditions(exObj);}
var oStr="";var aStmt="false";if(ebSelCBObj.reverseCBDomain&&(ebCBQA==""))
{aStmt='(!inputURL.contains(ebCBFCBServer+ebCBQA+"'+
ebCBPreCobDom+'"+ebCBFCobrandName+ebCBPostCobDom)&&!inputURL.contains('+'ebCBFCBServer+ebCBQA+"'+ebmDom+'"+ebCBFCobrandName+ebCBPostCobDom))'+
linksConds;oStr=ebCBFCBServer+ebaymotors+ebCBQA;if(ebaymotors=="")
oStr+=ebCBPreCobDom;oStr+=ebCBFCobrandName+ebCBPostCobDom;}
else
{aStmt='(!inputURL.contains(ebCBFCobrandName+'+'ebCBFCBServer+ebCBQA+"'+ebCBPreCobDom+'")&&!inputURL.contains('+'ebCBFCobrandName+ebCBFCBServer+ebCBQA+"'+ebmDom+'"))'+linksConds;oStr=ebCBFCobrandName+ebCBFCBServer+ebaymotors+ebCBQA;if(ebaymotors=="")
oStr+=ebCBPreCobDom;oStr+=ebCBPostCobDom;}
if(eval(aStmt))
temp+=oStr+cbFolder+inputURL.substr(offset);else
temp=inputURL;return temp;}
function ebayCBFDetermineEBayLink(pLink)
{return eval(ebDetEBayLinkConds);}
function ebayCBFCobrandLinks()
{var dl=document.links,len=dl.length,temp;for(var i=0;i<len;i++){var temp=false;var intext=dl[i].innerText;if(is.ie&&(intext.contains("@")||intext.contains("http:")))
temp=dl[i].innerText;if(ebayCBFDetermineEBayLink(dl[i].href))
dl[i].href=ebayCBFCobrandURL(dl[i].href);if(temp)
dl[i].innerText=temp;}}
function ebayCBFCobrandForms()
{var dfaStr="",exForms=ebCBFFormExs,exLen=exForms.length;for(var j=0;j<exLen;j++)
{if(j>0)
dfaStr+="&&";dfaStr+='!dfAction.contains("'+exForms[j]+'")';}
var df=document.forms,len=df.length;for(var i=0;i<len;i++)
{var dfAction=df[i].action;if(eval(dfaStr))
df[i].action=ebayCBFCobrandURL(dfAction);else if(dfAction.contains(ebTCL))
{var cobrandTCL=ebSelCBObj.name;if(ebSelCBObj.cbTCLString)
{var exObj=ebSelCBObj.findExceptionObj("cbTCLString");if(exObj&&(exObj.values.length>0))
cobrandTCL+=exObj.cbTCLString(exObj);}
if(!dfAction.contains(ebQuery+cobrandTCL+tclExt))
{tcl_temp=df[i].action.substring(0,dfAction.indexOf(ebTCL));tcl_temp=tcl_temp+ebQuery+cobrandTCL+tclExt;df[i].action=tcl_temp;}}
var fe=df[i].elements,eLen=fe.length,elem;for(var j=0;j<eLen;j++)
{elem=fe[j];if((elem.type=="hidden")&&(elem.value.indexOf(http)==0))
{if(ebayCBFDetermineEBayLink(elem.value))
{elem.value=ebayCBFCobrandURL(elem.value);}}}}}
function ebayCBFFormRedirect(chosen)
{chosen.options[chosen.selectedIndex].value=cobrandURL(chosen.options[chosen.selectedIndex].value);}
window.cobrandFormRedirect=ebayCBFFormRedirect;function ebayCBUpdateSiteFormElem(pElem,pID)
{if(pElem&&typeof(pElem.value)!="undefined")
{var idx=pElem.value.indexOf(and),rest="";if(idx!=-1)
rest=pElem.value.substring(idx);pElem.value=pID+rest;}}
function ebayCBFSearchAttribs()
{if(document.forms)
{for(var i=0;i<document.forms.length;i++)
{var dfe=document.forms[i].elements;ebayCBUpdateSiteFormElem(dfe["ht"],ebSelCBObj.ht);ebayCBUpdateSiteFormElem(dfe["s_partnerid"],ebSelCBObj.s_partnerid);ebayCBUpdateSiteFormElem(dfe["co_partnerid"],ebSelCBObj.co_partnerid);}}}
function ebayCBFFullCB()
{if(typeof(ebSelCBObj)=="undefined"||ebSelCBObj==null)
{ebayCBInitCobranding();if(ebSelCBObj==null)
return false;}
ebayCBFCreateCobrandExceptions();ebCBFCobrandName=dot+ebSelCBObj.name;ebCBFCBServer="";if(ebCBQA!="")
{ebCBFCBServer=thisPageURL.substring(thisPageURL.indexOf("."),thisPageURL.indexOf(ebCBQA));var ex=new Array(ebCBFCobrandName,dot+ebListings,dot+ebStores);var len=ex.length;for(var i=0;i<len;i++)
{if(ebCBFCBServer.indexOf(ex[i])==0)
ebCBFCBServer=ebCBFCBServer.substr(ex[i].length);}}
if(ebSelCBObj.homepageLinks)
ebSelCBObj.homepageLinks();if(ebSelCBObj.ht!="1")
{ebCBFCheckCobrand=ebSelCBObj.detectCobrand();ebayCBFCobrandLinks();ebayCBFCobrandForms();ebayCBFSearchAttribs();}}
function fullCB()
{ebayCBFFullCB();}
cbf=true;

// \include\us\js\cobrand\cobrand_country_objects.js@@\main\17 

function ebayCBCreateCobrands()
{var cbObj=ebayCBAddCobrandObject("1",ebStr);cbObj.cbURLIdentifiers=new Array(".ebaystores.","crs.ebay.com",".liveauctions.","arribada.","skippy.");cbObj.writeHeader=null;cbObj.writeFooter=null;cbObj=ebayCBAddCobrandObject("5",aol);cbObj.headerName+="com";var exConds=new Array('(cbThisPageURLContains(dotCom+aolURLFol)','&&cbThisPageURLContains(dot+aol+dot))','||(','(!cbThisPageURLContains(dotCom+aolURLFol)','&&!cbThisPageURLContains(dot+aol+dot))','&&(cbThisPageURIContains(ebHTSch+"5&")','||cbThisPageURIContains(ebSIDSch+"5&")','||cbThisPageURIContains(ebCIDSch+"5&")))');cbObj.addExceptionObj("getURLException",EB_CB_EX_FUNC_CONDITION,new Array("(",""),exConds,"ebayCBGetURLException");cbObj=ebayCBAddCobrandObject("2",aol,"500");cbObj=ebayCBAddCobrandObject("6","compuserve");cbObj=ebayCBAddCobrandObject("7","digitalcity");cbObj.writeATC=false;cbObj=ebayCBAddCobrandObject("10","go");exConds=new Array('!cbThisPageURLContains(ebStr+ebmStr+"/")','&&!cbThisPageURLContains(ebmStr+dot)');cbObj.addExceptionObj("getURLException",EB_CB_EX_FUNC_CONDITION,new Array("((",")"),exConds,"ebayCBGetURLException");cbObj=ebayCBAddCobrandObject("8","icq");cbObj=ebayCBAddCobrandObject("9","netscape");cbObj=ebayCBAddCobrandObject("37","lycos");cbObj=ebayCBAddCobrandObject("28","carpoint");exConds=new Array('(cbThisPageURLContains(ebStr+ebmStr)','||cbThisPageURLContains(ebmStr+dot)','||(!cbThisPageURLContains(ebPages+dot)','&&!cbThisPageURLContains(www+dot+ebStr+dotCom)','&&!cbThisPageURLContains(cgi)','&&!cbThisPageURLContains(ebListings))',')');cbObj.addExceptionObj("getURLException",EB_CB_EX_FUNC_CONDITION,new Array("((",")"),exConds,"ebayCBGetURLException");cbObj=ebayCBAddCobrandObject("99","sandbox");cbObj.cbURLIdentifiers=new Array("sandbox.");cbObj=ebayCBAddCobrandObject("51","msn");cbObj=ebayCBAddCobrandObject("52","earthlink");cbObj=ebayCBAddCobrandObject("53","msnbc");}

// \include\js\cobrand\cobrand_functionality.js@@\main\17 

function eBayCBQueryCobranded(pCBObj)
{var str=location.search;var ps=str.substr(1).split("&");for(var i=0;i<ps.length;i++)
{var p=unescape(ps[i]).split("=");if(country=="tw")
p=ps[i].split("=");if(((p[0]=="ht")&&(p[1]==pCBObj.ht))||((p[0]==ebCID)&&(p[1]==pCBObj.co_partnerid))||((p[0]==ebSID)&&(p[1]==pCBObj.s_partnerid)))
return true;}
return false;}
function ebayCBGetURLException(){var exObj=this.findExceptionObj("getURLException");if(!exObj||(exObj.values.length<2)||(!exObj.conditions))
return;this.siteLogic=exObj.values[0]+this.siteLogic+')&&'+
exObj.getConditions()+exObj.values[1];this.siteLogicNotForURLMunging=exObj.values[0]+this.siteLogicNotForURLMunging+')&&'+
exObj.getConditions()+exObj.values[1];}
function ebayCBSetUpURLMunger()
{var preStr='cbThisPageURLContains("';var postStr='")';this.siteLogic="";for(var j=0;j<this.cbURLIdentifiers.length;j++)
{this.siteLogic+=preStr+this.cbURLIdentifiers[j]+postStr+or;}
this.siteLogic=this.siteLogic.substring(0,this.siteLogic.length-2);if(this.getURLException&&this.ht!=1)
this.getURLException();}
function ebayCBIsThisHostCobrand()
{return eval(this.siteLogic);}
function ebayCBIsThisParamCobrand()
{return(eBayCBQueryCobranded(this)||ebHTCookie.getCookielet("ht").is(this.ht));}
function ebayCBDetectCobrand(){var regExp=/cbThisPageURIParams/g;this.siteLogic=this.siteLogic.replace(regExp,"cbThisPageURIContains");var setCobrandObj='if('+this.siteLogic+')';setCobrandObj+='ebIsCobranded=true;';return setCobrandObj;}
function ebayCBWriteHeader(){if(ebSelCBObj&&ebSelCBObj.writeHeader){var autos="";if(((cbThisPageContains(ebmStr+"/")||cbThisPageContains(ebmStr+dot))&&!cbThisPageContains(ebUsingSSL)))
autos=ebmHdr+dot;var hdrStr=scriptOpen+countryCobrandDir+ebHdrDir+
autos+ebHdrFile+ebSelCBObj.headerName+jsExt+scriptClose;document.write(hdrStr);}}
window.writeHeader=ebayCBWriteHeader;function ebayCBWriteBrow(){var browStr=scriptOpen+countryCobrandDir+ebBrowFile+scriptClose;document.write(browStr);}
window.writeBrow=ebayCBWriteBrow;function ebayCBWriteFooter(){var showFooter=true;if(typeof(noCobrandHeader)!="undefined")
showFooter=!noCobrandHeader;if(ebSelCBObj&&ebSelCBObj.writeFooter&&showFooter){var ftrStr=scriptOpen+countryCobrandDir+ebFtrFile+
ebSelCBObj.headerName+jsExt+scriptClose;document.write(ftrStr);cbf=true;}}
window.writeFooter=ebayCBWriteFooter;function ebayCBWriteATC()
{return;}
window.writeATC=ebayCBWriteATC;function ebayCBMicroBrand()
{var pageName;if(!pageName)pageName="";var mbFile="";for(var i=0;i<ebCBMBPages.length&&(mbFile=="");i++)
{if((pageName.toLowerCase()).indexOf(ebCBMBPages[i])==0)
{for(var j=0;j<ebCBMicroBrands.length&&(mbFile=="");j++)
{if(cbLastPageURLContains(ebCBMicroBrands[j][1])||(ReadCookie(ebMBCookieName)==ebCBMBIDs[j][0]))
mbFile=ebCBMicroBrands[j][1]+jsExt;}}}
if(mbFile!="")
{ebSelCBObj=ebCBArray["1"]
var of=scriptOpen+countryCobrandDir+ebCBMBFilePrefix+mbFile;of+=scriptClose;document.write(of);}
return(mbFile!="");}
function ebayCBDetermineCobrand()
{for(var i in ebCBArray)
{ebCBArray[i].setUpURLMunger();if(ebCBArray[i].isThisHostCobranded())
{ebSelCBObj=ebCBArray[i];ebHTCookie.addCookielet("ht",ebSelCBObj.ht);ebHTCookie.set();return;}}
for(var j in ebPoolObjs)
{if(cbThisPageURLContains(ebPoolObjs[j].pool))
{ebHTCookie.addCookielet("ht","");ebHTCookie.set();return false;}}
for(var i in ebCBArray)
{if(ebCBArray[i].isThisCobrand())
{ebSelCBObj=ebCBArray[i];ebHTCookie.addCookielet("ht",ebSelCBObj.ht);ebHTCookie.set();return;}}}
function ebayCBInitCobranding()
{ebayCBCreateCobrands();if(typeof(EbayCookie)!="undefined")
{ebHTCookie=new EbayCookie("ebay",null,null,"/",null,null,true);ebHTCookie.read();}
ebayCBDetermineCobrand();ebayCBMicroBrand();if(ebSelCBObj)
siteID=cobrandID=ebSelCBObj.siteID;else
siteID=cobrandID="0";if((ebSelCBObj&&(ebSelCBObj.ht!="1"))||cbThisPageURLContains(https)||cbThisPageURLContains(scgi+dot))
{if(!ebSelCBObj)
ebSelCBObj=ebCBArray["1"];}}
ebayCBInitCobranding();
//-->                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
