/* =========================================================================

NAME: Flash Button Banner

AUTHOR: Ed Sacerio , Personal
DATE  : 2010-02-02

COMMENT: 

============================================================================ */


// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 9;

// Minor version of Flash required
var requiredMinorVersion = 0;

// Revision of Flash required
var requiredRevision = 45;

// -----------------------------------------------------------------------------
// url's used in the movie
// text used in the movie
if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
	alert("This page requires AC_RunActiveContent.js");
} else {
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) {  // if we've detected an acceptable version
		// embed the flash movie
		AC_FL_RunContent(
			'codebase', 
			'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0',
			'width', '130',
			'height', '320',
			'src', 'http://www.trinitydelray.org/flash/fm',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'id', 'http://www.trinitydelray.org/flash/fm',
			'name', 'http://www.trinitydelray.org/flash/fm',
			'movie', 'http://www.trinitydelray.org/flash/fm'
			); //end AC code
	} else {  
		// flash is too old or we can't detect the plugin
		var alternateContent = 	'This content requires the Adobe Flash Player.' +
								'<a href=http://get.adobe.com/flashplayer/>Get Flash</a>.<br />' +
								'This content also needs Adobe Shockwave Player.' +
								'<a href=http://get.adobe.com/shockwave/>Get Shockwave</a>';
		// insert non-flash content
		document.write(alternateContent);  
	}
}