


function getCobrandFlashVars(baseUrl){
   var loc = baseUrl;
   var cobrand = "";
  
   loc = loc.split("/");
   cobrand = loc[3];
 
   var ret;
   var currArg = cobrand.toLowerCase();    

   var defaultFlashvars = {
		"autoBuilderLayout" : "VBox(pricelessSearchFrame.width=953.height=440,pricelessOfferFrame.width=953.height=0),pricelessCartFrame.x=614.y=80.width=339.height=0",
	"theme"	: pathPrefix + themesPrefix + "priceless.swf",
	"languageTranslationFile" : pathPrefix + localePrefix + "CobrandLocale_" + locale + ".properties",
	"offerListSortField" : "[Merchant]name",
	"eMailPopup" : pathPrefix + swfsPrefix + "OffersClientPricelessEmailPopup.swf",	
	"applicationTitle" : "standardTitle",
        "breadcrumbHome" : "PROMOTIONS & OFFERS HOME",
        	
    //"navMenuPromotionsMLBPromoImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/MLB_billboard_cobrand.jpg",
	//"keyPromotionsMLBPromo" : "gameday.html",
       
	"navMenuCollectionsGlobalPremiumImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/CollectionsGlobalPremiumLarge.jpg",
	"navMenuCollectionsGlobalPremiumImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/CollectionsGlobalPremiumSmall.jpg",
	"navMenuCollectionsWorldImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/CollectionsWorldLarge.jpg",
	"navMenuCollectionsWorldImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/CollectionsWorldSmall.jpg",
	"navMenuCollectionsWorldEliteImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/CollectionsWorldEliteLarge.jpg",
	"navMenuCollectionsWorldEliteImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/CollectionsWorldEliteSmall.jpg",
	"navMenuCollectionsHomeOwnersImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/CollectionsHomeOwnersLarge.jpg",
	"navMenuCollectionsHomeOwnersImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/CollectionsHomeOwnersSmall.jpg",
	"navMenuCollectionsBusinessImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/CollectionsBusinessLarge.jpg",
	"navMenuCollectionsBusinessImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/CollectionsBusinessSmall.jpg",
	"navMenuCollectionsUniqueExperiencesImageLarge"	: pathPrefix + externalImagePrefix + "priceless_images/CollectionsUniqueExperiencesLarge.jpg",	
	"navMenuCollectionsUniqueExperiencesImageSmall"	: pathPrefix + externalImagePrefix + "priceless_images/CollectionsUniqueExperiencesSmall.jpg",	
	"navMenuCollectionsEverydaySavingsImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/CollectionsEveryDayLarge.jpg",
	"navMenuCollectionsEverydaySavingsImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/CollectionsEveryDaySmall.jpg",

	//---------- TRAVEL ----------//

	"navMenuSubItemsTravelNew": "TravelNewAirCruise.type=category,TravelNewCarRail.type=category,TravelNewHotelResort.type=category,TravelNewServices.type=category",
	"navMenuTravelNewImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/Travel.jpg",
	"navMenuTravelNewImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/Travel.jpg",
	"navMenuTravelNewAirCruiseImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/Travel.jpg",
	"navMenuTravelNewAirCruiseImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/AirCruise.jpg",
	"navMenuTravelNewCarRailImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/Travel.jpg",
	"navMenuTravelNewCarRailImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/CarRail.jpg",
	"navMenuTravelNewHotelResortImageLarge"	: pathPrefix + externalImagePrefix + "priceless_images/Travel.jpg",
	"navMenuTravelNewHotelResortImageSmall"	: pathPrefix + externalImagePrefix + "priceless_images/HotelResort.jpg",
	"navMenuTravelNewServicesImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/Travel.jpg",
	"navMenuTravelNewServicesImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/GuidesServices.jpg",
	"keyTravelNewAirCruise"	: "Airlines,Cruises",
	"keyTravelNewCarRail" : "Ground Transportation",
	"keyTravelNewHotelResort" : "Hotels and Resorts",
	"keyTravelNewServices" : "Travel Services",

	// ------- ENTERTAINMENT ----------//

	"navMenuSubItemsEntertainmentNew" : "EntertainmentNewDining.type=category,EntertainmentNewSports.type=category,EntertainmentNewShows.type=category",
	"navMenuEntertainmentNewImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/Entertainment.jpg",
	"navMenuEntertainmentNewImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/Entertainment.jpg",
	"navMenuEntertainmentNewArtsImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/Entertainment.jpg",
	"navMenuEntertainmentNewArtsImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/ArtsCulture.jpg",
	"navMenuEntertainmentNewDiningImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/Entertainment.jpg",
	"navMenuEntertainmentNewDiningImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/DiningNightlife.jpg",
	"navMenuEntertainmentNewSportsImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/Entertainment.jpg",
	"navMenuEntertainmentNewSportsImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/EntertainmentSportsSmall.jpg",
	"navMenuEntertainmentNewShowsImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/Entertainment.jpg",
	"navMenuEntertainmentNewShowsImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/MoviesMusic.jpg",
	"keyEntertainmentNewArts" : "Arts and Culture",
	"keyEntertainmentNewDining" : "Dining and Entertainment",
	"keyEntertainmentNewSports" : "Sports",
	"keyEntertainmentNewShows" : "Lifestyle and Recreation,Museum,Music,Movies",

	//---------- LIFESTYLE ------------//

	"navMenuSubItemsLifeStyleNew" : "LifeStyleNewSpa.type=category,LifeStyleNewAdventure.type=category,LifeStyleNewFood.type=category",
	"navMenuLifeStyleNewImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/LifeStyleLarge.jpg",
	"navMenuLifeStyleNewImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/LifeStyleSmall.jpg",
	"navMenuLifeStyleNewSpaImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/LifeStyleLarge.jpg",
	"navMenuLifeStyleNewSpaImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/LifeStyleHealthFitnessSmall.jpg",
	"navMenuLifeStyleNewAdventureImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/LifeStyleLarge.jpg",
	"navMenuLifeStyleNewAdventureImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/Adventure.jpg",
	"navMenuLifeStyleNewFoodImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/LifeStyleLarge.jpg",
	"navMenuLifeStyleNewFoodImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/FoodGourmet.jpg",
	"keyLifeStyleNewSpa" : "Personal Services,Health and Fitness",
	"keyLifeStyleNewAdventure" : "Journeys and Adventures",
	"keyLifeStyleNewFood" : "Food and Gourmet",

	//---------- SHOPPING --------------//

	"navMenuSubItemsShoppingNew" : "ShoppingNewApparel.type=category,ShoppingNewElectronics.type=category,ShoppingNewToys.type=category,ShoppingNewGifts.type=category,ShoppingNewHome.type=category,ShoppingNewBooks.type=category",
	"navMenuShoppingNewImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/Shopping.jpg",
	"navMenuShoppingNewImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/Shopping.jpg",
	"navMenuShoppingNewApparelImageLarge" :	pathPrefix + externalImagePrefix + "priceless_images/shopping.jpg",
	"navMenuShoppingNewApparelImageSmall" :	pathPrefix + externalImagePrefix + "priceless_images/ApprlAccsrs.jpg",
	"navMenuShoppingNewElectronicsImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/Shopping.jpg",
	"navMenuShoppingNewElectronicsImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/LivingSpaceHomeElectronicsSmall.jpg",
	"navMenuShoppingNewToysImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/Shopping.jpg",
	"navMenuShoppingNewToysImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/ToysNovelties.jpg",
	"navMenuShoppingNewGiftsImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/Shopping.jpg",
	"navMenuShoppingNewGiftsImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/GiftsFlowers.jpg",
	"navMenuShoppingNewHomeImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/Shopping.jpg",
	"navMenuShoppingNewHomeImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/HomeGarden.jpg",
	"navMenuShoppingNewBooksImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/Shopping.jpg",
	"navMenuShoppingNewBooksImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/BooksMagazines.jpg",
	"keyShoppingNewApparel"	: "Retail",
	"keyShoppingNewElectronics" : "Electronics and Communications",
	"keyShoppingNewToys" : "Toys and Novelty Items",
	"keyShoppingNewGifts" : "Gifts and Shopping",
	"keyShoppingNewHome" : "Improvement/Wholesale Stores",
	"keyShoppingNewBooks" : "News and Periodicals,Education and Learning",

	//------- BUSINESS SERVICES -----------//

	"navMenuSubItemsBusinessNew" : "BusinessNewProfessional.type=category,BusinessNewOffice.type=category,BusinessNewPersonal.type=category",
	"navMenuBusinessNewImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/BusinessServices.jpg",
	"navMenuBusinessNewImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/BusinessServices.jpg",
	"navMenuBusinessNewProfessionalImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/BusinessLarge.jpg",
	"navMenuBusinessNewProfessionalImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/BusinessServicesSmall.jpg",
	"navMenuBusinessNewOfficeImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/BusinessServices.jpg",
	"navMenuBusinessNewOfficeImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/OfficeManagement.jpg",
	"navMenuBusinessNewPersonalImageLarge" : pathPrefix + externalImagePrefix + "priceless_images/BusinessServices.jpg",
	"navMenuBusinessNewPersonalImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/PersonalFinance.jpg",
	"keyBusinessNewProfessional" : "Business Services",
	"keyBusinessNewOffice" : "Office Management",
	"keyBusinessNewPersonal" : "Personal Finance",


	"searchBackgroundImageSmall" : pathPrefix + externalImagePrefix + "priceless_images/SearchBackground.jpg",
	"noResultsImage" : pathPrefix + externalImagePrefix + "priceless_images/NoResults.jpg",	

        "slideShowRotationalPeriod" : "5000", 
	"featuredOfferRotationPeriod" : "30000",
	"featuredOfferScrollDirection" : "right",	
	"adFile" : pathPrefix + adContentPrefix + "priceless/adds.xml",
        "pdfTemplateName" : "StandardOffersPDFTemplate",
	"emailTemplateName" : "PricelessEMailTemplate.vm.html",
	"emailPropertiesFileName" : "PricelessEMailTemplate_" + locale + ".properties",
        "printTemplateName" : "StandardOffersPrintingTemplate",
	"copySenderInMail" : "false",
                "language" : "en",

	"categoryJourneysandAdventuresImageLarge"			:	pathPrefix + externalImagePrefix + "priceless_images/GenericAdventureLarge.jpg",
	"categoryJourneysandAdventuresImageSmall"			:	pathPrefix + externalImagePrefix + "priceless_images/GenericAdventureSmall.jpg",
	"categoryRetailImageLarge"							:	pathPrefix + externalImagePrefix + "priceless_images/GenericFashionLarge.jpg",	
	"categoryRetailImageSmall"							:	pathPrefix + externalImagePrefix + "priceless_images/GenericFashionSmall.jpg",	
	"categoryPersonalServicesImageLarge"				:	pathPrefix + externalImagePrefix + "priceless_images/GenericHealthFitnessLarge.jpg",
	"categoryPersonalServicesImageSmall"				:	pathPrefix + externalImagePrefix + "priceless_images/GenericHealthFitnessSmall.jpg",
	"categoryHealthandFitnessFitnessImageLarge"			:	pathPrefix + externalImagePrefix + "priceless_images/GenericHealthFitnessLarge.jpg",
	"categoryHealthandFitnessFitnessImageSmall"			:	pathPrefix + externalImagePrefix + "priceless_images/GenericHealthFitnessSmall.jpg",
	"categorySportsImageLarge"							:	pathPrefix + externalImagePrefix + "priceless_images/GenericHealthFitnessLarge.jpg",
	"categorySportsImageSmall"							:	pathPrefix + externalImagePrefix + "priceless_images/GenericHealthFitnessSmall.jpg",
	"categoryGiftsandShoppingImageLarge"				:	pathPrefix + externalImagePrefix + "priceless_images/GenericShoppingLarge.jpg",
	"categoryGiftsandShoppingImageSmall"				:	pathPrefix + externalImagePrefix + "priceless_images/GenericShoppingSmall.jpg",
	"categoryAirlinesImageLarge"						:	pathPrefix + externalImagePrefix + "priceless_images/GenericAirLarge.jpg",
	"categoryAirlinesImageSmall"						:	pathPrefix + externalImagePrefix + "priceless_images/GenericAirSmall.jpg",
	"categoryGroundTransportationImageLarge"			:	pathPrefix + externalImagePrefix + "priceless_images/GenericCarRailLarge.jpg",
	"categoryGroundTransportationImageSmall"			:	pathPrefix + externalImagePrefix + "priceless_images/GenericCarRailSmall.jpg",
	"categoryCruisesImageLarge"							:	pathPrefix + externalImagePrefix + "priceless_images/GenericCruiseLarge.jpg",
	"categoryCruisesImageSmall"							:	pathPrefix + externalImagePrefix + "priceless_images/GenericCruiseSmall.jpg",
	"categoryHotelsandResortsImageLarge"				:	pathPrefix + externalImagePrefix + "priceless_images/GenericHotelResortLarge.jpg",
	"categoryHotelsandResortsImageSmall"				:	pathPrefix + externalImagePrefix + "priceless_images/GenericHotelResortSmall.jpg",
	"categoryTravelImageLarge"							:	pathPrefix + externalImagePrefix + "priceless_images/GenericVacationLarge.jpg",
	"categoryTravelImageSmall"							:	pathPrefix + externalImagePrefix + "priceless_images/GenericVacationSmall.jpg",
	"categoryTravelServicesImageLarge"					:	pathPrefix + externalImagePrefix + "priceless_images/GenericTravelServicesLarge.jpg",
	"categoryTravelServicesImageSmall"					:	pathPrefix + externalImagePrefix + "priceless_images/GenericTravelServicesSmall.jpg",
	"categoryLifestyleandRecreationImageLarge"			:	pathPrefix + externalImagePrefix + "priceless_images/GenericEventsLarge.jpg",
	"categoryLifestyleandRecreationImageSmall"			:	pathPrefix + externalImagePrefix + "priceless_images/GenericEventsSmall.jpg",
	"categoryMuseumImageLarge"							:	pathPrefix + externalImagePrefix + "priceless_images/GenericEventsLarge.jpg",
	"categoryMuseumImageSmall"							:	pathPrefix + externalImagePrefix + "priceless_images/GenericEventsSmall.jpg",
	"categoryMusicImageLarge"							:	pathPrefix + externalImagePrefix + "priceless_images/GenericEventsLarge.jpg",
	"categoryMusicImageSmall"							:	pathPrefix + externalImagePrefix + "priceless_images/GenericEventsSmall.jpg",
	"categoryMoviesImageLarge"							:	pathPrefix + externalImagePrefix + "priceless_images/GenericEventsLarge.jpg",
	"categoryMoviesImageSmall"							:	pathPrefix + externalImagePrefix + "priceless_images/GenericEventsSmall.jpg",
	"categoryDiningandEntertainmentImageLarge"			:	pathPrefix + externalImagePrefix + "priceless_images/GenericRestaurantLarge.jpg",
	"categoryDiningandEntertainmentImageSmall"			:	pathPrefix + externalImagePrefix + "priceless_images/GenericRestaurantSmall.jpg",
	"categoryImprovement/WholesaleStoresImageLarge"		:	pathPrefix + externalImagePrefix + "priceless_images/GenericHardwareLarge.jpg",
	"categoryImprovement/WholesaleStoresImageSmall"		:	pathPrefix + externalImagePrefix + "priceless_images/GenericHardwareSmall.jpg",
	"categoryElectronicsandCommunicationsImageLarge"	:	pathPrefix + externalImagePrefix + "priceless_images/GenericHomeElectronicsLarge.jpg",
	"categoryElectronicsandCommunicationsImageSmall"	:	pathPrefix + externalImagePrefix + "priceless_images/GenericHomeElectronicsSmall.jpg",
	"categoryBusinessServicesImageLarge"				:	pathPrefix + externalImagePrefix + "priceless_images/GenericBusinessServicesLarge.jpg",
	"categoryBusinessServicesImageSmall"				:	pathPrefix + externalImagePrefix + "priceless_images/GenericBusinessServicesSmall.jpg",
	"categoryEducationandLearningImageLarge"			:	pathPrefix + externalImagePrefix + "priceless_images/GenericEducationLarge.jpg",
	"categoryEducationandLearningImageSmall"			:	pathPrefix + externalImagePrefix + "priceless_images/GenericEducationSmall.jpg",
	"categoryOfficeManagementImageLarge"				:	pathPrefix + externalImagePrefix + "priceless_images/GenericInOfficeLarge.jpg",
	"categoryOfficeManagementImageSmall"				:	pathPrefix + externalImagePrefix + "priceless_images/GenericInOfficeSmall.jpg",
	"categoryNewsandPeriodicalsImageLarge"				:	pathPrefix + externalImagePrefix + "priceless_images/GenericNewsPeriodicalsLarge.jpg",
	"categoryNewsandPeriodicalsImageSmall"				:	pathPrefix + externalImagePrefix + "priceless_images/GenericNewsPeriodicalsSmall.jpg",


	//"keyPromotionsMonthlyBonusSweeps" : "monthlybonus.html",
	"keyPromotionsMonthlyBonusSweeps" : "http://www.priceless.com/us/personal/en/promos/monthlybonus/index.html",
	"keyPromotionsPricelessTravel" : "travel.html",
        "keyPromotionsBillPay" : "billpay.html",
        "keyPromotionsHoliday" : "http://holiday.priceless.com/default.asp?CMP=ILC-PCOM.US.PRMO_LRNMORE",

	
	"keyCollectionsGlobalPremium" : "Premium Collection Online US",
	"keyCollectionsWorld" : "Premium Collection Online US",
	"keyCollectionsWorldElite" : "premium-us-world-elite",
	"keyCollectionsHomeOwners" : "HELOC Collection Online US",
	"keyCollectionsBusiness" : "Business Online US",
	"keyCollectionsUniqueExperiences" : "Unique Experiences Online US",
	"keyCollectionsEverydaySavings"	: "Consumer Online US",
	"collectionsWithCreditCardBoxes" : "",
        "substituteTextAllForSingleCollectionName" : "false",
        "hideOptionalBackgroundText" : "true"
		
   };

   switch (currArg){
 
	
	
		case "accountcentralonline":
		ret = {			
			//"cobrandId" : "141", 
"cobrandName" : "Account Central",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection",
"navMenuSubItemsPromotions" : "PromotionsPricelessTravel.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection",
"offerTypes" : "Consumer Online US",	
"wildCardCollections" : "Promotion Online US,Premium Collection Online US"			
		};
		break;

	
	
		case "bankofamerica":
		ret = {			
			//"cobrandId" : "15",
"cobrandName" : "Bank of America Savings and Discount",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink,PromotionsPricelessTravel.type=urlLink,PromotionsMonthlyBonusSweeps.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection",
"offerTypes" : "Consumer Online US",	
"wildCardCollections" : "Promotion Online US,Premium Collection Online US"			
		};
		break;

	
	
		case "bankofamerica_premium":
		ret = {			
			//"cobrandId" : "16",
"cobrandName" : "Bank of America Premium Collection",
"navMenuPrimaryItems" : "CollectionsWorld.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink,PromotionsPricelessTravel.type=urlLink,PromotionsMonthlyBonusSweeps.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsWorld.type=collection",
"offerTypes" : "Premium Collection Online US",	
"wildCardCollections" : "Promotion Online US,Consumer Online US"				
		};
		break;

	
	
		case "bankofny":
		ret = {			
			//"cobrandId" : "17",
"cobrandName" : "The Bank of New York",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink,PromotionsPricelessTravel.type=urlLink,PromotionsMonthlyBonusSweeps.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection",
"offerTypes" : "Consumer Online US",
"wildCardCollections" : "Promotion Online US,Premium Collection Online US"			
		};
		break;

	
	
		case "bankofthewest":
		ret = {			
			"cobrandName" : "Bank of the West",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection,CollectionsWorld.type=collection,CollectionsBusiness.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink,PromotionsPricelessTravel.type=urlLink,PromotionsMonthlyBonusSweeps.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection,CollectionsWorld.type=collection,CollectionsBusiness.type=collection",
"offerTypes" : "Consumer Online US,Premium Collection Online US,Business Online US",
"wildCardCollections" : "Promotion Online US"			
		};
		break;

	
	
		case "barnesandnoble":
		ret = {			
			"cobrandName" : "Barclays Barnes and Noble",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection",
"offerTypes" : "Consumer Online US",
"wildCardCollections" : "Promotion Online US,Premium Collection Online US"			
		};
		break;

	
	
		case "becu":
		ret = {			
			//"cobrandId" : "18",
"cobrandName" : "BECU",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink,PromotionsPricelessTravel.type=urlLink,PromotionsMonthlyBonusSweeps.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection",
"offerTypes" : "Consumer Online US",	
"wildCardCollections" : "Promotion Online US,Premium Collection Online US"				
		};
		break;

	
	
		case "brooksbrothers":
		ret = {			
			//"cobrandId" : "201",
"cobrandName" : "Brooks Brothers",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection,CollectionsWorld.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink,PromotionsPricelessTravel.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection,CollectionsWorld.type=collection",
"offerTypes" : "Consumer Online US,Premium Collection Online US",	
"wildCardCollections" : "Promotion Online US"				
		};
		break;

	
	
		case "capitalonebank":
		ret = {			
			//"cobrandId" : "19",
"cobrandName" : "CapitalOne Bank",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection",
"navMenuSubItemsPromotions" : "PromotionsPricelessTravel.type=urlLink,PromotionsMonthlyBonusSweeps.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection",
"offerTypes" : "Consumer Online US",	
"wildCardCollections" : "Promotion Online US,Premium Collection Online US"			
		};
		break;

	
	
		case "citihealthcard":
		ret = {			
			"cobrandName" : "Citi Health Card",
//"navMenuPrimaryItems" : "Promotions.type=menuLink,CollectionsEverydaySavings.type=collection",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection",
//"navMenuSubItemsPromotions" : "PromotionsMLBPromo.type=urlLink",
"offerTypes" : "Consumer Online US",
"wildCardCollections" : "Promotion Online US,Premium Collection Online US"			
		};
		break;

	
	
		case "citimastercard":
		ret = {			
			"cobrandName" : "Citi MasterCard",
//"navMenuPrimaryItems" : "Promotions.type=menuLink,CollectionsEverydaySavings.type=collection",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection",
//"navMenuSubItemsPromotions" : "PromotionsMLBPromo.type=urlLink",
"offerTypes" : "Consumer Online US",
"wildCardCollections" : "Promotion Online US,Premium Collection Online US"			
		};
		break;

	
	
		case "citizens":
		ret = {			
			//"cobrandId" : "20",
"cobrandName" : "Citizens Bank",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink,PromotionsPricelessTravel.type=urlLink,PromotionsMonthlyBonusSweeps.type=urlLink",	
"navMenuSubItemsCollections": "CollectionsEverydaySavings.type=collection",
"offerTypes" : "Consumer Online US",	
"wildCardCollections" : "Promotion Online US,Premium Collection Online US"			
		};
		break;

	
	
		case "cms":
		ret = {			
			//"cobrandId" : "2",
"cobrandName" : "Card Member Services",
"navMenuPrimaryItems" : "CollectionsWorld.type=collection,CollectionsEverydaySavings.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink,PromotionsPricelessTravel.type=urlLink,PromotionsMonthlyBonusSweeps.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsWorld.type=collection,CollectionsEverydaySavings.type=collection",
"offerTypes" : "Premium Collection Online US,Consumer Online US",	
"wildCardCollections" : "Promotion Online US"			
		};
		break;

	
	
		case "dmb":
		ret = {			
			//"cobrandId" : "21",
"cobrandName" : "Direct Merchants Bank",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink,PromotionsPricelessTravel.type=urlLink,PromotionsMonthlyBonusSweeps.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection",
"offerTypes" : "Consumer Online US",	
"wildCardCollections" : "Promotion Online US,Premium Collection Online US"			
		};
		break;

	
	
		case "ebay":
		ret = {			
			//"cobrandId" : "202",
"cobrandName" : "eBay",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection,CollectionsWorld.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink,PromotionsPricelessTravel.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection,CollectionsWorld.type=collection",
"offerTypes" : "Consumer Online US,Premium Collection Online US",	
"wildCardCollections" : "Promotion Online US"				
		};
		break;

	
	
		case "exxonmobil":
		ret = {			
			//"cobrandId" : "221",
"cobrandName" : "ExxonMobil",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection,CollectionsWorld.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink,PromotionsPricelessTravel.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection,CollectionsWorld.type=collection",
"offerTypes" : "Consumer Online US,Premium Collection Online US",	
"wildCardCollections" : "Promotion Online US"				
		};
		break;

	
	
		case "fnbomaha":
		ret = {			
			//"cobrandId" : "22",
"cobrandName" : "First National Bank Omaha",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink,PromotionsPricelessTravel.type=urlLink,PromotionsMonthlyBonusSweeps.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection",
"offerTypes" : "Consumer Online US",	
"wildCardCollections" : "Promotion Online US,Premium Collection Online US"			
		};
		break;

	
	
		case "gemoney":
		ret = {			
			//"cobrandId" : "203",
"cobrandName" : "GE Money",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection,CollectionsWorld.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink,PromotionsPricelessTravel.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection,CollectionsWorld.type=collection",
"offerTypes" : "Consumer Online US,Premium Collection Online US",	
"wildCardCollections" : "Promotion Online US"				
		};
		break;

	
	
		case "gmcard":
		ret = {			
			//"cobrandId" : "23",
"cobrandName" : "GM Card",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection",
"navMenuSubItemsPromotions" : "",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection",
"offerTypes" : "Consumer Online US",	
"wildCardCollections" : "Promotion Online US,Premium Collection Online US"			
		};
		break;

	
	
		case "household":
		ret = {			
			//"cobrandId" : "26",		
"cobrandName" : "Household Bank/Orchard Bank",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection",
"offerTypes" : "Consumer Online US",	
"wildCardCollections" : "Promotion Online US,Premium Collection Online US"			
		};
		break;

	
	
		case "hrblockbank":
		ret = {			
			//"cobrandId" : "24",
"cobrandName" : "H and R Block Bank",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink,PromotionsPricelessTravel.type=urlLink,PromotionsMonthlyBonusSweeps.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection",
"offerTypes" : "Consumer Online US",	
"wildCardCollections" : "Promotion Online US,Premium Collection Online US"			
		};
		break;

	
	
		case "juniper":
		ret = {			
			//"cobrandId" : "188", 
"cobrandName" : "Barclays Juniper",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection",
"navMenuSubItemsPromotions" : "PromotionsPricelessTravel.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection",
"offerTypes" : "Consumer Online US",
"wildCardCollections" : "Promotion Online US,Premium Collection Online US"			
		};
		break;

	
	
		case "keybank":
		ret = {			
			//"cobrandId" : "11",
"cobrandName" : "Key Bank",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink,PromotionsPricelessTravel.type=urlLink,PromotionsMonthlyBonusSweeps.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsHomeOwners.type=collection,CollectionsEverydaySavings.type=collection",
"offerTypes" : "HELOC Collection Online US,Consumer Online US",	
"wildCardCollections" : "Promotion Online US,Premium Collection Online US"			
		};
		break;

	
	
		case "meijer":
		ret = {			
			//"cobrandId" : "207",
"cobrandName" : "Meijer",
"navMenuPrimaryItems" : "TravelNew.type=menuLink,EntertainmentNew.type=menuLink,LifeStyleNew.type=menuLink",
//"navMenuSubItemsPromotions" : "PromotionsMLBPromo.type=urlLink",	
"offerTypes" : "Consumer Online US,Premium Collection Online US",	
"wildCardCollections" : "Premium Collection Online US,Consumer Online US,Promotion Online US"				
		};
		break;

	
	
		case "midwest":
		ret = {			
			//"cobrandId" : "187", 
"cobrandName" : "Barclays Midwest",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection",
"offerTypes" : "Consumer Online US",
"wildCardCollections" : "Promotion Online US,Premium Collection Online US"			
		};
		break;

	
	
		case "modells":
		ret = {			
			//"cobrandId" : "101",
"cobrandName" : "Modells",
"navMenuPrimaryItems" : "CollectionsWorld.type=collection,CollectionsEverydaySavings.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink,PromotionsPricelessTravel.type=urlLink",
"navMenuSubItemsCollections" : "CollectionsWorld.type=collection,CollectionsHomeOwners.type=collection,CollectionsEverydaySavings.type=collection",
"offerTypes" : "Premium Collection Online US,HELOC Collection Online US,Consumer Online US",	
"wildCardCollections" : "Promotion Online US"			
		};
		break;

	
	
		case "paypal":
		ret = {			
			//"cobrandId" : "204",
"cobrandName" : "PayPal",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection,CollectionsWorld.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink,PromotionsPricelessTravel.type=urlLink",
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection,CollectionsWorld.type=collection",
"offerTypes" : "Consumer Online US,Premium Collection Online US",	
"wildCardCollections" : "Promotion Online US"				
		};
		break;

	
	
		case "seamiles":
		ret = {			
			//"cobrandId" : "183", 
"cobrandName" : "Barclays Sea Miles",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection",
"offerTypes" : "Consumer Online US",
"wildCardCollections" : "Promotion Online US,Premium Collection Online US"			
		};
		break;

	
	
		case "snbc":
		ret = {			
			//"cobrandId" : "205",
"cobrandName" : "SNBC",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection,CollectionsWorld.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink,PromotionsPricelessTravel.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection,CollectionsWorld.type=collection",
"offerTypes" : "Consumer Online US,Premium Collection Online US",	
"wildCardCollections" : "Promotion Online US"				
		};
		break;

	
	
		case "spiritairlines":
		ret = {			
			//"cobrandId" : "184", 
"cobrandName" : "Barclays Spirit Air",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink,PromotionsPricelessTravel.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection",
"offerTypes" : "Consumer Online US",
"wildCardCollections" : "Promotion Online US,Premium Collection Online US"			
		};
		break;

	
	
		case "steinmart":
		ret = {			
			//"cobrandId" : "206",
"cobrandName" : "Steinmart",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection,CollectionsWorld.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink,PromotionsPricelessTravel.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection,CollectionsWorld.type=collection",
"offerTypes" : "Consumer Online US,Premium Collection Online US",	
"wildCardCollections" : "Promotion Online US"				
		};
		break;

	
	
		case "testcobrand":
		ret = {			
			//"navMenuPrimaryItems" : "Promotions.type=menuLink,TravelNew.type=menuLink,EntertainmentNew.type=menuLink,LifeStyleNew.type=menuLink,ShoppingNew.type=menuLink",
			"navMenuPrimaryItems" : "TravelNew.type=menuLink,EntertainmentNew.type=menuLink,LifeStyleNew.type=menuLink,ShoppingNew.type=menuLink",
//"navMenuSubItemsPromotions" : "PromotionsMLBPromo.type=urlLink",	
"offerTypes" : "Premium Collection Online US,HELOC Collection Online US,Business Online US,Unique Experiences Online US,Consumer Online US",	
"wildCardCollections" : "Premium Collection Online US,HELOC Collection Online US,Business Online US,Unique Experiences Online US,Consumer Online US,Promotion Online US,Special Deals Online US"			
		};
		break;

	
	
		case "travelocity":
		ret = {			
			//"cobrandId" : "185", 
"cobrandName" : "Barclays Travelocity",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection",
"offerTypes" : "Consumer Online US",
"wildCardCollections" : "Promotion Online US,Premium Collection Online US"			
		};
		break;

	
	
		case "upcard":
		ret = {			
			//"cobrandId" : "29",
"cobrandName" : "Union Plus Card",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection",
"navMenuSubItemsPromotions" : "",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection",
"offerTypes" : "Consumer Online US",	
"wildCardCollections" : "Promotion Online US,Premium Collection Online US"			
		};
		break;

	
	
		case "usairways":
		ret = {			
			//"cobrandId" : "186", 
"cobrandName" : "Barclays US Airways",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection",
"offerTypes" : "Consumer Online US",
"wildCardCollections" : "Promotion Online US,Premium Collection Online US"			
		};
		break;

	
	
		case "wellsfargo":
		ret = {			
			//"cobrandId" : "30",
"cobrandName" : "Wells Fargo",
"navMenuPrimaryItems" : "CollectionsEverydaySavings.type=collection",
"navMenuSubItemsPromotions" : "PromotionsHoliday.type=urlLink,PromotionsPricelessTravel.type=urlLink,PromotionsMonthlyBonusSweeps.type=urlLink",	
"navMenuSubItemsCollections" : "CollectionsEverydaySavings.type=collection",
"offerTypes" : "Consumer Online US",	
"wildCardCollections" : "Promotion Online US,Premium Collection Online US"			
		};
		break;

	
   }

   for (key in ret) {
	defaultFlashvars[key] = ret[key];
   }

   return defaultFlashvars;
}

function relative(resourceURL, locationURL) {
	var relativePath = "";
	
	if ( (resourceURL.indexOf("http://") == 0) || (resourceURL.indexOf("https://") == 0) ) { //		
		return resourceURL;
	}
	else if (resourceURL.indexOf("#") == 0) {
			relativePath = "#";
			return relativePath;
	}
	
	aResource = resourceURL.substring(1, resourceURL.length).split("/");
	aLocation = locationURL.substring(1, locationURL.length).split("/");

	// first, remove anything in either path that is common
	var start = 0;
	
	for (m=0; m<aResource.length; m++) {
		if (m <= aLocation.length && aResource[m] != aLocation[m]) {
			start = m;			
			break;					
		}
	}
	
	aResource = aResource.slice(start, aResource.length);
	aLocation = aLocation.slice(start, aLocation.length);
	
	// then, get the relativePathative path from locationURL to the root
	var n = 0;
	while (n < aLocation.length-1) {
		relativePath += "../";
		n++;		
	}

	// lastly, add each remaining element of the resource path to the relativePath path.
	for (p=0; p<aResource.length; p++) {
		relativePath = (p==aResource.length-1)?relativePath + aResource[p]:relativePath + aResource[p] + "/";
	}

	return relativePath;
}




