text: 'use strict';window._error=null,console.error=function(){},function(t){function e(){}e.prototype={init:function(){this.tab(),this.input(),$('[name=ja_uuid]').val($.cookie('ja_uuid')),$('.social-share').html('<div class="bdsharebuttonbox">                <a href="javascript:page.share(\'sina\')" class="iconfont icon-weibo"></a>                <a href="javascript:page.share(\'qzone\')" class="iconfont icon-qzone"></a>                <a href="javascript:page.share(\'qq\')" class="iconfont icon-qq"></a>                <a href="javascript:page.share(\'wx\')" class="iconfont icon-wechat"></a>            </div>')},share:function(t){var e={title:document.title,url:location.href};switch(t){case'sina':window.open('http://service.weibo.com/share/share.php?title='+e.title+'&url='+e.url+'&searchPic=true');break;case'qzone':window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?title='+e.title+'&url='+e.url+'&searchPic=true');break;case'qq':window.open('http://connect.qq.com/widget/shareqq/index.html?title='+e.title+'&url='+e.url+'&searchPic=true');break;case'wx':var o=$('<div>');o.append('<div>分享到微信朋友圈</div>'),o.append('<div style="height:230px;"><img src="http://qr.liantu.com/api.php?text='+e.url+'" alt="'+e.url+'" style="width:100%" /></div>'),o.append('<div>打开微信，点击底部的“发现”，<br>使用“扫一扫”即可将网页分享至朋友圈。</div>'),o.append('<div style="position:absolute;right:10px;top:10px;font-size:16px;color:#666;cursor:pointer;font-family: unset;" onclick="$(this).parent().remove()">X</div>'),o.css({width:230,position:'fixed',zIndex:9999,left:'50%',top:'50%',margin:'-150px 0 0 -115px',background:'#fff',textAlign:'center',padding:10,border:'solid 1px #ddd',fontSize:12,color:'#666'}),$('body').append(o)}},urlParams:function(){var t=window.location.search.substring(1),e={};return t&&$.each(t.split('&'),function(t,o){var i=o.split('=');e[i[0]]=i[1]}),e},tab:function(){$('.tab-tit').on('click','span',function(){var t=$(this),e=t.index();t.addClass('active').siblings().removeClass('active'),t.parents('.tab-tit').siblings('.tab-layer').children('div').eq(e).siblings().hide().end().show()})},input:function(){var t=$('body');t.on('focus','input[type=text]',function(){var t=$(this);t.val()===t.attr('placeholder')&&$(this).val('')}),t.on('blur','input[type=text]',function(){var t=$(this);''===t.val()&&t.val(t.attr('placeholder'))})},scrollFire:function(t){function e(){var e=o.scrollTop(),a=o.height();$.each(n,function(o,n){var r=i.eq(o);n-t.offset<e+a&&r.height()+n+t.offset>e&&(r.addClass(t.active),t.fn&&t.fn(r))})}var o=$(window),i=$(t.dom),n=[];i.each(function(t,e){n.push($(e).offset().top)}),e(),o.scroll(e),o.resize(e)},getIeVersion:function(){var t=navigator.appName;if('Microsoft Internet Explorer'!=t)return!1;var e=navigator.appVersion,o=e.split(';'),i=o[1].replace(/[ ]/g,'');return'Microsoft Internet Explorer'==t&&'MSIE6.0'==i?6:'Microsoft Internet Explorer'==t&&'MSIE7.0'==i?7:'Microsoft Internet Explorer'==t&&'MSIE8.0'==i?8:'Microsoft Internet Explorer'==t&&'MSIE9.0'==i?9:void 0},teacherInfo:function(t){layer.open({type:1,title:!1,area:['800px','434px'],content:'  \n              <div class="clearfix teacher-info">\n                <div class="left fl lazy">\n                    <img src="'+teacher[t].img+'" alt="'+teacher[t].name+'">\n                </div>\n                <div class="right fr">\n                  <div class="name">'+teacher[t].name+'</div>\n                  <div class="des1">'+teacher[t].des1+'</div>\n                  <div class="des2">'+teacher[t].des2+'</div>\n                </div>\n              </div>\n            '})},form:function(t,e){e?'&'!=e.substring(0,1)&&(e='&'+e):e='',layer.open({type:2,title:!1,scrollbar:!1,area:['500px','450px'],content:t})},v:function(t){var e=t.id?t.id:'bottomBar',o=$('#'+e),i=this;o.submit(function(e){e.preventDefault(),$(this).validate({isone:!0,error:function(t,e){t.addClass('input-error'),t.one('focus',function(){$(this).removeClass('input-error')});var o=t.attr('placeholder').replace('请输入','')+e;8===i.getIeVersion()?alert(o):layer.tips(o,t,{tips:[1,'#e5493a']})}})&&t.callback&&t.callback(o,o.serializeArray())})}},t.Page=function(t){for(var o in t)e.prototype[o]=t[o];var i=new e;if(i.init(),'onLoad'in i&&(window.onload=function(){i.onLoad()}),'onReady'in i&&$(document).ready(function(){i.onReady()}),'onResize'in i){var n=null;$(window).on('resize',function(){n&&clearTimeout(n),n=setTimeout(function(){i.onResize()},120)})}return'onScroll'in i&&$(window).on('scroll',function(){i.onScroll()}),i}}(window),function(t,e,o,i){var n=t(e);t.fn.lazyload=function(i){function a(){var e=0;s.each(function(){var o=t(this);l.skip_invisible&&!o.is(':visible')||t.abovethetop(this,l)||t.leftofbegin(this,l)||(t.belowthefold(this,l)||t.rightoffold(this,l)?(++e,l.failure_limit):(o.trigger('appear'),e=0))})}var r,s=this,l={threshold:0,failure_limit:0,event:'scroll',effect:'show',container:e,data_attribute:'original',skip_invisible:!0,appear:null,load:null};return i&&(void 0!==i.failurelimit&&(i.failure_limit=i.failurelimit,delete i.failurelimit),void 0!==i.effectspeed&&(i.effect_speed=i.effectspeed,delete i.effectspeed),t.extend(l,i)),r=void 0===l.container||l.container===e?n:t(l.container),0===l.event.indexOf('scroll')&&r.bind(l.event,function(t){return a()}),this.each(function(){var e=this,o=t(e);e.loaded=!1,o.one('appear',function(){if(!this.loaded){if(l.appear){var i=s.length;l.appear.call(e,i,l)}t('<img />').bind('load',function(){o.hide().attr('src',o.data(l.data_attribute))[l.effect](l.effect_speed),e.loaded=!0;var i=t.grep(s,function(t){return!t.loaded});if(s=t(i),l.load){s.length;l.load.call(e,this.width,this.height)}}).attr('src',o.data(l.data_attribute))}}),0!==l.event.indexOf('scroll')&&o.bind(l.event,function(t){e.loaded||o.trigger('appear')})}),n.bind('resize',function(t){a()}),/iphone|ipod|ipad.*os 5/gi.test(navigator.appVersion)&&n.bind('pageshow',function(e){e.originalEvent&&e.originalEvent.persisted&&s.each(function(){t(this).trigger('appear')})}),t(o).ready(function(){a()}),this},t.belowthefold=function(o,i){return(void 0===i.container||i.container===e?n.height()+n.scrollTop():t(i.container).offset().top+t(i.container).height())<=t(o).offset().top-i.threshold},t.rightoffold=function(o,i){return(void 0===i.container||i.container===e?n.width()+n.scrollLeft():t(i.container).offset().left+t(i.container).width())<=t(o).offset().left-i.threshold},t.abovethetop=function(o,i){return(void 0===i.container||i.container===e?n.scrollTop():t(i.container).offset().top)>=t(o).offset().top+i.threshold+t(o).height()},t.leftofbegin=function(o,i){return(void 0===i.container||i.container===e?n.scrollLeft():t(i.container).offset().left)>=t(o).offset().left+i.threshold+t(o).width()},t.inviewport=function(e,o){return!(t.rightoffold(e,o)||t.leftofbegin(e,o)||t.belowthefold(e,o)||t.abovethetop(e,o))},t.extend(t.expr[':'],{'below-the-fold':function(e){return t.belowthefold(e,{threshold:0})},'above-the-top':function(e){return!t.belowthefold(e,{threshold:0})},'right-of-screen':function(e){return t.rightoffold(e,{threshold:0})},'left-of-screen':function(e){return!t.rightoffold(e,{threshold:0})},'in-viewport':function(e){return t.inviewport(e,{threshold:0})},'above-the-fold':function(e){return!t.belowthefold(e,{threshold:0})},'right-of-fold':function(e){return t.rightoffold(e,{threshold:0})},'left-of-fold':function(e){return!t.rightoffold(e,{threshold:0})}})}(jQuery,window,document);var var_lazy={threshold:400,load:function(t,e){var o,i,n,a,r=$(this);r.is('img')||(r.css('background-image','url('+$(this).attr('data-original')+')'),r.removeAttr('src')),r.addClass('load-over').parents('.lazy').addClass('load-over'),r.hasClass('auto')?(o=r.parents('.lazy').width(),i=r.parents('.lazy').height(),n=t,a=e,o/i<n/a?(r.css({width:'auto',height:'100%'}),n=i*t/e,r.css({left:-(n-o)/2/o*100+'%',top:0})):(r.css({width:'100%',height:'auto'}),a=o*e/t,r.css({top:-(a-i)/2/i*100+'%',left:0}))):r.hasClass('auto_height')?r.css({height:'auto',width:'auto'}):r.hasClass('height_middle')?(i=r.parents('.lazy').height(),o=r.parents('.lazy').width(),a=o*e/t,r.css({top:-(a-i)/2/i*100+'%',left:0})):r.hasClass('auto_inner')&&(o=r.parents('.lazy').width(),i=r.parents('.lazy').height(),n=t,a=e,o/i>n/a?(r.css({width:'auto',height:'100%'}),n=i*t/e,r.css({left:-(n-o)/2/o*100+'%',top:0})):(r.css({width:'100%',height:'auto'}),a=o*e/t,r.css({top:-(a-i)/2/i*100+'%',left:0})))}};setTimeout(function(){$('.lazy_img').lazyload(var_lazy)},300),function(t,e,o,i){function n(t,e){this.element=t,this.options={pageNo:e.pageNo||1,totalPage:e.totalPage,totalSize:e.totalSize,callback:e.callback,complete:e.complete},this.init()}n.prototype={constructor:n,init:function(){this.creatHtml(),this.bindEvent(),this.options.complete&&this.options.complete()},creatHtml:function(){var t=this,e='',o=t.options.pageNo,i=t.options.totalPage;t.options.totalSize;if(i>6)if(o<5){for(var n=1;n<6;n++)e+=o==n?'<a class=\'current\'>'+n+'</a>':'<a>'+n+'</a>';e+='. . .',e+='<a>'+i+'</a>'}else if(o<i-3){for(var n=o-2;n<o+3;n++)e+=o==n?'<a class=\'current\'>'+n+'</a>':'<a>'+n+'</a>';e+='. . .',e+='<a>'+i+'</a>'}else{e+='<a>1</a>',e+='. . .';for(var n=i-4;n<i+1;n++)e+=o==n?'<a class=\'current\'>'+n+'</a>':'<a>'+n+'</a>'}else for(var n=1;n<i+1;n++)e+=o==n?'<a class=\'current\'>'+n+'</a>':'<a>'+n+'</a>';e+='<a id="firstPage">首页</a><span class=\'preNext\'><a id=\'prePage\'>&lt;</a>',e+='<a id=\'nextPage\'>&gt;</a></span>',e+='<a id="lastPage">尾页</a>',t.element.html(e)},bindEvent:function(){var e=this;e.element.off('click','a'),e.element.on('click','a',function(){var o=t(this).html(),i=t(this).attr('id');'prePage'==i?1==e.options.pageNo?e.options.pageNo=1:e.options.pageNo=+e.options.pageNo-1:'nextPage'==i?e.options.pageNo==e.options.totalPage?e.options.pageNo=e.options.totalPage:e.options.pageNo=+e.options.pageNo+1:e.options.pageNo='firstPage'==i?1:'lastPage'==i?e.options.totalPage:+o,e.creatHtml(),e.options.callback&&e.options.callback(e.options.pageNo)})}},t.fn.paging=function(e){return new n(t(this),e)}}(jQuery,window,document);