(function($,window,document,undefined){$.easing.easeOutExpo=function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b};function ps(obj){var op=obj.css("position");var no=(op!="relative"&&op!="absolute");return no?"relative":op};function zySlider(opt){this.o=opt.target;this.s=opt.speed;this.r=opt.round;this.now=opt.step;this.w=this.o.width();this.h=this.o.height();this.ap=opt.autoplay;this.timer=null;this.animateBefore=opt.animateBefore;this.list=this.o.children('.easyCycle-page');this.box=$('<div>');this.pager=opt.pager;this.pagerlist=[];this.init()};zySlider.prototype={init:function(){var o=this;o.o.append(o.box).css({position:ps(o.o)});o.list.each(function(){$(this).css({margin:0,padding:0,border:'none',float:'left',width:o.w,height:o.h});$(this).appendTo(o.box)});o.box.css({height:o.h,width:o.w*o.list.length*2+1,position:'absolute',left:0,top:0}).append(o.box.html());if(o.ap){o.o.bind({'mouseenter':function(){o.pause()},'mouseleave':function(){o.goOn()}});o.goOn()};if(o.pager){o.pagebox=$("<div class='zyslider_pagbox'>");o.list.each(function(i){var bullet=$('<span>');bullet.hover(function(){o.go(i)});o.pagerlist.push(bullet);o.pagebox.append(bullet);o.o.append(o.pagebox)})};o.go(o.now)},goOn:function(){var o=this;o.ap&&(o.timer=setInterval(function(){if(!o.r&&o.now==o.list.length-1){clearInterval(o.timer);return};(!o.box.is(":animated"))&&o.next()},o.ap))},pause:function(){this.ap&&clearInterval(this.timer)},go:function(num,callback){var o=this,active=num%o.list.length,fxend=(num>=0)?active:(o.list.length+active);if((num<-1||num>o.list.length+2)||(!(o.r)&&(num<0||num>o.list.length-1))){return};if(num<0&&o.r){o.box.css('left',-o.list.length*o.w)};o.now=fxend;if(o.pager){$(o.pagerlist).each(function(i){fxend!=i?(this.removeClass('zyslider_bullet_active')):this.addClass('zyslider_bullet_active')})};o.animateBefore.call(o);o.box.stop().animate({left:-(num==-1?fxend:num)*o.w},{duration:o.s,easing:'easeOutExpo',complete:function(){(callback&&{}.toString.call(callback)=='[object Function]')&&callback.call(o)},step:function(left,fx){if(left<=-o.w*o.list.length-fxend*o.w){fx.now=fx.now+o.w*o.list.length;fx.end=-fxend*o.w}}})},prev:function(callback){var o=this,prev=o.now-1;if(o.box.is(":animated")){return};o.go(prev,callback)},next:function(callback){var o=this;var next=o.now+1;if(o.box.is(":animated")){return};o.go(next,callback)}};$.fn.zySlider=function(opt){var defaults={speed:300,round:!1,autoplay:!1,pager:!1,step:0,animateBefore:function(){}};var settings=$.extend({target:this},defaults,opt);var inited=this[0].inited;if(inited){return inited};this[0].inited=new zySlider(settings)}})(jQuery,window,document);function sousuo(){window.open('http://www.360doc.com/search.html?type=0&word='+escape('什么是贵族精神'))};