$(document).ready(function(){
	$('.accordion_head').mouseover(function() {
		$(this).next().slideToggle();
	})
	$("#newsList a[href=#tab1]").click(function(event){$("div.topNewsBox").hide(); $("ul#newsList li a").removeClass("active"); $("ul#newsList li.m1 a").addClass("active"); $("div.panel1").fadeIn(); event.preventDefault();})
	$("#newsList a[href=#tab2]").click(function(event){$("div.topNewsBox").hide(); $("ul#newsList li a").removeClass("active"); $("ul#newsList li.m2 a").addClass("active"); $("div.panel2").fadeIn(); event.preventDefault();})
	$("#newsList a[href=#tab3]").click(function(event){$("div.topNewsBox").hide(); $("ul#newsList li a").removeClass("active"); $("ul#newsList li.m3 a").addClass("active"); $("div.panel3").fadeIn(); event.preventDefault();})
	$("#newsList a[href=#tab4]").click(function(event){$("div.topNewsBox").hide(); $("ul#newsList li a").removeClass("active"); $("ul#newsList li.m4 a").addClass("active"); $("div.panel4").fadeIn(); event.preventDefault();})

});

$(function() { 
            $("a.scroll").click(function() { 
                var targetId = $(this).attr("href"); 
                $('html,body').animate({ scrollTop: $(targetId).offset().top }, 'slow'); 
                return false; 
            }); 
        }); 
