/** * jquery bxslider v3.0 * http://bxslider.com * * copyright 2010, steven wanderski * http://bxcreative.com * * free to use and abuse under the mit license. * http://www.opensource.org/licenses/mit-license.php * */ (function(a){a.fn.bxslider=function(b){function z(b,c,d,e){var f=[];var g=d;var h=false;if(e=="backward"){b=a.makearray(b);b.reverse()}while(g>0){a.each(b,function(b,d){if(g>0){if(!h){if(b==c){h=true;f.push(a(this).clone());g--}}else{f.push(a(this).clone());g--}}else{return false}})}return f}function y(){var a=i.outerheight()*b.displayslideqty;return a}function x(){var a=i.outerwidth()*b.displayslideqty;return a}function w(b,c){if(c=="left"){var d=a(".pager",h).eq(b).position().left}else if(c=="top"){var d=a(".pager",h).eq(b).position().top}return d}function v(){if(!b.infiniteloop&&b.hidecontrolonend){if(x==f){a(".bx-prev",h).hide()}else{a(".bx-prev",h).show()}if(x==g){a(".bx-next",h).hide()}else{a(".bx-next",h).show()}}}function u(c,e,f,g){p=a('');if(c=="text"){r=e}else{r=''}if(f=="text"){s=g}else{s=''}if(b.autocontrolsselector){a(b.autocontrolsselector).append(p)}else{h.append('
');a(".bx-auto",h).html(p)}p.click(function(){if(b.ticker){if(a(this).hasclass("stop")){d.stopticker()}else if(a(this).hasclass("start")){d.startticker()}}else{if(a(this).hasclass("stop")){d.stopshow(true)}else if(a(this).hasclass("start")){d.startshow(true)}}return false})}function t(){var c=a("img",g.eq(x)).attr("title");if(c!=""){if(b.captionsselector){a(b.captionsselector).html(c)}else{a(".bx-captions",h).html(c)}}else{if(b.captionsselector){a(b.captionsselector).html("â ")}else{a(".bx-captions",h).html("â ")}}}function s(c){var e=g.length;if(b.moveslideqty>1){if(g.length%b.moveslideqty!=0){e=math.ceil(g.length/b.moveslideqty)}else{e=g.length/b.moveslideqty}}var f="";if(b.buildpager){for(var i=0;i