  var Toggle =1;

  function DWtop(chk) {
    Toggle = 0;
    switch(chk) {
          case 1: pf.stop(); break;
          case 2: pf.stop(); break;
    }
  }

  function DWstart(chk) {
    Toggle = 1;
    switch(chk) {
          case 1: pf.start(); break;
          case 2: pf.start(); break;
    }
  }
// file download script start --------------------------------------------------
function file_download(download_pg, file_code){
  url = download_pg+"?code="+file_code;
  window.open(url,'download','left=100,top=100,width=250,height=150,scrollbars=yes');
}
// file download script end ----------------------------------------------------

function init_ctg(show_code){
  var obj = document.body.all;
  var info;

  for(var i = 0; i < obj.length; i++){
    if(obj[i].nodeName == "SPAN")
      if(obj[i].id != show_code) obj[i].style.visibility = "hidden";
  }
}

function open_ctg() {
  var i,p,v,obj,args=open_ctg.arguments;
  var obj2 = document.body.all;

  for (i=0; i<(args.length-2); i+=3){
    if ((obj=MM_findObj(args[i]))!=null) {
      v=args[i+2];
      if(obj.style){
        obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v;
      }
      obj.visibility=v;
    }
  }
}

// È®´ëº¸±â
function zoom_view(zoom_url, filename){
  url = zoom_url+"?code="+filename;
  window.open(url,'zoom','left=100,top=100,width=250,height=150,scrollbars=yes');
}

// »óÅÂ¹Ù Ãâ·Â °ü·Ã ½ºÅ©¸³Æ®
function statusbar_msg(msg){
  self.status=msg;
}

// ·Ñ¿À¹ö °ü·Ã ½ºÅ©¸³Æ®
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 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_showHideLayers() { //v6.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) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

//°ü¸®ÀÚ(È¸¿ø°ü¸® Á¤º¸Ã¢)
function setPointer(theRow, theAction, theDefaultColor, thePointerColor, theMarkColor){
    var theCells = null;

    // 1. Pointer and mark feature are disabled or the browser can't get the
    //    row -> exits
    if ((thePointerColor == '' && theMarkColor == '')
        || typeof(theRow.style) == 'undefined') {
        return false;
    }

    // 2. Gets the current row and exits if the browser can't get it
    if (typeof(document.getElementsByTagName) != 'undefined') {
        theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        theCells = theRow.cells;
    }
    else {
        return false;
    }

    // 3. Gets the current color...
    var rowCellsCnt  = theCells.length;
    var domDetect    = null;
    var currentColor = null;
    var newColor     = null;
    // 3.1 ... with DOM compatible browsers except Opera that does not return
    //         valid values with "getAttribute"
    if (typeof(window.opera) == 'undefined'
        && typeof(theCells[0].getAttribute) != 'undefined') {
        currentColor = theCells[0].getAttribute('bgcolor');
        domDetect    = true;
    }
    // 3.2 ... with other browsers
    else {
        currentColor = theCells[0].style.backgroundColor;
        domDetect    = false;
    } // end 3

    // 4. Defines the new color
    // 4.1 Current color is the default one
    if (currentColor == ''
        || currentColor.toLowerCase() == theDefaultColor.toLowerCase()) {
        if (theAction == 'over' && thePointerColor != '') {
            newColor = thePointerColor;
        }
        else if (theAction == 'click' && theMarkColor != '') {
            newColor = theMarkColor;
        }
    }
    // 4.1.2 Current color is the pointer one
    else if (currentColor.toLowerCase() == thePointerColor.toLowerCase()) {
        if (theAction == 'out') {
            newColor = theDefaultColor;
        }
        else if (theAction == 'click' && theMarkColor != '') {
            newColor = theMarkColor;
        }
    }
    // 4.1.3 Current color is the marker one
    else if (currentColor.toLowerCase() == theMarkColor.toLowerCase()) {
        if (theAction == 'click') {
            newColor = (thePointerColor != '')
                     ? thePointerColor
                     : theDefaultColor;
        }
    } // end 4

    // 5. Sets the new color...
    if (newColor) {
        var c = null;
        // 5.1 ... with DOM compatible browsers except Opera
        if (domDetect) {
            for (c = 0; c < rowCellsCnt; c++) {
                theCells[c].setAttribute('bgcolor', newColor, 0);
            } // end for
        }
        // 5.2 ... with other browsers
        else {
            for (c = 0; c < rowCellsCnt; c++) {
                theCells[c].style.backgroundColor = newColor;
            }
        }
    } // end 5

    return true;
} // end of the 'setPointer()' function

// Áñ°ÜÃ£±â ½ºÅ©¸³Æ®
function bookmark(){
window.external.AddFavorite('http://www.infonury.com', 'ÀÎÆ÷´©¸®')
}
function sun_openW(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_openBrWindow1(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_openBrWindow2(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
// ½ºÅ©¸³Æ® ³¡

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

var stmnTimer;

function ReadCookie(name) {
var label = name + "=";
var labelLen = label.length;
var cLen = document.cookie.length;
var i = 0;

while (i < cLen) {
var j = i + labelLen;

if (document.cookie.substring(i, j) == label) {
var cEnd = document.cookie.indexOf(";", j);
if (cEnd == -1) cEnd = document.cookie.length;
return unescape(document.cookie.substring(j, cEnd));
}
i++;
}
return "";
}

function SaveCookie(name, value, expire) {
var eDate = new Date();
eDate.setDate(eDate.getDate() + expire);
document.cookie = name + "=" + value + "; expires=" + eDate.toGMTString()+ "; path=/";
}

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

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

stmnRefreshTimer = stmnActivateSpeed;

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;
}
stmnTimer = setTimeout ("RefreshStaticMenu();", stmnRefreshTimer);
}

function ToggleAnimate() {
if (!ANIMATE.checked) {
RefreshStaticMenu();
SaveCookie("ANIMATE", "true", 300);
} else {
clearTimeout(stmnTimer);
STATICMENU.style.top = stmnGAP1;
SaveCookie("ANIMATE", "false", 300);
}
}

function InitializeStaticMenu() {
STATICMENU.style.left = stmnLEFT;
if (ReadCookie("ANIMATE") == "false") {
ANIMATE.checked = true;
STATICMENU.style.top = document.body.scrollTop + stmnGAP1;
} else {
ANIMATE.checked = false;
STATICMENU.style.top = document.body.scrollTop + stmnBASE;
RefreshStaticMenu();
}
}
// ========================= ³¯°³º£³Ê ½ºÅ©·Ñ ============================

// banner_roll("divÅÂ±× id", ¹è³Ê1°³³ôÀÌ, µô·¹ÀÌ, 1Ä­ÀÌµ¿¼Óµµ, 0);
function banner_roll(div_id, banner_height, banner_delay, banner_speed, this_height){
    var div_tag = document.getElementById(div_id);
    var a_tag, i;

    this_height ++;
    if(this_height < banner_height) {
        div_tag.style.top = -this_height;
        setTimeout("banner_roll('" + div_id + "', " + banner_height + ", " + banner_delay + ", " + banner_speed + ", " + this_height + ");", banner_speed);
    } else {
        a_tag = div_tag.getElementsByTagName("A");
        div_tag.appendChild(a_tag[0]);
        div_tag.style.top = 0;
        setTimeout("banner_roll('" + div_id + "', " + banner_height + ", " + banner_delay + ", " + banner_speed + ", 0);", banner_delay);
    }

    return true;
}


//·¹ÀÌ¾î show/hidden
function div_view(id_name,total_num,is_num){
		for(i=1; i<= parseInt(total_num); i++){
			var div_name=eval('document.all.'+id_name+i);			
			if (i == parseInt(is_num)) {
				div_name.style.display = "";					
			}else{			
				div_name.style.display = "none";
			}				
		}
}


//invent °Ô½ÃÆÇ ½ÅÃ»µî·Ï
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}


var speed = 10
var pause = 2000
var timerID = null
var bannerRunning = false
var ar = new Array()
ar[0] = "¿ÀÅõÀ¥½º¿¡ ¿À½Å°ÍÀ» È¯¿µÇÕ´Ï´Ù.";
ar[1] = "È¨ÆäÀÌÁö Á¦ÀÛ ¹× ¸®¸ðµ¨¸µ, CI/BI/SIGN µðÀÚÀÎ Á¦ÀÛ, e-¼Ö·ç¼Ç °³¹ß ±¸Ãà±îÁö";
ar[2] = "¿©·¯ºÐÀ» e-business ¼º°øÀûÀÎ ÆÄÆ®³Ê·Î ¸ð½Ã°Ú½À´Ï´Ù.";
ar[3] = "We Make Feeling!!";
var message = 0
var state = ""
clearState()
function stopBanner() {
if (bannerRunning)
clearTimeout(timerID)
bannerRunning = false
}
function startBanner() {
stopBanner()
showBanner()
}
function clearState() {
state = ""
for (var i = 0; i < ar[message].length; ++i) {
state += "0"
}
}
function showBanner() {
if (getString()) {
message++
if (ar.length <= message)
message = 0
clearState()
timerID = setTimeout("showBanner()", pause)
bannerRunning = true
} else {
var str = ""
for (var j = 0; j < state.length; ++j) {
str += (state.charAt(j) == "1") ? ar[message].charAt(j) : " "
}

//ÇÏ´Ü status... ¿Ï·áÈÄ ÁÖ¼®Á¦°ÅÇÒ°Í.
//window.status = str


timerID = setTimeout("showBanner()", speed)
bannerRunning = true
}
}
function getString() {
var full = true
for (var j = 0; j < state.length; ++j) {
if (state.charAt(j) == 0)
full = false
}
if (full)
return true
while (1) {
var num = getRandom(ar[message].length)
if (state.charAt(num) == "0")
break
}
state = state.substring(0, num) + "1" + state.substring(num + 1, state.length)
return false
}
function getRandom(max) {
return Math.round((max - 1) * Math.random())
}

startBanner();

//ÀÌ¹ÌÁö ÁÜ(È®´ë)
function img_zoom2(code_value,width,height){
	plus = 20;
	width = parseInt(width)+parseInt(plus);
	window.open("zoom.php?code="+code_value,"zoom_img", "scrollbars=yes, width="+width+",height="+height);
}

//ÀÌ¸ÞÀÏ ¿ÀÇÂ
function open_email(name_value, email_value){
	//var link_text = "<?=$global_path[url][home]?>/email.php";
	var link_text = "email.php";
	link_text += "?name="+name_value;
	link_text += "&email="+email_value;
	window.open(link_text,'email','scrollerbar=no');
}

//ÀÌ¸ÞÀÏ ¿ÀÇÂ
function open_email5(name_value, email_value){
	var link_text = "email.php";
	link_text += "?name="+name_value;
	link_text += "&email="+email_value;
	window.open(link_text,'email','scrollerbar=no');
}

function printDiv () {
if (document.all && window.print) {
window.print();
}
}


function NoGoodOn(id) {
  if(confirm("ÀÏ¹ÝÈ¸¿ø->ºÒ·®È¸¿øÀ¸·Î º¯°æÇÏ½Ã°Ú½À´Ï±î?")) {
    window.open("MemberChange.php?mode=off&id="+id,"","width=50 height=50");
    }
  }

function NoGoodOff(id) {
  if(confirm("ºÒ·®È¸¿ø->ÀÏ¹ÝÈ¸¿øÀ¸·Î º¯°æÇÏ½Ã°Ú½À´Ï±î?")) {
    window.open("MemberChange.php?mode=on&id="+id,"","width=50 height=50");
    }
  }

function SndJJokji(sid,sname,rid,rname) {
  window.open("JJokji.html?sender_id="+sid+"&sender_name="+sname+"&receive_id="+rid+"&receive_name="+rname,"","width=500 height=320");
  }
function rewin_close() {
     opener.location.reload();
	self.close();
}

//**************ÇÃ·¡½Ã
function setFlash(src, w, h) {
	var Flash_html = "";
	Flash_html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	Flash_html += '<param name="movie" value="'+src+'">';
	Flash_html += '<param name="quality" value="high">';
	Flash_html += '<param name="wmode" value="transparent">';
	Flash_html += '<param name="swliveconnect" value="true">';
	Flash_html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	Flash_html += '</object>';
	document.write(Flash_html);
}

//**************µ¿¿µ»ó

function setMedia(vodUrl){
	var sTag = ''
		+ '<OBJECT id="setMedia1" width="320" height="240" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" VIEWASTEXT>'
		+ '	<PARAM name="AnimationAtStart"         value="0">'
		+ '	<PARAM name="CurrentPosition"          value="0">'
		+ '	<PARAM name="DisplaySize"              value="4">'
		+ '	<param name="DisplayBackColor"         value="1">'
		+ '	<PARAM name="EnableFullScreenControls" value="0">'
		+ '	<PARAM name="ShowControls"             value="0">'
		+ '	<PARAM name="ShowTracker"              value="0">'
		+ '	<PARAM name="ShowAudioControls"        value="0">'
		+ '	<PARAM name="ShowStatusBar"            value="0">'
		+ '	<PARAM name="ShowDisplay"              value="0">'
		+ '	<PARAM name="ShowCaptioning"           value="0">'
		+ '	<PARAM name="ShowPositionControls"     value="0">'
		+ '	<PARAM name="SetCurrentEntry"          value="1">'
		+ '	<PARAM name="ClickToPlay"              value="0">'
		+ '	<PARAM name="AutoSize"                 value="0">'
		+ '	<PARAM name="TransparentAtStart"      value="-1">'
		+ '	<PARAM name="AutoStart"                value="1">'
		+ '	<PARAM name="AutoResize"               value="1">'
		+ '	<PARAM name="EnableContextMenu"        value="0">'
		+ '	<PARAM name="volume"                   value="0">'
		+ '	<PARAM name="filename" value="' + vodUrl + '">'
		+ '</OBJECT>'
		+ '';
	document.write (sTag);
}
