// Å¾ ¸Þ´º
function home(){
	location.href="/";
}
function top_menu(num){
	switch(num){
		case "1" : location.href="/";break;
		case "2" : SiteMapView();break;
		case "3" : ContactView();break;
	}
}


// ¸ÞÀÎ ¸Þ´º
function main_menu(num){
	switch(num){
		case "1" : location.href="sub01_01.html";break;
		case "2" : location.href="sub02_01_a.html";break;
		case "3" : location.href="sub03_01.html";break;
		case "4" : location.href="sub04_01.html";break;
		case "5" : location.href="sub05_01.html";break;
	}
}


// ¼­ºê ¸Þ´º
function sub_1(num){
	switch(num){
		case "1" : location.href="sub01_01.html";break;
		case "2" : location.href="sub01_02.html";break;
		case "3" : location.href="sub01_03.html";break;
		case "4" : location.href="sub01_04.html";break;
		case "5" : location.href="sub01_05.html";break;
		case "6" : location.href="sub01_06.html";break;
	}
}

function sub_2(num){
	switch(num){
		case "1" : location.href="sub02_01_a.html";break;
		case "2" : location.href="sub02_02.html";break;
		case "3" : location.href="sub02_03.html";break;
	}
}

function sub_3(num){
	switch(num){
		case "1" : location.href="sub03_02.html";break;
		case "2" : location.href="sub03_03.html";break;
		case "3" : location.href="sub03_04.html";break;
		case "4" : location.href="sub03_05.html";break;
		case "5" : location.href="sub03_06.html";break;
		case "6" : location.href="sub03_07.html";break;
	}
}

function sub_4(num){
	switch(num){
		case "1" : location.href="sub04_01.html";break;
		case "2" : location.href="sub04_02.html";break;
		case "3" : location.href="sub04_03.html";break;
	}
}

function sub_5(num){
	switch(num){
		case "1" : location.href="sub05_01.html";break;
		case "2" : location.href="sub05_02.html";break;
	}
}

//»çÀÌÆ®¸Ê
function SiteMapView(){
	MovePosition1();
	cover_reset();
	document.all.sitemap.style.display="";
	document.all.cover.style.display="";
}

function SiteMapClose(){
	document.all.sitemap.style.display="none";
	document.all.cover.style.display="none";
}

function MovePosition1(){
    var wndWidth = parseInt(document.body.clientWidth);
	var wndHeight = parseInt(document.body.clientHeight);
	sitemap.style.left=wndWidth/2 - 340;
    // ÆäÀÌÁö ·Îµù½Ã Æ÷Áö¼Ç
	sitemap.style.top = document.body.scrollTop + wndHeight/2 - 200;
    // initializing UI update timer
    return true;
}

//Contact Us
function ContactView(){
	MovePosition2();
	cover_reset();
	document.all.contact.style.display="";
	document.all.cover.style.display="";
}

function ContactClose(){
	document.all.contact.style.display="none";
	document.all.cover.style.display="none";
}

function MovePosition2(){
    var wndWidth = parseInt(document.body.clientWidth);
	var wndHeight = parseInt(document.body.clientHeight);
	contact.style.left=wndWidth/2 - 225;
    // ÆäÀÌÁö ·Îµù½Ã Æ÷Áö¼Ç
	contact.style.top = document.body.scrollTop + wndHeight/2 - 180;
    // initializing UI update timer
    return true;
}


function ConChk(){
	if(contactForm.wName.value==""){
		alert("ÀÌ¸§À» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
		contactForm.wName.focus();
		return false;
	}
	if(contactForm.phone.value==""){
		alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.");
		contactForm.phone.focus();
		return false;
	}
	if(contactForm.email1.value==""){
		alert("ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
		contactForm.email1.focus();
		return false;
	}
	if(contactForm.email2.value==""){
		alert("ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
		contactForm.email2.focus();
		return false;
	}
	if(contactForm.content.value==""){
		alert("¹®ÀÇ³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
		contactForm.content.focus();
		return false;
	}
}
