
/**************************************************************/
/*       ÇÃ·¡½Ã È°¼ºÈ­                                        */
/**************************************************************/
function insertFlash( id, flashUri, vWidth, vHeight, wmode, access, flashVars ) {
	var _obj_ = "";

	_obj_ = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + vWidth + '" height="' + vHeight + '" id="' + id + '" align="middle">';
	_obj_ += '<param name="allowScriptAccess" value="' + access + '" />';
	_obj_ += '<param name="movie" value="' + flashUri + '" />';
	_obj_ += '<param name="FlashVars" value="' + flashVars + '" />';
	_obj_ += '<param name="quality" value="high" />';
	_obj_ += '<param name="wmode" value="' + wmode + '" />    ';
	_obj_ += '<param name="bgcolor" value="#ffffff" />        ';
	_obj_ += '<param name="scale" value="exactfit" />        ';	
	_obj_ += '<embed src="' + flashUri + '" FlashVars="' + flashVars + '" quality="high" wmode="' + wmode + '" bgcolor="#ffffff" width="' + vWidth +'" height="' + vHeight + '" id="' + id + '" align="middle" allowScriptAccess="' + access + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>    ';
	_obj_ += '</object>';
	document.writeln( _obj_ );
}

/**************************************************************/
/*      print ¹× ´Ý±â¹öÆ°                                        */
/**************************************************************/
   
   var initBody;
   
   function beforePrint(){ 
		initBody = document.body.innerHTML; 
		document.body.innerHTML = printContent.innerHTML;
   } 

   function afterPrint(){ 
	  document.body.innerHTML = initBody; 
   } 

   function printArea() { 
      window.print(); 
   }
   
   window.onbeforeprint = beforePrint; 
   window.onafterprint = afterPrint; 

   function initPrint(){
       
       getCssParser();

	   var s_str = opener.document.getElementById("print_area");
	   var t_str = document.getElementById("printContent");
	  
	   if(s_str == null || t_str == null) self.close();
	   
	   t_str.innerHTML = doStripLinktag(s_str.innerHTML);

   }

   
    function doStripLinktag(str) {
        str = str.replace(/onclick=\"(.*?)\"/gi,"");
  	    str = str.replace(/<a(.*?)\>/gi,"");
		str = str.replace(/<\/>/gi,"");
	    return str;
    }

    function getCssParser(){
      

	}
	
	
/**************************************************************/
/*   ÆË¾÷                                       */
/**************************************************************/
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

    
/**************************************************************/
/*        ½ºÅ©·Ñ¸µ ¹è³Ê                                       */
/**************************************************************/

var _scroll_topmargin=100;        // ÀÌµ¿ ¸Þ´ºÀÇ »ó´Ü ÇÑ°è ÇÈ¼¿
var _scroll_ing_topmargin=300;         // ¿òÁ÷ÀÌ´Â µµÁßÀÇ »ó´Ü°úÀÇ °£°Ý
var _scroll_activate_speed=100;        // ÃÊ±â ¿òÁ÷ÀÓÀ» °¨ÁöÇÏ´Â ½Ã°£Â÷ÀÌ (1/1000ÃÊ)
var _scroll_ing_activate_speed=0;        // ¿òÁ÷ÀÌ±â ½ÃÀÛÇÑ ÀÌÈÄ¿¡ °¨ÁöÇÏ´Â ½Ã°£Â÷ÀÌ (1/1000ÃÊ)

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 moveRightEdge() {
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;
	if (isNS4) {
		yMenuFrom   = divMenu.top;
		yMenuTo     = windows.pageYOffset+_scroll_ing_topmargin;
	} else if (isDOM) {
		yMenuFrom   = parseInt (divMenu.style.top, 10);
		yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop)+_scroll_ing_topmargin;
	}
	if(yMenuTo<_scroll_topmargin) yMenuTo = _scroll_topmargin;

	timeoutNextCheck = _scroll_activate_speed;

	if (yMenuFrom != yMenuTo) {
		yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 10);
	if (yMenuTo < yMenuFrom) yOffset = -yOffset;
	if (isNS4) divMenu.top += yOffset;
	else if (isDOM) divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
	timeoutNextCheck = _scroll_ing_activate_speed;
	}
	setTimeout ("moveRightEdge()", timeoutNextCheck);
}

/**************************************************************/
/*   Á¦Ç°¼Ò°³ tab                                             */
/**************************************************************/ 
function DisplayMenu(index,cnt) {
	for (i=1; i<=cnt; i++){
		if (index == i) {
			thisMenu = eval("menu" + index + ".style");
			thisMenu.display = "";
			
		}
		else {
			otherMenu = eval("menu" + i + ".style"); 
			otherMenu.display = "none"; 
		}
	}
}function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}
