// ¸µÅ©Á¡¼± ¾Èº¸ÀÌ°Ô
/*function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring;*/
// ¸µÅ©Á¡¼± ¾Èº¸ÀÌ°Ô ³¡

// ÇÃ·¡½¬ ¾ÆÀÌÆÐÃë
function FlashObject(swf, width, height, bgcolor, id, flashvars)
{
    var strFlashTag = new String();
    
    if (navigator.appName.indexOf("Microsoft") != -1)
    {
        strFlashTag += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
        strFlashTag += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=version=8,0,0,0" ';
        strFlashTag += 'id="' + id + '" width="' + width + '" height="' + height + '">';
        strFlashTag += '<param name="movie" value="' + swf + '"/>';
        
        if(flashvars != null) {strFlashTag += '<param name="flashvars" value="' + flashvars + '"/>'};
        strFlashTag += '<param name="quality" value="best"/>';
        strFlashTag += '<param name="bgcolor" value="' + bgcolor + '"/>';
        strFlashTag += '<param name="menu" value="false"/>';
        strFlashTag += '<param name="salign" value="LT"/>';
        strFlashTag += '<param name="scale" value="noscale"/>';
        strFlashTag += '<param name="wmode" value="transparent"/>';
        strFlashTag += '<param name="allowScriptAccess" value="sameDomain"/>';
        strFlashTag += '</object>';
    }
    else
    {
        strFlashTag += '<embed src="' + swf + '" ';
        strFlashTag += 'quality="best" ';
        strFlashTag += 'bgcolor="' + bgcolor + '" ';
        strFlashTag += 'width="' + width + '" ';
        strFlashTag += 'height="' + height + '" ';
        strFlashTag += 'menu="false" ';
        strFlashTag += 'scale="noscale" ';
        strFlashTag += 'id="' + id + '" ';
        strFlashTag += 'salign="LT" ';
        strFlashTag += 'wmode="transparent" ';
        strFlashTag += 'allowScriptAccess="sameDomain" ';
        if(flashvars != null) {strFlashTag += 'flashvars="' + flashvars + '" '};
        strFlashTag += 'type="application/x-shockwave-flash" ';
        strFlashTag += 'pluginspage="http://www.macromedia.com/go/getflashplayer">';
        strFlashTag += '</embed>';
    }

 document.write(strFlashTag);
}
// ÇÃ·¡½¬ ¾ÆÀÌÆÐÃë ³¡




// rollover
var changedImg;
var isSubmit = false;
function execSubmit(formObj, isShowLayer) {
	isSubmit = true;

	if ( isShowLayer == true ) {
		document.getElementById("processingDiv").style.display = "";
	}
	formObj.submit();
}

function EImgChg(flag)
{
	if ( isSubmit ) 
		return;

	source=event.srcElement;
	if (source.name == "")
	{ return false;  }

	if(changedImg == source.name)
	return;


	else if (document.images && source.tagName=="IMG") {
		imgElement = source.name;  // ÀÌ¹ÌÁö name
		imgPath = source.src;   // ÀÌ¹ÌÁö src ¼Ó¼º°ª

		imgPathLen = imgPath.length;
		imgPathFlag = imgPath.lastIndexOf("/");
		imgName = imgPath.substring(0,imgPathFlag+1);

		document.images[imgElement].src =  imgName + imgElement + "_" + flag + ".gif";

	}
}
// rollover end

// ·Ñ¿À¹ö
function changeIt(ImageToChange, ImageToShow) {
	if ( isSubmit ) 
		return;

    if (document.images) { document[ImageToChange].src = ImageToShow; }
}
// ·Ñ¿À¹ö ³¡

//Ãë¼ÒÆË¾÷
function account_cancel(index) {
        for (i=1; i<=2; i++)
        if (index == i) {
        thisMenu = eval("menu" + index + ".style");
        thisMenu.display = "";
        } 
        else {
        otherMenu = eval("menu" + i + ".style"); 
        otherMenu.display = "none"; 
        }
        }
//Ãë¼ÒÆË¾÷ ³¡

//ÆË¾÷ Áß¾Ó¿¡ ¶çÀ§±â
function newWindow(a_str_windowURL, a_str_windowName, a_int_windowWidth, a_int_windowHeight, a_bool_scrollbars, a_bool_resizable, a_bool_menubar, a_bool_toolbar, a_bool_addressbar, a_bool_statusbar, a_bool_fullscreen) {
  var int_windowLeft = (screen.width - a_int_windowWidth) / 2;
  var int_windowTop = (screen.height - a_int_windowHeight) / 2;
  var str_windowProperties = 'height=' + a_int_windowHeight + ',width=' + a_int_windowWidth + ',top=' + int_windowTop + ',left=' + int_windowLeft + ',scrollbars=' + a_bool_scrollbars + ',resizable=' + a_bool_resizable + ',menubar=' + a_bool_menubar + ',toolbar=' + a_bool_toolbar + ',location=' + a_bool_addressbar + ',statusbar=' + a_bool_statusbar + ',fullscreen=' + a_bool_fullscreen + '';
  var obj_window = window.open(a_str_windowURL, a_str_windowName, str_windowProperties)
    if (parseInt(navigator.appVersion) >= 4) {
      obj_window.window.focus();
    }
}
//ÆË¾÷ Áß¾Ó¿¡ ¶çÀ§±â ³¡

// ¿ÞÂÊ¸Þ´º ½½¶óÀÌµù
var old_menu = '';
function menuclick( submenu) {
    if( old_menu != submenu ) {
    if( old_menu !='' ) {
        old_menu.style.display = 'none';
}
    submenu.style.display = 'block';
    old_menu = submenu;
    } else {
        submenu.style.display = 'none';
        old_menu = '';
    }
}
// ¿ÞÂÊ¸Þ´º ½½¶óÀÌµù ³¡


//Äü

//Äü ³¡

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

function SHstart(chk)  {  
  Toggle = 1;  
  switch(chk) {
        case 1:
          pf.start();
          break;
        case 2:
          pf.start();
          break;
  }    
}


