$(function() {

$("#newsMenu ul li").hover(function() {

	$("#newsMenu ul li").not(this).removeClass("active");
	$(this).addClass("active");	
	$("#news div.newsInfo").not("#news #" + $(this).attr("showDiv")).addClass("hid");		
	$("#news #" + $(this).attr("showDiv")).removeClass("hid");
		
});




$("#banner-menu a").unbind('hover');


$("#banner-menu a").hover(function() {



    var str = $(this).attr('href').toLowerCase();
    var toE = str.indexOf('#') + 1;
    var len = str.length;

    var vid = str.substring(len, toE);



    $('#banner-menu li').each(function(i) {

        if (i == vid) {

            $("#a" + i).addClass('active');
            $("#b" + i).removeClass('hid');
        }
        else {
            $("#a" + i).removeClass('active');
            $("#b" + i).addClass('hid');
        }

    });



    return false;
});


});
