// Globals
// Major version of Flash required
var requiredMajorVersion = 8;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 0;

function Banner()
{
   document.write('<object type="application/x-shockwave-flash" data="media/flash/newbanner/countdown.swf?path=media/flash/newbanner/countdown.swf" width="762" height="134">\n');
   document.write('<param name="movie" value="media/flash/newbanner/countdown.swf" />\n');
   document.write('<param name="quality" value="high" />\n');
   document.write('<param name="movie" value="media/flash/newbanner/countdown.swf?path=media/flash/newbanner/countdown.swf" />\n');
   document.write('</object>\n');
}


function NewBanner2()
{
   document.write('<object type="application/x-shockwave-flash" data="media/flash/newbanner/banner.swf?path=media/flash/thumbs/banner.swf" width="762" height="150.4">\n');
   document.write('<param name="movie" value="media/flash/thumbs/banner.swf" />\n');
   document.write('<param name="quality" value="high" />\n');
   document.write('<param name="movie" value="media/flash/thumbs/banner.swf?path=media/flash/thumbs/banner.swf" />\n');
   document.write('</object>\n');
}

/*
function RotatingBannerold(){	
   document.write('<object type="application/x-shockwave-flash" data="media/flash/rotatingbanner/rotatingbanner.swf?path=media/flash/newbanner/rotatingbanner/rotatingbanner.swf" width="364" height="376">\n');
   document.write('<param name="movie" value="media/flash/rotatingbanner/rotatingbanner.swf" />\n');
   document.write('<param name="quality" value="high" />\n');
   document.write('<param name="movie" value="media/flash/rotatingbanner/rotatingbanner.swf?path=media/flash/rotatingbanner/rotatingbanner.swf" />\n');
   document.write('</object>\n');
}
*/

function NewBanner()
{
	// Version check based upon the values entered above in "Globals"
	var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	
	// Check to see if the version meets the requirements for playback
	if (hasReqestedVersion) {
		// if we've detected an acceptable version
		// embed the Flash Content SWF when all tests are passed
		
		AC_FL_RunContent(
					"src", "media/flash/newbanner/banner",
					"width", "762",
					"height", "150.4",
					"align", "middle",
					"id", "NewBanner",
					"quality", "high",
					"bgcolor", "#FFFFFF",
					"name", "NewBanner",
					"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 href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"><img border="0" src="media/images/noflash1.jpg" /></a>';
		document.write(alternateContent);  // insert non-flash content
	}
}

function NewBannerV2()
{
	// Version check based upon the values entered above in "Globals"
	var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	
	// Check to see if the version meets the requirements for playback
	if (hasReqestedVersion) {
		// if we've detected an acceptable version
		// embed the Flash Content SWF when all tests are passed
		
		AC_FL_RunContent(
					"src", "/media/flash/newbannerv2/rotatingbanner",
					"width", "763",
					"height", "142",
					"align", "middle",
					"id", "NewBanner",
					"quality", "high",
					"bgcolor", "#333333",
					"name", "NewBanner",
					"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 href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"><img border="0" src="media/images/noflash1.jpg" /></a>';
		document.write(alternateContent);  // insert non-flash content
	}
}

function RotatingBanner(){	
	// Version check based upon the values entered above in "Globals"
	var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	
	// Check to see if the version meets the requirements for playback
	if (hasReqestedVersion) {
		// if we've detected an acceptable version
		// embed the Flash Content SWF when all tests are passed
		AC_FL_RunContent(
					"src", "media/flash/rotatingbanner/rotatingbanner",
					"width", "364",
					"height", "376",
					"align", "middle",
					"id", "RotatingBanner",
					"quality", "high",
					"bgcolor", "#FFFFFF",
					"name", "RotatingBanner",
					"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 href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"><img border="0" src="media/images/noflash2.jpg" /></a>';
		var alternateContent = '<div style="background-color: black; color: white;"><br /><br /> <a style="color:white;" href="http://ggwo.org/index.php?module=main&action=uearticle"> GGWO upcoming events </a><br /> <br /> <br />Or you will need a <a style="color:white;"  href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Flash Player</a> to see the Flash animation.<br /><br /></div>';
		document.write(alternateContent);  // insert non-flash content
	}
}

function BeboNorman(){
	// Version check based upon the values entered above in "Globals"
	var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	
	// Check to see if the version meets the requirements for playback
	if (hasReqestedVersion) {
		// if we've detected an acceptable version
		// embed the Flash Content SWF when all tests are passed
		AC_FL_RunContent(
					"src", "media/flash/bebonorman/bebo",
					"width", "317",
					"height", "278",
					"align", "middle",
					"id", "bebo",
					"quality", "high",
					"allowfullscreen", "true",
					"bgcolor", "#000000",
					"name", "bebo",
					"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 href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"><img border="0" src="media/images/bebonorman.jpg" /></a>';
		document.write(alternateContent);  // insert non-flash content
	}	
}
