/*
    FLASHPLAYER
    
    (c) 2008, Helder Internet.
    www.helderinternet.nl
*/
function writeFlash( path, width, height, flashvars, noFlashImage ) 
{ 
	var str = '';
	
	var hasFlash = false;
	try 
	{
        var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
        hasFlash = true;
	} 
	catch (e) 
	{
	    if ( hasFlash == false )
	    {
	        var mimeTypes = navigator.mimeTypes;
	        if( navigator.plugins && navigator.plugins.length>0 && mimeTypes )
	        {
			    if( mimeTypes['application/x-shockwave-flash'] && mimeTypes['application/x-shockwave-flash'].enabledPlugin )
			    {
				    hasFlash = true;
			    }
		    }
	    }
	}
	
	if ( hasFlash == true )
	{
	    str += '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="' + width + '" HEIGHT="' + height+ '" >';
	    str += '<PARAM NAME=movie VALUE="' + path + '">';
	    str += '<PARAM NAME=quality VALUE=high>';
	    str += '<PARAM NAME=wmode VALUE=transparent>';
	    str += '<PARAM NAME=FlashVars VALUE="' + flashvars + '">';
	    str += '<EMBED src="' + path + '" quality=high WIDTH="' + width + '" HEIGHT="' + height + '" FlashVars="' + flashvars + '" wmode="transparent" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>';
	    str += '</OBJECT>';
	}
	else 
	{
	    str += '<img src="' + noFlashImage + '" />';
	}
	document.write(str);
}
