// -------------------------------------------------------------------------
// COPYRIGHT NOTICE
// sF() script Version 1.0
//
// Copyright Diana E. Antoni 2000 - 2006. All Rights reserved.
//
// This software may not be copied, modified, or distributed without written
// permission by the author.
// -------------------------------------------------------------------------

// Globals
// Major version of Flash required
var requiredMajorVersion = 6;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 0;

// Version check based upon the values entered above in "Globals"
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);


function sF(swf, id, w, h, bg){

// Check to see if the version meets the requirements for playback
if (hasReqestedVersion) {
	f= swf.split('.swf');

	// if we've detected an acceptable version
	// embed the Flash Content SWF when all tests are passed
	AC_FL_RunContent(
				"src", f[0],
				"width", w,
				"height", h,
				"align", "t",
				"scale", "exactfit",
				"salign", "tl",
				"id", id,
				"quality", "high",
				"bgcolor", bg,
				"wmode", "transparent",
				"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"
	);
	fc = document.getElementById("flashcontent");
	fc.style.display = 'none';
} 

// -->
}
