/* Author: 

*/

function onFlashDetectComplete(e) {
	if (e.success) {	
		swffit.fit("mra",800,600, null, null, true, true);
	}
}

var url = window.location.toString();
//get the parameters
url.match(/\?(.+)$/);
var params = RegExp.$1;
// split up the query string and store in an
// associative array
var params = params.split("&");
var queryStringList = {};

for(var i=0;i<params.length;i++)
{
	var tmp = params[i].split("=");
	queryStringList[tmp[0]] = unescape(tmp[1]);
}
///*console.log("queryStringList['flash'] " + queryStringList['flash'])*/;

if (queryStringList["flash"] != "true" && ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i)) || (navigator.userAgent.match(/android/i)))) {
	location.replace("noflash.html");
} 
else {
	var params = {};
  params["allowfullscreen"] = true;
  params["bgcolor"] = "#242424";
	swfobject.embedSWF("swf/shell.swf", "mra", "1024", "768", "10.0.0", "shell/expressInstall.swf", null, params, null, onFlashDetectComplete);
}




















