function FlashObject(swf, width, height, flashvars)
{
	var strFlashTag = new String();
	if (navigator.appName.indexOf("Microsoft") != -1)
	{
		strFlashTag += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
		strFlashTag += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=version=8,0,0,0" width="' + width + '" height="' + height + '">';
		strFlashTag += '<param name="movie" value="' + swf + '"/>';
		strFlashTag += '<param name="FlashVars" value="' + flashvars + '"/>';
		strFlashTag += '<param name="quality" value="best"/>';
		//strFlashTag += '<param name="bgcolor" value="' + bgcolor + '"/>';
		strFlashTag += '<param name="menu" value="false"/>';
		strFlashTag += '<param name="salign" value="LT"/>';
		strFlashTag += '<param name="scale" value="noscale"/>';
		strFlashTag += '<param name="wmode" value="transparent"/>';
		strFlashTag += '<param name="allowScriptAccess" value="sameDomain"/>';
		strFlashTag += '</object>';
	}
	else
	{
		strFlashTag += '<embed src="' + swf + '" ';
		strFlashTag += 'quality="best" ';
		//strFlashTag += 'bgcolor="' + bgcolor + '" ';
		strFlashTag += 'width="' + width + '" ';
		strFlashTag += 'height="' + height + '" ';
		strFlashTag += 'menu="false" ';
		strFlashTag += 'scale="noscale" ';
		strFlashTag += 'salign="LT" ';
		strFlashTag += 'wmode="transparent" ';
		strFlashTag += 'allowScriptAccess="sameDomain" ';
		strFlashTag += '<param name="FlashVars" value="' + flashvars + '"/>';
		strFlashTag += 'type="application/x-shockwave-flash" ';
		strFlashTag += 'pluginspage="http://www.macromedia.com/go/getflashplayer">';
		strFlashTag += '</embed>';
	}
	document.write(strFlashTag);
}

function SWF(src,w,h){
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="high">';
	html += '<param name="wmode" value="transparent">';	
	html += '<param name="bgcolor" value="#ffffff">';
	html += '<param name="menu" value="false">';
	html += '<param name="swliveconnect" value="true">';
	html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" menu="false" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	html += '<\/object>';
	document.write(html);
}

function AVI(src){
	html = '';
	html += '<OBJECT ID="Player" width="100%" height="100%" CLASSID="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">'
	html += '	<param name="Filename" value="'+src+'" />'
	html += '	<param name="ClickToPlay" value="true" />'
	html += '	<param name="AutoSize" value="true" />'
	html += '	<param name="AutoStart" value="1" />'
	html += '	<param name="ShowControls" value="1" />'
	html += '	<param name="ShowAudioControls" value="1" />'
	html += '<param name="ShowDisplay" value="0" />'
	html += '<param name="ShowTracker" value="0" />'
	html += '<param name="ShowStatusBar" value="0" />'
	html += '<param name="EnableContextMenu" value="false" />'
	html += '<param name="ShowPositionControls" value="false" />'
	html += '<param name="ShowCaptioning" value="false" />'
	html += '<param name="AutoRewind" value="0" />'
	html += '<param name="Enabled" value="true" />'
	html += '<param name="EnablePositionControls" value="0" />'
	html += '<param name="EnableTracker" value="0" />'
	html += '<param name="PlayCount" value="1" />'
	//html += '<param name="SendWarningEvents" value="true" />'
	//html += '<param name="SendErrorEvents" value="true" />'
	//html += '<param name="SendKeyboardEvents" value="false" />'
	//html += '<param name="SendMouseClickEvents" value="false" />'
	//html += '<param name="SendMouseMoveEvents" value="false" />'
	html += '<param name="ShowGotoBar" value="false" />'
	html += '<param name="TransparentAtStart" value="false" />'
	html += '<param name="Volume" value="4000" />'
	//html += '<embed width="320" height="270" autostart="1" filename="'+src+'" clicktoplay="true" autosize="true" showcontrols="1" showaudiocontrols="1" showdisplay="0" showtracker="1" showstatusbar="0" enablecontextmenu="false" showpositioncontrols="false" showcaptioning="false" autorewind="0" enabled="true" enablepositioncontrols="0" enabletracker="0" playcount="1" sendwarningevents="true" senderrorevents="true" sendkeyboardevents="false" sendmouseclickevents="false" sendmousemoveevents="false" showgotobar="false" transparentatstart="false" volume="-5000"></embed>'
	html += '</OBJECT>'
	document.write(html);
}