
$(function() {
	//레프트 메뉴가 mnu_type=='olink' 일 때 새창 이미지 뜨도록....
	/*var imgVar = "/img/common/newwin.gif";
	$('.subleftUL > li > a[href^=http://]').css({background: 'url('+imgVar+') no-repeat right 50%;'});
	$('.subleftUL > li > a[href^=https://]').css({background: 'url('+imgVar+') no-repeat right 50%;'});
	$('.subleftUL > li > ul > li > a[href^=http://]').css({background: 'url('+imgVar+') no-repeat right 50%;'});
	$('.subleftUL > li > ul > li > a[href^=https://]').css({background: 'url('+imgVar+') no-repeat right 50%;'});*/

	//탑메뉴 텝 전환 (마우스 오버시)
	$('#navigation > ul > li > a').mouseover(function(){
		$('#navigation > ul > li > ul').hide();
		$('#navigation > ul > li > a > img').each(function(index, value){
			$(this).attr('src',$(this).attr('src').replace('_on','_off'));
		});
		$('img:first',this).attr('src',$('img:first',this).attr('src').replace('_off','_on'));
		$(this).next('ul').show();
	});

	//탑메뉴 텝 전환 (텝 클릭시)
	$('#navigation > ul > li > a').focus(function(){
		$('#navigation > ul > li > ul').hide();
		$('#navigation > ul > li > a > img').each(function(index, value){
			$(this).attr('src',$(this).attr('src').replace('_on','_off'));
		});
		$('img:first',this).attr('src',$('img:first',this).attr('src').replace('_off','_on'));
		$(this).next('ul').show();
	});

	//메인 보건사업안내 텝 전환 (마우스 오버시)
	$('#guide1 > ul > li > a').mouseover(function(){
		$('#guide1 > ul > li > a > img').each(function(index, value){
			$(this).attr('src',$(this).attr('src').replace('_on','_off'));
		});
		$('img:first',this).attr('src',$('img:first',this).attr('src').replace('_off','_on'));
	});

	//메인 보건사업안내 텝 전환 (텝 클릭시)
	$('#guide1 > ul > li > a').focus(function(){
		$('#guide1 > ul > li > a > img').each(function(index, value){
			$(this).attr('src',$(this).attr('src').replace('_on','_off'));
		});
		$('img:first',this).attr('src',$('img:first',this).attr('src').replace('_off','_on'));
	});

	//메인 health_information 텝 전환 (마우스 오버시)
	$('#guide2 > ul > li > a').mouseover(function(){
		$('#guide2 > ul > li > a > img').each(function(index, value){
			$(this).attr('src',$(this).attr('src').replace('_on','_off'));
		});
		$('img:first',this).attr('src',$('img:first',this).attr('src').replace('_off','_on'));
	});

	//메인 health_information 텝 전환 (텝 클릭시)
	$('#guide2 > ul > li > a').focus(function(){
		$('#guide2 > ul > li > a > img').each(function(index, value){
			$(this).attr('src',$(this).attr('src').replace('_on','_off'));
		});
		$('img:first',this).attr('src',$('img:first',this).attr('src').replace('_off','_on'));
	});

	//메인 공지사항게시판 리스트 텝 전환 (마우스 오버시)
	$('#notice > ul > li > a').mouseover(function(){
		$('#notice > ul > li > div').hide();
		$('#notice > ul > li > a > img').each(function(index, value){
			$(this).attr('src',$(this).attr('src').replace('_on','_off'));
		});
		$('img:first',this).attr('src',$('img:first',this).attr('src').replace('_off','_on'));
		$(this).next('div').show();
	});

	//메인 공지사항게시판 리스트 텝 전환 (텝 클릭시)
	$('#notice > ul > li > a').focus(function(){
		$('#notice > ul > li > div').hide();
		$('#notice > ul > li > a > img').each(function(index, value){
			$(this).attr('src',$(this).attr('src').replace('_on','_off'));
		});
		$('img:first',this).attr('src',$('img:first',this).attr('src').replace('_off','_on'));
		$(this).next('div').show();
	});

	//더보기 전환 (마우스 클릭시)
	$('.top_more > a').click(function(){
		$('#top_view').show();
	});

	//더보기 전환 (텝 인식시)
	$('.top_more > a').focus(function(){
		$('#top_view').show();
	});

	//탑메뉴 텝 전환 (텝 클릭시)
	$('.top_more_close').click(function(){
		$('#top_view').hide();
	});
});

