function EmbedMapwingTour(file_name, path, width, auto)
{
	if( width === undefined)
		width = 800;

	if( width < 450 )
		width = 450;
	else if(width > 2048)
		width = 2048;

	height = width/2+38;

	//make sure the auto value is set
	//if( auto === undefined)
		auto = "false";
	//else if( auto === true || auto === "true")
	//	auto = "true";
	//else if( auto === false || auto == "false")
	//	auto = "false";
	//else
	//	auto = "false";
	

	// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
	var hasProductInstall = DetectFlashVer(6, 0, 65);
	// Version check based upon the values entered above in "Globals"
	var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	// Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback
	if ( hasProductInstall && !hasRequestedVersion )
	{
		// MMdoctitle is the stored document.title value used by the installation process to close the window that started the process
		// This is necessary in order to close browser windows that are still utilizing the older version of the player after installation has completed
		// DO NOT MODIFY THE FOLLOWING FOUR LINES
		// Location visited after installation is complete if installation is required
		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", "http://www.mapwing.com/tour_support/playerProductInstall", "FlashVars", "MMredirectURL="+MMredirectURL+"&MMplayerType="+MMPlayerType+"&MMdoctitle="+MMdoctitle+"", "width", "215", "height", "138", "align", "middle", "id", "detectionExample", "quality", "high", "bgcolor", "#FFFFFF", "name", "detectionExample", "allowScriptAccess","sameDomain", "type", "application/x-shockwave-flash", "pluginspage", "http://www.adobe.com/go/getflashplayer");
		document.write("<br>If you are experiencing problems installing Adobe Flash, please <a href='http://www.adobe.com/go/getflash' target='_blank'>click here</a>.");
	}
	else if (hasRequestedVersion)
	{
		// if we've detected an acceptable version
		// embed the Flash Content SWF when all tests are passed
		
		var variables = "version=1.6.0&file_name="+file_name+"&project_path=http://www.mapwing.com/tours/"+path+"&bg_color=ebebeb&outlinecolor=3c3c3c&shoulddrawoutline=true&flys_URL=&tour_brand=false&cur_URL=" + document.location.href + "&ap="+auto+"&";
		AC_FL_RunContent(
"src", "http://www.mapwing.com/tour_support/mapwing_web_viewer",
"width", width,
"height", height,
"align", "middle",
"id", "mwv",
"quality", "high",
"bgcolor", "#ffffff",
"name", "mwv",
"allowScriptAccess", "sameDomain",
"type", "application/x-shockwave-flash",
"codebase", "MWV_CODBASE",
"pluginspage", "http://www.adobe.com/go/getflashplayer",
"flashvars", variables
);
}
else
{
	// flash is too old or we can't detect the plugin
	var alternateContent = "This content requires the Adobe Flash Player."
	+ "<a href=http://www.adobe.com/go/getflash/>Get Flash</a>";
	document.write(alternateContent);  // insert non-flash content
}


}