function go_url(ss)
{
	switch(ss)
	{
		case"01":
			location.replace('/company/ceo.php');
		break;
		case"01_01":
			location.replace('/company/ceo.php');
		break;
		case"01_02":
			location.replace('/company/confirm.php');
		break;
		case"01_03":
			location.replace('/company/map.php');
		break;


		case"02":
			location.replace('/wellbeing/pan01.php');
		break;
		case"02_01":
			location.replace('/wellbeing/pan01.php');
		break;
		case"02_02":
			location.replace('/wellbeing/pan02.php');
		break;

		case"03":
			location.replace('/film/film01.php');
		break;
		case"03_01":
			location.replace('/film/film01.php');
		break;
		case"03_02":
			location.replace('/film/film02.php');
		break;
		case"03_03":
			location.replace('/film/film03.php');
		break;
		case"03_04":
			location.replace('/film/film04.php');
		break;
		case"03_05":
			location.replace('/film/film05.php');
		break;
		case"03_06":
			location.replace('/board/bbs/board.php?bo_table=film_06');
		break;

		case"04":
			location.replace('/thermostat/th01.php');
		break;
		case"04_01":
			location.replace('/thermostat/th01.php');
		break;
		case"04_02":
			location.replace('/thermostat/th02.php');
		break;
		case"04_03":
			location.replace('/thermostat/th03.php');
		break;

		case"05":
			location.replace('/product/pro01.php');
		break;
		case"05_01":
			location.replace('/product/pro01.php');
		break;
		case"05_02":
			location.replace('/product/pro02.php');
		break;
		case"05_03":
			location.replace('/product/pro03.php');
		break;
		case"05_04":
			location.replace('/product/pro04.php');
		break;
		case"05_05":
			location.replace('/product/pro05.php');
		break;
		case"05_06":
			location.replace('/product/pro06.php');
		break;

		case"06":
			location.replace('/board/bbs/board.php?bo_table=customer_01');
		break;
		case"06_01":
			location.replace('/board/bbs/board.php?bo_table=customer_01');
		break;
		case"06_02":
			location.replace('/board/bbs/board.php?bo_table=customer_02');
		break;
		case"06_03":
			location.replace('/board/bbs/board.php?bo_table=customer_03');
		break;
		case"06_04":
			location.replace('/board/bbs/board.php?bo_table=customer_04');
		break;
		case"06_05":
			location.replace('/board/bbs/board.php?bo_table=customer_05');
		break;





		case"ut01":
			location.replace('/index.php');
		break;
		case"ut02":
			location.replace('mailto:ty9559@naver.com;');
		break;
		case"ut03":
			location.replace('/sitemap/sitemap.php');
		break;
		case"ut04":
			location.replace('/en/index.php');
		break;
		case"ut05":
			location.replace('/cn/index.php');
		break;



		case"100":
			window.open('http://www.osanart.net/performance/01_view.asp?idx=73');
		break;


		case"m0":
			location.replace('/wellbeing/pan01.php');
		break;
		case"m1":
			location.replace('/film/film01.php');
		break;
		case"n3":
			location.replace('/thermostat/th01.php');
		break;
		case"n4":
			location.replace('/product/pro01.php');
		break;
	}
}




//
var basic_img = ""; 
function lock_menu(Menu) { 
if (Menu) { 
var target_menu = eval("document.all."+Menu); 
target_menu.src = "image/"+Menu+"_on.gif"; 
basic_img = Menu; 
} 
} 
function inact(imgName) 
    {   if (document.image && basic_img != imgName) 
        document[imgName].src = eval(imgName + '.src') 
     } 

function act(imgName) 
    {   if (document.image && basic_img != imgName) 
        document[imgName].src = eval(imgName + 'a.src') 
     } 

// --> 

// popup cookie
function getCookie(name) 
{
	var Found = false;
	var start,end;
	var i = 0;
	while (i <= document.cookie.length) 
	{
		start = i;
		end = start + name.length;
		if (document.cookie.substring(start,end) == name) 
		{
			Found = true;
			break;
		}
		i++;
	}
	if (Found) 
	{
		start = end + 1;
		end = document.cookie.indexOf(";",start);
		if (end < start) end = document.cookie.length;
		{
			return document.cookie.substring(start,end);
		}
	}
	return ;
}
// popup open
var farwindow = null;
function smartPopup(url,name,feature,number) 
{
	if ( getCookie('OpenPopup'+number+'Again') != 'no') 
	{
		farwindow = window.open(url,name,feature);
		if (farwindow != null) 
		{
			if (farwindow.opener == null) 
			{
				farwindow.opener = self;
			}
		}
	}
}
// select url go
function change_url(url)
{
	var cut_array = url.split('|');
	if(cut_array[1]=="1")
	{
		window.open(cut_array[0]);
	}	else	{
		location.replace(cut_array[0]);
	}
}


function setEmbed() 
{ 
  var obj = new String; 
  var parameter = new String; 
  var embed = new String; 
  var html = new String; 
  var allParameter = new String; 
  var clsid = new String; 
  var codebase = new String; 
  var pluginspace = new String; 
  var embedType = new String; 
  var src = new String; 
  var width = new String; 
  var height = new String; 

    
  this.init = function( getType , s ,w , h ) { 
      
      if ( getType == "flash") 
      { 

        clsid = "D27CDB6E-AE6D-11cf-96B8-444553540000";        
        codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"; 
        pluginspage = "http://www.macromedia.com/go/getflashplayer"; 
        embedType = "application/x-shockwave-flash"; 
      } 
      /* type add
      else if ( ) 
      { 
      } 
      */ 
            
      parameter += "<param name='movie' value='"+ s + "'>\n";  
      parameter += "<param name='quality' value='high'>\n";    
      
      src = s; 
      width = w; 
      height = h; 
  } 
  
  this.parameter = function( parm , value ) {      
      parameter += "<param name='"+parm +"' value='"+ value + "'>\n";        
      allParameter += " "+parm + "='"+ value+"'"; 
  }  
  
  this.show = function() { 
      if ( clsid ) 
      { 
        obj = "<object classid=\"clsid:"+ clsid +"\" codebase=\""+ codebase +"\" width='"+ width +"' height='"+ height +"'>\n"; 
      } 
      
      embed = "<embed src='" + src + "' pluginspage='"+ pluginspage + "' type='"+ embedType + "' width='"+ width + "' height='"+ height +"'"+ allParameter +" wmode='transparent'></embed>\n"; 
      
      if ( obj ) 
      { 
        embed += "</object>\n"; 
      } 
      
      html = obj + parameter + embed; 
      
      document.write( html );  
  } 
  
} 

function flash(s,w,h,type,wm,id,autostart) 
{ 
	var obj = new String; 
	var parameter = new String; 
	var embed = new String; 
	var html = new String; 
	var allParameter = new String; 
	var clsid = new String; 
	var codebase = new String; 
	var pluginspage = new String; 
	var embedType = new String; 
	var src = new String; 
	var width = new String; 
	var height = new String; 


	src = s; 
	width = w; 
	height = h; 

	var typ = type ? type : "f"; 

	if(typ=="f")
	{ 
		clsid = "D27CDB6E-AE6D-11cf-96B8-444553540000";        
		codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"; 
		pluginspage = "http://www.macromedia.com/go/getflashplayer"; 
		embedType = "application/x-shockwave-flash"; 
	} else if(typ=="m") {//̵ 
		clsid="22D6F312-B0F6-11D0-94AB-0080C74C7E95"; 
		codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"; 
		embedType="application/x-oleobject"; 
		parameter += "<param name='FileName' value='"+ src + "'>\n"; 
		var auto = autostart ? "1" : "0"; 
		parameter += "<param name='AutoStart' value='"+auto+"'>\n";  
	} 
	parameter += "<param name='movie' value='"+ src + "'>\n";  
	parameter += "<param name='quality' value='high'>\n"; 

	parameter += "<param name='allowScriptAccess' value='always'>\n"; 
	if(wm) 
	{ 
		parameter += "<param name='wmode' value='transparent'>\n"; 
	} 
	if ( clsid ) 
	{ 
		obj = "<object id='movs' name='movs' classid=\"clsid:"+ clsid +"\" codebase=\""+ codebase +"\" width='"+ width +"' height='"+ height +"'>\n"; 
	} 
	embed = "<embed src='" + src + "' pluginspage='"+ pluginspage + "' type='"+ embedType + "' width='"+ width + "' height='"+ height +"'"+ allParameter +" allowScriptAccess='always'  wmode='transparent'></embed>\n"; 
	if ( obj ) 
	{ 
		embed += "</object>\n"; 
	} 
	html = obj + parameter + embed; 
	document.write( html ); 
}



function goTop(orix,oriy,desx,desy) {
		var Timer;
		var winHeight = document.body.scrollTop;
		if(Timer) clearTimeout(Timer);
		startx = 0;
		starty = winHeight;
		if(!orix || orix < 0) orix = 0;
		if(!oriy || oriy < 0) oriy = 0;
		var speed = 7;
		if(!desx) desx = 0 + startx;
		if(!desy) desy = 0 + starty;
		desx += (orix - startx) / speed;
		if (desx < 0) desx = 0;
		desy += (oriy - starty) / speed;
		if (desy < 0) desy = 0;
		var posX = Math.ceil(desx);
		var posY = Math.ceil(desy);
		window.scrollTo(posX, posY);
		if((Math.floor(Math.abs(startx - orix)) < 1) && (Math.floor(Math.abs(starty - oriy)) < 1)){
			clearTimeout(Timer);
			window.scroll(orix,oriy);
		}else if(posX != orix || posY != oriy){
			Timer = setTimeout("goTop("+orix+","+oriy+","+desx+","+desy+")",15);
		}else{
			clearTimeout(Timer);
		}
	}
function go_top()
{
	window.scrollTo(0,0);
}

function getReSize()
{
       try {
              var objFrame = document.getElementById("ifrm");
              var objBody = ifrm.document.body; 

              ifrmHeight = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight); 

              if (ifrmHeight > 300) { 
                     objFrame.style.height = ifrmHeight; 
              } else {
                     objFrame.style.height = 300;
              } 
              objFrame.style.width = '99%'
       } catch(e) {
       };
} 



//onfocus="this.blur()" ==> <body onload="allblur();">

function allblur() {
  for (i = 0; i < document.links.length; i++) {
    var obj = document.links[i];
    if(obj.addEventListener) obj.addEventListener("focus", oneblur, false);
    else if(obj.attachEvent) obj.attachEvent("onfocus", oneblur);
  }
}
 
function oneblur(e) {
  var evt = e ? e : window.event;

 

  if(evt.target) evt.target.blur();
  else if(evt.srcElement) evt.srcElement.blur();
}

function show(){
	window.open("/board/bbs/write.php?bo_table=receive_01","popup","width=600,height=450");
}


//maxlength 만큼 옮기면 다음으로 이동하기....
function nextFocus(sFormName,sNow,sNext)
{
	var sForm = 'document.'+ sFormName +'.'
	var oNow = eval(sForm + sNow);

	if (typeof oNow == 'object')
	{
		if ( oNow.value.length == oNow.maxLength)
		{
			var oNext = eval(sForm + sNext);

			if ((typeof oNext) == 'object')
				oNext.focus();
		}
	}
}




function ind_pop(){
window.open('/indi_popup.html','personal', 'width=677, height=600, scrollbars=yes, top=0, left=0');
}
