function toggleInfoPane(first){
	if(first==true) g_infoViewed=true;
	else if(g_noInfo==1)
	{
		if(!confirm('영원히 안보신다고 하셔서 가능하면 보여드리지 않으려고 하는데,\n그래도 보시겠습니까?'))
			return;
	}
	if(el("cl_contents").src.indexOf("left_info") == -1)
		el("cl_contents").src = "left_info.php";
	else
		setLeftArea();

	if(g_leftVisible == false)
		setLeftVisible(true);
}
function showLoginPopup(){
	var ret = encodeURIComponent(getCurrURL());
	showPopup('로그인',320,180,'plogin.html?ret='+ret);
}
function showSignUpPopup(){
	var ret = encodeURIComponent(getCurrURL());
	showPopup('회원가입',360,250,'psignup.html?ret='+ret);
}
function showTwitterPopup(){
  var ret = encodeURIComponent(getCurrURL());
	showPopup('계정 연동',650,600,'ptwitter.html?ret='+ret);
}
function showReportPopup(){
	showPopup('개선/수정요청', 600, 500, 'preport.php');
}
function showShare(){
	var params = getCurrParams();
	var wnd = window.open("share.php?"+params, "share","resizable=1,scrollbars=1,toolbar=0,height=650,width=600",false);
	wnd.focus();
}
function showOauth(){
	var params = getCurrParams();
	var wnd = window.open("twitter/oauth.php", "share","resizable=1,scrollbars=1,toolbar=0,height=510,width=830",false);
	wnd.focus();  
}
function showPrint(){
	var params = getCurrParams();
	var wnd = window.open("print/index.html?"+params, "share","resizable=1,scrollbars=1,toolbar=0,height=700,width=700",false);
	wnd.focus();
}
function hideHelpSelArea(){
	var o = el("h_selarea");
	o.style.display="none";
	clearTimeout(timerid);
}
function hideIntro(){
	if(el("nointro").checked){
		var exdate = new Date();
		exdate.setDate(exdate.getDate()+50);
		document.cookie = "nointro=1;expires="+exdate.toGMTString();
	}
	timerid=setTimeout("slideIntro()", 50);
}
function slideIntro(){
	var t = parseInt(el('intro').style.top) - 30;
	var h = getWindowHeight();
	el('intro').style.top = t+"px";
	if(t * -1 > h){
		clearTimeout(timerid);
		el('intro').style.display="none";
		timerid = setTimeout("hideHelpSelArea()", 6000);
		
		if (getCookie("nonotice2") != 1) {
			$.fn.colorbox({
				iframe: true,
				href: "notice.html",
				width: "300px",
				height: "250px",
				open: true,
				title: "공지사항",
				speed: 200
			});
			$().bind("cbox_close", function(){
				var cb = document.getElementById("cboxIframe").contentWindow.document.getElementById("nonotice")
				if (cb && cb.checked) {
					var exdate = new Date();
					exdate.setDate(exdate.getDate() + 50);
					document.cookie = "nonotice2=1;expires=" + exdate.toGMTString();
				}
			});
		}
	}else
		setTimeout("slideIntro()", 5);
}
function showSeoulMap(){
	hideFloats();
	$.fn.colorbox({
		iframe: true,
		href: "city/seoul.html",
		width: "642px",
		height: "540px",
		open: true,
		title: " "/* "서울 지역 선택"*/,
		speed: 200
	});
}
function seoulMapOnAreaClick(areaid){
	$.fn.colorbox.close();
	showMap(areaid);	
}
function popupAreaIng(area){
	hideFloats();
	$.fn.colorbox({
		iframe: true,
		href: "area_ing.php?a="+area,
		width: "600px",
		height: "500px",
		open: true,
		title: "지금 이곳에선?",
		speed: 200
	});	
}
