function getAvailRoiGameSize() {
	var h = screen.availHeight - 130;
	var w = parseInt(h * 1.42);
	var arrSize = Array(w, h);
	return arrSize;
}
function auditionLaunch() {
	var strObj;
	strObj = '<OBJECT ID="AuditionWebCtrl" CLASSID="CLSID:0FF588E0-0913-4CBC-BEC6-422A2D96B7FB" WIDTH=0 HEIGHT=0 codebase="http://www.tiniya.com/Audition/dn/AuditionWeb41.cab#version=1,0,0,41" VIEWASTEXT></OBJECT>';
	document.write(strObj);
}
function auditionVodplay(file_path) {
	var strObj;
	strObj = '<OBJECT classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="objPlayer" width="320" height="310" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" type="application/x-oleobject" standby="Loading Windows Media Player components...">';
	strObj += '<param name="rate" value="true">';
	strObj += '<param name="balance" value="0">';
	strObj += '<param name="currentPosition" value="0">';
	strObj += '<param name="defaultFrame" value="">';
	strObj += '<param name="playCount" value="1">';
	strObj += '<param name="autoStart" value="true">';
	strObj += '<param name="currentMarker" value="0">';
	strObj += '<param name="invokeURLs" value="true">';
	strObj += '<param name="baseURL" value="">';
	strObj += '<param name="Filename" value="'+file_path+'">';
	strObj += '<param name="volume" value="-500">';
	strObj += '<param name="mute" value="0">';
	strObj += '<param name="uiMode" value="full">';
	strObj += '<param name="stretchToFit" value="true">';
	strObj += '<param name="windowlessVideo" value="false">';
	strObj += '<param name="enabled" value="true">';
	strObj += '<param name="enableContextMenu" value="1">';
	strObj += '<param name="fullScreen" value="">';
	strObj += '<param name="SAMIStyle" value="">';
	strObj += '<param name="SAMILang" value="">';
	strObj += '<param name="SAMIFilename" value="">';
	strObj += '<param name="captioningID" value="">';
	strObj += '<param name="ShowStatusBar" value="1">';
	strObj += '<EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" id="objPlayer" Name="objPlayer" width="320" height="284" DisplaySize="4" AutoSize="1"  ShowControls="-1" ShowDisplay="0" ShowStatusBar="1" src="'+file_path+'" autostart="1"></EMBED> ';
	strObj += '</OBJECT>';
	document.write(strObj);
}

function starVodplay(file_path, w, h) {
	var strObj;
	strObj = '<OBJECT classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="objPlayer" width="'+w+'" height="'+h+'" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" type="application/x-oleobject" standby="Loading Windows Media Player components...">';
	strObj += '<param name="rate" value="true">';
	strObj += '<param name="balance" value="0">';
	strObj += '<param name="currentPosition" value="0">';
	strObj += '<param name="defaultFrame" value="">';
	strObj += '<param name="playCount" value="1">';
	strObj += '<param name="autoStart" value="false">';
	strObj += '<param name="currentMarker" value="0">';
	strObj += '<param name="invokeURLs" value="true">';
	strObj += '<param name="baseURL" value="">';
	strObj += '<param name="Filename" value="'+file_path+'">';
	strObj += '<param name="volume" value="-500">';
	strObj += '<param name="mute" value="0">';
	strObj += '<param name="uiMode" value="full">';
	strObj += '<param name="stretchToFit" value="true">';
	strObj += '<param name="windowlessVideo" value="false">';
	strObj += '<param name="enabled" value="true">';
	strObj += '<param name="enableContextMenu" value="false">';
	strObj += '<param name="fullScreen" value="">';
	strObj += '<param name="SAMIStyle" value="">';
	strObj += '<param name="SAMILang" value="">';
	strObj += '<param name="SAMIFilename" value="">';
	strObj += '<param name="captioningID" value="">';
	strObj += '<param name="ShowStatusBar" value="1">';
	strObj += '<EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" id="objPlayer" Name="objPlayer" width="'+w+'" height="'+h+'" DisplaySize="4" AutoSize="1"  ShowControls="-1" ShowDisplay="0" ShowStatusBar="1" src="'+file_path+'" autostart="0"></EMBED> ';
	strObj += '</OBJECT>';
	document.write(strObj);
}
function avatarZoom(sid, gender) {
	var strObj;
	strObj = "<EMBED src='/avatar/common/fla_unime_timg.swf?userid="+sid+"&gender="+gender+"' menu=false quality=high wmode=transparent  WIDTH='280' HEIGHT='384' NAME='unime' ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer' flashvars='userid="+sid+"&gender="+gender+"'></EMBED>";
	document.write(strObj);
}
function avatarZoom2(acase, code, memid) {
	var strObj;
	strObj = "  <EMBED src='/avatar/common/album_timg.swf?acase="+acase+"&code="+code+"&memid="+memid+"' menu=false quality=high wmode=transparent  WIDTH='280' HEIGHT='384'  NAME='unime' ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer' flashvars='acase="+acase+"&code="+code+"&memid="+memid+"'></EMBED>";
	document.write(strObj);
}
function avatarCharacter(cno) {
	var strObj;
	strObj = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
	strObj += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';
	strObj += ' WIDTH="305" HEIGHT="420" id="character" ALIGN="">';
	strObj += ' <PARAM NAME=movie VALUE="super_character_timg.swf"> ';
	strObj += ' <PARAM NAME=quality VALUE=high> ';
	strObj += ' <PARAM NAME=bgcolor VALUE=#FFFFFF> ';
	strObj += ' <PARAM NAME=flashvars VALUE="cno='+cno+'">';
	strObj += ' <EMBED src="super_character_timg.swf?cno='+cno+'" quality=high bgcolor=#FFFFFF  WIDTH="305" HEIGHT="420" NAME="character" ALIGN=""';
	strObj += ' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"';
	strObj += ' flashvars="cno='+cno+'"></EMBED>';
	strObj += '</OBJECT>';
	document.write(strObj);
}
function roiChat( id, ip, port, channel, lv) {
	var strObj;
	strObj = '<OBJECT classid="clsid:CC5E8EDB-BD66-483A-9C4E-B7014844B50C" codebase="http://image.tiniya.com/chat_down/RoiChatCtrl.cab#version=1,0,0,9"';
	strObj += 'width=104 height=73 align=center hspace=0 vspace=0 id="objChat" VIEWASTEXT> ';
	strObj += '<PARAM NAME="FILE" VALUE="RoiChat.exe">';
	strObj += '<PARAM NAME="ID" VALUE="'+id+'">';
	strObj += '<PARAM NAME="PASS" VALUE="1111">';
	strObj += '<PARAM NAME="IP" VALUE="'+ip+'">';
	strObj += '<PARAM NAME="PORT" VALUE="'+port+'">';
	strObj += '<PARAM NAME="CHANNEL" VALUE="'+channel+'">';
	strObj += '<PARAM NAME="TITLE" VALUE="RoiChat">';
	strObj += '<PARAM NAME="PATH" VALUE="RoiWorld">';
	strObj += '<PARAM NAME="ICON" VALUE="3">';
	strObj += '<PARAM NAME="SETUP" VALUE="0">';
	strObj += '<PARAM NAME="HOMEPAGE" VALUE="http://www.tiniya.com">';
	strObj += '<PARAM NAME="SHORTCUT" VALUE="Æ¼´Ï¾ß">';
	strObj += '<PARAM NAME="LV" VALUE="'+lv+'">';
	strObj += '</OBJECT>';
	document.write(strObj);
}
function msgrInstall() {
	var strObj;
	strObj = "<object id='gn' width=0 height=0 CLASSID='CLSID:DB72012F-7D21-4350-891F-A0B38542DBCA' codebase='http://dn.dreamwiz.com/ActiveX/dwgenie/GNSetup.cab#version=1,0,0,1'></object>";
	return strObj;
}
function ViewSwf(swf_id, swf_path, w, h, wmode, flashVars) {
	var strObj, strWmode;
	var strEmbed = '';
	wmode = parseInt(wmode);
	if ( wmode == 1 ) strWmode = 'transparent';
	else if ( wmode == 2 ) strWmode = 'opaque';
	else strWmode = 'window';

	strObj =  "<object id='"+swf_id+"' classid='clsid:D27CDB6E-AE6D-11CF-96B8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' type='application/x-shockwave-flash' width='"+w+"' height='"+h+"'>";
	strObj += "<param name='movie' value='"+swf_path+"' />";
	strObj += "<param name='quality' value='high' />";
	strObj += "<param name='menu' value='false' />";
	strObj += "<param name='wmode' value='transparent' /> ";
	strObj += "<param name='allowScriptAccess' value='always' />";
	if ( wmode ) {
		strObj += "<param name='wmode' value='"+strWmode+"' />";
		strEmbed = " wmode='"+strWmode+"' ";
	}
	if (flashVars) {
		strObj += "<param name='flashVars' value='" + flashVars + "'>";
		swf_path += "?" + flashVars
	}
	strObj += "<embed swliveconnect='true' name='"+swf_id+"' src='"+swf_path+"' quality='high' "+strEmbed+" menu='false' allowScriptAccess='always' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+w+"' height='"+h+"'></embed>";
	strObj += "</object>";

	document.write(strObj);
}

function ViewSwfFullMode(swf_id, swf_path, w, h, wmode) {
	var strObj, strWmode;
	var strEmbed = '';

	wmode = parseInt(wmode);
	if ( wmode == 1 ) strWmode = 'transparent';
	//else if ( wmode == 2 ) strWmode = 'opaque';
	else strWmode = 'window';

	strObj =  "<object id='"+swf_id+"' classid='clsid:D27CDB6E-AE6D-11CF-96B8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0' type='application/x-shockwave-flash' width='"+w+"' height='"+h+"'>";
	strObj += "<param name='movie' value='"+swf_path+"' />";
	strObj += "<param name='quality' value='high' />";
	strObj += "<param name='menu' value='false' />";
	strObj += "<param name='allowScriptAccess' value='always' />";
	strObj += "<param name='allowFullscreen' value='true' />";

	if ( wmode ) {
		strObj += "<param name='wmode' value='"+strWmode+"' />";
		strEmbed = " wmode='"+strWmode+"' ";
	}
	strObj += "<embed id='"+swf_id+"' src='"+swf_path+"' quality='high' "+strEmbed+" menu='false' allowScriptAccess='always' allowFullScreen='true' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+w+"' height='"+h+"'></embed>";
	strObj += "</object>";
	document.write(strObj);
}

function qringLaunch() {
	var strObj;
	strObj = "<OBJECT ID='ImP3' CLASSID='CLSID:18D63578-EA2F-4A59-A49A-7F62E6B3DF3E' codebase='http://www.tiniya.com/game/qring/ActiveX/RoiQring.cab#version=1,2005,10,1' width=0 height=0><param name='nUpdate' value='1'></OBJECT>";
	document.write(strObj);
}
function playVod(file_path, w, h) {
	var strObj;

	strObj = '<OBJECT ID="objMPlayer" WIDTH='+w+' HEIGHT='+h+' CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" STANDBY="Loading Windows Media Player Components..."';
	strObj += ' TYPE="application/x-oleobject"  CODEBASE= "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">';
	strObj += '<PARAM NAME="FileName" VALUE="'+file_path+'"> ';
	strObj += '<PARAM NAME="ShowTracker" VALUE="1"> ';
	strObj += '<PARAM NAME="EnableContextMenu" VALUE="0"> ';
	strObj += '<PARAM NAME="ShowControls" VALUE="1">';
	strObj += '<PARAM NAME="ShowAudioControls" VALUE="1"> ';
	strObj += '<PARAM NAME="ShowDisplay" VALUE="0"> ';
	strObj += '<PARAM NAME="ShowStatusBar" VALUE="0">';
	strObj += '<PARAM NAME="VideoBorderWidth" VALUE="0">';
	strObj += '<PARAM NAME="VideoBorderColor" VALUE="0">';
	strObj += '<PARAM NAME="VideoBorder3D" VALUE="1">';
	strObj += '<PARAM NAME="Volume" VALUE="60">';
	strObj += '<PARAM NAME="SetCurrentEntry" VALUE="1"> ';
	strObj += '<PARAM NAME="ClickToPlay" VALUE="1"> ';
	strObj += '<PARAM NAME="AutoStart" VALUE="1"> ';
	strObj += '<PARAM NAME="AutoRewind" VALUE="1">';
	strObj += '<PARAM NAME="AutoSize" VALUE="1"> ';
	strObj += '<PARAM NAME="AutoResize" VALUE="1">';
	strObj += '<PARAM NAME="AnimationAtStart" VALUE="1"> ';
	strObj += '<PARAM NAME="TransparentAtStart" VALUE="0">';
	strObj += '<PARAM NAME="CurrentPosition" VALUE="0"> ';
	strObj += '<PARAM NAME="Balance" VALUE="0"> ';
	strObj += '<PARAM NAME="BufferingTime" VALUE="10"> ';
	strObj += '<PARAM NAME="CursorType" VALUE="0"> ';
	strObj += '<PARAM NAME="CurrentMarker" VALUE="0">';
	strObj += '<PARAM NAME="DisplayBackColor" VALUE="0">';
	strObj += '<PARAM NAME="DisplayForeColor" VALUE="16777215"> ';
	strObj += '<PARAM NAME="DisplayMode" VALUE="4"> ';
	strObj += '<PARAM NAME="DisplaySize" VALUE="0"> ';
	strObj += '<PARAM NAME="ShowPositionControls" VALUE="0"> ';
	strObj += '<PARAM NAME="PreviewMode" VALUE="0">';
	strObj += '<PARAM NAME="Rate" VALUE="1"> ';
	strObj += '<PARAM NAME="SelectionStart" VALUE="1">';
	strObj += '<PARAM NAME="SelectionEnd" VALUE="1">';
	strObj += '<PARAM NAME="SendOpenStateChangeEvents" VALUE="1"> ';
	strObj += '<PARAM NAME="SendWarningEvents" VALUE="1">';
	strObj += '<PARAM NAME="SendErrorEvents" VALUE="1"> ';
	strObj += '<PARAM NAME="SendKeyboardEvents" VALUE="0">';
	strObj += '<PARAM NAME="SendMouseClickEvents" VALUE="0">';
	strObj += '<PARAM NAME="SendMouseMoveEvents" VALUE="0">';
	strObj += '<PARAM NAME="SendPlayStateChangeEvents" VALUE="1">';
	strObj += '<PARAM NAME="ShowCaptioning" VALUE="0"> ';
	strObj += '<PARAM NAME="WindowlessVideo" VALUE="0"> ';
	strObj += '<PARAM NAME="ShowGotoBar" VALUE="0"> ';
	strObj += '</OBJECT>';

	document.write(strObj);
}
function playVod2(file_path, w, h) {
	var strObj;

	strObj = '<OBJECT ID="objMPlayer" WIDTH='+w+' HEIGHT='+h+' CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" STANDBY="Loading Windows Media Player Components..."';
	strObj += ' TYPE="application/x-oleobject"  CODEBASE= "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">';
	strObj += '<PARAM NAME="FileName" VALUE="'+file_path+'"> ';
	strObj += '<PARAM NAME="ShowTracker" VALUE="1"> ';
	strObj += '<PARAM NAME="EnableContextMenu" VALUE="0"> ';
	strObj += '<PARAM NAME="ShowControls" VALUE="0">';
	strObj += '<PARAM NAME="ShowAudioControls" VALUE="1"> ';
	strObj += '<PARAM NAME="ShowDisplay" VALUE="0"> ';
	strObj += '<PARAM NAME="ShowStatusBar" VALUE="0">';
	strObj += '<PARAM NAME="VideoBorderWidth" VALUE="0">';
	strObj += '<PARAM NAME="VideoBorderColor" VALUE="0">';
	strObj += '<PARAM NAME="VideoBorder3D" VALUE="1">';
	strObj += '<PARAM NAME="Volume" VALUE="60">';
	strObj += '<PARAM NAME="SetCurrentEntry" VALUE="1"> ';
	strObj += '<PARAM NAME="ClickToPlay" VALUE="1"> ';
	strObj += '<PARAM NAME="AutoStart" VALUE="1"> ';
	strObj += '<PARAM NAME="AutoRewind" VALUE="1">';
	strObj += '<PARAM NAME="AutoSize" VALUE="1"> ';
	strObj += '<PARAM NAME="AutoResize" VALUE="1">';
	strObj += '<PARAM NAME="AnimationAtStart" VALUE="1"> ';
	strObj += '<PARAM NAME="TransparentAtStart" VALUE="0">';
	strObj += '<PARAM NAME="CurrentPosition" VALUE="0"> ';
	strObj += '<PARAM NAME="Balance" VALUE="0"> ';
	strObj += '<PARAM NAME="BufferingTime" VALUE="10"> ';
	strObj += '<PARAM NAME="CursorType" VALUE="0"> ';
	strObj += '<PARAM NAME="CurrentMarker" VALUE="0">';
	strObj += '<PARAM NAME="DisplayBackColor" VALUE="0">';
	strObj += '<PARAM NAME="DisplayForeColor" VALUE="16777215"> ';
	strObj += '<PARAM NAME="DisplayMode" VALUE="4"> ';
	strObj += '<PARAM NAME="DisplaySize" VALUE="0"> ';
	strObj += '<PARAM NAME="ShowPositionControls" VALUE="0"> ';
	strObj += '<PARAM NAME="PreviewMode" VALUE="0">';
	strObj += '<PARAM NAME="Rate" VALUE="1"> ';
	strObj += '<PARAM NAME="SelectionStart" VALUE="1">';
	strObj += '<PARAM NAME="SelectionEnd" VALUE="1">';
	strObj += '<PARAM NAME="SendOpenStateChangeEvents" VALUE="1"> ';
	strObj += '<PARAM NAME="SendWarningEvents" VALUE="1">';
	strObj += '<PARAM NAME="SendErrorEvents" VALUE="1"> ';
	strObj += '<PARAM NAME="SendKeyboardEvents" VALUE="0">';
	strObj += '<PARAM NAME="SendMouseClickEvents" VALUE="0">';
	strObj += '<PARAM NAME="SendMouseMoveEvents" VALUE="0">';
	strObj += '<PARAM NAME="SendPlayStateChangeEvents" VALUE="1">';
	strObj += '<PARAM NAME="ShowCaptioning" VALUE="0"> ';
	strObj += '<PARAM NAME="WindowlessVideo" VALUE="0"> ';
	strObj += '<PARAM NAME="ShowGotoBar" VALUE="0"> ';
	strObj += '</OBJECT>';

	document.write(strObj);
}
function playPuccaVod(file_path, w, h) {
	var strObj;

	strObj = '<OBJECT ID="objMPlayer" WIDTH='+w+' HEIGHT='+h+' CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" STANDBY="Loading Windows Media Player Components..."';
	strObj += ' TYPE="application/x-oleobject"  CODEBASE= "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">';
	strObj += '<PARAM NAME="FileName" VALUE="'+file_path+'"> ';
	strObj += '<PARAM NAME="ShowTracker" VALUE="1"> ';
	strObj += '<PARAM NAME="EnableContextMenu" VALUE="0"> ';
	strObj += '<PARAM NAME="ShowControls" VALUE="0">';
	strObj += '<PARAM NAME="ShowAudioControls" VALUE="1"> ';
	strObj += '<PARAM NAME="ShowDisplay" VALUE="0"> ';
	strObj += '<PARAM NAME="ShowStatusBar" VALUE="0">';
	strObj += '<PARAM NAME="VideoBorderWidth" VALUE="0">';
	strObj += '<PARAM NAME="VideoBorderColor" VALUE="0">';
	strObj += '<PARAM NAME="VideoBorder3D" VALUE="1">';
	strObj += '<PARAM NAME="Volume" VALUE="60">';
	strObj += '<PARAM NAME="SetCurrentEntry" VALUE="1"> ';
	strObj += '<PARAM NAME="ClickToPlay" VALUE="1"> ';
	strObj += '<PARAM NAME="AutoStart" VALUE="1"> ';
	strObj += '<PARAM NAME="AutoRewind" VALUE="1">';
	strObj += '<PARAM NAME="AutoSize" VALUE="1"> ';
	strObj += '<PARAM NAME="AutoResize" VALUE="1">';
	strObj += '<PARAM NAME="AnimationAtStart" VALUE="1"> ';
	strObj += '<PARAM NAME="TransparentAtStart" VALUE="0">';
	strObj += '<PARAM NAME="CurrentPosition" VALUE="0"> ';
	strObj += '<PARAM NAME="Balance" VALUE="0"> ';
	strObj += '<PARAM NAME="BufferingTime" VALUE="10"> ';
	strObj += '<PARAM NAME="CursorType" VALUE="0"> ';
	strObj += '<PARAM NAME="CurrentMarker" VALUE="0">';
	strObj += '<PARAM NAME="DisplayBackColor" VALUE="0">';
	strObj += '<PARAM NAME="DisplayForeColor" VALUE="16777215"> ';
	strObj += '<PARAM NAME="DisplayMode" VALUE="4"> ';
	strObj += '<PARAM NAME="DisplaySize" VALUE="0"> ';
	strObj += '<PARAM NAME="ShowPositionControls" VALUE="0"> ';
	strObj += '<PARAM NAME="PreviewMode" VALUE="0">';
	strObj += '<PARAM NAME="Rate" VALUE="1"> ';
	strObj += '<PARAM NAME="SelectionStart" VALUE="1">';
	strObj += '<PARAM NAME="SelectionEnd" VALUE="1">';
	strObj += '<PARAM NAME="SendOpenStateChangeEvents" VALUE="1"> ';
	strObj += '<PARAM NAME="SendWarningEvents" VALUE="1">';
	strObj += '<PARAM NAME="SendErrorEvents" VALUE="1"> ';
	strObj += '<PARAM NAME="SendKeyboardEvents" VALUE="0">';
	strObj += '<PARAM NAME="SendMouseClickEvents" VALUE="0">';
	strObj += '<PARAM NAME="SendMouseMoveEvents" VALUE="0">';
	strObj += '<PARAM NAME="SendPlayStateChangeEvents" VALUE="1">';
	strObj += '<PARAM NAME="ShowCaptioning" VALUE="0"> ';
	strObj += '<PARAM NAME="WindowlessVideo" VALUE="0"> ';
	strObj += '<PARAM NAME="ShowGotoBar" VALUE="0"> ';
	strObj += '<EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" id="objMPlayer" Name="objMPlayer" width="'+w+'" height="'+h+'" DisplaySize="0" AutoSize="1"  ShowControls="0" ShowDisplay="0" ShowStatusBar="0" src="'+file_path+'" autostart="0"></EMBED> ';
	strObj += '</OBJECT>';
	document.write(strObj);
}
function playAliceVod(file_path, w, h, autostart) {
	var strObj;

	strObj = '<OBJECT ID="alice_vod" name="alice_vod" WIDTH='+w+' HEIGHT='+h+' CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" STANDBY="Loading Windows Media Player Components..."';
	strObj += ' TYPE="application/x-oleobject"  CODEBASE= "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">';
	strObj += '<PARAM NAME="FileName" VALUE="'+file_path+'"> ';
	strObj += '<PARAM NAME="ShowTracker" VALUE="1"> ';
	strObj += '<PARAM NAME="EnableContextMenu" VALUE="0"> ';
	strObj += '<PARAM NAME="ShowControls" VALUE="0">';
	strObj += '<PARAM NAME="ShowAudioControls" VALUE="1"> ';
	strObj += '<PARAM NAME="ShowDisplay" VALUE="0"> ';
	strObj += '<PARAM NAME="ShowStatusBar" VALUE="0">';
	strObj += '<PARAM NAME="VideoBorderWidth" VALUE="0">';
	strObj += '<PARAM NAME="VideoBorderColor" VALUE="0">';
	strObj += '<PARAM NAME="VideoBorder3D" VALUE="1">';
	strObj += '<PARAM NAME="Volume" VALUE="60">';
	strObj += '<PARAM NAME="SetCurrentEntry" VALUE="1"> ';
	strObj += '<PARAM NAME="ClickToPlay" VALUE="1"> ';
	strObj += '<PARAM NAME="AutoStart" VALUE="' + autostart + '"> ';
	strObj += '<PARAM NAME="AutoRewind" VALUE="1">';
	strObj += '<PARAM NAME="AutoSize" VALUE="1"> ';
	strObj += '<PARAM NAME="AutoResize" VALUE="1">';
	strObj += '<PARAM NAME="AnimationAtStart" VALUE="1"> ';
	strObj += '<PARAM NAME="TransparentAtStart" VALUE="0">';
	strObj += '<PARAM NAME="CurrentPosition" VALUE="0"> ';
	strObj += '<PARAM NAME="Balance" VALUE="0"> ';
	strObj += '<PARAM NAME="BufferingTime" VALUE="10"> ';
	strObj += '<PARAM NAME="CursorType" VALUE="0"> ';
	strObj += '<PARAM NAME="CurrentMarker" VALUE="0">';
	strObj += '<PARAM NAME="DisplayBackColor" VALUE="0">';
	strObj += '<PARAM NAME="DisplayForeColor" VALUE="16777215"> ';
	strObj += '<PARAM NAME="DisplayMode" VALUE="4"> ';
	strObj += '<PARAM NAME="DisplaySize" VALUE="0"> ';
	strObj += '<PARAM NAME="ShowPositionControls" VALUE="0"> ';
	strObj += '<PARAM NAME="PreviewMode" VALUE="0">';
	strObj += '<PARAM NAME="Rate" VALUE="1"> ';
	strObj += '<PARAM NAME="SelectionStart" VALUE="1">';
	strObj += '<PARAM NAME="SelectionEnd" VALUE="1">';
	strObj += '<PARAM NAME="SendOpenStateChangeEvents" VALUE="1"> ';
	strObj += '<PARAM NAME="SendWarningEvents" VALUE="1">';
	strObj += '<PARAM NAME="SendErrorEvents" VALUE="1"> ';
	strObj += '<PARAM NAME="SendKeyboardEvents" VALUE="0">';
	strObj += '<PARAM NAME="SendMouseClickEvents" VALUE="0">';
	strObj += '<PARAM NAME="SendMouseMoveEvents" VALUE="0">';
	strObj += '<PARAM NAME="SendPlayStateChangeEvents" VALUE="1">';
	strObj += '<PARAM NAME="ShowCaptioning" VALUE="0"> ';
	strObj += '<PARAM NAME="WindowlessVideo" VALUE="0"> ';
	strObj += '<PARAM NAME="ShowGotoBar" VALUE="0"> ';
	strObj += '<EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" id="objMPlayer" Name="objMPlayer" width="'+w+'" height="'+h+'" DisplaySize="0" AutoSize="1"  ShowControls="0" ShowDisplay="0" ShowStatusBar="0" src="'+file_path+'" autostart="' + autostart + '"></EMBED> ';
	strObj += '</OBJECT>';
	document.write(strObj);
}