//<!--
//\include\js\cobrand\cobrand_objects.js@@\main\4

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+and,ebSIDSch+this.co_partnerid+and,ebCIDSch+this.s_partnerid+and);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.checkLastPage=ebayCBIsLastPageEBayLink;this.detectCobrand=ebayCBDetectCobrand;}
function ebayCBAddCobrandObject(pHT,pCBName,pCoPartnerID,pSPartnerID,pDomain)
{if(!ebCBArray[pHT])
{ebCBArray[pHT]=new EBayCobrandObj(pHT,pCBName,pCoPartnerID,pSPartnerID,pDomain);ebCBSIDTracker++;}
return ebCBArray[pHT];}
// -->
