<!--
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_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// Martin
function swap_Img(n,a,f,i) {
 var x;
 x=document.getElementById(n);
 x.src=f;
 
}

function popup(URL,no) {
	var id = 'popup'+no;
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=400');");
}

function resize_win(w,h) {
	self.resizeTo(w,h);
}

function tbg_chg(n,nm,lim) {
	for(var i=1; i<=lim; i++) {
		if(document.getElementById(nm+i)) MM_swapImage(nm+i,'','./img/00/folder_'+i+'_off.gif',1);
	}
	MM_swapImage(nm+n,'','./img/00/folder_'+n+'_on.gif',1);
}

function show_board(n, d, lim){
	// non-existing Id causes error
	for(var i=1; i<=lim; i++) {
		if(document.getElementById(d+i)) document.getElementById(d+i).style.display = "none";
	}
	document.getElementById(d+n).style.display = "block";
}

function show_sub_menu(n) {
	
	if(document.getElementById('submenu_'+n)) document.getElementById('submenu_'+n).style.display = "block";
}

function hide_sub_menu(n) {
	
	if(document.getElementById('submenu_'+n)) document.getElementById('submenu_'+n).style.display = "none";
}

function trim(s)
{
	while(s.substring(0,1) == ' ') {
		s = s.substring(1,s.length);
	}
	
	while(s.substring(s.length-1,s.length) == ' ') {
		s = s.substring(0,s.length-1);
	}
	
	return s;
}

function show_swf(id, name, width, height)
{
	var str = "";
	str += "<object";
	if ( id != '' ) 
		str += " id='" + id + "'";

	str += " classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='"+width+"' height='"+height+"' id='"+name+"' align='middle'>";
	str += "<param name='allowScriptAccess' value='sameDomain' />";
	str += "<param name='movie' value='"+name+"' />";
	str += "<param name='quality' value='high' />";
	str += "<param name='wmode' value='transparent' />";
	str += "<embed src='"+name+"' FlashVars='' quality='high' wmode='transparent' width='"+width+"' height='"+height+"' name='"+name+"' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
	str += "</object>";
	
	document.write(str);
}

var win1Open = null
var win2Open = null

function displayImage(picName, windowName, windowWidth, windowHeight){
  return window.open(picName,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + (parseInt(windowWidth)+20)  + ",height=" + (parseInt(windowHeight)+15)) 
  }

function winClose(){    // close all open pop-up windows   
  if(win1Open != null) win1Open.close() 
  if(win2Open != null) win2Open.close() 
  }

function doNothing(){}

function openLrgImg(picName, windowName){
  
  var winHandle = window.open("" ,windowName,"toolbar=no,scrollbars=no,resizable=no,width=480,height=500");
  
  if(winHandle != null){
    var htmlString = "<html><head><title>Picture</title></head>";
    htmlString += "<body><center><img src=\"" + picName + "\">";
    htmlString += "<br><a href='javascript:window.close();'>CLOSE</a></center></body></html>";
    winHandle.document.open();
    winHandle.document.write(htmlString);
    winHandle.document.close();
  }	
  
  if(winHandle != null) winHandle.focus(); //brings window to top
  
  //return winHandle;
}

function viewLrgPhoto(picName, windowName, w, h){
  
  var winHandle = window.open("" ,windowName,"toolbar=no,scrollbars=yes,resizable=no,width="+(w+50)+",height="+(h+50));
  
  if(winHandle != null){
    var htmlString = "<html><head><title>Picture</title></head>";
    htmlString += "<body><center><img src=\"" + picName + "\" width='"+w+"' height='"+h+"'>";
    htmlString += "<br><a href='javascript:window.close();'>CLOSE</a></center></body></html>";
    winHandle.document.open();
    winHandle.document.write(htmlString);
    winHandle.document.close();
  }	
  
  if(winHandle != null) winHandle.focus(); //brings window to top
  
  //return winHandle;
}



function goLink(f) {
	var address = f.select.value;
	
	parent.location.href = "http://"+address;
}




//==========================================
// ScROLL QUICK MENU 08.07.24
//==========================================


var stmnLEFT =990; // ¿ÞÂÊ ¿©¹é (¸Þ´º°¡ ¿ÞÂÊ¿¡¼­ 400ÇÈ¼¿ ¶³¾îÁø °÷¿¡ º¸¿©Áý´Ï´Ù)
var stmnGAP1 = 120; // À§ÂÊ ¿©¹é (¸Þ´º°¡ À§¿¡¼­ 10ÇÈ¼¿ ¶³¾îÁø °÷¿¡ º¸¿©Áý´Ï´Ù) 
var stmnGAP2 = 120; // ½ºÅ©·Ñ½Ã ºê¶ó¿ìÀú À§ÂÊ°ú ¶³¾îÁö´Â °Å¸® 
var stmnBASE = 120; // ½ºÅ©·Ñ ½ÃÀÛÀ§Ä¡ 
var stmnActivateSpeed = 35; 
var stmnScrollSpeed = 20; 
var stmnTimer; 
	
function RefreshStaticMenu() { 
	var stmnStartPoint, stmnEndPoint; 

	stmnStartPoint = parseInt(document.getElementById('STATICMENU').style.top, 10); 
	stmnEndPoint = Math.max(document.documentElement.scrollTop, document.body.scrollTop) + stmnGAP2; 

	if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1; 

	if (stmnStartPoint != stmnEndPoint) { 
		stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 15 ); 
		document.getElementById('STATICMENU').style.top = parseInt(document.getElementById('STATICMENU').style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount ) + 'px'; 
		stmnRefreshTimer = stmnScrollSpeed; 
	}

	stmnTimer = setTimeout("RefreshStaticMenu();", stmnActivateSpeed); 
} 

function InitializeStaticMenu() {
	document.getElementById('STATICMENU').style.left = stmnLEFT + 'px'; 
	document.getElementById('STATICMENU').style.top = document.body.scrollTop + stmnBASE + 'px'; 
	RefreshStaticMenu();
}

//==========================================
// ScROLL QUICK MENU : ENDS
//==========================================

/*
function IframeResize(id) {
	var ifrm = document.getElementById(id);
	var the_height = ifrm.contentWindow.document.body.parentNode.scrollHeight + 300;
	ifrm.style.height = the_height;
}
*/

function getDocHeight(doc)
   {
     var docHt = 0, sh, oh;
     if (doc.height)
     {
       docHt = doc.height;
     }
     else if (doc.body)
     {
       if (doc.body.scrollHeight) docHt = sh = doc.body.scrollHeight;
       if (doc.body.offsetHeight) docHt = oh = doc.body.offsetHeight;
       if (sh && oh) docHt = Math.max(sh, oh);
     }
     return docHt;
   }
   
   function getReSize()
   {
     var iframeWin = window.frames['ifrm'];
   
     var iframeEl = window.document.getElementById? window.document.getElementById('ifrm'): document.all? document.all['ifrm']: null;
   
     if ( iframeEl && iframeWin )
     {
       var docHt = getDocHeight(iframeWin.document);
   
       if (docHt != iframeEl.style.height) iframeEl.style.height = docHt + 'px';
     }
     else
     { // firefox
       //var docHt = window.document.getElementById('ifrm').contentDocument.height;
       //window.document.getElementById('ifrm').style.height = docHt + 'px';
     }
   }
   
   function getRetry()
   {
       getReSize();
       setTimeout('getRetry()',0);
   }
   getRetry();







//-->

