
function popup(url,w,h){

  strop = "width="+w+" height="+h+",scrollbars=no,toolbar=0,resizable=0";
  window.open(url, "Searchid", strop); 
}


/*swfÆÄÀÏ*/
function swf(src,w,h){
	html = '';
	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+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="best">';
	html += '<param name="wmode" value="transparent">';
	html += '<embed src="'+src+'" quality=best width="'+w+'" height="'+h+'" quality="best" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"><\/embed>';
	html += '<\/object>';
	document.write(html);
}

/*ÆÐ¹Ð¸®»çÀÌÆ® ÀÌµ¿*/
function goFimilySite(url){
	window.open(url,"FimilySite","");		
}

//quickmenu
var stmnLEFT = 902; // ½ºÅ©·Ñ¸Þ´ºÀÇ ÁÂÃø À§Ä¡
var stmnGAP1 = 302// ÆäÀÌÁö À§ÂÊ ¿©¹é
var stmnGAP2 = 10; // ½ºÅ©·Ñ½Ã ºê¶ó¿ìÀú »ó´Ü°ú ¾à°£ ¶ç¿ò. ÇÊ¿ä¾øÀ¸¸é 0À¸·Î ¼¼ÆÃ
var stmnBASE = 170;   // ½ºÅ©·Ñ¸Þ´º ÃÊ±â ½ÃÀÛÀ§Ä¡ (¾Æ¹«·¸°Ô³ª ÇØµµ »ó°üÀº ¾øÁö¸¸ stmnGAP1°ú ¾à°£ Â÷ÀÌ¸¦ ÁÖ´Â°Ô º¸±â ÁÁÀ½)
var stmnActivateSpeed = 50; // ¿òÁ÷ÀÓÀ» °¨ÁöÇÏ´Â ¼Óµµ (¼ýÀÚ°¡ Å¬¼ö·Ï ´Ê°Ô ¾Ë¾ÆÂ÷¸²)
var stmnScrollSpeed =1; // ½ºÅ©·ÑµÇ´Â ¼Óµµ (Å¬¼ö·Ï ´Ê°Ô ¿òÁ÷ÀÓ)
var moving_stat = 1;      /// ¸Þ´ºÀÇ ½ºÅ©·ÑÀ» ·Îµù½Ã on/off¼³Á¤ 1=¿òÁ÷ÀÓ 0Àº ¸ØÃã

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.documentElement.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.documentElement.scrollTop + stmnGAP1;
} else {
//ANIMATE.checked = false;
STATICMENU.style.top = document.documentElement.scrollTop + stmnBASE;
RefreshStaticMenu();
}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



//°øÁöÅÜ¸Þ´º
function show_layer(obj, n, v) //show_layer(id, °¹¼ö, º¸¿©ÁÙ·¹ÀÌ¾î)
	{
		for (var i=1; i<=n; i++)
		{
			if (i == v) {document.all[obj+i].style.display='';}
			else {document.all[obj+i].style.display='none';}
		}
	}



//¸µÅ©Á¡¼± ¾ø¾Ö±â
function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") 

document.body.focus(); 
} 
document.onfocusin=bluring; 


// ÆÐ¹Ð¸®»çÀÌÆ® ¹Ù·Î°¡±â
function gosite(url){
	if (url != "" ){
		window.open(url);
	}
}

//ÅÇ¸Þ´º
var old='';
function menu(name){
	submenu=eval("submenu_"+name+".style");
	submenu_11.style.display='none';
	
			if(old!=submenu)
			{
				if(old!='')
				{
					old.display='none';
				}
				submenu.display='block';
				old=submenu;
			}
			else
			{
				submenu.display='block';
			}
}


//ÆÄÀÏ´Ù¿î·Îµå
//javascript:goDownload('D11_1149486655296.gif','60277.gif','upload/directory');
function goDownload(f,re_f,dir){
	document.location = "/etc/download.jsp?filenm="+f+"&re_filenm="+re_f+"&dir="+dir;
}


//·Ñ¿À¹ö
function imageOver(imgEl) {
        imgEl.src = imgEl.src.replace("off.gif", "on.gif");
}
function imageOut(imgEl) {
        imgEl.src = imgEl.src.replace("on.gif", "off.gif");
}


function view_coment(e) {
       if (e.style.display == "none")
               { e.style.display = ""; }
       else         { e.style.display = "none"; }
}

//Å¬¸¯½Ãº¸ÀÌ±â
function showT(id, total){
	for(i=1;i<=total;i++){
		if(i!=id){
			obj1 = eval("showTD" + i);
			obj1.style.display = "none";
		}
	}


	obj1 = eval("showTD" + id);

	if(obj1.style.display == "none"){
		obj1.style.display = "block";
	}
	else{
		obj1.style.display = "none";
	}
}



//ÇÑ´«¹Ù Á¦¾î
function i_flash(s,w,h){
        return "<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=\""+w+"\" height=\""+h+"\" id=\"main\" align=\"middle\"param name=\"allowScriptAccess\" value=\"always\" /><param name=\"allowScriptAccess\" value=\"always\" /><param name=\"movie\" value=\""+s+"\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#000000\" /><embed src=\""+s+"\" quality=\"high\" bgcolor=\"#000000\" width=\""+w+"\" height=\""+h+"\" name=\"main\" align=\"middle\" allowScriptAccess=\"always\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></object>";
}
function goHelp(v){

	var obj = document.getElementById("RESERVE");		
	if(v=="ON"){
		document.all.sch_machine_id.style.visibility = "hidden";

		obj.style.visibility="visible";
		obj.style.top="466";
		obj.style.left="250";
		obj.style.width="980";
		obj.style.height="320";
		obj.innerHTML = i_flash("/swf/help.swf","600","697");
	}else if(v=="OFF"){
		obj.style.visibility="hidden";
		if(document.all.sch_machine_id){
			document.all.sch_machine_id.style.visibility = "visible";
		}
	}
}

function goHelp2(v){
	var obj = document.getElementById("RESERVE");		
	
	if(v=="ON"){
		obj.style.visibility="visible";
		obj.style.top="430";
		obj.style.left="250";
		obj.style.width="980";
		obj.style.height="320";
		obj.innerHTML = i_flash("/swf/help.swf","600","697");
	}else if(v=="OFF"){
		obj.style.visibility="hidden";
	}
}