function swf(src,width,height){
    object = '';
    object += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="param" width="'+width+'" height="'+height+'">';
    object += '<param name="movie" value="'+src+'">';
    object += '<param name="menu" value="false">';
    object += '<embed src="'+src+'" quality="high" wmode="transparent" bgcolor="#ffffff" menu="false" width="'+width+'" height="'+height+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
    object += '<\/object>';
    document.write(object);
}
function fullswf(src,width,height){
    object = '';
    object += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="param" width="100%" height="100%">';
    object += '<param name="movie" value="'+src+'">';
    object += '<param name="menu" value="false">';
    object += '<embed src="'+src+'" quality="high" wmode="transparent" bgcolor="#ffffff" menu="false" width="100%" height="100%" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
    object += '<\/object>';
    document.write(object);
}

function dcr(src,width,height){
	object = '';
	object += '<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,0,0,0" ID=loadgame width="'+width+'" height="'+height+'">';
	object += '<param name=src value="'+src+'">';
	object += '<param name=swRemote value="swSaveEnabled=true swVolume=true swRestart=true swPausePlay=true swFastForward=true swcontextmenu=1 ">';
	object += '<param name=swStretchStyle value=none>';
	object += '<PARAM NAME=bgColor VALUE=#00FFFF>';
	object += '<embed src="'+src+'" bgColor=#00FFFF width="'+width+'" height="'+height+'" swRemote="swSaveEnabled=true swVolume=true swRestart=true swPausePlay=true swFastForward=true swcontextmenu=1 " swStretchStyle="none" type="application/x-director" pluginspage="http://www.macromedia.com/shockwave/download/"></embed>';
	object += '</object>';
	document.write(object);
}

function aviPlay(src,w,h,id)
{
	document.write('<OBJECT ID="'+id+'" CLASSID = "CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" Height='+h+' Width='+w+'>');
	document.write(' <PARAM NAME = "URL"  value = "'+src+'">');
	document.write('	<PARAM NAME = "invokeURLs"  value = "true">');
	document.write('	<PARAM NAME = "Enabled" value = "1">');
	document.write('	<PARAM NAME = "AutoStart" VALUE="false">');
	document.write('	<PARAM NAME = "AudioStream" VALUE="true">');
	document.write('	<PARAM NAME = "TransparentAtStart" value="1">');
	//document.write('	<PARAM NAME = "uiMode" Value = "none">');
	document.write('	<PARAM NAME = "EnableContextMenu" value="true">');
	document.write('	<Embed type = "application/x-mplayer2" FileName="'+src+'" pluginspage="http://www.microsoft.com/windows/mediaplayer/download/default.asp" Name="Player_a" SHOWCONTROLS="1"></embed>');
	document.write('</OBJECT>');

}


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