// these vars are global so that other scripts in the page can pass them to swfs
domainPath = "http://"+location.host;
useCachefly = "production"; //production is the default ... "stage" & "none" environments are detected
cacheflyPath = "http://mmna.cachefly.net"

/* set the useCachefly var
	"production" is default and the swf will look for assets at mmna.cachefly.com
	"stage" tells the swf to look for assets at mmnastage.cachefly.com 
	"none" tells the swf to pull assets localy
*/
	if(		
			domainPath.match("stg.mitsubishicars.com") != null ||
			domainPath.match("216.243.70.98") != null ||
			domainPath.match("mitstageweb01") != null ||
			domainPath.match("216.243.70.99") != null ||
			domainPath.match("mitstageweb02") != null )
		{
			useCachefly = "stage";
			cacheflyPath = "http://mmnastage.cachefly.net"
		}

	if( 	domainPath.match("phx-dev") != null || 
			domainPath.match("localhost") != null || 
			domainPath.match("127.0.0.1") != null || 
			domainPath.match("mitstageweb01:8080") != null || // UAT's
			domainPath.match("216.243.70.98:8080") != null ||
			domainPath.match("mitstageweb02:8080") != null ||
			domainPath.match("216.243.70.99:8080") != null ||
			domainPath.match("mitstageweb03:8080") != null ||
			domainPath.match("216.243.70.100:8080") != null )
	{
		useCachefly = "none";
		cacheflyPath = "";
	}



//use cachefly anyway
//useCachefly = "stage";
//cacheflyPath = "http://mmnastage.cachefly.net"


