//잉글리쉬하우스

function GoPage(code, url) {
	if ( !code )						{	window.location = "/index.php";	}
	
	//메인
	else if ( code == "main" )				{	window.location = "/index.php"; } //메인 

	//01_홈페이지
	else if ( code == "sub01" )			{	window.location = "/sub1_1.php"; }	//제작비용
	else if ( code == "sub01_1_2" )			{	window.location = "/sub1_1_2.php"; }	//제작비용
	else if ( code == "sub01_1_3" )			{	window.location = "/sub1_1_3.php"; }	//제작비용
	else if ( code == "sub01_1_4" )			{	window.location = "/sub1_1_4.php"; }	//제작비용
	else if ( code == "sub01_2" )			{	window.location = "/sub1_2.php"; }	//제작안내
	else if ( code == "sub01_3" )			{	window.location = "/sub1_3.php"; }	//대학교홈페이지
	else if ( code == "sub01_4" )			{	window.location = "/bbs/write.php?bo_table=sub8&pp=2"; }	//제작문의
	else if ( code == "sub01_5" )			{	window.location = "/bbs/board.php?bo_table=sub6_2"; }	//제작사례
	else if ( code == "sub01_6" )			{	window.location = "/bbs/board.php?bo_table=sub8_5"; }	//디쏘후기


	//쇼핑몰
	else if ( code == "sub02" )			{	window.location = "/sub2_1.php"; }	//제작안내
	else if ( code == "sub02_2" )			{	window.location = "/sub2_2.php"; }	//고객준비사항
	else if ( code == "sub02_3" )			{	window.location = "/sub2_3.php"; }	//기능안내
	else if ( code == "sub02_4" )			{	window.location = "/bbs/write.php?bo_table=sub8&pp=2"; }	//제작문의
	else if ( code == "sub02_5" )			{	window.location = "/bbs/board.php?bo_table=sub6_2"; }	//제작사례
	else if ( code == "sub02_6" )			{	window.location = "/bbs/board.php?bo_table=sub8_5"; }	//디쏘후기


	//모바일
	else if ( code == "sub03" )			{	window.location = "/sub3_1.php"; }	//모바일
	else if ( code == "sub03_2" )			{	window.location = "/sub3_2.php"; }	//웹접근성
	else if ( code == "sub03_3" )			{	window.location = "/bbs/write.php?bo_table=sub8&pp=2"; }	//제작문의


	//웹접근성
	else if ( code == "sub04" )			{	window.location = "/sub4_1.php"; }	//웹접근성
	else if ( code == "sub04_2" )			{	window.location = "/bbs/write.php?bo_table=sub8&pp=2"; }	//제작문의 


	//유지보수
	else if ( code == "sub05" )			{	window.location = "/sub5_1.php"; }	//홈페이지 패키지
		else if ( code == "sub05_1_s" )			{  window.location.style="cursor:hand"; window.open('/sub5_1_s.php','window','location=no, directories=no,resizable=no,status=no,toolbar=no,menubar=no, width=800,height=380,left=100, top=20, scrollbars=yes');}
	else if ( code == "sub05_2" )			{	window.location = "/sub5_2.php"; }	//쇼핑몰 패키지
	else if ( code == "sub05_3" )			{	window.location = "/sub5_3.php"; }	//건벌 유지보수 비용
	else if ( code == "sub05_3_s" )			{  window.location.style="cursor:hand"; window.open('/sub5_3_s.php','window','location=no, directories=no,resizable=no,status=no,toolbar=no,menubar=no, width=800,height=500,left=100, top=20, scrollbars=yes');}
	else if ( code == "sub05_3_ss" )			{  window.location.style="cursor:hand"; window.open('/sub5_3_ss.php','window','location=no, directories=no,resizable=no,status=no,toolbar=no,menubar=no, width=800,height=350,left=100, top=20, scrollbars=yes');}
	//건벌 유지보수 비용
	else if ( code == "sub05_4" )			{	window.location = "/sub5_4.php"; }	//맞춤별 프로그램


	//포트폴리오
	else if ( code == "sub06" )			{	window.location = "/bbs/board.php?bo_table=sub6_1"; }	//기업
	else if ( code == "sub06_2" )			{	window.location = "/bbs/board.php?bo_table=sub6_2"; }	//쇼핑몰
	else if ( code == "sub06_3" )			{	window.location = "/bbs/board.php?bo_table=sub6_3"; }	//대학교
	else if ( code == "sub06_4" )			{	window.location = "/bbs/board.php?bo_table=sub6_4"; }	//프랜차이즈
	else if ( code == "sub06_5" )			{	window.location = "/bbs/board.php?bo_table=sub6_5"; }	//진행중프로젝트


	//부가서비스
	else if ( code == "sub07" )			{	window.location = "/sub7_1.php"; }	//무료서비스
	else if ( code == "sub07_2" )			{	window.location = "/sub7_2.php"; }	//온라인마케팅
	else if ( code == "sub07_2_2" )			{	window.location = "/sub7_2_2.php"; }	//온라인마케팅
	else if ( code == "sub07_2_3" )			{	window.location = "/sub7_2_3.php"; }	//온라인마케팅
	else if ( code == "sub07_3" )			{	window.location = "/sub7_3.php"; }	//sms 서비스
	else if ( code == "sub07_4" )			{	window.location = "/sub7_4.php"; }	//전자결제
	else if ( code == "sub07_5" )			{	window.location = "/sub7_5.php"; }	//웹메일서비스
	else if ( code == "sub07_6" )			{	window.location = "/sub7_6.php"; }	//실명인증


	//포트폴리오
	else if ( code == "sub08" )			{	window.location = "/bbs/board.php?bo_table=sub8_1"; }	//공지사항
	else if ( code == "sub08_2" )			{	window.location = "/bbs/write.php?bo_table=sub8&pp=2"; }	//온라인견적문의
	else if ( code == "sub08_3" )			{	window.location = "/bbs/board.php?bo_table=sub8&pp=3"; }	//견적진행사항
	else if ( code == "sub08_4" )			{	window.location = "/bbs/board.php?bo_table=sub8_4"; }	//요즘디쏘는?
	else if ( code == "sub08_5" )			{	window.location = "/bbs/board.php?bo_table=sub8_5"; }	//수정요청
	else if ( code == "sub08_6" )			{	window.location = "/bbs/board.php?bo_table=sub8_6"; }	//자주묻는질문
	else if ( code == "sub08_7" )			{	window.location = "/bbs/board.php?bo_table=sub8_7"; }	//제작후기
	else if ( code == "sub08_8" )			{	window.location = "/sub8_8.php"; }	//대금결제
	else if ( code == "sub08_9" )			{	window.location = "#"; }	//세금계산서 요청
	else if ( code == "sub08_10" )			{	window.location = "#"; }	//채용정보

	//디자인쏘다 
	else if ( code == "sub09" )			{	window.location = "#"; }	//회사소개
	else if ( code == "sub09_2" )			{	window.location = "/sub9_2.php"; }	//오시는길
	else if ( code == "sub09_3" )			{	window.location = "#"; }	//디쏘의일상
	else if ( code == "sub09_4" )			{	window.location = "/bbs/board.php?bo_table=sub8_4"; }	//요즘디쏘는?
	else if ( code == "sub09_5" )			{	window.location = "/bbs/board.php?bo_table=sub8_5"; }	//수정요청
	else if ( code == "sub09_6" )			{	window.location = "/bbs/board.php?bo_table=sub8_6"; }	//자주묻는질문
	else if ( code == "sub09_7" )			{	window.location = "/bbs/board.php?bo_table=sub8_7"; }	//제작후기
	else if ( code == "sub09_8" )			{	window.location = "#"; }	//대금결제
	else if ( code == "sub09_9" )			{	window.location = "#"; }	//세금계산서 요청
	else if ( code == "sub09_10" )			{	window.location = "#"; }	//채용정보


//회원부분

	else if ( code == "login" )		{	window.location = ""+g4_path+"/"+g4_bbs+"/login.php";}	//로그인
	else if ( code == "join" )		{	window.location = ""+g4_path+"/"+g4_bbs+"/register.php";}	//회원가입
	else if ( code == "modify" )		{	window.location = ""+g4_path+"/"+g4_bbs+"/member_confirm.php?url=register_form.php";}	//수정
	else if ( code == "logout" )		{	window.location = ""+g4_path+"/"+g4_bbs+"/logout.php";}	//로그아웃
	else if ( code == "cart" )		{	window.location = ""+g4_path+"/shop/cart.php";}	//장바구니
	else if ( code == "order" )		{	window.location = ""+g4_path+"/shop/orderinquiry.php";}	//주문조회
	else if ( code == "mypage" )		{	window.location = ""+g4_path+"/shop/mypage.php";}	//마이페이지


//카피부분 

	else if ( code == "copy1" )		{	window.location.style="cursor:hand"; window.open('/utillity/utillity01.php','window2','location=no, directories=no,resizable=no,status=no,toolbar=no,menubar=no, width=725,height=450,left=100, top=20, scrollbars=yes'); }	//개인정보취급방침 
	else if ( code == "copy2" )		{	window.location.style="cursor:hand"; window.open('/utillity/utillity02.php','window','location=no, directories=no,resizable=no,status=no,toolbar=no,menubar=no, width=725,height=450,left=100, top=20, scrollbars=yes'); }	//이용약관
	else if ( code == "copy3" )		{	window.location.style="cursor:hand"; window.open('/utillity/utillity03.php','window3','location=no, directories=no,resizable=no,status=no,toolbar=no,menubar=no, width=725,height=450,left=100, top=20, scrollbars=yes'); }	//저작권안내  
	else if ( code == "copy4" )		{	window.location.style="cursor:hand"; window.open('/utillity/utillity04.php','window3','location=no, directories=no,resizable=no,status=no,toolbar=no,menubar=no, width=725,height=450,left=100, top=20, scrollbars=yes'); }	//이메일무단수집거부 






//링크방법 javascript:GoPage('sub01')
}





function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

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.0
  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 && document.getElementById) x=document.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 open_win(val, wname, wopt, menu) {
	var newopt = "", wHeight = 0, wWidth = 0;
	if (wopt != undefined) {
		var woptlist = wopt.replace(/ /g, "").split(",");
		for (var i in woptlist) {
			if (woptlist[i].match(/^height=/i)) {
				wHeight = parseInt(woptlist[i].substr(7),10);
				if (!isNaN(wHeight)) newopt += "top=" + Math.floor((screen.availHeight - wHeight) / 2) + ",";
			}
			if (woptlist[i].match(/^width=/i)) {
				wWidth = parseInt(woptlist[i].substr(6),10);
				if (!isNaN(wWidth)) newopt += "left=" + Math.floor((screen.availWidth - wWidth) / 2) + ",";
			}
		}
	}

	url = val + "?" + menu;
	window.open(url, wname, newopt + wopt); 
} 

function wdRollMenu(obj,over,out)
{
 obj.src = over;
 obj.onmouseout = new Function("this.src='"+out+"'");
} 
function wdLeftMenuView(m)
{
	var mm = document.getElementById(m);
	mm.style.display = "block";
	//if(mm.style.display=="block") mm.style.display = "none";
	//else mm.style.display = "block";
}

//페이지 인식
function wdRollMenu(obj,over,out,view)
{
 obj.src = over;
 if(out) obj.onmouseout = new Function("this.src='"+out+"'");
 
 //var m  = document.getElementById("m_"+view);
 var sm = document.getElementById("sm_"+view);
 
 if(sm != null){
  sm.style.display = "block";
  //sm.onmouseout = new Function("if(this.style.display=='block') this.style.display='none'");
  //m.onmouseout  = new Function("if("+sm+".style.display=='block') "+sm+".style.display='none'");
 }
}


