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="bgcolor" value="#ffffff">';
	html += '<param name="menu" value="false">';
	html += '<param name="wmode" value="transparent">';
	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 swft(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="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 mov(src,w,h,auto){
	html = '';
	html += '<embed src="'+src+'" width="'+w+'" height="'+h+'" autostart="'+auto+'"></embed>';
	document.write(html);
}

function wav(src,auto){
	html = "";
	html += "<embed src='"+src+"' autostart='"+auto+"'></embed>";
	document.write(html);
}

function obj_aod(src,auto){
	html = '';
	html += '<object name="palyers" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"';	
	html += ' style="filter: gray()" ';
	html += ' CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" ';
	html += ' STANDBY="Loading Microsoft Windows Media Player components..." TYPE="application/x-oleobject">';
	html += ' <PARAM NAME="AutoStart" VALUE="'+auto+'" >';
	html += ' <PARAM NAME="Filename" VALUE="'+src+'" >';
	html += ' <PARAM NAME="AutoSize" VALUE="ture">';
	html += ' <PARAM NAME="AnimationAtStart" VALUE="True">';
	html += ' <PARAM NAME="ClickToPlay" VALUE="True">';
	html += ' <PARAM NAME="Volume" VALUE="-1">';
	html += ' <PARAM NAME="PlayCount" VALUE="1">';
	html += ' <PARAM NAME="SendOpenStateChangeEvents" VALUE="True">';
	html += ' <PARAM NAME="SendPlayStateChangeEvents" VALUE="True"> ';
	html += ' <PARAM NAME="DisplayMode" VALUE="0">';
	html += ' <PARAM NAME="DisplaySize" VALUE="0">';
	html += ' <PARAM NAME="Enabled" VALUE="True">';
	html += ' <PARAM NAME="EnableContextMenu" VALUE="False">';
	html += ' <PARAM NAME="EnablePositionControls" VALUE="False">';
	html += ' <PARAM NAME="EnableFullScreenControls" VALUE="True">';
	html += ' <PARAM NAME="EnableTracker" VALUE="True">';
	html += ' <PARAM NAME="ShowStatusBar" VALUE="True">';
	html += ' <PARAM NAME="ShowDisplay" VALUE="False">';
	html += ' <PARAM NAME="ShowCaptioning" VALUE="False">';
	html += ' <PARAM NAME="ShowControls" VALUE="True">';
	html += ' <PARAM NAME="ShowAudioControls" VALUE="True">';
	html += ' <PARAM NAME="ShowDisplay" VALUE="True">';
	html += ' <PARAM NAME="ShowGotoBar" VALUE="False">';
	html += ' <PARAM NAME="ShowPositionControls" VALUE="True">';
	html += ' <PARAM NAME="ShowTracker" VALUE="True">';
	html += ' <PARAM NAME="WindowlessVideo" VALUE="False">';
	html += ' <PARAM NAME="TransparentAtStart" VALUE="False">';
	html += ' </object> ';
	document.write(html);
}


function obj_vod(src,auto,w,h){
	html = '';
	html += '<object name="vodpalyer" WIDTH="'+w+'" HEIGHT="'+h+'" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"';	
	html += ' style="filter: gray()" ';
	html += ' CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" ';
	html += ' STANDBY="Loading Microsoft Windows Media Player components..." TYPE="application/x-oleobject">';
	html += ' <PARAM NAME="AutoStart" VALUE="'+auto+'" >';
	html += ' <PARAM NAME="Filename" VALUE="'+src+'" >';
/*
	html += ' <PARAM NAME="AutoSize" VALUE="false">';
	html += ' <PARAM NAME="AnimationAtStart" VALUE="True">';
	html += ' <PARAM NAME="ClickToPlay" VALUE="True">';
	html += ' <PARAM NAME="Volume" VALUE="-1">';
	html += ' <PARAM NAME="PlayCount" VALUE="1">';
	html += ' <PARAM NAME="SendOpenStateChangeEvents" VALUE="True">';
	html += ' <PARAM NAME="SendPlayStateChangeEvents" VALUE="True"> ';
	html += ' <PARAM NAME="DisplayMode" VALUE="0">';
	html += ' <PARAM NAME="DisplaySize" VALUE="0">';
	html += ' <PARAM NAME="Enabled" VALUE="True">';
	html += ' <PARAM NAME="EnableContextMenu" VALUE="False">';
	html += ' <PARAM NAME="EnablePositionControls" VALUE="False">';
	html += ' <PARAM NAME="EnableFullScreenControls" VALUE="True">';
	html += ' <PARAM NAME="EnableTracker" VALUE="True">';
	html += ' <PARAM NAME="ShowStatusBar" VALUE="True">';
	html += ' <PARAM NAME="ShowDisplay" VALUE="False">';
	html += ' <PARAM NAME="ShowCaptioning" VALUE="False">';
	html += ' <PARAM NAME="ShowControls" VALUE="True">';
	html += ' <PARAM NAME="ShowAudioControls" VALUE="True">';
	html += ' <PARAM NAME="ShowDisplay" VALUE="True">';
	html += ' <PARAM NAME="ShowGotoBar" VALUE="False">';
	html += ' <PARAM NAME="ShowPositionControls" VALUE="True">';
	html += ' <PARAM NAME="ShowTracker" VALUE="True">';
	html += ' <PARAM NAME="WindowlessVideo" VALUE="False">';
	html += ' <PARAM NAME="TransparentAtStart" VALUE="False">';
*/
	html += ' </object> ';
	document.write(html);
}
