﻿//WEBSIDESTORY CODE HBX1.0 (Universal)
//COPYRIGHT 1997-2005 WEBSIDESTORY,INC. ALL RIGHTS RESERVED. U.S.PATENT No. 6,393,479B1. MORE INFO:http://websidestory.com/privacy
//hbxCustom on tg.ca (Canada)
var ecm = _hbEvent("cv");
//CUSTOM METRICS js
var hbxBrandType;
var hbxBrandTypeArc;
var hbxStoreTypeBrand;
var hbxStoreType;
var hbxSegmentNum;
var hbxStoreTypeNum;
var strStoreBrand;

hbxBrandType = this.STORETYPE; 
hbxBrandTypeArc = this.STOREARC; 
strStoreBrand = this.STOREBRAND;
hbxStoreTypeBrand = strStoreBrand.toLowerCase();

function GetStoreType()
{
    switch(hbxStoreTypeBrand) 
    {
        case "tgdirect":
	        hbxStoreType = "USTG";
	        hbxSegmentNum = "1,-5";
	        hbxStoreTypeNum = "1";
	        break;
        case "agentlink":
	        hbxStoreType = "US Agent";
	        hbxSegmentNum = "--1,2,--3,--4,--5,-6,--7,--8,--9";
	        hbxStoreTypeNum = "2";
	        break;
	    //US Future Use
        case "usaffiliate":
	        hbxStoreType = "US Affiliate";
	        hbxSegmentNum = "-1,3,-4,-5,-7,-8,-9";
	        hbxStoreTypeNum = "3";
	        break;
        case "ready2travel":
	        hbxStoreType = "US Ready2Travel";
	        hbxSegmentNum = "-1,-3,-4,-5,-7,-8,9";
	        hbxStoreTypeNum = "9";
	        break;
        case "directca":
	        hbxStoreType = "CATG";
	        hbxSegmentNum = "-1,5";
	        hbxStoreTypeNum = "5";
	        break;
        case "agentlinkca":
	        hbxStoreType = "CA Agent";
	        hbxSegmentNum = "--1,-2,--3,--4,--5,6,--7,--8,--9";
	        hbxStoreTypeNum = "6";
	        break;
	    //CA Future Use
        case "caaffiliate":
	        hbxStoreType = "CA Affiliate";
	        hbxSegmentNum = "-1,-3,-4,-5,7,-8,-9";
	        hbxStoreTypeNum = "7";
	        break;
        default: //US/CA Wholesale sites
            if (hbxBrandType === "TravelGuardUnitedStates")
            {
	           hbxStoreType = "US Wholesale";
	           hbxSegmentNum = "-1,-3,4,-5,-7,-8,-9";
	           hbxStoreTypeNum = "4";
	        }
	        else if(hbxBrandType === "TravelGuardCanada")
	        {
	           hbxStoreType = "CA Wholesale";
	           hbxSegmentNum = "-1,-3,-4,-5,-7,8,-9";
	           hbxStoreTypeNum = "8";
	        }
	        break;
    }
}