var localdomain = "http://web.pbc.co.kr/";
var namedomain = ".pbc.co.kr";

//로그인,로그아웃,회원가입
function main_login() {		document.location.href=localdomain+ "home/L01.html"; } 
function main_join() {		document.location.href=localdomain+ "home/U01.html"; } 
function main_logout() {	document.location.href=localdomain+ "home/L01_A.html?mode=logout"; } 
function main_myinfo() {	document.location.href=localdomain+ "home/mypage/M02.html"; } 


function sub_login() {		document.location.href=localdomain+ "home/L01.htm"; } 
function sub_join() {		document.location.href=localdomain+ "home/U01.html"; } 
function sub_logout() {		document.location.href=localdomain+ "home/L01_A.html?mode=logout"; } 
 
// 마이페이지
function mypage() {			document.location.href=localdomain+ "home/mypage/M01.html"; } 
function charge() {			document.location.href=localdomain+ "home/P01.html"; } 
function sitemap() {		document.location.href=localdomain+ "http://"; } 
function scrap() {
	
window.open(localdomain+'home/mypage/M05.html',
		'scrap',"width=512,height=380,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=false,top=100,left=200");
//document.location.href=localdomain+ "http://";
} 

//PBC 전체메인 상단플래시
function mainflash_1() {			document.location.href=localdomain+ "TV/2446/"; }
function mainflash_2() {			document.location.href=localdomain+ "TV/200/"; }
function mainflash_3() {			document.location.href=localdomain+ "RADIO/1500/"; }
function mainflash_4() {			document.location.href=localdomain+ "RADIO/799/"; }

//tv메인상단플래시
function flash_63801() {			document.location.href=localdomain+ "TV/3679/"; }
function flash_63802() {			document.location.href=localdomain+ "TV/3467/"; }
function flash_63803() {			document.location.href=localdomain+ "TV/3421/"; }
function flash_63804() {			document.location.href=localdomain+ "TV/3422/"; }

//메인좌측 온미디어정보
function main_om_01() {			document.location.href=localdomain+ "CMS/onmedia/section/season_main.php"; } // 전례별영상
function main_om_02() {			document.location.href=localdomain+ "CMS/onmedia/section/missa_main.php"; } // 미사
function main_om_03() {			document.location.href=localdomain+ "CMS/onmedia/section/seminar_main.php"; } // 강론
function main_om_04() {			document.location.href=localdomain+ "CMS/onmedia/section/music_main.php"; } // 음악 미술

//메인좌측 온미디어정보
function main_om_link1_01() {			document.location.href=localdomain+ "CMS/tv/program/pro_main.php?program_fid=178"; } // 매일미사
function main_om_link1_02() {			document.location.href=localdomain+ "CMS/tv/program/pro_main.php?program_fid=2798"; } // 오늘의전례력
function main_om_link1_03() {			document.location.href=localdomain+ "CMS/tv/program/pro_main.php?program_fid=179"; } // 주일미사중계

function main_om_link2_01() {			document.location.href=localdomain+ "CMS/tv/program/pro_main.php?program_fid=186"; } // PBC신앙강좌
function main_om_link2_02() {			document.location.href=localdomain+ "CMS/tv/program/pro_main.php?program_fid=185"; } // 무지개원리
function main_om_link2_03() {			document.location.href=localdomain+ "CMS/tv/program/pro_main.php?program_fid=184"; } // 영성의향기

function main_om_link3_01() {			document.location.href=localdomain+ "CMS/tv/program/pro_last.php?type=last_list&menu_fid=999"; } // 영상기도
function main_om_link3_02() {			document.location.href=localdomain+ "RADIO/800/"; } // 찬미의노래
function main_om_link3_03() {			document.location.href=localdomain+ "CMS/tv/program/pro_main.php?program_fid=191"; } // 묵주기도의신비

function main_om_link4_01() {			document.location.href=localdomain+ "RADIO/508/"; } // 기쁜소식 밝은세상
function main_om_link4_02() {			document.location.href=localdomain+ "RADIO/780/"; } // 성서못자리
function main_om_link4_03() {			document.location.href=localdomain+ "RADIO/1509/"; } // 라디오 말씀지기






//tv 시청자참여
//주찬미
function tv_see01() {			document.location.href=localdomain+ "TV/193/ju_chanmi_03/"; } 
//가톨릭뉴스
function tv_see02() {			document.location.href=localdomain+ "TV/1219/canews_03/"; } 
//tv신앙상담
function tv_see03() {			document.location.href=localdomain+ "TV/1143/tv_counsel_02/"; } 
//사랑나무희망키우기
function tv_see04() {			document.location.href=localdomain+ "TV/200/lovetree_02/"; } 


//라디오메인상단플래시
function flash_54901() {			document.location.href=localdomain+ "RADIO/3600/bookconcert_02/81/"; }
function flash_54902() {			document.location.href=localdomain+ "RADIO/798/";  }
function flash_54903() {			document.location.href=localdomain+ "RADIO/1500/"; }
function flash_54904() {			document.location.href=localdomain+ "CMS/radio/rd_sub_notice.html?type=notice_body&cid=326007&yyyymm=201002"; }



// EventLive
function internet_Live() {	
	window.open(localdomain+ "home/PBC_LiveVideoPlayer.html",
		'internetLive',"width=512,height=380,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=false,top=100,left=200");
} 
// onAir
function onair_tv() {	
	window.open(localdomain+ "home/PBC_OnAirVideoPlayer.html",
		'onAir',"width=512,height=380,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=false,top=100,left=200");
} 
function onair_rd() {window.open(localdomain+ "home/PBC_OnAirAudioPlayer.html",
		'onAir',"width=512,height=380,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=false,top=100,left=200");
} 
//편성표
function sch_tv() {			document.location.href=localdomain+ "home/brdschedule_tv.html"; } 
function sch_rd() {			document.location.href=localdomain+ "home/brdschedule_radio.html"; } 

//메뉴링크
function pbc_home() {		document.location.href="http://web" +namedomain+ "/CMS/index.php"; }
function pbc_ca() {			document.location.href=localdomain+ "catholic"; } 
function pbc_tv() {			document.location.href=localdomain+ "tv"; } 
function pbc_rd() {			document.location.href=localdomain+ "radio"; } 
function pbc_np() {			document.location.href=localdomain+ "newspaper"; } 
function pbc_bd() {			document.location.href=localdomain+ "news"; } 
function pbc_onmedia() {
	document.location.href=localdomain+ "onmedia";
} 
function pbc_ent() {	//	document.location.href=localdomain+ "entertain";
} 
function pbc_shop() {		document.location.href="http://shop" +namedomain+ "/";
} 
function pbc_cafe() {		document.location.href="http://cafe" +namedomain+ "/home/cafe_ground/index.html"; 
} 

//기본 배너5종
//꼬스트홀
function basic_banner01() {			document.location.href="/legacy/costehall/default.php"; } 
//창작생활성가제
function basic_banner02() {			document.location.href="/legacy/entertainment/2007_ccm/default.php"; }
//합창단
function basic_banner03() {			document.location.href="/legacy/entertainment/choir/default.php"; } 
//독서감상문
function basic_banner04() {
            var newWin = window.open('about:blank');   
            newWin.location.href = "/legacy/event/pbc_impression6/default.html";   
} 
//성지순례
function basic_banner05() {	
            var newWin = window.open('about:blank');   
            newWin.location.href = "http://www.pbctour.co.kr";   
} 


//이슈,속보서브메뉴 링크
function pbc_is01() {			document.location.href=localdomain+ "CMS/comgisa/issue_main.php?type=issue_list"; } 
function pbc_is02() {			document.location.href=localdomain+ "CMS/comgisa/photo_main.php?type=photo_list"; }

// 신문 서브메뉴 링크
function pbc_np1() {			document.location.href=localdomain+ "CMS/newspaper/tot/main.php"; } 
function pbc_np2() {			document.location.href=localdomain+ "CMS/newspaper/soc/main.php"; } 
function pbc_np3() {			document.location.href=localdomain+ "CMS/newspaper/int/main.php"; } 
function pbc_np4() {			document.location.href=localdomain+ "CMS/newspaper/pep/main.php"; } 
function pbc_np5() {			document.location.href=localdomain+ "CMS/newspaper/spe/main.php"; } 
function pbc_np6() {			document.location.href=localdomain+ "CMS/newspaper/hom/main.php"; } 
function pbc_np7() {			document.location.href=localdomain+ "CMS/newspaper/spr/main.php"; } 
function pbc_np8() {			document.location.href=localdomain+ "CMS/newspaper/cul/main.php"; } 
function pbc_np9() {			document.location.href=localdomain+ "CMS/newspaper/eva/main.php"; } 
//신문_성지순례
function sungji_01() {			document.location.href="/legacy/event/2006_tour/default.php"; }
function sungji_02() {			document.location.href="/legacy/event/2006_tour/default.php"; }
function sungji_03() {			document.location.href="/legacy/event/2006_tour/default.php"; }
function sungji_04() {			document.location.href="/legacy/event/2006_tour/default.php"; }

//신문 정기구독신청
function np_basic_banner01() {		
//window.open('http://www.pbc.co.kr/sell/news/default.php','구독신청','toolbar=no,menubar=no,location=no,width=745,height=615');
window.open('/legacy/sell/news/default.php','구독신청','toolbar=no,menubar=no,location=no,width=745,height=615');
 
}
//신문 평화방송에바란다
function np_basic_banner02() {		document.location.href=localdomain+"CMS/newspaper/np_sub_notice.htm?type=bbs3"; }
//신문 명예기자코너
function np_basic_banner03() {			document.location.href="#"; }
//신문 독자제보
function np_basic_banner04() {			document.location.href=localdomain+"CMS/newspaper/np_sub_notice.htm?type=newspaper_jeabo"; }






//뉴스 서브메뉴 링크
function pbc_bd0() {			document.location.href=localdomain+ "CMS/news/section_list.php?chkcategory=catAll"; } 
function pbc_bd1() {			document.location.href=localdomain+ "CMS/news/section_list.php?chkcategory=catPolitics"; } 
function pbc_bd2() {			document.location.href=localdomain+ "CMS/news/section_list.php?chkcategory=catEconomy"; } 
function pbc_bd3() {			document.location.href=localdomain+ "CMS/news/section_list.php?chkcategory=catSociety"; } 
function pbc_bd4() {			document.location.href=localdomain+ "CMS/news/section_list.php?chkcategory=catCulture"; } 
function pbc_bd5() {			document.location.href=localdomain+ "CMS/news/section_list.php?chkcategory=catCatholic"; } 
function pbc_bd6() {			document.location.href=localdomain+ "CMS/news/section_list.php?chkcategory=catNorth"; } 
function pbc_bd7() {			document.location.href=localdomain+ "CMS/news/section_list.php?chkcategory=catIntl"; } 
function pbc_bd8() {			document.location.href=localdomain+ "CMS/news/section_list.php?chkcategory=catSports"; } 
function pbc_bd9() {			document.location.href=localdomain+ "CMS/news/section_list.php?chkcategory=catEtc"; } 

//카피라이트 메뉴버튼링크
function pbc_foot1() {		

	
	winObj = window.open(localdomain+ "/html/index.html");

} // 회사소개
function pbc_foot2() {			document.location.href="http://shop.pbc.co.kr/"; } // 영상판매
function pbc_foot3() {			document.location.href=localdomain+ "/html/ad_tv.html"; } // 웹광고
function pbc_foot4() {			document.location.href="http://shop.pbc.co.kr/bbs/board.php?bo_table=free"; } // 고객센터
function pbc_foot5() {			document.location.href=localdomain+ "/legacy/main_special/default.php?c_url=http://bbs2.pbc.co.kr/bbs/bbs/board.php?bo_table=pbcmain02"; } // PBC에 바란다
function pbc_foot6() {	
	winObj = window.open(localdomain+ "/privacy/yak.html",'이용약관','toolbar=no,menubar=no,location=no,width=650,height=530');
 } // 이용약관

function pbc_foot7() {	
	winObj = window.open(localdomain+ "/privacy/privacy.html",'개인정보관리방침','toolbar=no,menubar=no,location=no,width=650,height=530');
 } // 개인정보관리방침

function pbc_foot8() {	window.open('/home/mail2admin.html','관리자에게메일보내기','toolbar=no,menubar=no,location=no,width=437,height=441'); } // 관리자메일




// 롤오버 배경이미지 변경
function change_background(that){  that.style.backgroundImage ="url(http://image.pbc.co.kr/pbc_np/images/menu2on_bg.gif)";   }
function change2_background(that){  that.style.backgroundImage ="url(http://image.pbc.co.kr/pbc_np/images/menu2_bg.gif)";   }



// 드림위버 롤오버 이미지 코드
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
