// JavaScript Document


function createFlashPlayer(player, w, h, id, file, wmode, mode){

// Check to see if the version meets the requirements for playback -- 
	//hasReqestedVersion = false;
	if (hasReqestedVersion) {
		// if we've detected an acceptable version
		// embed the Flash Content SWF when all tests are passed
		
		if(!wmode) wmode="transparent";
		
		file = "flashFile=" + file;
		
		AC_FL_RunContent(
				"src", player,
				"width", w,
				"height", h,
				"align", "left",
				"id", id,
				"quality", "high",
				"bgcolor", "B2B2B2",
				"name", id,
				"menu", false,
				"allowScriptAccess","sameDomain",
				"type", "application/x-shockwave-flash",
				'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
				"pluginspage", "http://www.adobe.com/go/getflashplayer",
				"base", ".",
				"wmode", wmode,
				"FlashVars", file
	);
	
	} else {  // flash is too old or we can't detect the plugin
		
		var alternateContent = '';
		
		switch(mode){
			case "home":
				alternateContent += '<img alt="" border="0" width="740px" height="170px" src="../../images/home/flash/no-flash.jpg" />';
				break;
			case "interior":
				alternateContent += '';
				break;
			default:
				alternateContent = '<p style="margin-top:60px;"><strong><a href="http://www.adobe.com/go/getflash/" target="_blank">'
					+ 'This content requires Adobe Flash Player. '
					+ '<a href="http://www.adobe.com/go/getflash/" target="_blank">CLICK HERE</a></strong></p><br />';
				break;
			}	
		
		document.write(alternateContent);  // insert non-flash content	

	}
}