/*
	JS file that detects the Storm Environment
*/
function getHostName(hostname){	
	var wip_check = "wip.dell.com";
	var staging_check = "staging.us.dell.com";
	var approved_check = "approved.us.dell.com";
	var prod_check = "i.dell.com";

	stormEnv = new Array(wip_check,staging_check,approved_check);	
	getHostName = prod_check;	//default to production

	for (x in stormEnv)
	{
		if (hostname.match(stormEnv[x]))
		{
			getHostName = stormEnv[x];				
		}
	}
	return "http://" + getHostName;
}
