// ¸¶¿ì½º ¿À¹ö

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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

function ft_DivView(id){
	document.getElementById("mainNotice").style.display = "none";
	document.getElementById("mainEvent").style.display = "none";
	document.getElementById("mainPress").style.display = "none";
	document.getElementById(id).style.display = "block";
}


//ÀÚµ¿ÀÌ¹ÌÁö»çÀÌÁî Á¶Àý ÆË¾÷
function openWindow(file) {
window.open (file,"NewWindow","left=100, top=100, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, width=268, height=337");
}

function openwin1()
 {
 window.open('/vol02/etc/popup01.html','_blank','toolbar=0, menubar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, width=520, height=300, top=100, left=100');
 }

//Á¡¼±¾øÀÌ



//ÇÃ·¡½ÃºÎ¸§
// openflash(°¡·Î, ¼¼·Î, ÆÄÀÏÁÖ¼Ò, º¯¼ö)

function openflash(w,h,src,pm){

    var strFlashTag = new String();  
    if (navigator.appName.indexOf("Microsoft") != -1)    {
        strFlashTag += '<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=version=8,0,0,0" width="' + w + '" height="' + h + '">';
        strFlashTag += '<param name="movie" value="' + src + '" />';      
        strFlashTag += '<param name="FlashVars" value="pm=' + pm + '" />';
        strFlashTag += '<param name="quality" value="high"/>';
        strFlashTag += '<param name="menu" value="false" />';
        strFlashTag += '<param name="wmode" value="transparent" />';
        strFlashTag += '<param name="allowScriptAccess" value="sameDomain" />';
        strFlashTag += '</object>';
    }else{
        strFlashTag += '<embed src="' + src + '" ';
        strFlashTag += 'quality="high" ';
        strFlashTag += 'width="' + w + '" ';
        strFlashTag += 'height="' + h + '" ';
        strFlashTag += 'menu="false" ';
        strFlashTag += 'wmode="transparent" ';
        strFlashTag += 'FlashVars="pm=' + pm + '" ';
        strFlashTag += 'allowScriptAccess="sameDomain" ';
        strFlashTag += '</embed>';
    }
// document.write(strFlashTag);
   return strFlashTag;
}

function openflash2(w,h,src,val){

    var strFlashTag = new String();  
    if (navigator.appName.indexOf("Microsoft") != -1)    {
        strFlashTag += '<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=version=8,0,0,0" width="' + w + '" height="' + h + '">';
        strFlashTag += '<param name="movie" value="' + src + '" />';      
        strFlashTag += '<param name="FlashVars" value="' + val + '" />';
        strFlashTag += '<param name="quality" value="high"/>';
        strFlashTag += '<param name="menu" value="false" />';
        strFlashTag += '<param name="wmode" value="transparent" />';
        strFlashTag += '</object>';
    }else{
        strFlashTag += '<embed src="' + src + '" ';
        strFlashTag += 'quality="high" ';
        strFlashTag += 'width="' + w + '" ';
        strFlashTag += 'height="' + h + '" ';
        strFlashTag += 'menu="false" ';
        strFlashTag += 'wmode="transparent" ';
        strFlashTag += 'FlashVars="' + val + '" ';
        strFlashTag += '</embed>';
    }
// document.write(strFlashTag);
   return strFlashTag;
}


function writeflash(src){
    document.write(src);
}


//ÇÃ·¡½ÃºÎ¸§ ³¡

function TextChange (target,type)
{
       if ( target.value == target.defaultValue && type==0) target.value = "";
       if ( !target.value && type==1) target.value = target.defaultValue;
}


function SetComma(number)
{
    number = '' + number;
    if (number.length > 3) {

    var mod = number.length % 3;
    var output = (mod > 0 ? (number.substring(0,mod)) : '');
        for (i=0 ; i < Math.floor(number.length / 3); i++) {
        if ((mod == 0) && (i == 0))
            output += number.substring(mod+ 3 * i, mod + 3 * i + 3);
        else
            output+= ',' + number.substring(mod + 3 * i, mod + 3 * i + 3);
        }
        return (output);
    }
    else return number;
}

<!--
 SiteUrl = '';



url_list = new Array();
newwin_list = new Array();
window_list = new Array()
fullwin_list = new Array()

url_alert = new Array();

// ÇÃ·¹½ÃÆÄÀÏ¿¡¼­ ¸µÅ©°É¶§¿¡´Â
// javascript:go_site(1);
// ÀÌ·±½ÄÀ¸·Î ¸µÅ©°É¸é µË´Ï´Ù.
// ¹øÈ£´Â url_list[¹øÈ£]°ªÀ» ³ÖÀ¸¸é µË´Ï´Ù.




//##############################   ÆäÀÌÁö Á¤ÀÇ   ###############################

url_list[1] = '../main/main.jsp';    // home

// È¨/»çÀÌÆ®¸ÊÅ¾¸Þ´º
url_list[7] = '../sitemap/sitemap_01.jsp?pm=71'; //»çÀÌÆ®¸Ê
url_list[8] = 'mailto:jylee@nfrdi.go.kr'; //¸ÞÀÏ

//¹Ù´Ù¸ñÀåÀÌ¶õ
url_list[111] = SiteUrl + '../company/company_01.jsp?pm=11'; //
url_list[112] = SiteUrl + '../company/company_02.jsp?pm=12'; //
url_list[1122] = SiteUrl + '../company/company_02_2.jsp?pm=122'; //
url_list[1123] = SiteUrl + '../company/company_02_3.jsp?pm=123'; //
url_list[113] = SiteUrl + '../company/company_03.jsp?pm=13'; //
url_list[1132] = SiteUrl + '../company/company_03_2.jsp?pm=132'; //
url_list[1133] = SiteUrl + '../company/company_03_3.jsp?pm=133'; //
url_list[114] = SiteUrl + '../company/company_04.jsp?pm=14'; //
url_list[115] = SiteUrl + '../company/company_05.jsp?pm=15'; //
url_list[1152] = SiteUrl + '../company/company_05_2.jsp?pm=152'; //
url_list[1153] = SiteUrl + '../company/company_05_3.jsp?pm=153'; //
url_list[116] = SiteUrl + '../company/company_06.jsp?pm=16'; //
url_list[117] = SiteUrl + '../company/company_07.jsp?pm=17'; //
url_list[118] = SiteUrl + '../company/company_08.jsp?pm=18'; //
url_list[1182] = SiteUrl + '../company/company_08_2.jsp?pm=182'; //
url_list[1183] = SiteUrl + '../company/company_08_view.jsp?pm=183'; //
url_list[1184] = SiteUrl + '../company/company_08_2_view.jsp?pm=184'; //

url_list[119] = SiteUrl + '../company/company_09.jsp?pm=19'; //



//¹Ù´Ù¸ñÀåº¸°í¼­
url_list[211] = SiteUrl + '../report/report_01.jsp?pm=21'; //
url_list[212] = SiteUrl + '../report/report_02.jsp?pm=22'; //


//ÀÎ°ø¾îÃÊ,Á¾¹¦¹æ·ù
url_list[311] = SiteUrl + '../fishing/fishing_01.jsp?pm=31'; //
url_list[312] = SiteUrl + '../fishing/fishing_02.jsp?pm=32'; //


//°¶·¯¸®
url_list[411] = SiteUrl + '../gallery/gallery_01.jsp?pm=41';
url_list[4112] = SiteUrl + '../gallery/gallery_01_view.jsp?pm=412';
url_list[4113] = SiteUrl + '../gallery/gallery_01_write.jsp?pm=413';
url_list[412] = SiteUrl + '../gallery/gallery_02.jsp?pm=42';
url_list[4122] = SiteUrl + '../gallery/gallery_02_view.jsp?pm=422';


//°Ë»ö
url_list[511] = SiteUrl + '../search/search_01.jsp?pm=51';
url_list[512] = SiteUrl + '../search/search_02.jsp?pm=52';
url_list[5122] = SiteUrl + '../search/search_02_2.jsp?pm=522';
url_list[513] = SiteUrl + '../search/search_03.jsp?pm=53';


//Ä¿¹Â´ÏÆ¼
url_list[611] = SiteUrl + '../commu/commu_01.jsp?pm=61';
url_list[6112] = SiteUrl + '../commu/commu_01_view.jsp?pm=612';
url_list[6113] = SiteUrl + '../commu/commu_01_wirte.jsp?pm=613';
url_list[6114] = SiteUrl + '../commu/commu_01_confirm.jsp?pm=614';
url_list[6115] = SiteUrl + '../commu/commu_01_modify.jsp?pm=615';
url_list[6116] = SiteUrl + '../commu/commu_01_delete.jsp?pm=616';
url_list[612] = SiteUrl + '../commu/commu_02.jsp?pm=62';     //
url_list[613] = SiteUrl + '../commu/commu_03.jsp?pm=63';                         //
url_list[614] = SiteUrl + '../commu/commu_04.jsp?pm=64';     //
url_list[615] = SiteUrl + '../commu/commu_05.jsp?pm=65';
url_list[6152] = SiteUrl + '../commu/commu_05_view.jsp?pm=652';
url_list[616] = SiteUrl + '../commu/commu_06.jsp?pm=66';
url_list[6162] = SiteUrl + '../commu/commu_06_view.jsp?pm=662';
url_list[617] = SiteUrl + '../commu/commu_01_view.jsp?pm=67'; //



// ¸Þ´º³¡



// »õÃ¢ÀÎ ¸Þ´º
//newwin_list[91] = 'true';



// À©µµ¿ì·Î ¿­¸®´Â°æ¿ì
//  window_list[56] = 'width=780 height=600 resizable=no';






//ÀüÃ¼È­¸éÀÎ ¸Þ´º
//fullwin_list[10] = 'true'



//##############################   ÆäÀÌÁö Á¤ÀÇ   ###############################










// »õÃ¢ÀÎ ¸Þ´º
//newwin_list[211] = 'true';


// À©µµ¿ì·Î ¿­¸®´Â°æ¿ì
//window_list[17] = 'width=550 height=450 resizable=no';

//ÀüÃ¼È­¸éÀÎ ¸Þ´º
//fullwin_list[10] = 'true'





function go_site(num)
{
  if(url_list[num])
  {
// º»Ã¢À¸·Î ÀÌµ¿ÇÏ´Â °æ¿ì
    if(newwin_list[num] != 'true' && fullwin_list[num] != 'true' && (window_list[num] == '' || window_list[num] == null))
    {
        location=url_list[num];
    }

// À©µµ¿ì Ã¢À¸·Î ¿­¸®´Â°æ¿ì
    if(window_list[num] != '' && window_list[num] != null)
    {
      window.open(url_list[num], 'new_win', window_list[num]);
    }


// ÀüÃ¼Ã¢À¸·Î ¿­¸®´Â °æ¿ì
    if(fullwin_list[num] == 'true')
    {
      window.open(url_list[num], 'new_win', 'width=1024 height=724 resizable=yes');
    }


// »õÃ¢À¸·Î ¿­¸®´Â°æ¿ì
    if(newwin_list[num] == 'true')
    {
      window.open(url_list[num], '_blank', 'directories=yes, titlebar=yes, toolbar=yes, menubar=yes, statusbar=yes, scrollbars=yes, resizable=yes, location=yes, status=yes');
    }
  }else if(url_alert[num]) {        // Alert Ã¢ ¶ç¿ï¶§
      //alert(url_alert[num]);
      window.alert("ÁØºñÁßÀÔ´Ï´Ù.");
  }
}


function namosw_goto_byselect(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 (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}



function namosw_goto_byselect(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 (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}


var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";

function getRef(id) {
    if (isDOM) return document.getElementById(id);
    if (isIE4) return document.all[id];
    if (isNS4) return document.layers[id];
}

function getSty(id) {
    x = getRef(id);
    return (isNS4 ? getRef(id) : getRef(id).style);
}

var scrollerHeight = 88;
var puaseBetweenImages = 3000;
var imageIdx = 0;

function moveRightEdge() {
    var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

    if (isNS4) {
        yMenuFrom   = divMenu.top;
        yMenuTo     = windows.pageYOffset + 58;   // À§ÂÊ À§Ä¡
    } else if (isDOM) {
        yMenuFrom   = parseInt (divMenu.style.top, 10);
        yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 58; // À§ÂÊ À§Ä¡
    }
    timeoutNextCheck = 253;

    if (yMenuFrom != yMenuTo) {
        yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
        if (yMenuTo < yMenuFrom)
            yOffset = -yOffset;
        if (isNS4)
            divMenu.top += yOffset;
        else if (isDOM)
            divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
            timeoutNextCheck = 10;
    }
    setTimeout ("moveRightEdge()", timeoutNextCheck);
}






function sbar(st) {
    st.style.backgroundColor = '#F6F5F5';
}

function cbar(st) {
    st.style.backgroundColor = '';
}


//-->

