jQuery(document).ready(function($) {
    $body = (window.opera) ? (document.compatMode == "CSS1Compat" ? $('html') : $('body')) : $('html,body');
    $('#top_shishi').click(function(){
        $body.animate({scrollTop: $('#h_shishi').offset().top}, 150);
		$('.miki').removeClass("hehe"); 
		$('#g_shishi').addClass("hehe"); 
        return false; 
    });
	$('#top_yule').click(function(){
        $body.animate({scrollTop: $('#h_yule').offset().top}, 150);
		$('.miki').removeClass("hehe"); 
		$('#g_yule').addClass("hehe"); 
        return false; 
    });	
	$('#top_tupian').click(function(){
        $body.animate({scrollTop: $('#h_tupian').offset().top}, 150);
		$('.miki').removeClass("hehe"); 
		$('#g_tupian').addClass("hehe"); 
        return false; 
    });
	$('#top_caijing').click(function(){
        $body.animate({scrollTop: $('#h_caijing').offset().top}, 150);
		$('.miki').removeClass("hehe"); 
		$('#g_caijing').addClass("hehe"); 
        return false; 
    });
	$('#top_tiyu').click(function(){
        $body.animate({scrollTop: $('#h_tiyu').offset().top}, 150);
		$('.miki').removeClass("hehe");
		$('#g_tiyu').addClass("hehe"); 
        return false;
    });
	$('#top_diannao').click(function(){
        $body.animate({scrollTop: $('#h_diannao').offset().top}, 150);
		$('.miki').removeClass("hehe");
		$('#g_diannao').addClass("hehe"); 
        return false; 
    });
	$('#top_wenhua').click(function(){
        $body.animate({scrollTop: $('#h_wenhua').offset().top}, 150);
		$('.miki').removeClass("hehe");
		$('#g_wenhua').addClass("hehe"); 
        return false; 
    });
	
	$('#top_lvyou').click(function(){
        $body.animate({scrollTop: $('#h_lvyou').offset().top}, 150);
		$('.miki').removeClass("hehe");
		$('#g_lvyou').addClass("hehe"); 
        return false; 
    });
	$('#top_shishang').click(function(){
        $body.animate({scrollTop: $('#h_shishang').offset().top}, 150);
		$('.miki').removeClass("hehe");
		$('#g_shishang').addClass("hehe"); 
        return false; 
    });
	$('#top_yinyue').click(function(){
        $body.animate({scrollTop: $('#h_yinyue').offset().top}, 150);
		$('.miki').removeClass("hehe"); 
		$('#g_yinyue').addClass("hehe"); 
        return false; 
    });
	$('#top_lishi').click(function(){
        $body.animate({scrollTop: $('#h_lishi').offset().top}, 150);
		$('.miki').removeClass("hehe");
		$('#g_lishi').addClass("hehe"); 
        return false; 
    });
	$('#top_shuma').click(function(){
        $body.animate({scrollTop: $('#h_shuma').offset().top}, 150);
		$('.miki').removeClass("hehe");
		$('#g_shuma').addClass("hehe"); 
        return false; 
    });
	$('#top_zhanwu').click(function(){
        $body.animate({scrollTop: $('#h_zhanwu').offset().top}, 150);
		$('.miki').removeClass("hehe"); 
		$('#g_zhanwu').addClass("hehe"); 
        return false; 
    });
	$('.hui').click(function(){
        $body.animate({scrollTop: $('#logo').offset().top}, 150);
        return false; 
    });
	
	$("#sh1").bind("mousemove", function(){
		$("#ui1").show();
		$("#ui2").hide();
		$("#ui3").hide();
		$("#ui4").hide();
	}); 
	$("#sh2").bind("mousemove", function(){
		$("#ui1").hide();
		$("#ui2").show();
		$("#ui3").hide();
		$("#ui4").hide();
	});
	$("#sh3").bind("mousemove", function(){
		$("#ui1").hide();
		$("#ui2").hide();
		$("#ui3").show();
		$("#ui4").hide();
	});
	$("#sh4").bind("mousemove", function(){
		$("#ui1").hide();
		$("#ui2").hide();
		$("#ui3").hide();
		$("#ui4").show();
	});
});
