<!--
function center_pop(url, name, w, h) 
{
	var popw = (screen.width - w) / 2; 
	var poph = (screen.height - h) / 2; 
	pop_op = 'height='+h+',width='+w+',top='+poph+',left='+popw;
	window.open(url, name, pop_op);
}

function btn(id,after) 
{ 
eval(id+'.filters.blendTrans.stop();'); 
eval(id+'.filters.blendTrans.Apply();'); 
eval(id+'.src="'+after+'";'); 
eval(id+'.filters.blendTrans.Play();'); 
} 
//-->

// ±âº» ÇÃ·¡½Ã(Flash Object)

function flash(c,d,e) {
 var flash_tag = "";
 flash_tag = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
 flash_tag +='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ';
 flash_tag +='WIDTH="'+c+'" HEIGHT="'+d+'" >';
 flash_tag +='<param name="wmode" value="transparent">'; 
 flash_tag +='<param name="movie" value="'+e+'">';
 flash_tag +='<param name="quality" value="high">';
 flash_tag +='<embed src="'+e+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ';
 flash_tag +='type="application/x-shockwave-flash"  WIDTH="'+c+'" HEIGHT="'+d+'"></embed></object>'
 document.write(flash_tag);
}


//----------------------------------------------------------------------
<!-- ÇÃ·¡½Ã ºí·° ¾ø¾Ö ÁÖ±â-->
 function JJ(flsName,flsWidth,flsHeigt)
{
	var wirtTxt = " <object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width="+flsWidth+" height="+flsHeigt+" id=\"sub_menu_2\" align=\"middle\">"

				+ " <param name=\"movie\" value="+flsName+" /> "

				+ " <param name=\"quality\" value=\"high\" />"

				+ " <PARAM NAME=\"wmode\" VALUE=\"transparent\">"

				+ " <embed src="+flsName+" quality=\"high\" bgcolor=\"#ffffff\" width="+flsWidth+" height="+flsHeigt+" name=\"sub_menu_2\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />"

				+ " </object>"

	document.write(wirtTxt);
}
<!-- ºí·° ¾ø¾Ö ÁÖ±â ¿Ï·á -->



//----------------------------------------------------------------------
function MM_openBrWindow(theURL,winName,features) { //v2.0 »õÃ¢¿­±â
  window.open(theURL,winName,features);
}

//----------------------------------------------------------------------

function toggleLayers(showIds, hideIds) {
    for(var i in hideIds)
        document.getElementById(hideIds[i]).style.display = 'none';
    for(var i in showIds)
        document.getElementById(showIds[i]).style.display = 'block';
}

//----------------------------------------------------------------------
var imgObj = new Image();//ÀÌ¹ÌÁö¿¡ ¸ÂÃç ÀÚµ¿À¸·Î »õÃ¢»çÀÌÁî Á¶Àý
function showImgWin(imgName) {
  imgObj.src = imgName;
  setTimeout("createImgWin(imgObj)", 100);
}
function createImgWin(imgObj) {
  if (! imgObj.complete) {
    setTimeout("createImgWin(imgObj)", 100);
    return;
  }
  imageWin = window.open("", "imageWin",
    "width=" + imgObj.width + ",height=" + imgObj.height);
  imageWin.document.write("<html><body style='margin:0'>");
  imageWin.document.write("<img src='" + imgObj.src + "'>");
  imageWin.document.write("</body><html>");
  imageWin.document.title = imgObj.src;
}
//----------------------------------------------------------------------

//----------------------------------------------------------------------
//ÀÍ½ºÇÃ·Î·¯ ÆÐÄ¡

var __embed_target_id = null;


var __embed_tags = {object:true,embed:true,applet:true}


if(document.attachEvent){
	document.write('<style type="text/css">');
	document.write('object,embed{display:none;}');
	document.write('</style>');
	document.attachEvent('onreadystatechange',
		function embed_patch(){
			if(__embed_target_id===null){
				var __target = document;
			}else{
				var __target = document.getElementById(__embed_target_id);
			}
			if (document.readyState == "complete"){
				function _replace(obj){
					var obj_re = document.createElement(obj.outerHTML);					
					obj_re.style.display='inline';
					obj.parentNode.replaceChild(obj_re,obj);
				}
				function _inner(obj){
					obj.style.display='inline';					
					obj.insertAdjacentHTML('beforeBegin',obj.outerHTML);
					obj.parentNode.removeChild(obj);
				}

				if(__embed_tags.object===true){
					var objs = __target.getElementsByTagName('object');
					var i = objs.length;
					while(i-->0){
						_inner(objs[i]);
					}
				}
				if(__embed_tags.embed===true){
					var objs = __target.getElementsByTagName('embed');
					var i = objs.length;
					while(i-->0){
						_replace(objs[i])
					}
				}

				if(__embed_tags.applet===true){
					var objs = __target.getElementsByTagName('applet');
					var i = objs.length;
					while(i-->0){
						_replace(objs[i])
					}
				}
			}
		}
	);
}


