function changeImg(imgName, fileName)
{
	eval("document.all."+imgName+".src ='"+fileName+"';");
}

function changeTb(tbName, tbCount, tbNum) {

	var a;
	for(i=1;i<=tbCount;i++){
		
		a = eval("document.all."+tbName+i);

		if(i != tbNum) {
			a.style.display = 'none';
		}
		else {
			a.style.display = 'block';
		}
	}
}

function empty(){
	alert("ÁØºñÁß ÀÔ´Ï´Ù");
}

function gomenu(str)
{
	if (str=='home') //È¨À¸·Î
	{
		var nextURL = "/index.asp";
	}
	
	else if (str=='login') {
		var nextURL = "/member/login.asp";
	}

	else if (str=='logout') {
		var nextURL = "/member/xt_logout.asp";
	}
	
	else if (str=='customer') {
		window.open("http://www.thehite.com/h_customer/index.asp");
		return;
	}

	else if (str=='sitemap') {
		var nextURL = "/sitemap.asp";
	}

	else if (str=='policy') {
		window.open("http://www.thehite.com/h_customer/member/policy.asp");
		return;
	}

	else if (str=='member') {
		window.open("http://www.thehite.com/h_customer/member/member.asp");
		return;
	}

	else if (str=='calendar')
	{
		window.open('http://www.thehite.com/calendar/calendar.asp','calendar',' scrollbars=no, width=982,height=700');
		return;
	}

	else if (str=='factory')
	{
		window.open('http://www.thehite.com/factory/html2/fac_02.asp');
		return;
	}

	// Hite Story
	else if (str=='1') {
		var nextURL = "/MaxStory/AboutMax.asp";
	}
	else if (str=='1_1')  {
		var nextURL = "/MaxStory/AboutMax.asp";
	}
	else if (str=='1_2')  {
		var nextURL = "/MaxStory/TasteMax.asp";
	}
	else if (str=='1_3')  {
		var nextURL = "/MaxStory/TVCF.asp";
	}
	else if (str=='1_4')  {
		var nextURL = "/MaxStory/Print/Poster.asp";
	}
	else if (str=='1_5')  {
		var nextURL = "/MaxStory/Download/WallPaper.asp";
	}
	else if (str=='2')  {
		var nextURL = "/MaxDraft/hot.asp";
	}
	else if (str=='2_1')  {
		var nextURL = "/MaxDraft/hot.asp";
	}
	else if (str=='2_2')  {
		var nextURL = "/MaxDraft/draft.asp";
	}
	else if (str=='2_3')  {
		var nextURL = "/MaxDraft/franchisee.asp";
	}
	else if (str=='2_4')  {
		var nextURL = "/MaxDraft/zone/list.asp";
	}
	else if (str=='3') {
		var nextURL = "/BeerStory/beerhistory.asp";
	}
	else if (str=='3_1')  {
		var nextURL = "/BeerStory/beerhistory.asp";
	}
	else if (str=='3_2')  {
		var nextURL = "/BeerStory/2percent.asp";
	}
	else if (str=='4') {
		var nextURL = "/GourmetClub/main.asp";
	}
	else if (str=='4_1')  {
		var nextURL = "/GourmetClub/beerlife.asp";
	}
	else if (str=='4_2')  {
		var nextURL = "/GourmetClub/travel.asp";
	}
	else if (str=='4_3')  {
		var nextURL = "/GourmetClub/pro.asp?no=10";
	}
	else if (str=='4_4')  {
		var nextURL = "/GourmetClub/house/list.asp";
	}
	else if (str=='4_5')  {
		var nextURL = "/GourmetClub/club/club.asp";
	}
	else if (str=='4_6')  {
		var nextURL = "/GourmetClub/sightseeing/index.asp";
	}
	else if (str=='4_7')  {
		var nextURL = "/event/20080626/index.asp";
	}
	else if (str=='5') {
		var nextURL = "/event/eventlist.asp";
	}
	else if (str=='5_1')  {
		var nextURL = "/event/eventlist.asp";
	}
	else if (str=='5_2')  {
		var nextURL = "/event/lastevent.asp";
	}
	else if (str=='6') {
		var nextURL = "/notice/list.asp";
	}

	else {
//		var nextURL = "http://www.";
		alert("¸µÅ©¾øÀ½");
		return;
		var nextURL = "#";
	}

	
	window.location.href=nextURL;//+"?" + "&setMenuNum=" + menuNum;
}


function menulink(str){
	if (str=='hite')	var nextURL = "/brand/beer.asp?brand=hite";
	else if (str=='max')	var nextURL = "/brand/beer.asp?brand=max";
	else if (str=='stout')	var nextURL = "/brand/beer.asp?brand=stout";
	else if (str=='exfeel')	var nextURL = "/brand/beer.asp?brand=exfeel";
	else if (str=='fosters')	var nextURL = "/brand/beer.asp?brand=fosters";
	else if (str=='kirin')	var nextURL = "/brand/beer.asp?brand=kirin";
	else if (str=='carlsberg')	var nextURL = "/brand/beer.asp?brand=carlsberg";
	else if (str=='kingdom21')	var nextURL = "/brand/yangju.asp?brand=kingdom21";
	else if (str=='lancelot')	var nextURL = "/brand/yangju.asp?brand=lancelot";
	else if (str=='cuttysark')	var nextURL = "/brand/yangju.asp?brand=cuttysark";
	else if (str=='puriss')	var nextURL = "/brand/water.asp?brand=puriss";
	else if (str=='jinro')	 {window.open('http://www.jinro.com/');return;}
	else if (str=='hitesoju')	 {window.open('http://www.hitesoju.com/');return;}
	else if (str=='blueheron')	 {window.open('http://www.blueheron.co.kr/');return;}
	else if (str=='calendar') {window.open('http://www.thehite.com/calendar/calendar.asp','calendar',' scrollbars=no, width=982,height=700');return;}
	else if (str=='factory') var nextURL = "/factory/html2/fac_02.asp";

	else {
//		var nextURL = "http://www.";
		alert("ÁØºñÁß ÀÔ´Ï´Ù");
		return;
		var nextURL = "#";
	}

	
	window.open('http://www.thehite.com/'+nextURL);
}

function sitemapHeight(value){
	document.getElementById("sitemap").style.height = value+"px";
}