function CreateControl(dadiv, daobject)
	{
  	var d = document.getElementById(dadiv);
  	d.innerHTML = daobject;
}

function checkFlash(daver) {
	var MM_contentVersion = daver;
	var MM_FlashCanPlay = false;
	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if ( plugin ) {
			if (navigator.plugins["Shockwave Flash"]) {
				var words = navigator.plugins["Shockwave Flash"].description.split(" ");
				for (var i = 0; i < words.length; ++i) {
					if (isNaN(parseInt(words[i])))
					continue;
					var MM_PluginVersion = words[i]; 
				}
				MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
			} else {
				MM_FlashCanPlay = false;
			}
	} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE") >=0  && (navigator.appVersion.indexOf("Win") != -1)) {
		var html = '<SCR' + 'IPT LANGUAGE=VBScript\> \n'; //FS hide this from IE4.5 Mac by splitting the tag
		html += 'on error resume next \n';
		html += 'Dim swControl, swVersion, checkver, MM_FlashCanPlay \n';
		html += 'swVersion = 0 \n';
		html += 'checkver=' + daver + '\n';
		html += 'set swControl = CreateObject("ShockwaveFlash.ShockwaveFlash." + CStr(checkver)) \n';
		html += 'if (IsObject(swControl)) then\n';
		html += 'swVersion = swControl.GetVariable("$version")\n';
		html += 'end if\n';
		html += 'MM_FlashCanPlay = swVersion >= checkver\n';
		html += '</SCR' + 'IPT\> \n';
		document.write(html);
	}
	return MM_FlashCanPlay;
}
