var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function DolmetschGallery_DoFSCommand(command, args) {
	var DolmetschGalleryObj = InternetExplorer ? DolmetschGallery : document.DolmetschGallery;
	var argsArray = args.split(";");
	if (command == "openLargeView") {
		var windowOptions = "width=" + argsArray[2] + ",height=" + argsArray[3] + ",toolbar=no,scrollbars=no";
		var newWindow;
		if ( newWindow == null ) {
			newWindow = window.open("", null ,windowOptions);
		}
		var newDocument = newWindow.document;
		var newBody = newWindow.document.body;
		newBody.bgColor = "#333333";
		newBody.leftmargin = 0;
		newBody.topmargin = 0;
		newBody.marginwidth = 0;
		newBody.marginheight = 0;
		newWindow.resizeTo( argsArray[2], argsArray[3] );
		newDocument.title = argsArray[0];
		newBody.innerHTML = argsArray[1];
	}
	if (command == "downloadPresentation") {
		newWindow = window.open(argsArray[0]);
	}
}
// Hook for Internet Explorer 
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
	navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub DolmetschGallery_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call DolmetschGallery_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}

var MM_contentVersion = 6;
var movieParam = "?altContentURL=upgrade/upgrade_flash.htm&xmlPath=script/album.xml";

var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
		for (var i = 0; i < words.length; ++i)
		{
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
		}
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}
if ( MM_FlashCanPlay ) {
	document.write('<DIV align="center">');
	document.write('  <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
	document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
	document.write(' ID="DolmetschGallery" WIDTH="100%" HEIGHT="100%" ALIGN="">  '); 
	document.write(' <PARAM NAME=movie VALUE="DolmetschGallery.swf');
	document.write( movieParam );
	document.write('"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#333333> <EMBED src="DolmetschGallery.swf');
	document.write( movieParam );
	document.write('" quality=high bgcolor=#333333  WIDTH="100%" HEIGHT="100%" swLiveConnect=true ID="DolmetschGallery" NAME="DolmetschGallery" ALIGN=""  ');
	document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
	document.write(' </OBJECT>');
	document.write(' </DIV>');
} else{
	window.open("upgrade/upgrade_flash.htm", "_self");
}

