function flash8(argSRC,argWIDTH,argHEIGHT,argBGCOLOR,argVar,argID,argName,argWMODE){
var strTEMP;
strTEMP ='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ' ;
	if(argID)
	strTEMP = strTEMP + ' ID="' + argID + '" ' ;//ID
	strTEMP = strTEMP + ' width="'+ argWIDTH + '" height="' + argHEIGHT + '">';//가로세로 값//
	strTEMP = strTEMP + '<param name="allowScriptAccess" value="always" />';//통신방법//
	strTEMP = strTEMP + '<param name="movie" value="' + argSRC + '">';//경로//
	strTEMP = strTEMP + '<param name="FlashVars" value="'+argVar+'" />';//페이지 인식//
	strTEMP = strTEMP + '<param name="bgcolor" value="'+argBGCOLOR+'" />';//플래시 배경색갈//
	strTEMP = strTEMP + '<param name="quality" value="high" />';//플래시 퀄리티//
	strTEMP = strTEMP + '<param name="memu" value="false" />';//이름값//
	
	if(argWMODE)
	strTEMP = strTEMP + '<param name="wmode" value="' + argWMODE + '">';
	else
	strTEMP = strTEMP + '<param name="wmode" value="transparent">';
	strTEMP = strTEMP + '<embed src="'+ argSRC +'" FlashVars="'+ argVar +'" ';
	
	if (argWMODE)
	strTEMP = strTEMP + 'wmode="'+ argWMODE +'" ';
	else
	strTEMP = strTEMP + 'wmode="transparent" ';
	strTEMP = strTEMP + 'menu="false" quality="high" bgcolor="'+ argBGCOLOR +'" width="'+ argWIDTH +'" height="'+ argHEIGHT +'" name="'+ argID +'" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	strTEMP = strTEMP + '</object>';
	document.write(strTEMP);
	
}

function resizeDiv (divid, divWidth, divHeight) {
	var objDiv = document.getElementById(divid);
	if(objDiv != null) {
		objDiv.style.width = divWidth;
		objDiv.style.height = divHeight;
	}

	//alert(divWidth+", "+divHeight);
}

function modalScreen (flag) {
	var objDiv = document.getElementById("divAll");
	if (flag == 'y') {
		if(objDiv != null) {
			//document.body.style.overflowX = 'hidden';
			//document.body.style.overflowY = 'hidden';
			objDiv.style.width = (document.body.scrollWidth) + 'px';
			objDiv.style.height = document.body.scrollHeight + 'px';
			objDiv.style.visibility = 'visible';
			//alert(document.body.scrollLeft+"," +document.body.scrollWidth);
		}
	} else {
		if(objDiv != null) {
			//document.body.style.overflowX = 'visible';
			//document.body.style.overflowY = 'visible';
			objDiv.style.visibility = 'hidden';
		}
	}
}


function reAndModal(divid, divWidth, divHeight, flag) {
	resizeDiv (divid, divWidth, divHeight);
	modalScreen (flag);
}


window.onresize = function() {
	var objDiv = document.getElementById("divAll");
	if(objDiv != null) {
		objDiv.style.width = (document.body.scrollWidth - 60) + 'px';
		objDiv.style.height = document.body.scrollHeight + 'px';
	}

	try { updateQuickBar(); } catch(e) { ; }
}



function f_flash_embed(fid,Url,wd,ht) {
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id="'+fid+'" width="'+wd+'" height="'+ht+'">');
        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" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+wd+'" height="'+ht+'" name="'+fid+'"></embed>');
        document.write('</object>');
}

function f_media_embed(fid,Url,wd,ht) {
		document.write('<OBJECT ID="'+fid+'" 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">');
		document.write('   <PARAM NAME="fileName" VALUE="'+Url+'">');
		document.write('   <PARAM NAME="animationatStart" VALUE="true">');
		document.write('   <PARAM NAME="transparentatStart" VALUE="true">');
		document.write('   <PARAM NAME="autoStart" VALUE="false">');
		document.write('   <PARAM NAME="showControls" VALUE="false">');
		document.write('</OBJECT>');
}

function f_cal_embed(fid,Url,wd,ht) {
		document.write('<object data='+Url+' id='+fid+' width='+wd+' height='+ht+' style="background-color: #ffffff;filter: revealtrans(duration=0); left: 0px; top: 0px; visibility: hidden; z-index: 30; position: absolute;" type=text/x-scriptlet viewastext></object>');
}

function f_bbs_embed(fid,Url,wd,ht) {
		document.write('<object id="'+fid+'" name="'+fid+'" style="LEFT: 0px TOP:0px" data="'+Url+'"  width="'+wd+'" height="'+ht+'" type="text/x-scriptlet" VIEWASTEXT></object>');
}

function f_activex_embed(fid,Url,wd,ht,mode) {
		document.write('<OBJECT ID="'+fid+'" width="'+wd+'" height="'+ht+'" border=1');
		document.write('	CLASSID="CLSID:BCFA4759-1193-4EC3-92A0-F03F6461DA78" CODEBASE="TABSFileup.cab#version=2,1,0,13">');
		document.write('	<PARAM NAME="UploadURL" VALUE="'+Url+'">');
		document.write('	<PARAM NAME="CodePage" VALUE="949">');
		document.write('	<PARAM NAME="ViewStyle" VALUE="1">');
		document.write('	<PARAM NAME="UploadStyle" VALUE="1">');
		document.write('	<PARAM NAME="Mode" VALUE="'+mode+'">');
		document.write('	<PARAM NAME="FileFilter" VALUE="Image Files(*.jpg;*.jpeg;*.gif;*.png)|*.jpg;*.jpeg;*.gif;*.png|All Files(*.*)|*.*|">');
		document.write('</OBJECT>');
}

function f_admin_activex_embed(fid,Url,wd,ht,mode) {

		document.write('<OBJECT ID="'+fid+'" width="'+wd+'" height="'+ht+'" border=1');
		document.write('	CLASSID="CLSID:BCFA4759-1193-4EC3-92A0-F03F6461DA78" CODEBASE="TABSFileup.cab#version=2,1,0,9">');
		document.write('	<PARAM NAME="UploadURL" VALUE="'+Url+'">');
		document.write('	<PARAM NAME="CodePage" VALUE="949">');
		document.write('	<PARAM NAME="ViewStyle" VALUE="0">');
		document.write('	<PARAM NAME="UploadStyle" VALUE="1">');
		document.write('	<PARAM NAME="FileFilter" VALUE="Image Files(*.jpg;*.jpeg;*.gif;*.png)|*.jpg;*.jpeg;*.gif;*.png|All Files(*.*)|*.*|">');
		document.write('</OBJECT>');
}