// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 8;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Revision of Flash required
var requiredRevision = 24;
// -----------------------------------------------------------------------------

function flashReplace()
{

if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
	alert("This page requires flashVerCheck.js.");
} else {
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) {  // if we've detected an acceptable version
		// embed the flash movie
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0',
			'width', '776',
			'height', '144',
			'src', '/flash/topFlash',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'topFlash',
			'bgcolor', '#ffffff',
			'name', 'topFlash',
			'menu', 'true',
			'allowScriptAccess','sameDomain',
			'allowFullScreen','false',
			'movie', '/flash/topFlash',
			'salign', ''
			); //end AC code
	} else {  // flash is too old or we can't detect the plugin
		var alternateContent = '<img src="/images/noFlash.jpg" alt="Storengy UK Ltd" title="Storengy UK Ltd" height="144" width="776" />';
		document.write(alternateContent);  // insert non-flash content
	}
}
}




function flashReplaceDidYouKnow()
{

if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
	alert("This page requires flashVerCheck.js.");
} else {
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) {  // if we've detected an acceptable version
		// embed the flash movie
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0',
			'width', '370',
			'height', '153',
			'src', '/flash/didYouKnow',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'didYouKnow',
			'bgcolor', '#ffffff',
			'name', 'didYouKnow',
			'menu', 'true',
			'allowScriptAccess','sameDomain',
			'allowFullScreen','false',
			'movie', '/flash/didYouKnow',
			'salign', ''
			); //end AC code
	} else {  // flash is too old or we can't detect the plugin
		var alternateContent = '<img src="/images/noFlashDidYouKnow.jpg" alt="Storengy UK Ltd" title="Storengy UK Ltd" height="153" width="370" />';
		document.write(alternateContent);  // insert non-flash content
	}
}
}
