// ÇÃ·¹½Ã ÀÎº£µå //
function FlashEmbed(fid,fn,wd,ht,para)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + wd + '" height="' + ht + '" id="' + fid + '" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain">');
	document.write('<param name="movie" value="' + fn + para + '">');
	document.write('<param name="menu" value="false">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed src="' + fn + para + '" menu="false" quality="high" wmode="transparent" width="' + wd + '" height="' + ht + '" name="' + fid + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}
//left_menu
function FlashEmbed2(fid,fn,wd,ht,setSx,setPt,setPr,name)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + wd + '" height="' + ht + '" id="' + fid + '" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain">');
	document.write('<param name="movie" value="' +fn + "?setSx=" + setSx + "&setPt=" + setPt + "&setPr=" + setPr + "&name=" + name  + '">');
	document.write('<param name="menu" value="false">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<param name="bgcolor" value="#ffffff">');
	document.write('<embed src="' + fn + "?setSx=" + setSx + "&setPt=" + setPt + "&setPr=" + setPr + "&name=" + name  + '" menu="false" quality="high" wmode="transparent" width="' + wd + '" height="' + ht + '" name="' + fid + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}


// µ¿¿µ»ó ÀÎº£µå //
function PlayEmbed(fid,fn,wd,ht,para)
{
	document.write('<object id=Player codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,05,0809" type="application/x-oleobject"  standby="Loading Microsoft Windows Media Player components..." height="'+ ht +'" width="'+ wd +'" classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" name='+ fid +' viewastext>');
	document.write('<param name="AudioStream" value="-1">');
	document.write('<param name="AutoSize" value="0">');
	document.write('<param name="AutoStart" value="false">');
	document.write('<param name="AnimationAtStart" value="-1">');
	document.write('<param name="AllowScan" value="-1">');
	document.write('<param name="AllowChangeDisplaySize" value="-1">');
	document.write('<param name="AutoRewind" value="-1">');
	document.write('<param name="Balance" value="0">');
	document.write('<param name="BaseURL" value="">');
	document.write('<param name="BufferingTime" value="5">');
	document.write('<param name="CaptioningID" value="">');
	document.write('<param name="ClickToPlay" value="-1">');
	document.write('<param name="CursorType" value="0">');
	document.write('<param name="CurrentPosition" value="-1">');
	document.write('<param name="CurrentMarker" value="0">');
	document.write('<param name="DefaultFrame" value="10">');
	document.write('<param name="DisplayBackColor" value="0">');
	document.write('<param name="DisplayForeColor" value="16777215">');
	document.write('<param name="DisplayMode" value="0">');
	document.write('<param name="DisplaySize" value="4">');
	document.write('<param name="Enabled" value="-1">');
	document.write('<param name="EnableContextMenu" value="-1">');
	document.write('<param name="EnablePositionControls" value="-1">');
	document.write('<param name="EnableFullScreenControls" value="0">');
	document.write('<param name="EnableTracker" value="-1">');
	document.write('<param name="Filename" value="' + fn + '">');
	document.write('<param name="InvokeURLs" value="-1">');
	document.write('<param name="Language" value="-1">');
	document.write('<param name="Mute" value="0">');
	document.write('<param name="PlayCount" value="1">');
	document.write('<param name="PreviewMode" value="true">');
	document.write('<param name="Rate" value="1">');
	document.write('<param name="SAMILang" value="">');
	document.write('<param name="SAMIStyle" value="">');
	document.write('<param name="SAMIFileName" value="">');
	document.write('<param name="SelectionStart" value="-1">');
	document.write('<param name="SelectionEnd" value="-1">');
	document.write('<param name="SendOpenStateChangeEvents" value="-1">');
	document.write('<param name="SendWarningEvents" value="-1">');
	document.write('<param name="SendErrorEvents" value="-1">');
	document.write('<param name="SendKeyboardEvents" value="0">');
	document.write('<param name="SendMouseClickEvents" value="-1">');
	document.write('<param name="SendMouseMoveEvents" value="0">');
	document.write('<param name="SendPlayStateChangeEvents" value="-1">');
	document.write('<param name="ShowCaptioning" value="0">');
	document.write('<param name="ShowControls" value="0">');
	document.write('<param name="ShowAudioControls" value="0">');
	document.write('<param name="ShowDisplay" value="0">');
	document.write('<param name="ShowGotoBar" value="0">');
	document.write('<param name="ShowPositionControls" value="0">');
	document.write('<param name="ShowStatusBar" value="1">');
	document.write('<param name="ShowTracker" value="-1">');
	document.write('<param name="transparentAtStart" value="True">');
	document.write('<param name="transparentAtStop" value="False">');
	document.write('<param name="VideoBorderWidth" value="0">');
	document.write('<param name="VideoBorderColor" value="0">');
	document.write('<param name="VideoBorder3D" value="0">');
	document.write('<param name="Volume" value="-600">');
	document.write('<param name="WindowlessVideo" value="0">');
	document.write('</object>');
}


/* OQ Event  */

function mypage(){ 
 window.open("/Event/OQEvent/mypage.asp","_self"); 
}

function goevent1(){ 
 window.open("/Event/OQEvent/event1.asp","_self"); 
}

function goevent2(){ 
 window.open("/Event/OQEvent/event2.asp","_self"); 
}

function goevent3(){ 
 window.open("/Event/OQEvent/event3.asp","_self"); 
}

function notice(){ 
 window.open("/Event/OQEvent/pop_info.html","notice","scrollbars=yes,popup,width=520,height=600"); 
}

function palert(){ 	
 window.open("/Event/OQEvent/pop_alert.html","alert","scrollbars=no,popup,width=432,height=480");
}

function gift(){ 	
 window.open("/Event/OQEvent/event1_pop.html","gift","scrollbars=no,popup,width=500,height=598");
}



function CreateDartflash(w, h, movie, ids, params, pno, pgrade, mno){
	//document.write(w+"<br />");
	//document.write(ids+"<br />");
	//document.write(movie);
	var strflash = "<OBJECT id="+ids+" codeBase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 width="+w+" height="+h+" align=middle classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000>";
	strflash = strflash + "<PARAM NAME='_cx' VALUE='25400'>";
	strflash = strflash + "<PARAM NAME='_cy' VALUE='9260'>";
	strflash = strflash + "<PARAM NAME='Movie' VALUE='"+ movie +"?setSx=" + pno + "&setPt=" + pgrade + "&setPx=" + mno + "'>";
	strflash = strflash + "<PARAM NAME='Src' VALUE='" + movie + "?setSx=" + pno + "&setPt=" + pgrade + "&setPx=" + mno + "'>";
	strflash = strflash + "<PARAM NAME='WMode' VALUE='Transparent'>";
	strflash = strflash + "<PARAM NAME='Play' VALUE='-1'>";
	strflash = strflash + "<PARAM NAME='Loop' VALUE='-1'>";
	strflash = strflash + "<PARAM NAME='Quality' VALUE='High'>";
	strflash = strflash + "<PARAM NAME='SAlign' VALUE=''>";
	strflash = strflash + "<PARAM NAME='Menu' VALUE='-1'>";
	strflash = strflash + "<PARAM NAME='Base' VALUE=''>";
	strflash = strflash + "<PARAM NAME='AllowScriptAccess' VALUE=''>";
	strflash = strflash + "<PARAM NAME='Scale' VALUE='ShowAll'>";
	strflash = strflash + "<PARAM NAME='DeviceFont' VALUE='0'>";
	strflash = strflash + "<PARAM NAME='EmbedMovie' VALUE='0'>";
	strflash = strflash + "<PARAM NAME='BGColor' VALUE=''>";
	strflash = strflash + "<PARAM NAME='SWRemote' VALUE=''>";
	strflash = strflash + "<PARAM NAME='MovieData' VALUE=''>";
	strflash = strflash + "<PARAM NAME='SeamlessTabbing' VALUE='1'>";
	strflash = strflash + "<PARAM NAME='Profile' VALUE='0'>";
	strflash = strflash + "<PARAM NAME='ProfileAddress' VALUE=''>";
	strflash = strflash + "<PARAM NAME='ProfilePort' VALUE='0'>";
	//strflash = strflash + "<PARAM NAME='FlashVars' VALUE='"+flashvars+"'>";
	strflash = strflash + "<embed src='"+ movie +"?setSx=" + pno + "&setPt=" + pgrade + "&setPx=" + mno + "' quality='high' wmode='transparent' width='"+w+"' height='"+h+"' name='"+ids+"' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
	strflash = strflash + "</OBJECT>";
	document.write(strflash);
}
