/*添加电话顺坏信息系*/
var service = document.querySelectorAll('#service .div6 p');
if(service[0]){
	service[0].innerHTML = '扫一扫添加老师微信';
};
/*点击回到顶部js开始*/
var oCont = document.getElementById('cont');
window.onscroll=function() {
	var oTop_nav = document.getElementById('top_nav');
	
	var oTop = document.body.scrollTop || document.documentElement.scrollTop;
	
	if (oTop < 99){
		oCont.style.display = 'none';
	}else{
		oCont.style.display = 'block';
	};
};
$(oCont).click(function(){
	$("html,body").animate({scrollTop:'0px'},"slow");
});

// 右侧浮动广告
    (function(){
        var sideAd = $(".sideAd");
        var open_it = $("#side_open");
        var hide_it = $("#side_hide");
        $("#side_open .close").click(function(){
            sideAd.css({"width":"40px","height":"119px","top":"167px"});
            open_it.hide();
            hide_it.show();

        });
        $("#side_hide").click(function(){
            sideAd.css({"width":"120px","height":"344px","top":"50px"});
            open_it.show();
            hide_it.hide();
        });
    })();

	//官网微信
    $("#link_wx").hover(function(){
        $("#link_wx img").stop().fadeIn();
    },function(){
        $("#link_wx img").stop().fadeOut();
    })
/*点击回到顶部js结束*/

/*添加二维码
(function(){
	var $obj = $("<div id='erweima'><img src='../zong/weixin.jpg' alt='' /></div>");
	var $body = $("body");
	$body.append($obj);
})();
*/

/*下拉导航开始*/

// $(function(){
// 	var t="";
// 	if($('#nav').length > 0){
// 		$('#nav .li1').hover(function(){
// 			var _this = $(this)
// 			t=setTimeout(function(){
// 				_this.addClass("li2");
// 				_this.find('div.xiala').css('display','block');  
// 			},0)
// 		},function(){
// 			clearTimeout(t);
// 			$(this).removeClass("li2")
// 			$(this).find('div.xiala').css('display','none');  
// 		});
// 	};
// });
