var quickId;
function view_quick(id) {
if(quickId != null)
close_quick(quickId);
if(quickId == id)
{
close_quick(id);
quickId = null;
}else
{
quickView(id, 'block');
quickId = id;
}
}
function close_quick(id) {
quickView(id, 'none');
}
function quickView(id, act) {
if (document.getElementById(id)) {
document.getElementById(id).style.display = act;
}
}
function hideLayerAll(layer) {
switch(layer) {
case "member" :
if (document.getElementById("sub_list2")) divDisplay ("sub_list2", 'none'); // 등급변경 레이어
if (document.getElementById("ScrapLayer")) divDisplay ("ScrapLayer", 'none'); // 스크랩 레이어
break;
case "grade" :
if (document.getElementById("nameContextMenu")) divDisplay ("nameContextMenu", 'none'); // 회원정보 레이어
if (document.getElementById("ScrapLayer")) divDisplay ("ScrapLayer", 'none'); // 스크랩 레이어
break;
case "scrap" :
if (document.getElementById("nameContextMenu")) divDisplay ("nameContextMenu", 'none'); // 회원정보 레이어
if (document.getElementById("sub_list2")) divDisplay ("sub_list2", 'none'); // 등급변경 레이어
break;
case "reserved" :
if (document.getElementById("calendarBox")) divDisplay ("calendarBox", 'none'); // 예약발송메일 달력 레이어
break;
}
}
function toggleDisplay(id) {
clickAreaCheck = false;
var obj = document.getElementById(id);
if(obj.style.display=="none") {
clickAreaCheck = true;
obj.style.display = "block";
} else {
obj.style.display = "none";
}
}
document.domain='daum.net';
var node = Math.floor(Math.random()*4) + 1 ;
var titleStr = "Daum 카페 | \uCCB4\uC2E0\uAC00\uC871 - 2008. 6\uC6D4 17\uC77C \uC2DC\uC0AC\uB9CC\uD3C9 \uC785\uB2C8\uB2E4";
if (top != null) {
top.document.title = titleStr;
} else {
document.title = titleStr;
}
function popup(szURL, szName, iWidth, iHeight, properties) {
var p ;
if (typeof(properties) == "undefined") {
p= 'resizable=yes,scrollbars=yes,';
}else{
p = properties;
}
window.open(szURL, szName, 'width=' + iWidth + ',height=' + iHeight + ', '+p);
}
function caller(url) {
top.status='';
if (top.flag != null) {
top.deflag();
}
location.href=url;
}
function goManager(grpid, euserid, mgrpid) {
if (typeof(mgrpid) == "undefined") {
//window.open('/_c21_/member_manager?grpid='+grpid+'&userid='+euserid, "manager", 'width=650,height=350,resizable=yes,scrollbars=yes');
document.location.href = "/_c21_/cafe_profile?grpid="+grpid+"&view=manager";
}else{
window.open('/_c21_/group_member_manager?grpid='+grpid+'&mgrpid='+mgrpid+'&userid='+euserid, "manager", 'width=650,height=350,resizable=yes,scrollbars=yes');
}
}
//프레임 싸주기
// 검색 관련 프레임 씌우기 시작.
// 검색에서 온 정보성 게시글에서 다른 링크로 이동시 펌 링크 주소 없애고 카페주소 보이기 위해 다시 씌움(카페온 실행 용도도 있음)
var isSearchProcess = false;
try {
if (document.location.href.indexOf("cafesearch") != -1) {
}
else if (top.isSearch && location.href.indexOf("bbs_search_read") == -1) { //검색용 cindex가 쌓여있다면...또한 검색 페이지가 아니면..
var today = new Date();
var expires = new Date(today.getTime() + (30*1000));
[안내]태그제한으로등록되지않습니다-document.cookie = "TCH" + "=" + encodeURI(document.location.href) + "; domain=daum.net; path=/; expires=" + expires.toGMTString();
top.location.href = "http://cafe.daum.net/jusoham";
isSearchProcess = true;
}
} catch (err) {
}
// 검색 관련 프레임 씌우기 끝.
if (isSearchProcess) {
} else if (document.referrer.indexOf("search.daum.net") != -1 || document.referrer.indexOf("ucc.daum.net") != -1) {
//web-inside용 (검색에서 올경우 referrer가 남지 않아 불가피하게 쿠키 사용함.
[안내]태그제한으로등록되지않습니다-document.cookie = "DWI" + "=" + encodeURI(document.referrer) + "; domain=daum.net; path=/_c21_/;";
} else if (document.referrer.indexOf("www.daum.net") != -1 || document.referrer.indexOf("cafe.daum.net") != -1) {
[안내]태그제한으로등록되지않습니다-document.cookie = "DWI" + "=" + encodeURI(document.referrer) + "; domain=daum.net; path=/_c21_/;";
[안내]태그제한으로등록되지않습니다-document.cookie = "INHOST" + "=TOP; domain=daum.net; path=/_c21_/;";
if ( !top.down ) {
if (location.href.indexOf("_top__ranking") == -1 && location.href.indexOf("_top_wow") == -1) {
var today = new Date();
var expires = new Date(today.getTime() + (30*1000));
[안내]태그제한으로등록되지않습니다-document.cookie = "TCH" + "=" + encodeURI(document.location.href) + "; domain=daum.net; path=/; expires=" + expires.toGMTString();
if (location.href.indexOf("_c21_/join_register") != -1) {
top.location.href = "http://cafe.daum.net/jusoham";
}
}
}
} else if (location.href.indexOf("bbs_search_read") != -1) {
// 즐겨 찾기를 위해
} else if (document.location.href.indexOf("cafesearch") != -1) {
//카페 검색을 위해(꼬릿말 팝업)
} else {
if ( "down" != window.name ) {
var today = new Date();
var expires = new Date(today.getTime() + (30*1000));
[안내]태그제한으로등록되지않습니다-document.cookie = "TCH" + "=" + encodeURI(document.location.href) + "; domain=daum.net; path=/; expires=" + expires.toGMTString();
top.location.href = "http://cafe.daum.net/jusoham";
}
}
try {
if (parent.proxy) {
var topobj = document.getElementById("upper");
topobj.style.display = 'none';
}
} catch (e) {
}
var clickAreaCheck = false;
document.[안내]태그제한으로등록되지않습니다-xxonclick = function() {
if (!clickAreaCheck) {
hideSideView();
if(document.getElementById("ScrapLayer")) {
divDisplay ("ScrapLayer", 'none');
}
if(document.getElementById("emoticon")) {
divDisplay ("emoticon", 'none');
}
} else {
clickAreaCheck = false;
}
}
function minidaum_[안내]태그제한으로등록되지않습니다-xxonclick() {
if (!clickAreaCheck) {
hideSideView();
if(document.getElementById("ScrapLayer")) {
divDisplay ("ScrapLayer", 'none');
}
if(document.getElementById("emoticon")) {
divDisplay ("emoticon", 'none');
}
if(document.getElementById("qMenu_service")) {
divDisplay ("qMenu_service", "none");
if(document.getElementById('dir_to_home').className == 'over'){
document.getElementById('dir_to_home').className = 'out';
}
}
} else {
clickAreaCheck = false;
}
}
function chg_class(target, val, div_id){
if(target.className == 'out'){
target.className = 'over';
if(div_id){
divDisplay (div_id, 'block');
clickAreaCheck = true;
}
}
else if (target.className == 'over'){
target.className = 'out';
if(div_id){
divDisplay (div_id, 'none');
}
}
if(val){
target.className = val;
}
}
function select_bbsHeader(target, val, div_id){
if(target.className == 'out'){
target.className = 'over';
if(div_id){
divDisplay (div_id, 'block');
clickAreaCheck = true;
}
}
else if (target.className == 'over'){
target.className = 'out';
if(div_id){
divDisplay (div_id, 'none');
}
}
if(val){
target.className = val;
}
}
function logout(){
top.personal_area_on = 0;
top.personal_area_load = 0;
var url = "http://login.daum.net/Mail-bin/logout.cgi?url="+encodeURIComponent(document.location.href);
if(top.down==null){
document.location.href = url;
}else{
try{
top.logoutCafeonV2();
} catch ( Exception ){}
//document.location.href = url;
top.down.location.href = url;
top.exige_autosave_load = 0;
}
}
function setTitleHeight() {
var title = document.getElementById("title");
if (title) {
var titlepadding_px = (140/2) - (title.offsetHeight/2);
title.style.paddingTop = titlepadding_px + "px";
} else {
title.style.paddingTop = "15px";
}
}
setTitleHeight(); // 타이틀 위치값 셋팅
if (parent.proxy) {
var homeobj = document.getElementById("homeurl");
homeobj.href = parent.proxy+"/jusoham";
}
var human = new Array ( "001", "002", "003", "004", "005", "006", "007", "008", "009", "010");
var plant = new Array( "011", "015", "020", "025", "030", "035", "040", "045","050");
var animal = new Array( "051", "055", "060", "065", "070", "075","080", "085", "090");
var food = new Array("091","095", "100", "105", "110", "115", "120", "125", "130");
var communi = new Array("131","135", "140", "145", "150", "155", "160", "165", "170");
var medal = new Array("171","189", "193", "197", "198", "202", "206", "208", "209", "210");
function isRankingGroup( rankgroup, rank ){
if ( rankgroup[0] <= rank && rankgroup[ rankgroup.length-1 ] >= rank ){
return true;
} else {
return false;
}
}
function printAd()
{
if (navigator.userAgent.match(/Safari/)) {
} else {
var rand = Math.random().toString();
var ordval = rand.substring(2,rand.length);
var clintAgent = navigator.userAgent;
if ("1Bwgh" != "1CUT3"){
document.getElementById("sideAd").innerHTML= "";
}
}
}
initCSS();
function showSideView(curObj, userid, planetUserid, targetNick, isAdmin) {
alert ("해당 카페 회원만 회원메뉴를 확인하실 수 있습니다 ");
}
function showGroupSideView(curObj, mgrpid, userid, planetUserid, targetNick) {
}