function link(type)
{   
    
/* 복지관소식------------------------------------------------------------------------------- */
	
	if(type==01)
	 self.location="/sub1_1.php"; /* 인사말 */
	if(type==02)
	 self.location="/sub1_2.php"; /* 시설개요,연혁 */
	if(type==03)
	 self.location="/sub1_3.php"; /* 법인소개 */
	if(type==04)
	 self.location="/sub1_4.php"; /* 조직,직원현황 */
	if(type==05)
	 self.location="/sub1_5.php"; /* 찾아오시는길 */
	if(type==99)
	 self.location="/sub1_6.php"; /* 미션과 비젼 */
	if(type==96)
	 self.location="/sub1_7.php"; /* 총무원장 인사말 */
	if(type==95)
	 self.location="/sub1_8.php"; /* 법인소개 */

/* 사업안내------------------------------------------------------------------------------- */

	if(type==06)
	 self.location="/sub2_1.php"; /* 상담사업 */
	if(type==07)
	 self.location="/sub2_2.php"; /* 사회교육사업 */
	if(type==08)
	 self.location="/sub2_3.php"; /* 복리후생사업 */
	if(type==09)
	 self.location="/sub2_4.php"; /* 기능회복사업 */
	if(type==10)
	 self.location="/sub2_5.php"; /* 문화사업 */
	if(type==97)
	 self.location="/sub2_11.php"; /* 노인일자리사업 */
	if(type==98)
	 self.location="/sub2_12.php"; /* 경로당활성화사업 */


/* 이용안내------------------------------------------------------------------------------- */
	
	if(type==11)
	 self.location="/sub3_1.php"; /* 이용방법 */
	if(type==12)
	 window.open('/sub3_2_ex1.php','','width=720,height=650,resizable=no,toolbars=no,scrollbars=yes'); /* 사회교육시간표 */
	if(type==13)
	 self.location="/sub3_4.htm"; /* 일정표 */

/* 게시판------------------------------------------------------------------------------- */

	if(type==14)
	 self.location="/sub0401.htm"; /* 공지사항 */
	if(type==15)
	 self.location="/sub0402.htm"; /* 복지관소식 */
	if(type==16)	 
	 self.location="/sub0403.htm"; /* 자유게시판 */
	if(type==17)
	 self.location="/board/list.php?board_code=board44"; /* 직원게시판 */
	if(type==18)
	 self.location="/sub0404.htm"; /* 어르신게시판 */
	if(type==19)
	 self.location="/board/list.php?board_code=board46"; /* 자원봉사자게시판 */

/* 후원,자원봉사------------------------------------------------------------------------------- */
	
	if(type==20)
	 self.location="/sub5_1.php"; /* 후원안내 */
	if(type==21)
	 self.location="/sub5_2.php"; /* 후원신청 */
	if(type==22)
	 self.location="/sub5_3.php"; /* 자원봉사안내 */
	if(type==23)
	 self.location="/sub5_4.php"; /* 자원봉사신청 */
	if(type==42)
	 self.location="/board/list.php?board_code=board51"; /* 후원자게시판 */
	if(type==19)
	 self.location="/board/list.php?board_code=board46"; /* 자원봉사자게시판 */

/* 자료실------------------------------------------------------------------------------- */

	if(type==24)
	 self.location="/board/list.php?board_code=board61"; /* 복지관관련 */
	if(type==25)
	 self.location="/sub0601.htm"; /* 노인복지관련 */
	if(type==26)
	 self.location="/sub0602.htm"; /* 행사사진자료 */
	if(type==27)
	 self.location="/sub0603.htm"; /* 동영상자료 */
	if(type==28)
	 self.location="/sub0604.htm"; /* 관련사이트 */

/* 기타----------------------------------------------------------------------- */
	if(type==29)
	 self.location="/sitemap.php"; /* 사이트맵 */
	if(type==30)
	 self.location="/login.php"; /* 로그인 */
	if(type==31)
	 self.location="/logout.php" ; /* 로그아웃 */
	if(type==32)
	 self.location="mailto:yessenior@naver.com"; /* 메일 */
	if(type==33)
	 self.location="/index.php"; /* 홈 */
	if(type==40)
	 self.location="/sub3_4.php"; /* 일정표 */
	if(type==41)
	 self.location="/sub3_5.php"; /* 설문조사 */

/* 관련사이트------------------------------------------------------------------------------------ */
	if(type==34)
	 window.open("http://www.buddhism.or.kr"); /* 대한불교조계종 */
	if(type==35)
	 window.open("http://www.sudeoksa.com"); /* 대한불교조계종 제7교구 본사 덕숭총림 수덕사 */
	if(type==36)
	 window.open("http://www.mahayana.or.kr"); /* 대한불교조계종사회복지재단 */
	if(type==37)
	 window.open("http://www.yesan.go.kr"); /* 예산군청 */
	if(type==38)
	 window.open("http://www.chest.or.kr"); /* 사회복지공동모금회 */
	if(type==39)
	 window.open("http://www.kaswcs.or.kr"); /* 한국노인종합복지관협회 */
	 
/* 정보광장------------------------------------------------------------------------------------ */
	if(type==47)
	 self.location=root_location +"/book/sub_06_01.asp"; /* 도서관의 역사 */
	if(type==62)
	 self.location=root_location +"/book/survey/survey_list.asp"; /* 설문조사 */
	if(type==63)
	 self.location="/book/quiz/list.asp"; /* 이벤트(독서퀴즈) */
	if(type==64)
	 self.location="/book/news/board.asp"; /* 최신뉴스 */
	if(type==65)
	 self.location="/book/report/board.asp"; /* 보도자료 */
	if(type==66)
	 self.location="/book/people/people.asp"; /* 이달의 인물 */

/* 이동도서관------------------------------------------------------------------------------------ */
	if(type==71)
	 self.location="/book/sub_07_01.asp"; /* 이용안내 */
	if(type==72)
	 self.location="/book/sub_07_02.asp"; /* 소장자료현황 */
	if(type==73)
	 self.location="/book/sub_07_03.asp"; /* 방문지역안내(일정표) */
	if(type==74)
	 self.location="/book/online_member/write.asp"; /* 온라인회원가입신청 */

/* 기타------------------------------------------------------------------------------- */
	if(type==81)	 
	 window.open("http://210.179.134.131:8082", "", ""); /* 컴퓨터동영상강좌 */
	if(type==82)	 
	 window.open("http://210.179.134.131:8081/ele/index.htm", "", "") /* 초등학교 학습컨텐츠 */
	if(type==83)
	 window.open("http://210.179.134.131:8081/mid/index.htm", "", "") /* 중학교 학습컨텐츠 */
	if(type==84)
	 self.location="http://210.179.134.146:8080"; /* 송곡도서관 */
	if(type==85)
	 self.location="http://210.179.137.178"; /* 배방도서관 */
	if(type==86)
	 self.location="http://210.179.143.114"; /* 둔포도서관 */

}

function flashWrite( id, flashUri, vWidth, vHeight ) {
   var _obj_ = "";

   _obj_ = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + vWidth + '" height="' + vHeight + '" id="' + id + '" align="middle">';
 _obj_ += '<param name="movie" value="' + flashUri + '" />';
   _obj_ += '<param name="quality" value="high" />';
   _obj_ += '<param name="wmode" value="transparent" />    ';
   _obj_ += '<param name="bgcolor" value="#ffffff" />        ';
   _obj_ += '<embed src="' + flashUri + '" quality="high" wmode="transparent" bgcolor="#ffffff" width="' + vWidth +'" height="' + vHeight + '" id="' + id + '" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>    ';
   _obj_ += '</object>';
   document.writeln( _obj_ );
}
