function createFlashObject(file,width,height,wmode,vars,version){
	var hasProductInstall = DetectFlashVer(6, 0, 65);
	var hasReqestedVersion = DetectFlashVer(8,0,0);
	
	if (version!=null){
		hasReqestedVersion = DetectFlashVer(version,0,0);
	}
	
	if (hasProductInstall && !hasReqestedVersion) {
		var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
		var MMredirectURL = window.location;
		document.title = document.title.slice(0, 47) + " - Flash Player Installation";
		var MMdoctitle = document.title;

		AC_FL_RunContent(
			"src", "imgs/playerProductInstall.swf",
			"FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
			"width", width,
			"height", height,
			"align", "middle",
			"id", "detectionExample",
			"quality", "high",
			"bgcolor", "#ff6600",
			"name", "detectionExample",
			"allowScriptAccess","sameDomain",
			"type", "application/x-shockwave-flash",
			"pluginspage", "http://www.adobe.com/go/getflashplayer"
		);
	} else if (hasReqestedVersion) {
		AC_FL_RunContent(
				"src", file,
				"FlashVars", vars,
				"wmode", wmode,
				"width", width,
				"height", height,
				"align", "middle",
				"id", "Flash_"+file,
				"quality", "high",
				"name", "Flash_"+file,
				"menu", "False",
				"swLiveConnect","true",
				"allowScriptAccess","sameDomain",
				"type", "application/x-shockwave-flash",
				'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
				"pluginspage", "http://www.adobe.com/go/getflashplayer"
		);
	} else {  // flash is too old or we can't detect the plugin
		var alternateContent = '<a class=more href=http://www.adobe.com/go/getflash/>Get Flash</a>';
		document.write(alternateContent);  // insert non-flash content
	}  
}