var is_major = parseInt(navigator.appVersion);
var is_minor = parseFloat(navigator.appVersion);
var strAgent = navigator.userAgent.toLowerCase()
var is_ie    = ((strAgent.indexOf("msie") != -1) && (strAgent.indexOf("opera") == -1));

var hasFlash = function() {
	var nRequiredVersion = 6;
	if (navigator.appVersion.indexOf("MSIE") != -1 && navigator.appVersion.indexOf("Windows") > -1) {
		document.write('<script language="VBScript"\> \non error resume next \nhasFlash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & ' + nRequiredVersion + '))) \n</script\> \n');
		if (window.hasFlash != null) {
			return window.hasFlash;
		} 
	}
	if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
		var flashDescription = (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description;
		return parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1)) >= nRequiredVersion;
	}
	return false;
}();



function replaceFlash(intMovie)
{
  objFrame=document.getElementById("flashFrame");
  if(objFrame && hasFlash)
  { 
    if (intMovie==1)
    {
      document.getElementById("flashImage").style.display="none";
      objFrame.innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="555" height="214"><param name="movie" value="flash/Flash mask.swf" /><param name="quality" value="high" /><embed src="flash/Flash mask.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="555" height="214"></embed></object>';
    }
    else
    {
      document.getElementById("flashImage").style.display="none";
      objFrame.innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="555" height="214"><param name="movie" value="flash/Flash_land.swf" /><param name="quality" value="high" /><embed src="flash/Flash_land.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="555" height="214"></embed></object>';    
    }
  }
}


/*    
*/
