//************ active È°¼ºÈ­ ÆÐÄ¡¿¡ µû¸¥ ¿ÜºÎ½ºÅ©¸³ **************


function SWF_Object(src,width,height,classid,version, id){
	if(classid == "") classid = "D27CDB6E-AE6D-11cf-96B8-444553540000";
	if(version == "") version = "9.0.124.0";
	if(id == "") id = "ShockwaveFlash1";
	
	Swf_Tag = '<object classid="clsid:'+classid+'"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+version+'" width="'+width+'" height="'+height+'" id="'+id+'">';
	Swf_Tag += '<param name="movie" value="'+src+'">';
	Swf_Tag += '<param name="allowScriptAccess" value="always" />';
	Swf_Tag += '<param name="allowfullscreen" value="true" />';
	Swf_Tag += '<param name="quality" value="high">';
	Swf_Tag += '<param name="WMode" value="Transparent">';
	Swf_Tag += '<embed src="'+src+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" allowfullscreen="true" allowScriptAccess="always"></embed>';
	Swf_Tag += '</object>';
	document.write(Swf_Tag);

}


function SET_Media(src, Ow, Oh, Pw, Ph) { //object width, height, param width, height  //µ¿¿µ»óÆÄÀÏ
	var Media_html = "";
	Media_html += '<OBJECT id=MPlay1 codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 ';
    Media_html += '    type=application/x-oleobject height='+Oh+'';
    Media_html += '    standby="Loading Microsoft Windows Media Player components..." width='+Ow+' ';
    Media_html += '    classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95>';
    Media_html += '   <PARAM NAME="Width" VALUE="'+Pw+'">';
    Media_html += '   <PARAM NAME="Height" VALUE="'+Ph+'">';
    Media_html += '   <PARAM NAME="FileName" VALUE="'+src+'">';
    Media_html += '   <PARAM NAME="Volume" VALUE="10">';
    Media_html += '   <PARAM NAME="AnimationatStart" VALUE="1">';
    Media_html += '   <PARAM NAME="AutoSize" VALUE="0">';
	Media_html += '   <PARAM NAME="TransparentatStart" VALUE="1">';
    Media_html += '   <PARAM NAME="ControlType" VALUE="1">';
	Media_html += '   <PARAM NAME="EnableContextMenu" VALUE="0">';
    Media_html += '   <PARAM NAME="EnablePositionControls" VALUE="0">';
    Media_html += '   <PARAM NAME="ShowTracker" VALUE="1">';
    Media_html += '   <PARAM NAME="AutoStart" VALUE="1">';
    Media_html += '   <PARAM NAME="ShowControls" VALUE="1">';
    Media_html += '   <PARAM NAME="ClickToPlay" VALUE="1">';
    Media_html += '   </OBJECT>';
	document.write(Media_html);
}

function resizeFrame(){
  var iframeObj = document.all["iMenuList"];
  var innerBody = iframeObj.contentWindow.document.body;
  var innerHeight = innerBody.scrollHeight + (innerBody.offsetHeight - innerBody.clientHeight);
  var innerWidth = innerBody.scrollWidth + (innerBody.offsetWidth - innerBody.clientWidth);
  if(innerHeight>0 && innerWidth>0){
        iframeObj.style.height = innerHeight;
        iframeObj.style.width = innerWidth;
  }
}

function winOpenFunc(url, wname, w, h, l, t, f, s, r){
	etc = "width="+ w +" , height="+ h +", left="+ l + " , top="+ t +" , fullscreen="+ f + " , scrollbars="+ s + " , resizable=" + r;
	window.open(url, wname, etc);
}