var strSub = "";
var strid = "";

var strSearch = document.location.search;
strSearch = strSearch.substring(1, strSearch.length);
var arrSearch = strSearch.split("&");
for (i=0; i<arrSearch.length; i++) {
	var strQuery = arrSearch[i];
	var arrQuery = strQuery.split("=");

	if (arrQuery[0] == "sub") {
		strSub = arrQuery[1];
	}
	if (arrQuery[0] == "id") {
		strSub = arrQuery[1];
	}

}

var motoFlash = new flashObject();
motoFlash.file = "Moto_red_NA.swf";
motoFlash.width = 800;
motoFlash.height = 700;
motoFlash.flashVersion = 8;
motoFlash.containerId = "motoRed_container";
motoFlash.flashId = "motoRed";
motoFlash.flashvars = "&sub=" + strSub + "&id=" + strid;
motoFlash.write();
var myTO = setTimeout("motoFlash.display();", 0);
