// JavaScript Document

//alert(hasReqestedVersion);

function createFlashPlayer(player, w, h, id, file, image){

// 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
		var vars = file+'&'+image;
		
		AC_FL_RunContent(
				"src", player,
				"width", w,
				"height", h,
				"align", "left",
				"id", id,
				"quality", "high",
				"bgcolor", "ffffff",
				"name", "slideshow",
				"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", "transparent",
				"FlashVars", vars
	);

	
	
	} else {   
		var alternateContent = '<div class="error">Use of the multimedia section requires JavaScript enabled in your browser and the Flash Player installed in your browser. Please <a href="http://www.adobe.com/go/getflash/" target="_blank" title="This link will open in a new window">download the Flash Player</a> to view this page.</div>'
		//+ '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
	}
	
}
