// this function checks the flash version installed - 
// users need to have flash v > 5 to be delivered any flash object

var flash=new Object();

	// Set some base values
	flash.installed=false;
	flash.version='0.0';
		
	if (navigator.plugins && navigator.plugins.length)
	{
		for (x=0; x<navigator.plugins.length; x++)
		{
			if (navigator.plugins[x].name.indexOf('Shockwave Flash') != -1)
			{
				flash.version=navigator.plugins[x].description.split('Shockwave Flash ')[1];
				flash.installed=true;
				break;
			}
		}
	}
	else if (window.ActiveXObject)
	{
		for (x=2; x<10; x++)
		{
			try
			{
				oFlash=eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+x+"');");
				if (oFlash)
				{
					flash.installed=true;
					flash.version=x+'.0';
				}
			}
			catch(e){}
		}
	}
	
	document.f = parseInt(flash.version);
	/// if flash v>5 write stylesheet rules in the HEAD to set all htmlcontainers display style to none.
	if(document.f>5 && W3CDOM){
				document.write ('<style type="text/css" media="screen">');
				document.write ('#nonflashcontainer { display : none; } ');
				document.write ('<\/style>');	
	}else{
		// no DOM, don't deliver FLASH as flash will use DOM
	 	document.f=3;
	}
	
	/// note, as a "belt and braces" approach the flash object is written using document.writes inline, and the innerHTML of the htmlContainers are set to nothing ("")