function CheckVersionForSlideshow(curFileName) {
// Check to see if the version meets the requirements for playback
if (DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision)) {
	// if we've detected an acceptable version
	// embed the Flash Content SWF when all tests are passed
	AC_FL_RunContent(
                                 "class", "galerie",
				"src", "Flash/Slideshow",
				"width", "292",
				"height", "220",
                                 "scale", "exactfit",
                                 "id", "Slideshow",
				"quality", "high",
				"bgcolor", "#26272A",
				"name", "Slideshow",
                                 "wmode", "transparent",
                                 "menu", "false",
                                 "FlashVars", "configpath=http://www.sturm-exclusive.com/Grafik/Slideshow_"+curFileName+"/config.txt",
				"allowScriptAccess", "sameDomain",
				"swLiveConnect", "true",
				"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 = '<div style="padding:11px;">'
	+ 'This content requires the new Adobe Flash Player. '
	+ '<a href=http://www.adobe.com/go/getflash/>Get Flash now!</a></div>';
	document.write(alternateContent);  // insert non-flash content
}
} //CheckVersionForSlideshow

function CheckVersionForYouTubeVideo(videoURL) {
// Check to see if the version meets the requirements for playback
if (DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision)) {
	// if we've detected an acceptable version
	// embed the Flash Content SWF when all tests are passed
	AC_FL_RunContent(
                                 "class", "galerie",
				"src", videoURL,
				"width", "292",
				"height", "220",
                                 "scale", "exactfit",
                                 "id", "YouTubeVideo",
				"quality", "high",
				"autoplay", "1",
				"bgcolor", "#26272A",
				"name", "YouTubeVideo",
                                 "wmode", "transparent",
                                 "menu", "false",
				"allowScriptAccess", "sameDomain",
				"swLiveConnect", "true",
				"movie", videoURL,
				"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 = '<div style="padding:11px;">'
	+ 'This content requires the new Adobe Flash Player. '
	+ '<a href=http://www.adobe.com/go/getflash/>Get Flash now!</a></div>';
	document.write(alternateContent);  // insert non-flash content
}
} //CheckVersionForYouTubeVideo

function CheckVersionForDoppelring() {
// Check to see if the version meets the requirements for playback
if (DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision)) {
	// if we've detected an acceptable version
	// embed the Flash Content SWF when all tests are passed
	AC_FL_RunContent(
				"src", "Flash/Doppelring",
				"width", "62",
				"height", "62",
                                 "id", "Doppelring",
				"quality", "high",
				"bgcolor", "#26272A",
				"name", "Doppelring",
                                 "wmode", "transparent",
                                 "menu", "false",
				"allowScriptAccess", "sameDomain",
				"swLiveConnect", "true",
				"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 = '<img src="Grafik/Doppelring.gif" width="62" height="62" alt="">';
	document.write(alternateContent);  // insert non-flash content
}
} //CheckVersionForDoppelring

function CheckVersionForExpose() {
// Check to see if the version meets the requirements for playback
if (DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision)) {
	// if we've detected an acceptable version
	// embed the Flash Content SWF when all tests are passed
	AC_FL_RunContent(
		"codebase", "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab",
		"width", "565",
		"height", "500",
		"src", "Flash/gallery/expose/swf/expose",
		"quality", "high",
		"pluginspage", "http://www.macromedia.com/go/getflashplayer",
		"align", "middle",
		"play", "true",
		"id", "expose",
		"bgcolor", "#26272A",
		"name", "expose",
		"wmode", "transparent",
		"menu", "false",
		"allowScriptAccess","sameDomain",
		"swLiveConnect", "true",
		"movie", "Flash/gallery/expose/swf/expose",
		"FlashVars", "bgColor=26272A&albumsXMLURL=xml/albums.xml&stringsXMLURL=config/stringsDE.xml&formatsXMLURL=config/formats.xml&configXMLURL=config/config.xml&baseXMLURL=xml/&baseImageURL=img/&baseVideoURL=img/&baseAudioURL=img/&topLevelCollectionID=" + topLevelCollectionID + "&autoLoadAlbumID=" + autoLoadAlbumID + "&autoLoadPhotoID=" + autoLoadPhotoID + "&autoStartSlideShow=" + autoStartSlideShow + "&bgImageURL=&fgImageURL=&language=german&useEmbeddedFonts=yes",
		"base", "Flash/gallery/expose"
	);
} else {  // flash is too old or we can't detect the plugin
	var alternateContent = '<div style="padding:11px;">'
	+ 'This content requires the new Adobe Flash Player. '
	+ '<a href=http://www.adobe.com/go/getflash/>Get Flash now!</a></div>';
	document.write(alternateContent);  // insert non-flash content
}
} //CheckVersionForExpose

