$(".backtop").on("click",function(a){alert(1);a.preventDefault();window.scrollTo(0,1)});$(".goback").on("click",function(a){a.preventDefault();history.back(-1)});(function(a){window.App={};App.IsNumber=function(b){return/^[0-9]+$/ig.test(b)};App.IsFloat=function(b){return/^[0-9\.]+$/ig.test(b)};App.replaceall=function(d,c,b){return d.replace("/"+c+"/g",b)};App.DataTime=function(g,f){try{if(g==null||g==""){return""}var c={DataSource:"1",DataType:"dt",Language:"en",Year:"-",Month:"-",Day:" ",Hours:":",Seconds:":",Minutes:""};if(f){a.each(f,function(e,h){if(c[e]||c[e]==null){c[e]=h}})}if(g.indexOf("Date")>-1){g=new Date(parseInt(g.replace("/Date(","").replace(")/","").split("+")[0]))}if(c.Language=="cn"){c.Year="年";c.Month="月";c.Day="日";c.Hours="时";c.Seconds="分";c.Minutes="秒"}var b=new Date(g);if(!b){return""}if(b==null||b==""){return""}if(isNaN(b.getFullYear())){return""}if(c.DataType=="d"){c.Day=""}else{if(c.DataType=="t"){c.Minutes=""}}switch(c.DataType){case"d":return b.getFullYear()+c.Year+(b.getMonth()+1)+c.Month+b.getDate()+c.Day;break;case"t":return b.getHours()+c.Hours+b.getSeconds()+c.Seconds+b.getMinutes()+c.Minutes;break;default:return b.getFullYear()+c.Year+(b.getMonth()+1)+c.Month+b.getDate()+c.Day+b.getHours()+c.Hours+b.getSeconds()+c.Seconds+b.getMinutes()+c.Minutes}}catch(d){}};a("#indexToTop").on("click",function(){window.scrollTo(0,1)});a(window).scroll(function(){if(a(window).scrollTop()>=a(window).height()){a("#indexToTop").show("slow")}else{a("#indexToTop").hide("slow")}});App.touchFunc=function(e,g,c){var d={x:5,y:5,sx:0,sy:0,ex:0,ey:0};var f=0,b=0;g=g.toLowerCase();e.addEventListener("touchstart",function(){f=new Date().getTime();d.sx=event.targetTouches[0].pageX;d.sy=event.targetTouches[0].pageY;d.ex=d.sx;d.ey=d.sy;if(g.indexOf("start")!=-1){c()}},false);e.addEventListener("touchmove",function(){event.preventDefault();d.ex=event.targetTouches[0].pageX;d.ey=event.targetTouches[0].pageY;if(g.indexOf("move")!=-1){c()}},false);e.addEventListener("touchend",function(){var h=d.sx-d.ex;var i=d.sy-d.ey;if(Math.abs(h)>Math.abs(i)&&Math.abs(i)>d.y){if(h>0){if(g.indexOf("left")!=-1){c()}}else{if(g.indexOf("right")!=-1){c()}}}else{if(Math.abs(i)>Math.abs(h)&&Math.abs(h)>d.x){if(i>0){if(g.indexOf("top")!=-1){c()}}else{if(g.indexOf("down")!=-1){c()}}}else{if(Math.abs(h)300){if(g.indexOf("long")!=-1){c()}}else{if(g.indexOf("click")!=-1){c()}}}}}if(g.indexOf("end")!=-1){c()}},false)}})(jQuery);window.onload=function(){$("#menu ul li").each(function(a){$("#menu ul li").eq(a).removeClass("on");$("#menu ul li section").eq(a).animate({bottom:-$("#menu ul li section").eq(a).height()},100)})};$("#menu ul li").each(function(a){$(this).click(function(){if($(this).attr("class")!="on"){$("#menu ul .on section").animate({bottom:-$("#menu ul .on section").height()},200);$("#menu ul .on").removeClass("on");$(this).addClass("on");$("#menu ul li section").eq(a).animate({bottom:35},200);$(".footer_front").show()}else{$("#menu ul li section").eq(a).animate({bottom:-$("#menu ul li section").eq(a).height()},200);$(this).removeClass("on");$(".footer_front").hide()}})});$(".footer_front").click(function(){$("#menu ul .on section").animate({bottom:-$("#menu ul .on section").height()},200);$("#menu ul .on").removeClass("on");$(this).hide()});