function flash( src, width, height, alternate ){
	if( is_flash_installed() ){
		document.write ('<object width="'+width+'" height="'+height+'">');
		document.write ('<param name="allowScriptAccess" value="sameDomain" />');
		document.write ('<embed src="'+src+'" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'">');
		document.write ('</embed>');
		document.write ('</object>');
	}else{
		document.write (alternate );
	}
}

function flashvars( src, width, height, flashvars, alternate ){
	if( is_flash_installed() ){
		document.write ('<object width="'+width+'" height="'+height+'">');
		document.write ('<param name="FlashVars" value="'+flashvars+'" />');
		document.write ('<param name="allowScriptAccess" value="sameDomain" />');
		document.write ('<embed src="'+src+'" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" flashvars="'+flashvars+'">');
		document.write ('</embed>');
		document.write ('</object>');
	}else{
		document.write ( alternate );
	}
}

function is_flash_installed(){
	flash_installed = 0;
	
	if( navigator.mimeTypes.length ) {
	  if( navigator.mimeTypes["application/x-shockwave-flash"] ) flash_installed = 1;
	}
	else if( window.ActiveXObject ) {
	  for( x = 1; x <= 20; x++ ) {
	    try {
	      flash_test = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + x + "');");
	      if( flash_test ) flash_installed = 1;
	    }
	    catch(e){}
	  }
	} 
	return flash_installed;
}