<!-- MPI FASTT Dynamic Header -->
var SetCo;
function getName(cookie_name) {
    if(document.cookie)
   {
        index = document.cookie.indexOf(cookie_name);
        if (index != -1)
     {
            namestart = (document.cookie.indexOf("=", index) + 1);
            nameend = document.cookie.indexOf(";", index);
            if (nameend == -1) {nameend = document.cookie.length;}
            SetCo = document.cookie.substring(namestart, nameend);
            return SetCo;
           }
        }
}


SetCo=getName("Origin");

if (document.domain == "www.mpicoin.com")
{
	// mpicoin
	if (SetCo == "Wholesale"){
	topscriptws()
	}
	else if (SetCo == "CUL"){
	topscriptcuct()
	}
	else if (SetCo == "CULM"){
	topscriptcunc()
	}
	else if (SetCo == "CULE"){
	topscriptcu()
	}
	else
	{
		// this user is a wholesale prospect
		//topscriptba(); bankers association prospect
		topscriptp();
	}
}
else
{
	// coinsofamerica
	SetPartner=getName("AFFID");
	switch (SetPartner){
		 case "IL00032" : 
			  topscriptbnb();
			  break;
		case "MI00157" : 
			  topscriptDow();
			  break;
		case "WS00228" : 
			  topscriptICS();
			  break;
		case "LA00122" : 
			  topscriptCiti();
			  break;
		case "FHS" : 
			  topscriptfs();
			  break;
	default : topscriptr();
	//
	}
}
<!-- End MPI FASTT Dynamic Header -->