/********************************************************************************
 
Name:     Flash plugin detect
 
*********************************************************************************/
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() {
	
 	if(flash.installed && (flash.version >= 8)) {
		
	
		document.getElementById("noFlashContent").style.display = "none";
	}

	} else {
		document.getElementById("noFlashContent").style.display = "block";
		document.getElementById("flashContent").style.display = "none";
	}
 
}