/*! * copyright 2011-2013, 大话主席 * * 请尊重原创,保留头部版权 * 在保留版权的前提下可应用于个人或商业用途 */ !function(a){a.fn.slide=function(b){return a.fn.slide.defaults={type:"slide",effect:"fade",autoplay:!1,delaytime:500,intertime:2500,triggertime:150,defaultindex:0,titcell:".h li",maincell:".b",targetcell:null,trigger:"mouseover",scroll:1,vis:1,titonclassname:"on",autopage:!1,prevcell:".prev",nextcell:".next",pagestatecell:".pagestate",opp:!1,pnloop:!0,easing:"swing",startfun:null,endfun:null,switchload:null,playstatecell:".playstate",mouseoverstop:!0,defaultplay:!0,returndefault:!1},this.each(function(){var c=a.extend({},a.fn.slide.defaults,b),d=a(this),e=c.effect,f=a(c.prevcell,d),g=a(c.nextcell,d),h=a(c.pagestatecell,d),i=a(c.playstatecell,d),j=a(c.titcell,d),k=j.size(),l=a(c.maincell,d),m=l.children().size(),n=c.switchload,o=a(c.targetcell,d),p=parseint(c.defaultindex),q=parseint(c.delaytime),r=parseint(c.intertime);parseint(c.triggertime);var q,t=parseint(c.scroll),u=parseint(c.vis),v="false"==c.autoplay||0==c.autoplay?!1:!0,w="false"==c.opp||0==c.opp?!1:!0,x="false"==c.autopage||0==c.autopage?!1:!0,y="false"==c.pnloop||0==c.pnloop?!1:!0,z="false"==c.mouseoverstop||0==c.mouseoverstop?!1:!0,a="false"==c.defaultplay||0==c.defaultplay?!1:!0,b="false"==c.returndefault||0==c.returndefault?!1:!0,c=0,d=0,e=0,f=0,g=c.easing,h=null,i=null,j=null,k=c.titonclassname,l=j.index(d.find("."+k)),m=p=-1==l?p:l,n=p,o=p,p=m>=u?0!=m%t?m%t:t:0,r="leftmarquee"==e||"topmarquee"==e?!0:!1,s=function(){a.isfunction(c.startfun)&&c.startfun(p,k,d,a(c.titcell,d),l,o,f,g)},t=function(){a.isfunction(c.endfun)&&c.endfun(p,k,d,a(c.titcell,d),l,o,f,g)},u=function(){j.removeclass(k),a&&j.eq(n).addclass(k)};if("menu"==c.type)return a&&j.removeclass(k).eq(p).addclass(k),j.hover(function(){q=a(this).find(c.targetcell);var b=j.index(a(this));i=settimeout(function(){switch(p=b,j.removeclass(k).eq(p).addclass(k),s(),e){case"fade":q.stop(!0,!0).animate({opacity:"show"},q,g,t);break;case"slidedown":q.stop(!0,!0).animate({height:"show"},q,g,t)}},c.triggertime)},function(){switch(cleartimeout(i),e){case"fade":q.animate({opacity:"hide"},q,g);break;case"slidedown":q.animate({height:"hide"},q,g)}}),b&&d.hover(function(){cleartimeout(j)},function(){j=settimeout(u,q)}),void 0;if(0==k&&(k=m),r&&(k=2),x){if(m>=u)if("leftloop"==e||"toploop"==e)k=0!=m%t?(0^m/t)+1:m/t;else{var v=m-u;k=1+parseint(0!=v%t?v/t+1:v/t),0>=k&&(k=1)}else k=1;j.html("");var w="";if(1==c.autopage||"true"==c.autopage)for(var x=0;k>x;x++)w+="
  • "+''+"
  • ";else for(var x=0;k>x;x++)w+=c.autopage.replace("$",x+1);j.html(w);var j=j.children()}if(m>=u){l.children().each(function(){a(this).width()>e&&(e=a(this).width(),d=a(this).outerwidth(!0)),a(this).height()>f&&(f=a(this).height(),c=a(this).outerheight(!0))});var y=l.children(),z=function(){for(var a=0;u>a;a++)y.eq(a).clone().addclass("clone").appendto(l);for(var a=0;p>a;a++)y.eq(m-a-1).clone().addclass("clone").prependto(l)};switch(e){case"fold":l.css({position:"relative",width:d,height:c}).children().css({position:"absolute",width:e,left:0,top:0,display:"none"});break;case"top":l.wrap('
    ').css({top:-(p*t)*c,position:"relative"}).children().css({height:f});break;case"left":l.wrap('
    ').css({width:m*d,left:-(p*t)*d,position:"relative",overflow:"hidden"}).children().css({"float":"left",width:e});break;case"leftloop":case"leftmarquee":z(),l.wrap('
    ').css({width:(m+u+p)*d,position:"relative",overflow:"hidden",left:-(p+p*t)*d}).children().css({"float":"left",width:e});break;case"toploop":case"topmarquee":z(),l.wrap('
    ').css({height:(m+u+p)*c,position:"relative",top:-(p+p*t)*c}).children().css({height:f})}}var $=function(a){var b=a*t;return a==k?b=m:-1==a&&0!=m%t&&(b=-m%t),b},_=function(b){var c=function(c){for(var d=c;u+c>d;d++)b.eq(d).find("img["+n+"]").each(function(){var b=a(this);if(b.attr("src",b.attr(n)).removeattr(n),l.find(".clone")[0])for(var c=l.children(),d=0;d=1?p=1:0>=p&&(p=0):(o=p,p>=k?p=0:0>p&&(p=k-1)),s(),null!=n&&_(l.children()),o[0]&&(q=o.eq(p),null!=n&&_(o),"slidedown"==e?(o.not(q).stop(!0,!0).slideup(q),q.slidedown(q,g,function(){l[0]||t()})):(o.not(q).stop(!0,!0).hide(),q.animate({opacity:"show"},q,function(){l[0]||t()}))),m>=u)switch(e){case"fade":l.children().stop(!0,!0).eq(p).animate({opacity:"show"},q,g,function(){t()}).siblings().hide();break;case"fold":l.children().stop(!0,!0).eq(p).animate({opacity:"show"},q,g,function(){t()}).siblings().animate({opacity:"hide"},q,g);break;case"top":l.stop(!0,!1).animate({top:-p*t*c},q,g,function(){t()});break;case"left":l.stop(!0,!1).animate({left:-p*t*d},q,g,function(){t()});break;case"leftloop":var b=o;l.stop(!0,!0).animate({left:-($(o)+p)*d},q,g,function(){-1>=b?l.css("left",-(p+(k-1)*t)*d):b>=k&&l.css("left",-p*d),t()});break;case"toploop":var b=o;l.stop(!0,!0).animate({top:-($(o)+p)*c},q,g,function(){-1>=b?l.css("top",-(p+(k-1)*t)*c):b>=k&&l.css("top",-p*c),t()});break;case"leftmarquee":var c=l.css("left").replace("px","");0==p?l.animate({left:++c},0,function(){l.css("left").replace("px","")>=0&&l.css("left",-m*d)}):l.animate({left:--c},0,function(){l.css("left").replace("px","")<=-(m+p)*d&&l.css("left",-p*d)});break;case"topmarquee":var d=l.css("top").replace("px","");0==p?l.animate({top:++d},0,function(){l.css("top").replace("px","")>=0&&l.css("top",-m*c)}):l.animate({top:--d},0,function(){l.css("top").replace("px","")<=-(m+p)*c&&l.css("top",-p*c)})}j.removeclass(k).eq(p).addclass(k),m=p,y||(g.removeclass("nextstop"),f.removeclass("prevstop"),0==p&&f.addclass("prevstop"),p==k-1&&g.addclass("nextstop")),h.html(""+(p+1)+"/"+k)}};a&&ab(!0),b&&d.hover(function(){cleartimeout(j)},function(){j=settimeout(function(){p=n,a?ab():"slidedown"==e?q.slideup(q,u):q.animate({opacity:"hide"},q,u),m=p},300)});var bb=function(a){h=setinterval(function(){w?p--:p++,ab()},a?a:r)},cb=function(a){h=setinterval(ab,a?a:r)},db=function(){z||(clearinterval(h),bb())},eb=function(){(y||p!=k-1)&&(p++,ab(),r||db())},fb=function(){(y||0!=p)&&(p--,ab(),r||db())},gb=function(){clearinterval(h),r?cb():bb(),i.removeclass("pausestate")},hb=function(){clearinterval(h),i.addclass("pausestate")};if(v?r?(w?p--:p++,cb(),z&&l.hover(hb,gb)):(bb(),z&&d.hover(hb,gb)):(r&&(w?p--:p++),i.addclass("pausestate")),i.click(function(){i.hasclass("pausestate")?gb():hb()}),"mouseover"==c.trigger?j.hover(function(){var a=j.index(this);i=settimeout(function(){p=a,ab(),db()},c.triggertime)},function(){cleartimeout(i)}):j.click(function(){p=j.index(this),ab(),db()}),r){if(g.mousedown(eb),f.mousedown(fb),y){var ib,jb=function(){ib=settimeout(function(){clearinterval(h),cb(0^r/10)},150)},kb=function(){cleartimeout(ib),clearinterval(h),cb()};g.mousedown(jb),g.mouseup(kb),f.mousedown(jb),f.mouseup(kb)}"mouseover"==c.trigger&&(g.hover(eb,function(){}),f.hover(fb,function(){}))}else g.click(eb),f.click(fb)})}}(jquery),jquery.easing.jswing=jquery.easing.swing,jquery.extend(jquery.easing,{def:"easeoutquad",swing:function(a,b,c,d,e){return jquery.easing[jquery.easing.def](a,b,c,d,e)},easeinquad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeoutquad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeinoutquad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeincubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeoutcubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeinoutcubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeinquart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeoutquart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeinoutquart:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeinquint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeoutquint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeinoutquint:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeinsine:function(a,b,c,d,e){return-d*math.cos(b/e*(math.pi/2))+d+c},easeoutsine:function(a,b,c,d,e){return d*math.sin(b/e*(math.pi/2))+c},easeinoutsine:function(a,b,c,d,e){return-d/2*(math.cos(math.pi*b/e)-1)+c},easeinexpo:function(a,b,c,d,e){return 0==b?c:d*math.pow(2,10*(b/e-1))+c},easeoutexpo:function(a,b,c,d,e){return b==e?c+d:d*(-math.pow(2,-10*b/e)+1)+c},easeinoutexpo:function(a,b,c,d,e){return 0==b?c:b==e?c+d:(b/=e/2)<1?d/2*math.pow(2,10*(b-1))+c:d/2*(-math.pow(2,-10*--b)+2)+c},easeincirc:function(a,b,c,d,e){return-d*(math.sqrt(1-(b/=e)*b)-1)+c},easeoutcirc:function(a,b,c,d,e){return d*math.sqrt(1-(b=b/e-1)*b)+c},easeinoutcirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(math.sqrt(1-b*b)-1)+c:d/2*(math.sqrt(1-(b-=2)*b)+1)+c},easeinelastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),hb?-.5*h*math.pow(2,10*(b-=1))*math.sin((b*e-f)*2*math.pi/g)+c:.5*h*math.pow(2,-10*(b-=1))*math.sin((b*e-f)*2*math.pi/g)+d+c},easeinback:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*(b/=e)*b*((f+1)*b-f)+c},easeoutback:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeinoutback:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),(b/=e/2)<1?d/2*b*b*(((f*=1.525)+1)*b-f)+c:d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeinbounce:function(a,b,c,d,e){return d-jquery.easing.easeoutbounce(a,e-b,0,d,e)+c},easeoutbounce:function(a,b,c,d,e){return(b/=e)<1/2.75?d*7.5625*b*b+c:2/2.75>b?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:2.5/2.75>b?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeinoutbounce:function(a,b,c,d,e){return e/2>b?.5*jquery.easing.easeinbounce(a,2*b,0,d,e)+c:.5*jquery.easing.easeoutbounce(a,2*b-e,0,d,e)+.5*d+c}}); /*===============================================select================================================*/ eval(function(p,a,c,k,e,r){e=function(c){return(c35?string.fromcharcode(c+29):c.tostring(36))};if(!''.replace(/^/,string)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new regexp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(3($){"15 1d";m f=(3(w,d){o("1j"1f w?d.1c?d.1a:7:6)})(z,z.s),t=f<7?"i":"t",r,s,c={q:l,k:l,v:3(){o $(h).l()}};3 u(a,b){o $("<"+(b||"13")+"/>").r(a)}4(f<7){s=3(b,c){m d=u("1m");d.b(c);b.b(d);b.1u(3(e){m a=b[0].j,y;d.14({16:e.17,z:e.1g}).n({e:1,i:1});4(d[0].m>a){d.n({z:a})}y=d[0].m;$(c).n({i:b[0].n,18:-d[0].1b,1e:y+c.o>a?a-c.o-y:0})}).1s("1x 1y",3(){d.e(0).i(0)})}}p 4(f<8){s=3(a,b){a.12(3(){$(b).e(a[0].j).i(a[0].n)})}}3 x(b){m c=$(b).h(".f"),p=c.t("u")||{},g=b.19,d=p.v,l=g<0?"":d.v(b.p[g]),k=c.1d(".w"),j=0;4(!k.j){k=u("w","x").1h(c)}l=l||"&1i;";4(k.l()!==l){k.l(l)}4(p.q){$.a(b.p,3(){m a=d.v(h),i=a.1k(/[1l-11]/g);i=a.j-(i?i.j/2:0)+0.5;j=1n.1o(i,j)});j+="1p";$(3(){4(f<7){k.n(t,"");4(k[0].1q[t]!=="1r"){o}}k.n(t,j)})}}3 y(a){4(r){r.1t(a)}p{r=[a];1u(3(){$.a(r,3(){4(s.1v!==h){x(h)}})},1w)}}$.z.9=3(c){c=$.1z({},c,c);m d=c.v;4(1a d==="1b"){c.v=3(){o $(h).1c(d)}}o h.a(3(){m b,q=$(h),9=q.h(".f");4(q.n("1e")!=="1f"){4(!9.j){9=u("f","x");9.1g(q);9.b(u("1h","b")).b(q)}9.t("u",c);q.1i("1j 1k 1l 1m 1n 1o 1p 1q",3(){1r(b);m a=h;b=1s(3(){x(a)},10)}).a(3(){x(h)});9.1t(3(){9.r("i")}).1v(3(){9.1w("i")});4(s){s(9,h)}4(c.k){y(h)}}})};$.z.9.p=c})(1x.1y||1z("20"));',62,125,'|||function|if|||||selectui||||||||this|width|length|textdiv|text|var|css|return|options|select|selectqueue|fixie|minwidth|create|label||modifytext|pixetop|top|each|append|defaultoptions|labelfn|height|select_ui|index|closest|select_focus_ui|clientheight|interval|true|offsettop|clientwidth|offsetheight|else|autowidth|addclass|document|data|selectuiopts|call|select_text_ui|span|startinterval|fn||u00ff|mouseenter|div|offset|use|left|pagex|marginleft|selectedindex|documentmode|offsetleft|queryselector|find|margintop|in|pagey|prependto|nbsp|xmlhttprequest|match|u0000|select_poswrap|math|max|em|currentstyle|auto|on|push|setinterval|activeelement|200|mouseleave|click|extend|typeof|string|prop|strict|display|none|insertafter|select_arrow|bind|change|propertychange|domattrmodified|domnodeinserted|domnoderemoved|keypress|keyup|input|cleartimeout|settimeout|focusin|mousemove|focusout|removeclass|window|jquery|require|jquery'.split('|'),0,{})) /*====================================页面配置====================================*/ jquery(function($) { $("select").not(".native select").selectui({ // 是否自动计算宽度 autowidth: true, // 是否启用定时器刷新文本和宽度 interval: true }); }); /*====================================页面配置====================================*/ $(function(){ $("#banner").slide({titcell:".hd li",maincell:".bd ul",effect:"fold",autoplay:true,delaytime:800,intertime:6000,mouseoverstop:false}); $("#nav").slide({titcell:".title",targetcell:".list",type:"menu",effect:"slidedown",autoplay:false,delaytime:200,triggertime:110,titonclassname:"li_on",returndefault:false}); $("#nav li").removeclass("li_on"); $("#nav .title .list").mouseover(function(){ $("this").parent().css("background","red"); }); $("#nav .title .list").mouseout(function(){ $("this").parent().removeclass("li_on_a"); }); /*$("#nav li:nth-child(1)").mouseover(function(){ $("#nav .mark").animate({left:"0"},10); }); $("#nav li:nth-child(2)").mouseover(function(){ $("#nav .mark").animate({left:"101"},300); }); $("#nav li:nth-child(3)").mouseover(function(){ $("#nav .mark").animate({left:"202"},300); }); $("#nav li:nth-child(4)").mouseover(function(){ $("#nav .mark").animate({left:"303"},300); }); $("#nav li:nth-child(5)").mouseover(function(){ $("#nav .mark").animate({left:"404"},100); }); $("#nav li:nth-child(6)").mouseover(function(){ $("#nav .mark").animate({left:"505"},100); }); $("#nav li:nth-child(7)").mouseover(function(){ $("#nav .mark").animate({left:"606"},100); }); $("#nav li:nth-child(8)").mouseover(function(){ $("#nav .mark").animate({left:"707"},100); }); $("#nav li").mouseover(function(){ $("#nav li").removeclass("on"); $(this).addclass("on"); }); $("#nav li").mouseout(function(){ $("#nav li").removeclass("on"); });*/ $("#gotop").click(function () { $("html,body").animate({scrolltop: 0}, 700); }); $(".s_about .video .box").click(function(){ $("#playercontainer").fadein(); }) $(".s_news").slide({maincell:".news_bd ", titcell:".news_hd li",effect:"fold",delaytime:800,intertime:6000}); }) $(function(){ $("#pf_bnt").click(function(){ $(".piaofu").toggleclass("pf_zk"); }); $("#pf_content .up li:last a").css("border","none") });