/****************************************************| Flash |******************************************************************
*
*  Flash Depth 
*
********************************************************************************************************************************/
function getTop(){
  var hn;
  if(location.pathname.match('/network/')) {
    hn = 1;
  } else if(location.pathname.match('/product/')) {
    hn = 2;
  } else if(location.pathname.match('/service/')) {
    hn = 3;
  } else if(location.pathname.match('/laboratory/')) {
    hn = 4;
  } else if(location.pathname.match('/management/')) {
    hn = 5;
  } else if(location.pathname.match('/intro/')) {
    hn = 6;
  }else if(location.pathname.match('/contact/')) {
    hn = 7;
  }
  return hn;
}


function fnc_upDownBtn(count){
	if((count%3) == 0) max = Math.floor(count/3) - 1;
	else max = Math.floor(count/3);

	if(num > 0) { document.getElementById("up").style.display = "block"; } 
	else { document.getElementById("up").style.display = "none"; }

	if(num < max){ document.getElementById("down").style.display = "block"; } 
	else { document.getElementById("down").style.display = "none"; }
}

function fnc_scroll(mode){
	var obj = document.getElementsByName("prod");

	if(mode == "up"){				
		if(num > 0){
			num = num - 1;
			fnc_displaySet(num);
		}
	} else { 
		if((obj.length%3) == 0) max = Math.floor(obj.length/3) - 1;
		else max = Math.floor(obj.length/3);

		if(num < max){
			num = num + 1;
			fnc_displaySet(num);
		}
	}
}




function setPng24(obj) {
	obj.width=obj.height=1;
	obj.className=obj.className.replace(/\bpng24\b/i,'');

	obj.style.filter =

	"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
	obj.src='';
	return '';
}


function popopen(url, t, w, h, s) {
	var sw;
	var sh;

	sw = (screen.Width - w) / 2;
	sh = (screen.Height - h) / 2;

	hk_pop=window.open(url, t, 'toolbar=no, location=no, status=no, menubar=no, scrollbars='+s+', resizable=no, Width='+w+'px, Height='+h+'px, Left='+sw+', Top='+sh);
	hk_pop.focus();
}

function pageGo(){
	window.open(document.getElementById('ddlgo').value,"","");
}

function comjs_popup( url, name , width , height , scrollyn )
{
	// ÆË¾÷À§Ä¡ »êÃâ
	var liTop		=	screen.height / 2 - height / 2 - 50;
	var liLeft		=	screen.width / 2 - width / 2 ;
	
	// Scroll ¿©ºÎ
	if ( typeof(scrollyn) == "undefinded") scrollyn='no';
	
	// ÆË¾÷
	var win;
	win = open( url, name, 'width='+width+',height='+height+',top='+liTop+',left='+liLeft+',resize=no,status=no,toolbar=no,menubar=no,scrollbars='+scrollyn);
	win.focus();

}


/*-----------------------------------------|Layer|----------------------------------------------*/

		function openMenu(){document.getElementById('ngnb').style.height='400px';} 
		function closeMenu(){document.getElementById('ngnb').style.height='100px';} 