function goURL(str)
{
	var url = "";
	switch(str)
	{
		case "info1":		// About CCA
			url="/2005/info/info1.php";break;
		case "info2":		// Map&Club Info
			url="/2005/info/info2.php";break;

		case "program1":		// Club Day
			url="/2005/program/program1.php";break;
		case "program2":		// Sound Day
			url="/2005/program/program2.php";break;
		case "program3":		// Road Club Festival
			url="/2005/program/program3.php";break;
		case "program4":		// Youth Club Festival
			url="/2005/program/program4.php";break;
		case "program5":		// Å¬·´¹®È­´ë¿¬±³À°
			url="/2005/program/program5.php";break;
		
		case "feature1":		// Club Music
			url="/2005/feature/clubmusic/list.php?CfgIndex=6";break;
		case "feature2":		// Party Schedule
			url="/2005/feature/party/list.php?CfgIndex=7";break;
		case "feature3":		// Sketch
			url="/2005/feature/sketch/list.php?CfgIndex=8";break;

		case "archive1":		// ClubCulture(ÀÚ·á½Ç)
			//url="/2005/archive/pds/list.php?CfgIndex=1";break;
			alert("ÁØºñÁß ÀÔ´Ï´Ù.");break;
		case "archive2":		// Press
			url="/2005/archive/press/list.php?CfgIndex=2";break;

		case "link1":		// Å¬·´¸µÅ©
			url="/2005/link/link1.php";break;
		case "link2":		// Å¬·´¹®È­¸µÅ©
			url="/2005/link/link2.php";break;
		case "link3":		// Ä¿¹Â´ÏÆ¼¸µÅ©
			url="/2005/link/link3.php";break;

		case "board1":		// attention
			url="/2005/board/attention/list.php?CfgIndex=3";break;
		case "board2":		// bbs
			url="/2005/board/bbs/list.php?CfgIndex=4";break;
		case "board3":		// q&a
			url="/2005/board/qna/list.php?CfgIndex=5";break;
	}

	if (url!="") {
		location.href = "http://www.clubculture.or.kr"+url;
	}
}

var pop1;
var pop2;
var sw = screen.availWidth;
var sh = screen.availHeight;

function openRegister()
{
	var width = 500;
	var height = 480;
	var posLt = (sw-width)/2;
	var posTp = (sh-height)/2;

	var popMem = window.open("/2005/member/register.php","popMem","width="+width+",height="+height+",top="+posTp+",left="+posLt+",menubar=0,scrollbars=0,resizable=0");
	popMem.focus();
}

function openLogin()
{
	var width = 500;
	var height = 480;
	var posLt = (sw-width)/2;
	var posTp = (sh-height)/2;

	var reqURL = document.URL;
	reqURL = reqURL.replace("http://","")
	reqURL = reqURL.substring(reqURL.indexOf("/"));
	reqURL = escape(reqURL);

	var popLogin = window.open("/2005/member/login.php?ReqURL="+reqURL,"popLogin","width="+width+",height="+height+",top="+posTp+",left="+posLt+",menubar=0,scrollbars=0,resizable=0");
	popLogin.focus();
}

function openMypage()
{
	var width = 500;
	var height = 480;
	var posLt = (sw-width)/2;
	var posTp = (sh-height)/2;

	var popMypage = window.open("/2005/member/mypage.php","popMypage","width="+width+",height="+height+",top="+posTp+",left="+posLt+",menubar=0,scrollbars=0,resizable=0");
	popMypage.focus();
}

function viewImgPop(fileURL)
{
	var posLt = (sw-50)/2;
	var posTp = (sh-50)/2;
	var popImg = window.open("/2005/lib/file/pop_img.php?FileURL="+fileURL,"popImg","top="+posTp+",left="+posLt+",width=100,height=100,scrollbars=1");
	popImg.focus();
}