
var hasTrack = false;
var hasSourcing = false;
var hasSell = false;
var hasResearch = false;
var hasImg = false;
var hasHotreport = false;
var hasGallery = false;
var hasCheckout = false;
var hasReports = false;
var hasSourcing = false;
var hasCustomers = false;
var hasStores = false;
var hasListing = false;
var productArr = false;
var hasCountersPro = false;
var hasReportsPro = false;

var flavor = getCookie("SessionUserFlavor");
var vendioFlavor = (flavor!=null && flavor==0);

productArr = getCookie("PRODUCT_SUBSCRIBED");
if(productArr != null){
productArr = productArr.split("#");
var len = productArr.length;
for(var i=0; i <len ; i++)

{
	if(productArr[i] == 'PRD_TRACK')
	{

		hasTrack = true;
	}
	
	if(productArr[i] == 'PRD_SOURCING')
	{
		hasSourcing = true;
	}
	if(productArr[i] == 'PRD_SELL')
	{
		hasSell = true;
	}
	if(productArr[i] == 'PRD_RESEARCH')
	{
		hasResearch = true;
	}
	if(productArr[i] == 'PRD_IMG')
	{
		hasImg = true;
	}
	if(productArr[i] == 'PRD_HOTREPORT')
	{
		hasHotreport = true;
	}
	if(productArr[i] == 'PRD_GALLERY')
	{
		hasGallery = true;
	}
	if(productArr[i] == 'PRD_CHECKOUT2')
	{
		hasCheckout = true;
	}
	if(productArr[i] == 'PRD_REPORTS')
	{
		hasReports = true;
	}
	if(productArr[i] == 'PRD_SOURCING')
	{
		hasSourcing = true;
	}
	if(productArr[i] == 'PRD_CUSTOMERS')
	{
		hasCustomers = true;
	}
	if(productArr[i] == 'PRD_GAL_STORES')
	{
		hasStores = true;
	}
	if(productArr[i] == 'PRD_LISTING')
	{
		hasListing = true;
	}
        if(productArr[i] == 'PRD_COUNTERS_PRO')
	{
		hasCountersPro = true;
	}
        if(productArr[i] == 'PRD_REPORTS_PRO')
	{
		hasReportsPro  = true;
	}


}

}
else
{
}

var hasAuctionToolsSubscribed = hasGallery || hasSell || hasImg || hasCustomers || hasListing || hasCheckout ||
									hasTrack || hasCountersPro || hasReportsPro;
var hasAllAuctionToolsSubscribed = hasGallery && hasSell && hasImg && hasCustomers && hasListing && hasCheckout &&
									hasTrack && hasCountersPro && hasReportsPro;
					
var hasStoreToolsSubscribed = hasStores;
var hasResearchToolsSubscribed = hasHotreport || hasResearch || hasSourcing || hasReports;
var hasAllResearchToolsSubscribed = (vendioFlavor)?(hasHotreport && hasResearch) : (hasHotreport && hasResearch && hasSourcing && hasReports);

