//flash import

function swfprint(furl,fwidth,fheight,transoption)	{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ fwidth +'" height="' + fheight +'" align="middle">');
	document.write('<param name="movie" value="'+ furl +'"/>');
	if (transoption == "t")	{
		document.write('<param name="wmode" value="transparent"/>');
	} else if	(transoption == "o")	{
		document.write('<param name="wmode" value="opaque"/>');
	}
	document.write('<!-- Hixie method -->');
	document.write('<!--[if !IE]> <-->');
	document.write('<object type="application/x-shockwave-flash" data="'+ furl +'" width="'+ fwidth +'" height="' + fheight +'"');
	if (transoption == "t")	{
		document.write(' wmode="transparent"');
	} else if	(transoption == "o")	{
		document.write(' wmode="opaque"');
	}
	document.write('></object>');
	document.write('<!--> <![endif]-->');
	document.write('</object>');
}








//blur

function allblur() {
                   for (i = 0; i < document.links.length; i++)
                   document.links[i].onfocus = document.links[i].blur;
                   }


//rollover image
<!--
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_preloadImages() { //v3.0
  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 MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

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



/*layer
<!--
var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");
function CheckUIElements(){
      var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;

      if ( bNetscape4plus ) { 
              yMenuFrom   = document["divMenu"].top;
              yMenuTo     = top.pageYOffset + 270; //³Ý½ºÄÉÀÌÇÁ ÁÂÇ¥
      }
      else if ( bExplorer4plus ) {
              yMenuFrom   = parseInt (divMenu.style.top, 10);
              yMenuTo     = document.body.scrollTop + 270; //ÀÍ½ºÇÃ·Î·¯ ÁÂÇ¥
      }

      timeoutNextCheck = 500;

      if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) {
              setTimeout ("CheckUIElements()", timeoutNextCheck);
              return;
      }

      if ( yButtonFrom != yButtonTo ) {
              yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 );
              if ( yButtonTo < yButtonFrom )
                      yOffset = -yOffset;

              if ( bNetscape4plus )
                      document["divLinkButton"].top += yOffset;
              else if ( bExplorer4plus )
                      divLinkButton.style.top = parseInt (divLinkButton.style.top, 10) + yOffset;

              timeoutNextCheck = 10;
      }
      if ( yMenuFrom != yMenuTo ) {
              yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
              if ( yMenuTo < yMenuFrom )
                      yOffset = -yOffset;

              if ( bNetscape4plus )
                      document["divMenu"].top += yOffset;
              else if ( bExplorer4plus )
                      divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;

              timeoutNextCheck = 10;
      }

      setTimeout ("CheckUIElements()", timeoutNextCheck);
}

function OnLoad()
{
      var y;
      if ( top.frames.length )
      if ( bNetscape4plus ) {
              document["divMenu"].top = top.pageYOffset + 30; //³Ý½ºÄÉÀÌÇÁ
              document["divMenu"].visibility = "visible";
      }
      else if ( bExplorer4plus ) {
              divMenu.style.top = document.body.scrollTop + 30; //ÀÍ½ºÇÃ·Î·¯
              divMenu.style.visibility = "visible";
      }
      CheckUIElements();
      return true;
}
OnLoad();
*/




// flash URL - intro

/*
    var mapURL = new Array();
    var maxIndex = 30;
	
    mapURL[1]  = "http://e-loom.org"; 
    mapURL[2]  = "http://e-loom.org/new_home/sub/sitemap.htm"; 
    mapURL[3]  = "http://e-loom.org/new_home/bbs/contactus.php"; 
    mapURL[4]  = "http://e-loom.org/new_home/sub/intro.htm";
    mapURL[5]  = "http://film.yonggamhan.org/guide/guide.htm";
    mapURL[6]  = "http://film.yonggamhan.org/guide/apply.htm";
    mapURL[7]  = "http://film.yonggamhan.org/change/team.htm";
    mapURL[8]  = "http://yonggamhan.org/bbs/zboard.php?id=project";
    mapURL[9]  = "http://yonggamhan.org/bbs/zboard.php?id=tmv";
    mapURL[10]  = "http://film.yonggamhan.org/online/on_prize.htm";
    mapURL[11]  = "http://film.yonggamhan.org/online/special_intro.htm"; 
    mapURL[12]  = "http://film.yonggamhan.org/online/now_intro.htm"; 
    mapURL[13]  = "http://yonggamhan.org/bbs/zboard.php?id=film_news"; 
    mapURL[14]  = "http://yonggamhan.org/bbs/zboard.php?id=film_qna";
    mapURL[15]  = "http://yonggamhan.org/bbs/zboard.php?id=film_free";
    mapURL[16]  = "http://yonggamhan.org/bbs/zboard.php?id=film_data";
    mapURL[17]  = "http://yonggamhan.org/bbs/zboard.php?id=film_photo";
    mapURL[18]  = "http://film.yonggamhan.org/online/online.htm";
    mapURL[19]  = "http://film.yonggamhan.org/online/online.htm";
    mapURL[20]  = "http://e-loom.org/e_loom/sub/intro.htm";
    mapURL[21]  = "http://e-loom.org/e_loom/sub/intro.htm";
    mapURL[22]  = "problem/p3.htm";
    mapURL[23]  = "problem/p4.htm";
    mapURL[24]  = "problem/p5.htm";
    mapURL[25]  = "problem/p1.htm";
    mapURL[26]  = "#";
   
    function goURL( pageNum )
    {    
    window.location = mapURL[pageNum];
    }
    
*/    

// flash URL - top menu


    var openURL = new Array();
    var maxIndex = 70;
	
    openURL[1]  = "http://e-loom.org"; 
    openURL[2]  = "http://e-loom.org/new_home/sub/sitemap.htm"; 
    openURL[3]  = "http://e-loom.org/new_home/bbs/contactus.php"; 
    openURL[4]  = "http://e-loom.org/new_home/sub/intro.htm";
    openURL[5]  = "http://e-loom.org/new_home/bbs/notice.php";
    openURL[6]  = "/new_home/bbs/online.php";
    openURL[7]  = "http://e-loom.org/new_home/bbs/counsel.php";
    openURL[8]  = "http://e-loom.org/new_home/bbs/talkp.php";
    openURL[9]  = "/new_home/bbs/basket.php";
    openURL[10]  = "http://e-loom.org/new_home/bbs/pdsnews.php";
    openURL[11]  = "/new_home/bbs/data.php"; 
    openURL[12]  = "http://e-loom.org/new_home/sub/problem.htm"; 
    openURL[13]  = "http://e-loom.org/new_home/sub/prejudice.htm"; 
    openURL[14]  = "http://e-loom.org/new_home/support/huwon.htm";
    openURL[15]  = "#";
    openURL[16]  = "#";
    openURL[17]  = "#";
    openURL[18]  = "http://e-loom.org/new_home/sub/problem1.htm";
    openURL[19]  = "http://e-loom.org/new_home/sub/problem2.htm";
    openURL[20]  = "http://e-loom.org/new_home/sub/problem3.htm";
    openURL[21]  = "http://e-loom.org/new_home/sub/problem4.htm";
    openURL[22]  = "http://e-loom.org/new_home/sub/prejudice1.htm";
    openURL[23]  = "http://e-loom.org/new_home/sub/prejudice2.htm";
    openURL[24]  = "http://e-loom.org/new_home/sub/prejudice3.htm";
    openURL[25]  = "http://e-loom.org/new_home/sub/prejudice4.htm";
    openURL[26]  = "/new_home/sub/map_seoul.htm";
    openURL[27]  = "#";
    openURL[28]  = "#";
    openURL[29]  = "#";
    //³» Áö¿ª »ó´ã¼Ò
    openURL[30]  = "/new_home/sub/map_seoul.htm";
    //¼­¿ï
    openURL[31]  = "/new_home/sub/map_seoul.htm"; 
    //ºÎ»ê
    openURL[32]  = "/new_home/sub/map_pusan.htm";
    //ÀÎÃµ
    openURL[33]  = "/new_home/sub/map_incheon.htm";
    //´ë±¸
    openURL[34]  = "/new_home/sub/map_daegu.htm";
    //±¤ÁÖ
    openURL[35]  = "/new_home/sub/map_kwangju.htm";
    //´ëÀü
    openURL[36]  = "/new_home/sub/map_daejun.htm";
    //¿ï»ê
    openURL[37]  = "/new_home/sub/map_woolsan.htm";
    //°æ±â
    openURL[38]  = "/new_home/sub/map_kyunggi.htm";
    //ÃáÃµ
    openURL[39]  = "/new_home/sub/map_chunchun.htm";
    //ÃæºÏ
    openURL[40]  = "/new_home/sub/map_chungbuk.htm";
    //Ãæ³²
    openURL[41]  = "/new_home/sub/map_chungnam.htm";
    //ÀüºÏ
    openURL[42]  = "/new_home/sub/map_junbuk.htm";
    //Àü³²
    openURL[43]  = "/new_home/sub/map_junnam.htm";
    //°æºÏ
    openURL[44]  = "/new_home/sub/map_kyungbuk.htm";
    //°æ³²
    openURL[45]  = "/new_home/sub/map_kyungnam.htm";
    //Á¦ÁÖ
    openURL[46]  = "/new_home/sub/map_jeju.htm";
    openURL[47]  = "#";
    openURL[48]  = "#";
    openURL[49]  = "#";
    openURL[50]  = "#";
    openURL[51]  = "http://e-loom.org/bbs/zboard.php?category=1&id=link2&page=1&page_num=20&sn=off&ss=on&sc=on&keyword=&select_arrange=headnum&desc=asc";
    openURL[52]  = "http://e-loom.org/new_home/bbs/login.php";
    openURL[53]  = "http://e-loom.org/new_home/sub/sitemap.htm";
    openURL[54]  = "http://e-loom.org/new_home/bbs/contactus.php";
    openURL[55]  = "/new_home/bbs/guest.php";
    openURL[56]  = "/login/logout.php";
    openURL[57]  = "/login/info.php";
    openURL[58]  = "/login/logout.php";
    openURL[59]  = "/login/logout.php";
    
   
    function goURL( pageNum )
    {    
    window.location = openURL[pageNum];
    }




/*
on (release) {
	getURL("javascript:goURL(1)", "_self");
}
*/


    
// flash popup

function findid() { 
window.open('/new_home/find/find_id.htm','','width=500,height=350,scrollbars=no,toolbar=no'); 
}

function findpw() { 
window.open('/new_home/find/find_pass.htm','','width=500,height=350,scrollbars=no,toolbar=no'); 
}


function info() { 
window.open('/new_home/bbs/info.php','','width=500,height=350,scrollbars=no,toolbar=no'); 
}

/*
on (release) {
	getURL("javascript:new1();");
}
*/


function bopen(){
	window.open('/new_home/bopen.htm','','left=0, top=0, width=400,height=293,toolbar=no,status=no,directories=no,scrollbars=no,location=no,resizable=no,menubar=no')
}


function CopyToClipboard() {
    obj = null;
    if(document.getElementById)
        obj=document.getElementById('the_code1');
    //if (obj) { window.clipboardData.setData('Text', obj.innerText); }
    if (obj) { window.clipboardData('Text'); }
    alert('º¹»çµÇ¾ú½À´Ï´Ù.\n\n¿øÇÏ´Â ºÎºÐ¿¡¼­ CTRL + V·Î ºÙÇô³Ö±â ÇÏ½Ã¸é µË´Ï´Ù.');
}




function copy_clip() { 
	url = "<a href='http://www.e-loom.org/' target=blank><img src='http://www.e-loom.org/eloom_banner.gif'></a>"; 
	clipboardData.setData("Text", url); 
	alert("Å¬¸³º¸µå·Î ¼Ò½º°¡ º¹»çµÇ¾ú½À´Ï´Ù. \nCtrl + V ·Î ºÙ¿©³Ö±â ÇÏ¼¼¿ä"); 
	}


function allblur() {
                   for (i = 0; i < document.links.length; i++)
                   document.links[i].onfocus = document.links[i].blur;
                   }