function oneDepth(URL){
	switch(URL){			
		case "1" : 
			location.href="/company/greeting.php";
			break;
		case "2" : 
			location.href="/product/list.php?big_cate=±¤¼¶À¯ À¶Âø Á¢¼Ó±â";
			break;
		case "3" : 				
			location.href="/pds_notice/list.php?code=notice1";
			break;
		case "4" : 
			location.href="/sitemap/sitemap.php";
			break;
	}
}
function twoDepth01(URL){
	switch(URL){			
		case "1" : 
			location.href="/company/greeting.php";
			break;
		case "2" : 
			location.href="/company/history.php";
			break;
		case "3" : 				
			location.href="/company/bsarea.php";
			break;
		case "4" : 
			location.href="/company/history_bs.php";
			break;	
		case "5" : 
			location.href="/company/org.php";
			break;
		case "6" : 
			location.href="/company/recruit.php";
			break;
		case "7" : 
			location.href="/company/location.php";
			break;
	}
}
function twoDepth02(URL){
	switch(URL){			
		case "1" : 
			location.href="/product/list.php?big_cate=±¤¼¶À¯ À¶Âø Á¢¼Ó±â";
			break;
		case "2" : 
			location.href="/product/list.php?big_cate=FTTH ZONE";
			break;
		case "3" : 				
			location.href="/product/list.php?big_cate=±¤ ¼±·Î ÃøÁ¤ Àåºñ";
			break;
		case "4" : 
			location.href="/product/list.php?big_cate=±¤ Á¢¼Ó °ø±¸ and ÀÚÀç";
			break;
		case "5" : 
			location.href="/product/list.php?big_cate=ÄÉÀÌºí ¸Å¼³ Å½Áö±â";
			break;
		case "6" : 				
			location.href="/product/list.php?big_cate=±³À°¿ë ±¤Åë½Å Á¦Ç°";
			break;
		case "7" : 
			location.href="/product/list.php?big_cate=±âÅ¸Á¦Ç°";
			break;
	}
}
function twoDepth03(URL){
	switch(URL){			
		case "1" : 
			location.href="/pds_notice/list.php?code=notice1";
			break;
		case "2" : 
			location.href="/pds_notice/list.php?code=notice2";
			break;
		case "3" : 				
			location.href="/bbs/list.php?code=bbs1";
			break;
		case "4" : 				
			location.href="/bbs/list.php?code=bbs2";
			break;
		case "5" : 				
			location.href="/pds_notice/list.php?code=notice5";
			break;						
	}
}
function twoDepth04(URL){
	switch(URL){			
		case "1" : 
			location.href="/sitemap/sitemap.php";
			break;
		case "2" : 
			location.href="/sitemap/link.php";
			break;
	}
}


function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		Left3_02_over = newImage("../Main/image/Left3_02-over.gif");
		Left3_03_over = newImage("../Main/image/Left3_03-over.gif");
		Left3_04_over = newImage("../Main/image/Left3_04-over.gif");
		Left3_05_over = newImage("../Main/image/Left3_05-over.gif");
		Left3_06_over = newImage("../Main/image/Left3_06-over.gif");
		preloadFlag = true;
	}
}
preloadImages();

function scroll_h(){ 
    var current_h = document.body.scrollTop; 
   	document.all.quick.style.top = current_h + document.body.clientHeight-110 ;
}

function surfto(form) { 
  if(form.div.value==""){
    return false;
  }
	var myindex=form.div.selectedIndex 
	location.href = form.div.options[myindex].value;					//ÀÚ½Å
	//window.open(form.div.options[myindex].value, "", "");				//»õÃ¢
	form.div.selectedIndex=0;
  //if (0) this.selectedIndex=0;   ///ÀÌºÎºÐÀÌ Ç×»ó Ã¹¹øÂ° ¸Þ´º»óÅÂ·Î ¸¸µç´Ù.
}

	function startscroll()
	{ // ½ºÅ©·Ñ ½ÃÀÛ
		i=0;
		for (i in scroll_content)
			n_panel++;
			
		n_panel = n_panel -1 ;
		startPanel = Math.round(Math.random()*n_panel);
		if(startPanel == 0)
		{
			i=0;
			for (i in scroll_content) 
				insert_area(total_area, total_area++); // area »ðÀÔ
		}
		else if(startPanel == n_panel)
		{
			insert_area(startPanel, total_area);
			total_area++;
			for (i=0; i<startPanel; i++) 
			{
				insert_area(i, total_area); // area »ðÀÔ
				total_area++;
			}
		}
		else if((startPanel > 0) || (startPanel < n_panel))
		{
			insert_area(startPanel, total_area);
			total_area++;
			for (i=startPanel+1; i<=n_panel; i++) 
			{
				insert_area(i, total_area); // area »ðÀÔ
				total_area++;
			}
			for (i=0; i<startPanel; i++) 
			{
				insert_area(i, total_area); // area »ðÀÔ
				total_area++;
			}
		}
		window.setTimeout("scrolling()",waitingtime);
	}
	function scrolling(){ // ½ÇÁ¦·Î ½ºÅ©·Ñ ÇÏ´Â ºÎºÐ
		if (bMouseOver && wait_flag)
		{
			for (i=0;i<total_area;i++){
				tmp = document.getElementById('scroll_area'+i).style;
				tmp.top = parseInt(tmp.top)-scrollspeed;
				if (parseInt(tmp.top) <= -scrollerheight){
					tmp.top = scrollerheight*(total_area-1);
				}
				if (s_tmp++ > (s_amount-1)*scroll_content.length){
					wait_flag=false;
					window.setTimeout("wait_flag=true;s_tmp=0;",waitingtime);
				}
			}
		}
		window.setTimeout("scrolling()",1);
	}
	function insert_area(idx, n){ // area »ðÀÔ
		html='<div style="left: 0px; width: 100%; position: absolute; top: '+(scrollerheight*n)+'px" id="scroll_area'+n+'">\n';
		html+=scroll_content[idx]+'\n';
		html+='</div>\n';
		document.write(html);
	}
	
	function object_str()

{

  document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swfla....</object>"); /* ÀÌºÎºÐ ##2¹øÆÄÀÏ## */

}
