function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  pop=window.open(theURL,winName,features);
  pop.focus();
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_preloadImages() { //v3.0
//  MM_setting(document.form1);
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function send(value1, value2){
	doc = document.form1;
	doc.value=value1;
	doc.value=value2;
	doc.target="_top"
	doc.submit();
}
function send1(value1,value2,value3){
	doc = document.form1;
	doc.L1.value = value1;
	doc.L2.value = value2;
	doc.url.value = value3;
	doc.target="_top";
	doc.submit();
}
function send2(value1,value2,value3){
	doc = document.action;
	doc.L1.value = value1;
	doc.L2.value = value2;
	doc.url.value = value3;
	doc.target="_new";
	doc.submit();
}

function MM_setting(doc){
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3){
		obj.visibility=v; 
  }
}
function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3){
	  if ((obj=MM_findObj(args[i]))!=null) { 
//alert(args[i]);
		  v=args[i+2];
		  if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
		  obj.visibility=v; 
	  }
  }
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

<!-- Begin
site="http://www.dkspecial.net/vol2";  // html ÆÄÀÏµéÀÌ ÀÖ´Â À¥»çÀÌÆ® µð·ºÅä¸®. ¸¶Áö¸·¿¡ "/" ¸¦ ºÙÀÌÁö ¸¶¼¼¿ä
function combineMenus(frm, menu1, menu2) {
with (frm) {
for (var i = 0; i < document.menufrm.menu1.length; i++) {
if (document.menufrm.menu1[i].checked) {
str = document.menufrm.menu1[i].value;
break;
   }
}

for (var i = 0; i < document.menufrm.menu2.length; i++) {
if (document.menufrm.menu2[i].selected) {
str += document.menufrm.menu2[i].value;
break;
   }
}

url = site + "/" + str + ".htm";
window.location.href = url;

   }
}
//  End -->

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

	function onchange_location(form) {
		switch(form.value) {
			case 'top'		:	top.location=form.options[form.selectedIndex].name;
								break;
			case 'parent'	:	parent.location=form.options[form.selectedIndex].name;
								break;
			case 'blank'	:	window.open(form.options[form.selectedIndex].name);
								break;
            case 'sanha'    :	window.open(form.options[form.selectedIndex].name,"sanha","toolbar=no,directories=no,status=no,scrollbars=no,resize=no,menubar=no,left=5000,top=5000,width=10,height=10");
                                break;
			case 'frame'    :       send1('7','4',form.options[form.selectedIndex].name);
								break;
			case 'survey'   :       send1('7','6',form.options[form.selectedIndex].name);
								break;
			case 'proposal' :       send1('7','7','');
								break;
			case 'card'     :       send1('7','1','');
								break;
			case 'praise'   :       send1('7','11','');
								break;
			case 'civilservice'    : send1('7','12','');
								break;
			default			:	self.location="index.jsp";

		}
		form.selectedIndex=0;
		form.blur();
		return;
	}
    function changeloc(value1, value2, value3)
    {
        var doc = document.form1;
        if(value1=="7" && value2=="19"){
            doc.action='/common_hframe.jsp';
            doc.target='handiwin';
        }else{
            doc.action='/common_frame.jsp';
            doc.target='_parent';
        }
        doc.method='post';
        doc.L1.value = value1;
        doc.L2.value = value2;
        doc.url.value = value3;
        doc.submit();
    }

    function jsAct3(a,b,c)
    {
		frmForword.top.value=a;
		frmForword.left.value=b;
		frmForword.right.value=c;
		frmForword.target='minwon';
		frmForword.submit(); 
    } 

	function view(value1, value2, value3) {
		doc = document.form1;
		doc.L1.value = value1;
		doc.L2.value = value2;
		doc.url.value = value3;
		doc.submit();
	}


	function Open(url) {
		window.open(url,'newwin','menubar=0,resizable=no,scrollbars=0,top=250,left=700,width=268,height=285,scrolling=no');
	}


	function EnterCheck(i) {
		if (event.keyCode == 13 && i==1) {
			Search_Display();
		}
		if (event.keyCode == 13 && i==2) {
			FindText_Display()
		}
	}


    function Search_Display() {
        if (document.mainsearch.QueryText.value=="") {
            alert('°Ë»ö¾î¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä');
            document.mainsearch.QueryText.focus();
            return;
        }
        document.form1.action = "/et/search_frame.jsp";
        document.form1.target = "_parent";
        document.form1.method = "get";
        document.form1.submit();
        document.form1.action = "/common_frame.jsp";
        document.form1.method = "post";
    }


    function FindText_Display() {
	    find_txt = document.mainsearch.FindText.value;
	    find_condition = 'duty_desc';
	    if (find_txt=="") {
		   alert('°Ë»ö¾î¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä');
		   document.mainsearch.FindText.focus();
		   return;
	   } else {
		   for(var i = 0 ; i < document.mainsearch.radiobutton.length ; i++) {
			   if (document.mainsearch.radiobutton[i].checked == true) {
				   find_condition = document.mainsearch.radiobutton[i].value;
			   }
		   }
		   send1('1','3','/cgi/phone?id=search&'+find_condition+'='+find_txt);
	   }
    }
    
	
	/*
    var n =  (document.layers) ? 1 : 0 ;
    var ie = (document.all) ? 1 : 0 ;
    var ns6 = document.getElementById && !document.all; 

    var layerPrefix = "n";
    var layermax = 5;
    var imgOff = new Array();
    var imgOn  = new Array();
    
    
    for(var i=1;i<=5;i++){
        imgOff[i-1] = new Image();
        imgOn[i-1] = new Image();
        
        imgOff[i-1].src = "/images/main_nn/m_news0" + i + ".gif";
        imgOn[i-1].src = "/images/main_nn/m_news0" + i + "on.gif";
    }
	*/
    
    function setSelectImg(num)
    {
        var curImg;
        for(var i=1;i<=5;i++){
            curImg = i-1;
            eval("document.news"+ i+ ".src=imgOff[" + curImg + "].src");
        }
        curImg = num-1;
        
        eval("document.news"+ num + ".src=imgOn[" + curImg + "].src");
    }
    
    function hideObj(tobj)
    {
        if(n || ns6){
            eval("document." + tobj + ".visibility='hide'" );
		}else if (ie){
		    eval(tobj + ".style.visibility='hidden'");
		}
    }

	function showObj(tobj)
    {
        if(n || ns6){
            eval("document." + tobj + ".visibility='show'" );
		}else if (ie){
		    eval(tobj + ".style.visibility='visible'");
		}
    }

    function hideAllLayer()
    {
        for(i=1;i<=layermax;i++){
		    var name = layerPrefix + i;
            hideObj(layerPrefix + i);
        }
    }
        
    function showLayer(layer)
    {
        hideAllLayer();
        showObj(layerPrefix+layer);
    }    
    
    function MM_openBrWindow(theURL,winName,features) { //v2.0

        window.open(theURL,winName,features);
    }  

        var stmnLEFT = 930; // ½ºÅ©·Ñ¸Þ´ºÀÇ ÁÂÃø À§Ä¡
        var stmnGAP1 = 130; // ÆäÀÌÁö Çì´õºÎºÐÀÇ ¿©¹é (80º¸´Ù À§·Î´Â ¿Ã¶ó°¡Áö ¾ÊÀ½)
        var stmnGAP2 = 0; // ½ºÅ©·Ñ½Ã ºê¶ó¿ìÀú »ó´Ü°ú ¾à°£ ¶ç¿ò. ÇÊ¿ä¾øÀ¸¸é 0À¸·Î ¼¼ÆÃ
        var stmnBASE = 100; // ½ºÅ©·Ñ¸Þ´º ÃÊ±â ½ÃÀÛÀ§Ä¡ (¾Æ¹«·¸°Ô³ª ÇØµµ »ó°üÀº ¾øÁö¸¸ stmnGAP1°ú ¾à°£ Â÷ÀÌ¸¦ ÁÖ´Â°Ô º¸±â ÁÁÀ½)
        var stmnActivateSpeed = 200; // ¿òÁ÷ÀÓÀ» °¨ÁöÇÏ´Â ¼Óµµ (¼ýÀÚ°¡ Å¬¼ö·Ï ´Ê°Ô ¾Ë¾ÆÂ÷¸²)
        var stmnScrollSpeed = 10; // ½ºÅ©·ÑµÇ´Â ¼Óµµ (Å¬¼ö·Ï ´Ê°Ô ¿òÁ÷ÀÓ)


        function RefreshStaticMenu()
        {
                var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;

                stmnStartPoint = parseInt(STATICMENU.style.top, 10);
                stmnEndPoint = document.body.scrollTop + stmnGAP2;
                if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1;

                if ( stmnStartPoint != stmnEndPoint ) {
                        stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 15 );
                        STATICMENU.style.top = parseInt(STATICMENU.style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount );
                        stmnRefreshTimer = stmnScrollSpeed;
                }
                                         else {
                        stmnRefreshTimer = stmnActivateSpeed;
                }

                setTimeout ("RefreshStaticMenu();", stmnRefreshTimer);
        }



        function InitializeStaticMenu()
        {
                STATICMENU.style.top = document.body.scrollTop + stmnBASE;
                RefreshStaticMenu();
                STATICMENU.style.left = stmnLEFT;
        }
        
//////////////////////////main////////////////////////////////////
function MM_openBrWindow(theURL,winName,features) { //v2.0

        window.open(theURL,winName,features);
    }  

        var stmnLEFT1 = 1003; // ½ºÅ©·Ñ¸Þ´ºÀÇ ÁÂÃø À§Ä¡
        var stmnGAP11 = 145; // ÆäÀÌÁö Çì´õºÎºÐÀÇ ¿©¹é (80º¸´Ù À§·Î´Â ¿Ã¶ó°¡Áö ¾ÊÀ½)
        var stmnGAP21 = 0; // ½ºÅ©·Ñ½Ã ºê¶ó¿ìÀú »ó´Ü°ú ¾à°£ ¶ç¿ò. ÇÊ¿ä¾øÀ¸¸é 0À¸·Î ¼¼ÆÃ
        var stmnBASE1 = 100; // ½ºÅ©·Ñ¸Þ´º ÃÊ±â ½ÃÀÛÀ§Ä¡ (¾Æ¹«·¸°Ô³ª ÇØµµ »ó°üÀº ¾øÁö¸¸ stmnGAP1°ú ¾à°£ Â÷ÀÌ¸¦ ÁÖ´Â°Ô º¸±â ÁÁÀ½)
        var stmnActivateSpeed1 = 200; // ¿òÁ÷ÀÓÀ» °¨ÁöÇÏ´Â ¼Óµµ (¼ýÀÚ°¡ Å¬¼ö·Ï ´Ê°Ô ¾Ë¾ÆÂ÷¸²)
        var stmnScrollSpeed1 = 10; // ½ºÅ©·ÑµÇ´Â ¼Óµµ (Å¬¼ö·Ï ´Ê°Ô ¿òÁ÷ÀÓ)


        function RefreshStaticMenu()
        {
                var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;

                stmnStartPoint = parseInt(STATICMENU.style.top, 10);
                stmnEndPoint = document.body.scrollTop + stmnGAP2;
                if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1;

                if ( stmnStartPoint != stmnEndPoint ) {
                        stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 15 );
                        STATICMENU.style.top = parseInt(STATICMENU.style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount );
                        stmnRefreshTimer = stmnScrollSpeed;
                }
                                         else {
                        stmnRefreshTimer = stmnActivateSpeed;
                }

                setTimeout ("RefreshStaticMenu();", stmnRefreshTimer);
        }



        function InitializeStaticMenu_main()
        {
                STATICMENU.style.top = document.body.scrollTop + stmnBASE;
                RefreshStaticMenu();
                STATICMENU.style.left = stmnLEFT;
        }


//////////////////////////main end////////////////////////////////////



var Toggle =1;
function MStop()	{  Toggle =0;  from10.stop();	}
function MStart()	{  Toggle =1;  from10.start();	}
	
function MStop2()	{  Toggle =0;  from20.stop();	}
function MStart2()	{  Toggle =1;  from20.start();	}

var win1Open = null

function displayImage(picName, windowName, windowWidth, windowHeight){
return window.open(picName,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + (parseInt(windowWidth)+20) + ",height=" + (parseInt(windowHeight)+15)) 
}

function winClose(){
if(win1Open != null) win1Open.close() 
}

function doNothing(){}

function displayImage(picName, windowName, windowWidth, windowHeight){
var winHandle = window.open("" ,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + windowWidth + ",height=" + windowHeight)
if(winHandle != null){
var htmlString = "<html><head><title>::: Á¦50È¸ °æ±âµµÃ¼À°´ëÈ¸ °æ±âÀå ¹èÄ¡µµ :::</title></head>" 
htmlString += "<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>"
htmlString += "<a href=javascript:window.close()><img src=" + picName + " border=0 alt=´Ý±â></a>"
htmlString += "</body></html>"
winHandle.document.open()
winHandle.document.write(htmlString)
winHandle.document.close()
} 
if(winHandle != null) winHandle.focus()
return winHandle
}

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

function goto_select(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if ((frameobj = eval(targetstr)) != null)
       frameobj.location = sel.options[index].value;
     }
  }
}

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

var win1Open = null

function displayImage(picName, windowName, windowWidth, windowHeight){
return window.open(picName,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + (parseInt(windowWidth)+20) + ",height=" + (parseInt(windowHeight)+15)) 
}

function winClose(){
if(win1Open != null) win1Open.close() 
}

function doNothing(){}

function displayImage(picName, windowName, windowWidth, windowHeight){
var winHandle = window.open("" ,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + windowWidth + ",height=" + windowHeight)
if(winHandle != null){
var htmlString = "<html><head><title>::: ½º¸¶Æ® ¿µ¾î Ä·ÆÛ½º :::</title></head>" 
htmlString += "<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>"
htmlString += "<a href=javascript:window.close()><img src=" + picName + " border=0 alt=´Ý±â></a>"
htmlString += "</body></html>"
winHandle.document.open()
winHandle.document.write(htmlString)
winHandle.document.close()
} 
if(winHandle != null) winHandle.focus()
return winHandle
}

function OpenZipcode(pwd,z1,z2,ad,ad1) 
{
	var gpwd = (pwd) ? pwd : '/home';
	var url = gpwd+'/pack/zipsearch/zipcode.php?zip1='+z1+'&zip2='+z2+'&address='+ad+'&address1='+ad1;
	window.open(url,'zip_win','width=460,height=550,statusbar=no,scrollbars=yes,toolbar=no');
}

var c=false;

function hidden_ch () {
if ( c ) return true;
document.login_form.MB_ID.style.backgroundImage="";
c=true;
return true;
}

var c2=false;
function hidden_ch2 () {
if ( c2 ) return true;
document.login_form.MB_PW.style.backgroundImage="";
c2=true;
return true;
}

function pop_ready() {
	alert ("ÁØºñÁßÀÔ´Ï´Ù.");
}

// ¸Þ´º È®Àå ½ºÅ©¸³Æ® - 20060615 Ãß°¡ -> snwelfare ½ºÅ²¿¡¼­ »ç¿ë

var enablepersist="on" // ÄíÅ°¸¦ Àû¿ëÇÏ¿© À§Ä¡±â¾ï½ÃÅ°±â ¼³Á¤ (on/off)
var collapseprevious="no" // ÀÌÀü ¿­¾ú´ø Ç×¸ñ À¯Áö¿©ºÎ (yes/no)

var contractsymbol='- ' // Ãà¼Ò¹öÆ° ÀÌ¹ÌÁö·Î »ç¿ëÇÒ °æ¿ì <img src="whatever.gif"> Ã³·³ ¼³Á¤ÇØ ÁÝ´Ï´Ù
var expandsymbol='+ ' // È®Àå¹öÆ°


if (document.getElementById){
document.write('<style type="text/css">')
document.write('.switchcontent{display:none;}')
document.write('</style>')
}

function getElementbyClass(rootobj, classname){
var temparray=new Array()
var inc=0
var rootlength=rootobj.length
for (i=0; i<rootlength; i++){
if (rootobj[i].className==classname)
temparray[inc++]=rootobj[i]
}
return temparray
}

function sweeptoggle(ec){
var thestate=(ec=="expand")? "block" : "none"
var inc=0
while (ccollect[inc]){
ccollect[inc].style.display=thestate
inc++
}
revivestatus()
}


function contractcontent(omit){
var inc=0
while (ccollect[inc]){
if (ccollect[inc].id!=omit)
ccollect[inc].style.display="none"
inc++
}
}

function expandcontent(curobj, cid){
var spantags=curobj.getElementsByTagName("SPAN")
var showstateobj=getElementbyClass(spantags, "showstate")
if (ccollect.length>0){
if (collapseprevious=="yes")
contractcontent(cid)
document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "none"
if (showstateobj.length>0){ 
if (collapseprevious=="no")
showstateobj[0].innerHTML=(document.getElementById(cid).style.display=="block")? contractsymbol : expandsymbol
else
revivestatus()
}
}
}

function revivecontent(){
contractcontent("omitnothing")
selectedItem=getselectedItem()
selectedComponents=selectedItem.split("|")
for (i=0; i<selectedComponents.length-1; i++)
document.getElementById(selectedComponents[i]).style.display="block"
}

function revivestatus(){
var inc=0
while (statecollect[inc]){
if (ccollect[inc].style.display=="block")
statecollect[inc].innerHTML=contractsymbol
else
statecollect[inc].innerHTML=expandsymbol
inc++
}
}

function get_cookie(Name) { 
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { 
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function getselectedItem(){
if (get_cookie(window.location.pathname) != ""){
selectedItem=get_cookie(window.location.pathname)
return selectedItem
}
else
return ""
}

function saveswitchstate(){
var inc=0, selectedItem=""
while (ccollect[inc]){
if (ccollect[inc].style.display=="block")
selectedItem+=ccollect[inc].id+"|"
inc++
}

document.cookie=window.location.pathname+"="+selectedItem
}

function do_onload(){
uniqueidn=window.location.pathname+"firsttimeload"
var alltags=document.all? document.all : document.getElementsByTagName("*")
ccollect=getElementbyClass(alltags, "switchcontent")
statecollect=getElementbyClass(alltags, "showstate")
if (enablepersist=="on" && ccollect.length>0){
document.cookie=(get_cookie(uniqueidn)=="")? uniqueidn+"=1" : uniqueidn+"=0" 
firsttimeload=(get_cookie(uniqueidn)==1)? 1 : 0 
if (!firsttimeload)
revivecontent()
}
if (ccollect.length>0 && statecollect.length>0)
revivestatus()

if ( typeof(popup_window_zunu) == 'function' )
{ popup_window_zunu(); 
}
}

if (window.addEventListener)
window.addEventListener("load", do_onload, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onload)
else if (document.getElementById)
window.onload=do_onload

if (enablepersist=="on" && document.getElementById)
window.onunload=saveswitchstate

// ÄÜÅÙÃ÷ È®Àå ½ºÅ©¸³Æ® 2

    var previd = null;

    function displaySub(subID)
	{
        if (previd != null)
		{
			if (previd != subID)
			{
			    previd.style.display = "none";
			}
		}

		if (subID.style.display == "none")
		{
			subID.style.display = "block";
		}
		else
		{
			subID.style.display = "none";
		}

		previd = subID;
        //titleID.style.bold = true;

	//	ifHeight();
}

//////////////////////////////////////
// IE Embed patch
//
// @author iezn@iezn.com
// @homepage http://iezn.com
// @create date 2006.04.19
// @last modify 2006.04.25
// @version 0.41
// ¹èÆ÷½Ã À§³»¿ëÀ» Æ÷ÇÔÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù
//////////////////////////////////////
/**
* embed ÆÐÄ¡ Àû¿ë ÄÁÅ×ÀÌ³Ê
* nullÀÎ°æ¿ì document °ªÀ» ±âº»À¸·Î ÇÕ´Ï´Ù
* id°ªÀ» ¼³Á¤ÇÑ°æ¿ì ¼³Á¤¹üÀ§ ³»¿¡¸¸ Àû¿ëÀÌ µË´Ï´Ù
* 
* º»¹®ÀÌ³ª ÀÏºÎ ³ëµå¿¡¸¸ Àû¿ëÇÒ°æ¿ì ÇØ´ç ³ëµåÀÇ id °ªÀ» ÀÔ·ÂÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù
* ¿¹)
* var __embed_target_id = "contents";
* ·Î Ã³¸®ÇÑ°æ¿ì body ³»¿¡ <ÅÂ±× id="contents">ÇÃ·¡½¬,µ¿¿µ»ó...</ÅÂ±×>
* ¾È¿¡ ³»¿ë¿¡¸¸ ÆÐÄ¡°¡ Àû¿ëµË´Ï´Ù
*/
if(typeof(__embed_target_id)=='undefined'){
	var __embed_target_id = null;
}

/**
* embed ÆÐÄ¡¸¦ Àû¿ëÇÒ ÅÂ±×¸¦ ¼³Á¤ÇÕ´Ï´Ù
* ±âº»°ªÀº object,eembed,appelt ÅÂ±×ÀÔ´Ï´Ù
* false °ªÀÎ°æ¿ì ÆÐÄ¡¿¡¼­ Á¦¿ÜµË´Ï´Ù
*/
if(typeof(__embed_tags)=='undefined'){
	var __embed_tags = {object:true,embed:true,applet:false}
}

/**
* ÇÃ·¡½¬ÆÄÀÏÁß flashvars ¸¦ »ç¿ëÇÒ°æ¿ì ÇØ´ç ÇÃ·¡½¬ÀÇ ¿ÀºêÁ§Æ®¾ÆÀÌµð:true °ªÀ¸·Î object¸¦ µî·ÏÇØ ÁÖ¼¼¿ä
*/
var __flash_force_objs = {};

if(document.attachEvent){
	document.write('<style type="text/css">');
	document.write('object,embed{display:none;}');
	document.write('</style>');
	document.attachEvent('onreadystatechange',
		function (){
			
			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';					
					var html = obj.outerHTML;
					var classid = obj.classid.toLowerCase();
					if(classid=='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' && typeof(__flash_force_objs[obj.id])=='undefined'){//flash ÀÎ°æ¿ì
						obj.insertAdjacentHTML('beforeBegin',html);
						obj.parentNode.removeChild(obj);
					}else{						
						//º¯°æÇÏ°íÀÚÇÏ´Â ActiveX classid ¸¦ Ãß°¡ÇÏ½Ã±â ¹Ù¶ø´Ï´Ù
						if(classid=='clsid:6bf52a52-394a-11d3-b153-00c04f79faa6' || //media 7
						classid=='clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95' || //6.4
						classid=='clsid:6bf52a52-394a-11d3-b153-00c04f79faa6' ||
						classid=='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'	
						){//media player 10
							embed_pos = html.indexOf('embed');
							if(embed_pos!=-1){//embed °¡ Á¸ÀçÇÏ´Â°æ¿ì
								var embed = '<'+html.substr(embed_pos);
								embed = embed.substr(0,embed.length-9);
								obj.insertAdjacentHTML('beforeBegin',embed);
								obj.parentNode.removeChild(obj);
							}else{
								//object·Î¸¸ µÇ¾î ÀÖ´Â°æ¿ì µ¿¿µ»ó ºÎºÐ¸¸ ÆÐÄ¡ÇÑ´Ù
								var embed = document.createElement('embed');
								var total = obj.childNodes.length;
								embed.setAttribute('autostart',0);
								if(obj.width){
									embed.setAttribute('width',obj.width);
								}
								if(obj.height){
									embed.setAttribute('height',obj.height);
								}
								for(var k=0;k<total;k++){
									n = obj.childNodes.item(k).getAttribute("name");
									v = obj.childNodes.item(k).getAttribute("value");
									if(n=='URL' || n=='url' || n=='FileName'){
										n = 'src';
									}
									embed.setAttribute(n,v);
								}
								if(embed.getAttribute('src')){
									embed.style.display = 'inline';
									obj.parentNode.replaceChild(embed,obj);
								}else{
									//ÆÄÀÏ¿¢¼¼½º object°¡ ¾Æ´Ñ°æ¿ì´Â À¯ÁöÇÑ´Ù								
								}
							}
						}
					}
				}

				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])
					}
				}
			}
		}
	);
}

// ÇÃ·¡½¬ ÇÔ¼ö
	function flash_movie(src, ids, width, height, wmode)
    {
        var wh = "";
        if (parseInt(width) && parseInt(height)) 
            wh = " width='"+width+"' height='"+height+"' ";
        return "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' "+wh+" id="+ids+"><param name=wmode value="+wmode+"><param name=movie value="+src+"><param name=quality value=high><embed src="+src+" quality=high wmode="+wmode+" type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash' "+wh+"></embed></object>";
    }

	function flash_movie2(src, ids, width, height, wmode, var1)
    {
        var wh = "";
        if (parseInt(width) && parseInt(height)) 
            wh = " width='"+width+"' height='"+height+"' ";
        return "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' "+wh+" id="+ids+"><param name=wmode value="+wmode+"><param name=movie value="+src+"><param name=FlashVars value="+var1+"><param name=quality value=high><embed src="+src+" quality=high wmode="+wmode+" FlashVars="+var1+" type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash' "+wh+"></embed></object>";
    }

    function obj_movie(src, ids, width, height, autostart)
    {
        var wh = "";
        if (parseInt(width) && parseInt(height)) 
            wh = " width='"+width+"' height='"+height+"' ";
        if (!autostart) autostart = false;
        return "<embed src='"+src+"' "+wh+" autostart='"+autostart+"'></embed>";
    }

    function doc_write(cont)
    {
        document.write(cont);
    }

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