var imgUrl = "http://images.hanjamaru.co.kr/nhn/hanjamaru";
if (location.href.substring(0, 5) == "https") {
	imgUrl = "https://members.hanjamaru.com/images";
}

document.write('<div id="PLEASE_INSERT_UNIQUE_ID" class="layer_bubble" style="top:20px; left:20px;display:none">');
document.write('	<div class="layer_content">');
document.write('    	<div class="layer_body">');
document.write('            <p style="padding:16px 0 5px">임시아이디는 해당서비스를 이용하실 수 없습니다.</p>');
document.write('            <div class="btnArea">');
document.write('                <!--a href="#"><img src="' + imgUrl + '/img/common/extraid/btn_change_realid4.gif" width="141" height="30" alt="정식 아이디 전환"></a-->');
document.write('                <a href="#" onClick="toggleAlertDenyExtraMessage(\'OFF\')"><img src="' + imgUrl + '/img/common/extraid/btn_confirm.gif" width="72" height="30" alt="확인"></a>');
document.write('            </div>');
document.write('        </div>');
document.write('		<span class="rt_iefix"></span>');
document.write('	</div>');
document.write('	<span class="rt">');
document.write("	<!-- Do not delete this comment. It's hack for IE6 -->");
document.write('	</span>');
document.write('	<span class="lb"></span><span class="rb"></span><span class="arrow top"></span>');
document.write('    <a href="#" class="close_layer" onClick="toggleAlertDenyExtraMessage(\'OFF\')"><img src="' + imgUrl + '/img/common/extraid/btn_close2.gif" alt="레이어닫기" width="15" height="14"></a>');
document.write('</div>');

function toggleAlertDenyExtraMessage(type) {
	if (type == 'ON') {
		var height = ((document.documentElement.clientHeight + document.documentElement.scrollTop + 50) / 2) + "px";
		if (parent && parent != this) {
			height = ((parent.document.documentElement.clientHeight + parent.document.documentElement.scrollTop + 50) / 2) - 250;
		}
		document.getElementById('PLEASE_INSERT_UNIQUE_ID').style.top = height;
		document.getElementById('PLEASE_INSERT_UNIQUE_ID').style.left = (document.documentElement.clientWidth / 2 - 250) + "px";
		document.getElementById('PLEASE_INSERT_UNIQUE_ID').style.display='inline';
		
	} else {
		document.getElementById('PLEASE_INSERT_UNIQUE_ID').style.display='none';
	}
}



function checkExtraMember(nextUrl, extraYn, isDenyExtraMenu) {
	if (extraYn == 'Y'  && isDenyExtraMenu) {
		toggleAlertDenyExtraMessage('ON');
	} else {
		location.href = nextUrl;
	}
}