
function fnConfig() {}


// Flash detect. boolean true/false if installed and version number accessed via flash.version
var flash = new Object();	
flash.installed = false;

if (navigator.plugins && navigator.plugins.length) {
	for (x=0; x < navigator.plugins.length; x++) {
		
		if (navigator.plugins[x].name.indexOf('Shockwave Flash') != -1) {		
			flash.installed = true;					
			flash.version = eval(navigator.plugins[x].description.split('Shockwave Flash ')[1].split('.')[0]);					
			break;
		}
	}
}
else if (window.ActiveXObject) {
	for (x = 2; x <= 20; x++) {
		try {
			oFlash = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + x + "');");
			if(oFlash) {		
				flash.installed = true;	
				flash.version = x;
			}
		}
		catch(e) {}
	}
}



	
/********************************************************************************

Name: 				Flash embed
Description:		Writeout flash code. Fixes Eolas update for IE as well.
@param	swf		String path to swf file
@param	width		Number value of movie width
@param	height	Number value of movie height

*********************************************************************************/

flash.insert = function(swf) {	
	if (flash.installed) {
		if(flash.version > 7) {		
			document.write('<embed src="'+swf+'" menu="false" width="100%" height="100%" scale="noscale" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" salign="T" />');	
			document.getElementById("err").style.display = "none";
		}
		else {
			document.write('<p class="error">This website requires the latest version of the adobe&trade; Flash player. Go to the adobe website to update your player to the <a href="http://www.adobe.com/products/flashplayer/">lastest version</a></p>');
			document.getElementById("err").style.display = "none";
		}
	}
}
