///////////////////////////////////////////// obj_common /////////////////////////////////////////////////////////////////////////


//-- ÀÏ¹ÝÀûÀ¸·Î ´Ü¼øÇÑ ÇÃ·¡½¬ ÀÏ °æ¿ì
/*
	-- ÆÄ¶ó¹ÌÅÍ Á¤º¸ --

	width : °¡·ÎÅ©±â
	height : ¼¼·ÎÅ©±â
	url : ÇÃ·¡½¬ ÆÄÀÏÀÇ °æ·Î
 
*/

function swfView(width, height, url){

	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ");
	document.write(" codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' ");
	document.write(" width='"+width+"' height='"+height+"' align='middle'>");
	document.write("<param name='allowScriptAccess' value='always' /> ");
	document.write("<param name='movie' value='"+url+"' /> ");
	document.write("<param name='quality' value='high' /> ");
	document.write("<param name='wmode' value='transparent'> ");
	document.write("<embed src='"+url+"' quality='high' width='"+width+"' height='"+height+"' align='middle' ");
	document.write(" allowScriptAccess='sameDomain' type='application/x-shockwave-flash' ");
	document.write(" pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}

function editorView(width, height){

	document.write("<OBJECT id='editBox' style='LEFT:0px;TOP:0px' data='/include/editor/Editor.htm' width='"+width+"' height='"+height+"' type='text/x-scriptlet' VIEWASTEXT></OBJECT>");

}

function editorCtrl(width, height){
 document.write("<object id='EditCtrl' width='"+width+"' height='"+height+"' classid='clsid:2D360201-FFF5-11D1-8D03-00A0C959BC0A' VIEWASTEXT >");
 document.write("<PARAM NAME=ShowBorders VALUE=1>");
 document.write("<PARAM NAME=ShowDetails VALUE=0>");
 document.write("<PARAM NAME=Appearance VALUE=0>");
 document.write("<PARAM NAME=ActivateActiveXControls VALUE=1>");
 document.write("</object>");
}

function editJw(width,height,version,HttpServerName,BaseUrl){
	document.write('<OBJECT id=jw codeBase="/adm/jweditor/JwEditorPro_daeguinfo.cab#version='+version+'" classid="clsid:ED895729-E2DA-4954-842F-50BDA73D5A38" VIEWTEXT"  width="'+width+'" height="'+height+'" >');
	document.write('<param name="BaseUrl" value="'+BaseUrl+'">	');
	document.write('<param name="HttpServerName" value="'+HttpServerName+'">');
	document.write('<param name="FontName" value="±¼¸²">');
	document.write('<param name="FontSize" value="10">');
	document.write('<param name="TrialKey" value="JwEditorPro200412228306851">');	
	document.write('</OBJECT>');
}

function medialPlayer(width,height,fileName){
	document.write('<OBJECT ID="mediaPlayer" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" STANDBY="Loading Microsoft Windows Media Player components..." TYPE="application/x-oleobject" width="'+width+'" height="'+height+'">');
	document.write('<param NAME="fileName" VALUE="'+fileName+'">');
	document.write('<param NAME="Displaysize" value="0">');
	document.write('<param NAME="animationatstart" value="true">');
	document.write('<param NAME="autostart" value="true">');
	document.write('<param NAME="AutoSize" value="true">');
	document.write('<param NAME="EnableContextMenu" Value="0">');
	document.write('<param NAME="ShowStatusBar" VALUE="1">');
	document.write('<param NAME="ShowControls" VALUE="1">');
	document.write('<param NAME="BufferingTime" value="0">');
	document.write('<param NAME="Volume" value="0">');
	document.write('</OBJECT>');

}
