/*
底部客服服务层
2010-06-17
*/
jQuery("#map").mouseover(function(){jQuery("#xyatamap").show()}).mouseout(function(){jQuery("#xyatamap").hide()});
jQuery("#xyatamap").mouseover(function(){jQuery("#xyatamap").show()}).mouseout(function(){jQuery("#xyatamap").hide()});
jQuery(".qqonline").mouseover(function(){jQuery(".onlines").show()}).mouseout(function(){jQuery(".onlines").hide()});
jQuery(".onlines").mouseover(function(){jQuery(".onlines").show()}).mouseout(function(){jQuery(".onlines").hide()});
jQuery('#gotop').click(function(){jQuery('html,body').animate({scrollTop: '0px'}, 800);}); 
/********** 底部导航效果**********/
function shDH(){
    if(jQuery("#dh_close").hasClass("closeDH")){
		jQuery("#online_cus,#holdDH").animate({ 
            width: "22px"
        }, 1000 );
		jQuery("#online_cus,#holdDH").animate({ 
			height: "84px"
        }, 1000 );
		jQuery("#dh_close").removeClass("closeDH");
		jQuery("#dh_close").addClass("openDH");
		jQuery("#dh_logo").hide();
		jQuery("#foot_menu").hide();
		jQuery("#fkefu").hide();
		jQuery("#kefumenu").hide();	
	} else if(jQuery("#dh_close").hasClass("openDH")){
	    jQuery("#dh_close").removeClass("openDH");
	    jQuery("#dh_close").addClass("closeDH");
         
        jQuery("#online_cus,#holdDH").animate({ 
             width: "100%",
			 height: "46px"
        }, 1000 );
		jQuery("#holdDH").animate({ 
             width: "1003px"
        }, 1000 );
		jQuery("#dh_logo").show();
		jQuery("#foot_menu").show();
		jQuery("#fkefu").show();
		jQuery("#kefumenu").show();	
	}
}
//IE6底部对齐
jQuery().ready(function(){
FollowDiv = {
			follow : function(){
				jQuery('#online_cus').css('position','absolute');
				this.initPos();
				jQuery(window).scroll(function(){
				    var f_top = jQuery(window).height() + jQuery(window).scrollTop() - jQuery("#online_cus").height();
					jQuery("#online_cus").css("top",f_top);
				});
			},
			initPos:function(){
			    var f_top = jQuery(window).height() + jQuery(window).scrollTop() - jQuery("#online_cus").height();
				jQuery('#online_cus').css({top:f_top});
			}
	 }
// 如果是IE6， 则执行
if(jQuery.browser.msie && jQuery.browser.version.indexOf("6") != -1){
    FollowDiv.follow();
}
});
