// -----------------------------------------------------------------------------
// 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 displayPromo() {

	// Version check based upon the values entered above in "Globals"
	var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

	if (hasReqestedVersion) {
	displayFlash();
		} else {
		displayNonFlash();
		}

}

function displayFlash() {
	// if we've detected an acceptable version
	// embed the Flash Content SWF when all tests are passed
	//AC_FL_RunContent(
				//"src", "slideshow_100807",
				//"width", "700",
				//"height", "354",
				//"align", "middle",
				//"id", "slideshow",
				//"quality", "high",
				//"bgcolor", "#FFFFFF",
				//"name", "slideshow",
				//"wmode", "transparent",
				//"allowScriptAccess","sameDomain",
				//"type", "application/x-shockwave-flash",
				//'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
				//"pluginspage", "http://www.adobe.com/go/getflashplayer"
	//);

	document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="699" height="354" id="slideshow" align="middle">');
	document.writeln('<param name="allowScriptAccess" value="sameDomain" />');
	document.writeln('<param name="movie" value="http://www.marshall.usc.edu/homepage_flash/slideshow_100807.swf" />');
	document.writeln('<param name="quality" value="high" />');
    document.writeln('<param name="bgcolor" value="#000000" />');
	document.writeln('<param value="opaque" name="wmode" />');
	document.writeln('<embed wmode="transparent" src="http://www.marshall.usc.edu/homepage_flash/slideshow_100807.swf" quality="high" width="699" height="354" name="slideshow" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.writeln('</object>');
		
}

function displayNonFlash() {

 	document.writeln('<div><img src="http://www.marshall.usc.edu/homepage_flash/fabiola_evergreen.jpg" alt="" width="699" height="354" border="0" /></div>');

}