function oneDepth(URL){
	switch(URL){			
		case "1" : 
			location.href="../news/list.html";
			break;
		case "2" : 
			location.href="../new_product/product_list.php?ca_id=1040";
			break;
		case "3" : 				
			location.href="../download/index.html?gubun=1";
			break;
		case "4" : 
			location.href="../video/index.html";
			break;
		case "5" : 
			location.href="../Qna/list.php";
			break;
		case "6" : 				
			window.open("http://dasarobot.com/","","");
			break;
		case "7" : 
			window.open("http://int.dasarobot.com/","","");
			break;
		case "8" : 
			location.href="../company/00.html";
			break;
	}
}
function twoDepth01(URL){
	switch(URL){			
		case "1" : 
			location.href="../news/list.html";
			break;
		case "2" : 
			location.href="../news/list01.html";
			break;
		case "3" : 				
			location.href="../company/rnd_0101.html";
			break;
		case "4" : 
			location.href="../company/recruit_01.html";
			break;	
		case "5" : 
			location.href="../company/vision.html";
			break;	
		case "6" : 
			location.href="../clean/06.html";
			break;	
		case "7" : 
			location.href="../clean/07.html";
			break;
	}
}
function twoDepth02(URL){
	switch(URL){			
		case "1" : 
			location.href="../product/DRM/index.html";
			break;
		case "2" : 
			location.href="../product/DRM-C/index.html";
			break;
		case "3" : 				
			location.href="../product/DLM/index.html";
			break;
		case "4" : 
			location.href="../product/DTR/index.html";
			break;
		case "5" : 
			location.href="../product/DSM/index.html";
			break;
		case "6" : 				
			location.href="../product/iMS-J/index.html";
			break;
		case "7" : 				
			location.href="../product/iM-/index.html";
			break;
		case "8" : 
			location.href="../product/RV/index.html";
			break;
		case "9" : 
			location.href="../product/menu09.html";
			break;
	}
}
function twoDepth03(URL){
	switch(URL){			
		case "1" : 
			location.href="../download/index.html?gubun=1";
			break;
		case "2" : 
			location.href="../download/index.html?gubun=2";
			break;
		case "3" : 				
			location.href="../download/index.html?gubun=3";
			break;
		case "4" : 
			location.href="../ir/ir_0401.html";
			break;
		case "5" : 
			location.href="../remodel/03.html";
			break;
		case "6" : 				
			location.href="../remodel/06.html";
			break;
		case "7" : 
			location.href="../sales/list.html?big_cate=±¤ ¼±·Î ÃøÁ¤ Àåºñ&middle_cate=°íÀåÀ§Ä¡½Äº°±â";
			break;
		case "8" : 
			location.href="../sales/list.html?big_cate=±¤ ¼±·Î ÃøÁ¤ Àåºñ&middle_cate=±¤¼Õ½ÇÃøÁ¤±â";
			break;
			
	}
}
function twoDepth04(URL){
	switch(URL){			
		case "1" : 
			location.href="../video/index.html";
			break;
		case "2" : 
			location.href="../download/index.html?gubun=2";
			break;
		case "3" : 				
			location.href="../download/index.html?gubun=3";
			break;
//		case "4" : 
//			location.href="#";
			break;
		case "5" : 				
			location.href="../pr/ci.html";
			break;
	}
}
function twoDepth05(URL){
	switch(URL){			
		case "1" : 
			location.href="../Qna/list.php";
			break;
		case "2" : 
			location.href="../contact/index.html";
			break;
		case "3" : 
			location.href="../notice/as.php";
			break;
		case "4" : 				
			location.href="../notice/map.php";
			break;
		case "5" : 
			location.href="../download/map.html";
			break;
		case "6" : 				
			location.href="../bbs/sitemap.html";
			break;
		case "7" : 
			location.href="../member/member_write.html";
			break;
		case "8" : 
			location.href="../company/07.html";
			break;
		case "9" : 
			location.href="../company/08.html";
			break;
		case "10" : 				
			location.href="../company/09.html";
			break;
		case "6" : 
			location.href="../download/map.html";
			break;
	}
}
function twoDepth06(URL){
	switch(URL){			
		case "1" : 
			location.href="../Qna/list.php";
			break;
		case "2" : 
			location.href="../contact/index.html";
			break;
		case "3" : 
			location.href="../notice/as.php";
			break;
		case "4" : 
			location.href="../notice/map.php";
			break;
		case "5" : 				
			location.href="../gallery/main.html";
			break;
		case "6" : 
			location.href="../download/link.html";
			break;
		case "7" : 
			location.href="../sales/list.html?big_cate=±³À°¿ë ±¤Åë½Å Á¦Ç°&middle_cate=ÇÔÃ¼";
			break;
		case "8" : 				
			location.href="";
			break;
	}
}
function twoDepth07(URL){
	switch(URL){			
		case "1" : 
			location.href="../customer/01.html";
			break;
		case "2" : 
			location.href="../bbs/list.html?code=bbs1";
			break;
		case "3" : 
			location.href="../online/form.html";
			break;
		case "4" : 
			location.href="../customer/04.html";
			break;
		case "5" : 				
			location.href="../bbs/list.html?code=bbs2";
			break;
		case "6" : 
			location.href="../customer/06.html";
			break;
		case "7" : 
			location.href="../sales/list.html?big_cate=±³À°¿ë ±¤Åë½Å Á¦Ç°&middle_cate=ÇÔÃ¼";
			break;
		case "8" : 				
			location.href="";
			break;
	}
}
function twoDepth08(URL){
	switch(URL){			
		case "1" : 
			location.href="../company/00.html";
			break;
		case "2" : 
			location.href="../company/01.html";
			break;
		case "3" : 
			location.href="../company/02.html";
			break;
		case "4" : 
			location.href="../company/03.html";
			break;
		case "5" : 				
			location.href="../company/04.html";
			break;
		case "6" : 
			location.href="../download/list.html?code=download1";
			break;
		case "7" : 
			location.href="../company/06.html";
			break;
		case "8" : 				
			location.href="../download/list.html?code=download2";
			break;
		case "9" : 
			location.href="../company/08.html";
			break;
		case "10" : 				
			location.href="../company/09.html";
			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;   ///ÀÌºÎºÐÀÌ Ç×»ó Ã¹¹øÂ° ¸Þ´º»óÅÂ·Î ¸¸µç´Ù.
}


	
	


// Focus
function allblur() {
 for (i = 0; i < document.links.length; i++)
	document.links[i].onfocus = document.links[i].blur;
}

function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
//document.onfocusin=bluring;


// Window_Close
function CloseWindow() {
	window.close();
}

function goLogin(){
//	window.location = "/member/loginInput.do?referer="+location.href;
	var urlStr = location.href;
	var index1 = urlStr.lastIndexOf("coleman.co.kr");
	var tempUrlStr = urlStr.substring(index1 + 13, urlStr.length);
	
	var arrStr = tempUrlStr.split("&");
	var str = "";
	for(var i = 0; i < arrStr.length; i++) {
		str = str + arrStr[i];
		if(i < arrStr.length - 1) {
			str = str + ":";
		}
	}

	window.location = "/member/loginInput.do?referer="+ str;
}
// Window_Open ½ºÅ©·ÑÀÌ ¾øÀ» ¶§
function OpenWindow(url,intWidth,intHeight) {
      window.open(url, "_blank", "width="+intWidth+",height="+intHeight+",resizable=0,scrollbars=0") ;
}

// Window_Open ½ºÅ©·ÑÀÌ ÀÖÀ» ¶§
function OpenWindow_s(url,intWidth,intHeight) {
      window.open(url, "_blank", "width="+intWidth+",height="+intHeight+",resizable=0,scrollbars=1") ;
}


// SwapImg
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];}
}


//ÆäÀÌÁö º¯¼ö ÂüÁ¶
var depth1 = "";
var depth2 = "";
var depth3 = "";
var logchk = "";

function setDepthVar(firvar, secvar, thrvar, logvar) {
	depth1 = firvar;
	depth2 = secvar;
	depth3 = thrvar;
	logchk = logvar;
}




function down(){
url = "/data/rezume.hwp";
}


function rezume(){
url = "/company/write.html";
window.open(url,'','toolbar=no,menubar=no,location=no,directions=no, scrollbars=no,status=0,width=638,height=405,top=300,left=250'); 
}


function ebro(){
url = "/ebro/ebro.html";
window.open(url,'','toolbar=no,menubar=no,location=no,directions=no, scrollbars=no,status=0,width=950,height=670,top=20,left=20'); 
}

// ·çÆ®¼³Á¤
var root = "http://www.dasarobot.com";


// Áñ°ÜÃ£±â
function addbookmark() { 
bookmarkurl = "http://www.dasarobot.com";
bookmarktitle=":: ·Îº¿À» ÅëÇÑ »ê¾÷»çÈ¸ °¡Ä¡Ã¢Ãâ°ú Ç³¿ä·Î¿î ÀÎ°£¼¼»ó - ´Ù»ç·Îº¿ ::";
if (document.all) window.external.AddFavorite(bookmarkurl,bookmarktitle); 
} 


// Title
document.title=":: ·Îº¿À» ÅëÇÑ »ê¾÷»çÈ¸ °¡Ä¡Ã¢Ãâ°ú Ç³¿ä·Î¿î ÀÎ°£¼¼»ó - ´Ù»ç·Îº¿ ::";

// »óÅÂ¹ÙÀÇ ¸µÅ©ÁÖ¼Ò ³ªÅ¸³ª´Â°Í ¼û±â±â //
function hidestatus()
{
	window.status=''
	return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus
// »óÅÂ¹ÙÀÇ ¸µÅ©ÁÖ¼Ò ³ªÅ¸³ª´Â°Í ¼û±â±â //



    function SwfObject_Call(a,b,c,d)
     {
		var idName="";
		if (! isNaN(d)) idName=" id='" +d+ "'";

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