// 메인탭
function mboard(OBJ) {
	if (OBJ == "1") {   
		mboard1.style.display = "";
		mboard2.style.display = "none";
	}
	else if(OBJ == "2") {   
		mboard1.style.display = "none";
		mboard2.style.display = "";
	}
}


// 패키지 갤러리
function changeImage(filename) { mainimage.src = filename; }


// 상식탭
function info(OBJ) {
	if (OBJ == "1") {   
		info1.style.display = "";
		info2.style.display = "none";
		info3.style.display = "none";
	}
	else if(OBJ == "2") {   
		info1.style.display = "none";
		info2.style.display = "";
		info3.style.display = "none";		
	}
	else if(OBJ == "3") {   
		info1.style.display = "none";
		info2.style.display = "none";
		info3.style.display = "";		
	}
}

// 투어탭
function tour(OBJ) {
	if (OBJ == "1") {   
		tour1.style.display = "";
		tour2.style.display = "none";
		tour3.style.display = "none";
		tour4.style.display = "none";
		tour5.style.display = "none";
		tour6.style.display = "none";
		tour7.style.display = "none";
	}
	else if(OBJ == "2") {   
		tour1.style.display = "none";
		tour2.style.display = "";
		tour3.style.display = "none";		
		tour4.style.display = "none";
		tour5.style.display = "none";
		tour6.style.display = "none";
		tour7.style.display = "none";
	}
	else if(OBJ == "3") {   
		tour1.style.display = "none";
		tour2.style.display = "none";
		tour3.style.display = "";		
		tour4.style.display = "none";
		tour5.style.display = "none";
		tour6.style.display = "none";
		tour7.style.display = "none";
	}
	else if(OBJ == "4") {   
		tour1.style.display = "none";
		tour2.style.display = "none";
		tour3.style.display = "none";		
		tour4.style.display = "";
		tour5.style.display = "none";
		tour6.style.display = "none";
		tour7.style.display = "none";
	}
	else if(OBJ == "5") {   
		tour1.style.display = "none";
		tour2.style.display = "none";
		tour3.style.display = "none";		
		tour4.style.display = "none";
		tour5.style.display = "";
		tour6.style.display = "none";
		tour7.style.display = "none";
	}
		else if(OBJ == "6") {   
		tour1.style.display = "none";
		tour2.style.display = "none";
		tour3.style.display = "none";		
		tour4.style.display = "none";
		tour5.style.display = "none";
		tour6.style.display = "";
		tour7.style.display = "none";
	}
	else if(OBJ == "7") {   
		tour1.style.display = "none";
		tour2.style.display = "none";
		tour3.style.display = "none";		
		tour4.style.display = "none";
		tour5.style.display = "none";
		tour6.style.display = "none";
		tour7.style.display = "";
	}
}
function comma(n){
	return Number(String(n).replace(/\..*|[^\d]/g,"")).toLocaleString().slice(0,-3);
}

var win_jejumap;
function view_info()
{
	var iMyWidth;
	var iMyHeight;
	var mywidth;
	var myheight;

	if (self.child!=null) {
		mywidth=900;
		myheight=560;
		iMyWidth = parseInt((screen.availWidth-mywidth)/2)
		iMyHeight = parseInt((screen.availHeight-myheight)/2)		
		
		self.child.moveTo(iMyWidth,iMyHeight);	
		self.child.resizeTo(mywidth,myheight);			
	} else {

		url="http://www.ilovejeju.co.kr/gojejumap_happy.asp"
	
		mywidth=680;
		myheight = screen.availHeight

		iMyWidth = parseInt((screen.availWidth-mywidth)/2)
		iMyHeight = parseInt((screen.availHeight-myheight)/2)		
		win_jejumap = window.open(url,"jejumap_win",'width='+ mywidth +',height='+myheight+',scrollbars=1,resizable=0,toolbar=0,left=' + iMyWidth + ',top=' + iMyHeight);
	}

	win_jejumap.focus();
}
