$(document).ready(function(){
$("#pNav1").hover(function(){
		$(".Nav1").toggleClass("Nav1Hover");
	});
$("#pNav2").hover(function(){
		$(".Nav2").toggleClass("Nav2Hover");
	});

$("#pNav3").hover(function(){
		$(".Nav3").toggleClass("Nav3Hover");
	});
$("#pNav4").hover(function(){
		$(".Nav4").toggleClass("Nav4Hover");
	});
$("#pNav5").hover(function(){
		$(".Nav5").toggleClass("Nav5Hover");
	});
$("#pNav6").hover(function(){
		$(".Nav6").toggleClass("Nav6Hover");
	});
$("#pNav7").hover(function(){
		$(".Nav7").toggleClass("Nav7Hover");
	});
});
$("#onLineServiceDailogBotn").hover(function(){
		$("#onLineServiceDailogBotn a").addClass("onLineServiceDailogHover")
		},function(){
		$("#onLineServiceDailogBotn a").toggleClass();
		
	});
// 线程 IDs

var mouseover_tid = [];

var mouseout_tid = [];

 

jQuery(document).ready(function(){
    jQuery('#mainNav > ul > li').each(function(index){

        jQuery(this).hover(

            // 取消淡出菜单的线程, 延时淡入菜单

            function(){
                var _self = this;

                clearTimeout(mouseout_tid[index]);

                mouseover_tid[index] = setTimeout(function() {

                    jQuery(_self).find('.Menu:eq(0)').animate({height: 'toggle', opacity: '0.90'},300)}, 300);

            },

            // 取消淡入菜单的线程, 延时淡出菜单

            function(){

                var _self = this;

                clearTimeout(mouseover_tid[index]);

                mouseout_tid[index] = setTimeout(function() {

                    jQuery(_self).find('.Menu:eq(0)').slideUp(100);}, 300);

            });

    });

});


jQuery(document).ready(function(){
    jQuery('#onLineServiceDailog > ul > li').each(function(index){

        jQuery(this).hover(

            // 取消淡出菜单的线程, 延时淡入菜单

            function(){
                var _self = this;

                clearTimeout(mouseout_tid[index]);

                mouseover_tid[index] = setTimeout(function() {

                    jQuery(_self).find('.hide:eq(0)').animate({height: 'toggle', opacity: '0.90'},300)}, 10);

            },

            // 取消淡入菜单的线程, 延时淡出菜单

            function(){

                var _self = this;

                clearTimeout(mouseover_tid[index]);

                mouseout_tid[index] = setTimeout(function() {

                    jQuery(_self).find('.hide:eq(0)').fadeOut(1000);}, 500);

            });

    });

});

