function acxiomHomepage(item){
	
	// Read a page's GET URL variables and return them as an associative array.
		function getUrlVars()
		{    
			var vars = [], hash;    
			var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');     
			
				for(var i = 0; i < hashes.length; i++)
						{        
						hash = hashes[i].split('=');        
						vars.push(hash[0]);        
						vars[hash[0]] = hash[1];    
						}     
					return vars;
			}


function getCookie(c_name)
{
if (document.cookie.length>0)
{
c_start=document.cookie.indexOf(c_name + "=");
if (c_start!=-1)
{
c_start=c_start + c_name.length+1;
c_end=document.cookie.indexOf(";",c_start);
if (c_end==-1) c_end=document.cookie.length;
return unescape(document.cookie.substring(c_start,c_end));
}
}
return "";
}
	
	// Looking for "utm_campaign" value if UTM goto line:54
			var hash = getUrlVars(); 
			
			if(!(hash['utm_campaign']))
			{
				// looking for Acxiom cookie 
				
				if (!(getCookie('acxiomdatach01')))
				{
				//alert('no cookie found');
				//document.cookie="acxiomdatach01=debug";	
				//document.cookie="acxiomdatacht=debug";
				document.cookie="acxiomdatach01=847299; path=/our_plans/individual_and_family/";	
				document.cookie="acxiomdatacht=no_campaign; path=/our_plans/individual_and_family/";	
				//alert('cookie set!');
				}
				
				// Cookie Found : Use previously set values
				specificcio1 = getCookie('acxiomdatach01');
				specificcht  = getCookie('acxiomdatacht');
				//alert(specificcio1);
			}
			else
				{
				specificcio1 = hash['utm_campaign'];
				specificcht = hash['utm_medium'];
				document.cookie="acxiomdatach01="+specificcio1+"; path=/our_plans/individual_and_family/;"
				document.cookie="acxiomdatacht="+specificcht+"; path=/our_plans/individual_and_family/;"
				}
//alert(item+'-'+specificcio1+'-'+specificcht);

switch(item){
	
	case "homepage":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=home_page" width="1" height="1" border="0">');
	break;

// 1st LEVEL pages

	case "sub_explore":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=explore" width="1" height="1" border="0">');
	break;

	case "sub_difference":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=difference" width="1" height="1" border="0">');
	break;
	
		case "sub_apply":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=apply" width="1" height="1" border="0">');
	break;
	
		case "sub_affordable":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=affordable_general" width="1" height="1" border="0">');
	break;
	
		case "sub_tools":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=tools" width="1" height="1" border="0">');
	break;
	
		case "sub_individual":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=affordableIndividual" width="1" height="1" border="0">');
	break;
	
		case "sub_family":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=affordableFamily" width="1" height="1" border="0">');
	break;
	
		case "sub_student":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=affordableStudent" width="1" height="1" border="0">');
	break;
	
	
	
//STATE LANDING PAGES
	
	case"arizona":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=arizona" width="1" height="1" border="0">');
	break;
	case"arizona_apply":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=arizona_apply" width="1" height="1" border="0">');
	break;	

	case"california":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=california" width="1" height="1" border="0">');
	break;
	case"california_apply":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=california_apply" width="1" height="1" border="0">');
	break;		
	
	case"colorado":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=colorado" width="1" height="1" border="0">');
	break;	
	case"colorado_apply":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=colorado_apply" width="1" height="1" border="0">');
	break;	

	case"connecticut":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=connecticut" width="1" height="1" border="0">');
	break;	
	case"connecticut_apply":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=connecticut_apply" width="1" height="1" border="0">');
	break;		

	case"florida":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=florida" width="1" height="1" border="0">');
	break;
	case"florida_apply":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=florida_apply" width="1" height="1" border="0">');
	break;				
	
	case"georgia":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=georgia" width="1" height="1" border="0">');
	break;
	case"georgia_apply":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=georgia_apply" width="1" height="1" border="0">');
	break;		

	case"northcarolina":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=northcarolina" width="1" height="1" border="0">');
	break;
	case"northcarolina_apply":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=northcarolina_apply" width="1" height="1" border="0">');
	break;	
	
	case"southcarolina":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=southcarolina" width="1" height="1" border="0">');
	break;
	case"southcarolina_apply":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=southcarolina_apply" width="1" height="1" border="0">');
	break;	
	
	case"tennessee":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=tennessee" width="1" height="1" border="0">');
	break;	
	case"tennessee_apply":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=tennessee_apply" width="1" height="1" border="0">');
	break;
	
	case"texas":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=texas" width="1" height="1" border="0">');
	break;
	case"texas_apply":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=texas_apply" width="1" height="1" border="0">');
	break;
	
// Get QUOTE & APPLY -- HPS links	
		case"getQuote":
	document.write('<a href="https://cigna.healthplan.com/page.php?s=guest&p=quote/quote_quick.php&ref=Indivquote&campaign_id='+specificcio1+'&acxiomci01='+specificcio1+'&acxiomcht='+specificcht+'" onclick="pageTracker._link(this.href); return false;">');
	break;	
	
	case"apply":
	document.write('<a href="https://secure.getcigna.com/page.php?s=home&p=home/index.php&ref=Indivapply&campaign_id='+specificcio1+'&acxiomci01='+specificcio1+'&acxiomcht='+specificcht+'" onclick="pageTracker._link(this.href); return false;">');
	break;	
	
	case"getQuote_v2":
	document.write('<a class="blue" target="_blank" href="https://cigna.healthplan.com/page.php?s=guest&p=quote/quote_quick.php&ref=Indivquote&campaign_id='+specificcio1+'&acxiomci01='+specificcio1+'&acxiomcht='+specificcht+'" onclick="pageTracker._link(this.href); return false;">');
	break;	
	
	case"apply_v2":
	document.write('<a class="link" target="_blank" href="https://secure.getcigna.com/page.php?s=home&p=home/index.php&ref=Indivapply&campaign_id='+specificcio1+'&acxiomci01='+specificcio1+'&acxiomcht='+specificcht+'" onclick="pageTracker._link(this.href); return false;">');
	break;	
	
	
		case"getQuoteerror":
	document.write('<a href="https://cigna.healthplan.com/page.php?s=guest&p=quote/quote_quick.php&ref=Indivquote&campaign_id='+specificcio1+'&acxiomci01='+specificcio1+'&acxiomcht='+specificcht+'"  onclick="pageTracker._link(this.href); return false;">');
	break;	
	
//AUDIENCE SCIENCE
	
	case"audienceScienceAZ":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=Audience_Science_AZ" width="1" height="1" border="0">');
	break;			
	
	case"audienceScienceMAIN":
	document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=Audience_Science_Main" width="1" height="1" border="0">');
	break;	
	
	//CROSSBOW
	case"ifpfl":
document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=IFP-FL" width="1" height="1" border="0">');
	break;	
	case"ifptx":
document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=IFP-TX" width="1" height="1" border="0">');
	break;	
	case"indfl":
document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=IND-FL" width="1" height="1" border="0">');
	break;	
	case"indtx":
document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=IND-TX" width="1" height="1" border="0">');
	break;	
	
	//DENTAL
		case"dental":
document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=Dental" width="1" height="1" border="0">');
	break;

	//Campaigns Joseph B
	case"Values_LP-AZ":
document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=Values_LP_arizona" width="1" height="1" border="0">');
	break;	
	case"Values_LP":
document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=Values_LP_main" width="1" height="1" border="0">');
	break;	
	case"WellDefine_LP-AZ":
document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=WellDefine_LP_arizona" width="1" height="1" border="0">');
	break;	
	case"WellDefine_LP":
document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=WellDefine_LP_main" width="1" height="1" border="0">');
	break;	
	//Campaigns Joy B
	case"CO_campaign":
document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=Colorado_campaign" width="1" height="1" border="0">');
	break;
		case"CO_campaign2":
document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=Colorado_campaign_rates" width="1" height="1" border="0">');
	break;	
		case"GA_campaign":
document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=Georgia_campaign" width="1" height="1" border="0">');
	break;	
		case"GA_campaign2":
document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=Georgia_campaign_rates" width="1" height="1" border="0">');
	break;	
		case"TX_campaign":
document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=Texas_campaign" width="1" height="1" border="0">');
	break;	
		case"TX_campaign2":
document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=Texas_campaign_rates" width="1" height="1" border="0">');
	break;		


	//Disney
	case"disney":
document.write('<img src="https://cigna.g.delivery.net/g/ue/c/?e=51&est=wp&v=13792&l=11715&ci01='+specificcio1+'&cht='+specificcht+'&rid=v&tc=1&src=Disney_Marathon2012" width="1" height="1" border="0">');
	break;	
	
	}
}	
