if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))) {
    new WOW().init();
};
$(function () {
        $('body, html').click(function () {
        $('.f-qrcode dd').hide();
    })
    $('.f-qrcode dt').click(function (e) {
        e.stopPropagation();
        $(this).next('dd').show();
    });
	tabList(".indexTab1",".indexTab1C","","mouseenter")
	$('.topTitle').newsFadeIn({
		delay: 7000,
		auto: true,
		dot: '.topdot',
		dotCurr: 'curr'
	})
	var _this;
	$(".menu li").each(function(){
		if($(this).hasClass("active")){
			_this=$(this)
		}
	})
	$(".menu li").hover(function(){
		$(this).addClass("active").siblings().removeClass("active")
		$(this).find(".ejBox").stop(true,true).slideDown()
		$(this).siblings().find(".ejBox").stop(true,true).slideUp()
	},function(){
		$(this).removeClass("active")
		$(this).find(".ejBox").stop(true,true).slideUp()
		_this.addClass("active")
	})

    $('.float_email').click(function () {
        $('.show_report').show();
    })
    $('.show_report em, .show_report .bg_box').click(function () {
        $('.show_report').hide();
    })
	//党建菜单
	$(".party-menu ul li").width(1200/$(".party-menu ul li").length)
	
})
function tabList(tabTitle, tab_content, tabMore, event) {
	
    var hoverIndex,hovertabHref,tablength=$(tabTitle).length;
    for(var i=0;i<tablength;i++){
        var hoverIndex=$(tabTitle).eq(i).children(".curr").index()
        var hovertabHref=$(tabTitle).eq(i).children(".curr").data('href')
        $(tabTitle).eq(i).attr("clickIndex",i)
        $(tab_content).eq(i).children().eq(hoverIndex).show().siblings().hide()
        $(tabMore).eq(i).find("a").attr("href",hovertabHref)
    }
    $(tabTitle).children().bind(event,function(){
        var myIndex=$(this).index();
        var clickIndex=$(this).parents(tabTitle).attr("clickIndex")
        var thisHref=$(this).data("href")
        $(this).addClass("curr").siblings().removeClass("curr");
        $(tab_content).eq(clickIndex).children().eq(myIndex).show().siblings().hide()
        $(tabMore).eq(clickIndex).find("a").attr("href",thisHref)
    })
}
