$(function() {
    $("#tabs a[href=#tab1]").click(function(event){$("#tabs div[id^=panel]").hide(); $("#panel1").fadeIn(); event.preventDefault();})
    $("#tabs a[href=#tab2]").click(function(event){$("#tabs div[id^=panel]").hide(); $("#panel2").fadeIn(); event.preventDefault();})
    $("#tabs a[href=#tab3]").click(function(event){$("#tabs div[id^=panel]").hide(); $("#panel3").fadeIn(); event.preventDefault();})
})

$(function() {
    $("#topinfo a[href=#topinfotab1]").click(function(event){$("#topinfo div[id^=topinfopanel]").hide(); $("#topinfopanel1").fadeIn(); event.preventDefault();})
    $("#topinfo a[href=#topinfotab2]").click(function(event){$("#topinfo div[id^=topinfopanel]").hide(); $("#topinfopanel2").fadeIn(); event.preventDefault();})
    $("#topinfo a[href=#topinfotab3]").click(function(event){$("#topinfo div[id^=topinfopanel]").hide(); $("#topinfopanel3").fadeIn(); event.preventDefault();})
})

$(function(){
	$("a.btn_act").click(function(){
		var connectCont = $("a.btn_act").index(this);
		var showCont = connectCont+1;
		$('.motion').css({display:'none'});
		$('#motion_area'+(showCont)).slideDown('normal');
	});
});

