var timestamp = Math.floor(Math.random()*10000);
var assetPath = "assets/swf/";
var params = {
	quality: "high",
	scale: "noscale",
	allowscriptaccess: "always",
	allowFullScreen: "true",
	bgcolor: "#000"
};
var flashvars = {
	serverPath: "http://swanson.clearmpls.com/",
	siteXML: "http://swansonstudio.us/api/index.php/get/loadermaxbeta"
};
var attributes = {
	id: "swanson_flash",
	name: "swanson_flash"
};




$(function(){
	if( navigator.userAgent.match(/Android/i) ||
		navigator.userAgent.match(/webOS/i) ||
		navigator.userAgent.match(/iPhone/i) ||
		navigator.userAgent.match(/iPod/i) ||
		navigator.userAgent.match(/iPad/i)
		){
		// is mobile
		window.location = "http://swansonstudio.us/api/";
	} else {
		// is not mobile
		swfobject.embedSWF("assets/swf/swanson_root.swf?t="+timestamp, "flashcontent", "100%", "100%", "10.0.0", "expressInstall.swf", flashvars, params, attributes);
		swfmacmousewheel.registerObject(attributes.id);
	}
});
