var FlashMode = 0;
var altHtm="";
var flashHtm="";
altHtm='Non hai installato il plugin di Flash, clicca <a href=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" target=\"_blank\">qui<\/a> per scaricarlo gratuitamente';

// This function returns the code to display the Flash object
// if the Flash 4 plugin is available, otherwise returns
// the "alternative" htm code specified with the "setNoFlashContent" method

function getFlashCode ()
{
	if (FlashMode==1)
		return flashHtm;
	else
		return altHtm;
}

// This function sets the flash htm code

function setFlashContent(source, width, height)
{
	var widthHtm="";
	var heightHtm="";
	if (width!=null && width!="") widthHtm="width=\"" + width + "\"";
	if (height!=null && height!="") heightHtm="height=\"" + height + "\"";

	flashHtm=flashHtm+"<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0\" " + widthHtm + " " + heightHtm + ">\n";
	flashHtm=flashHtm+"<param name=movie value=\"" + source + "\">\n";
	flashHtm=flashHtm+"<param name=quality value=high>\n";
	flashHtm=flashHtm+"<embed src=\"" + source + "\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" " + widthHtm + " " + heightHtm + ">\n";
	flashHtm=flashHtm+"</embed>\n";
	flashHtm=flashHtm+"</object>\n";
}

// This code detects the Flash 4 plugin and sets the FlashMode

if (navigator.appName.indexOf("Netscape")!=-1)
{
	if (navigator.plugins.length > 0)
	{
        	if (navigator.plugins["Shockwave Flash"])
        	{
                	var plugin_version = 0;
                	var words = navigator.plugins["Shockwave Flash"].description.split(" ");
                	for (var i = 0; i < words.length; ++i)
                	{
                        	if (isNaN(parseInt(words[i])))
                        	continue;
                        	plugin_version = words[i];
            		}
                	if (plugin_version >= 4)
                	{
                        	var plugin = navigator.plugins["Shockwave Flash"];
                        	var numTypes = plugin.length;
                        	for (j = 0; j < numTypes; j++)
                        	{
                                	mimetype = plugin[j];
                                	if (mimetype)
                                	{
                                        	if (mimetype.enabledPlugin && (mimetype.suffixes.indexOf("swf") != -1))
                                                	FlashMode = 1;
                                        	// Mac wierdness
                                        	if (navigator.mimeTypes["application/x-shockwave-flash"] == null)
                                                	FlashMode = 0;
                                	}
                        	}
                	}
        	}
	}
}
else
{
	if (navigator.platform.indexOf("MacPPC")!=-1)
	{
		FlashMode = 1;
	}
	else
	{
		document.write("<SCRIPT LANGUAGE=VBScript\> \n");
		document.write("on error resume next \n");
		document.write("FlashMode = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.5\"))) \n");
		document.write("if FlashMode = 0 then \n");
		document.write("	FlashMode=(IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.4\"))) \n");
		document.write("end if \n");
		document.write("</SCRIPT> \n");
	}
}
//-->