var MM_contentVersion = 6;
var flash=new Array(2);
flash=hasFlashPlugin();
var MM_FlashCanPlay = flash[1] >= MM_contentVersion;

function imagine(flash,width,height,text) {
	var flash_name = flash + ".swf" ;
	
	if ( MM_FlashCanPlay ) {
		document.write('<OBJECT ID="adult" CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write('  CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0" ');
		document.write(' ID="script" WIDTH="'+ width + '" HEIGHT="' + height + '" ALIGN="">');
		document.write(' <PARAM NAME=movie VALUE="images/' + flash_name + '"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF>  '); 
		document.write(' <EMBED src="images/' + flash_name + '" quality=high bgcolor=#FFFFFF  ');
		document.write(' swLiveConnect=FALSE WIDTH="'+ width + '" HEIGHT="' + height + '" NAME="script" ALIGN=""');
		document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
		document.write(' </EMBED>');
		document.write(' </OBJECT>');
	} else {
		document.write(text);
	}
}