/**
 * jQuery bxSlider v3.0
 * http://bxslider.com
 *
 * Copyright 2010, Steven Wanderski
 * http://stevenwanderski.com
 *
 * Free to use and abuse under the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 * 
 */
(function(jQuery){jQuery.fn.bxSlider=function(options){var defaults={mode:'horizontal',infiniteLoop:true,hideControlOnEnd:false,controls:false,speed:500,easing:'swing',pager:false,pagerSelector:null,pagerType:'null',pagerLocation:'bottom',pagerShortSeparator:'/',pagerActiveClass:'pager-active',nextText:'next',nextImage:'',nextSelector:null,prevText:'prev',prevImage:'',prevSelector:null,captions:false,captionsSelector:null,auto:false,autoDirection:'next',autoControls:false,autoControlsSelector:null,autoStart:true,autoHover:false,autoDelay:0,pause:3000,startText:'start',startImage:'',stopText:'stop',stopImage:'',ticker:false,tickerSpeed:5000,tickerDirection:'next',tickerHover:false,wrapperClass:'bx-wrapper',startingSlide:0,displaySlideQty:1,moveSlideQty:1,randomStart:false,onBeforeSlide:function(){},onAfterSlide:function(){},onLastSlide:function(){},onFirstSlide:function(){},onNextSlide:function(){},onPrevSlide:function(){},buildPager:null}
var options=jQuery.extend(defaults,options);var base=this;var jQueryparent='';var jQueryorigElement='';var jQuerychildren='';var jQueryouterWrapper='';var jQueryfirstChild='';var childrenWidth='';var childrenOuterWidth='';var wrapperWidth='';var wrapperHeight='';var jQuerypager='';var interval='';var jQueryautoControls='';var jQuerystopHtml='';var jQuerystartContent='';var jQuerystopContent='';var autoPlaying=true;var loaded=false;var childrenMaxWidth=0;var childrenMaxHeight=0;var currentSlide=0;var origLeft=0;var origTop=0;var origShowWidth=0;var origShowHeight=0;var tickerLeft=0;var tickerTop=0;var isWorking=false;var firstSlide=0;var lastSlide=jQuerychildren.length-1;this.goToSlide=function(number,stopAuto){if(!isWorking){isWorking=true;currentSlide=number;options.onBeforeSlide(currentSlide,jQuerychildren.length,jQuerychildren.eq(currentSlide));if(typeof(stopAuto)=='undefined'){var stopAuto=true;}
if(stopAuto){if(options.auto){base.stopShow(true);}}
slide=number;if(slide==firstSlide){options.onFirstSlide(currentSlide,jQuerychildren.length,jQuerychildren.eq(currentSlide));}
if(slide==lastSlide){options.onLastSlide(currentSlide,jQuerychildren.length,jQuerychildren.eq(currentSlide));}
if(options.mode=='horizontal'){jQueryparent.animate({'left':'-'+getSlidePosition(slide,'left')+'px'},options.speed,options.easing,function(){isWorking=false;options.onAfterSlide(currentSlide,jQuerychildren.length,jQuerychildren.eq(currentSlide));});}else if(options.mode=='vertical'){jQueryparent.animate({'top':'-'+getSlidePosition(slide,'top')+'px'},options.speed,options.easing,function(){isWorking=false;options.onAfterSlide(currentSlide,jQuerychildren.length,jQuerychildren.eq(currentSlide));});}else if(options.mode=='fade'){setChildrenFade();}
checkEndControls();if(options.moveSlideQty>1){number=Math.floor(number/options.moveSlideQty);}
makeSlideActive(number);showCaptions();}}
this.goToNextSlide=function(stopAuto){if(typeof(stopAuto)=='undefined'){var stopAuto=true;}
if(stopAuto){if(options.auto){base.stopShow(true);}}
if(!options.infiniteLoop){if(!isWorking){var slideLoop=false;currentSlide=(currentSlide+(options.moveSlideQty));if(currentSlide<=lastSlide){checkEndControls();options.onNextSlide(currentSlide,jQuerychildren.length,jQuerychildren.eq(currentSlide));base.goToSlide(currentSlide);}else{currentSlide-=options.moveSlideQty;}}}else{if(!isWorking){isWorking=true;var slideLoop=false;currentSlide=(currentSlide+options.moveSlideQty);if(currentSlide>lastSlide){currentSlide=currentSlide%jQuerychildren.length;slideLoop=true;}
options.onNextSlide(currentSlide,jQuerychildren.length,jQuerychildren.eq(currentSlide));options.onBeforeSlide(currentSlide,jQuerychildren.length,jQuerychildren.eq(currentSlide));if(options.mode=='horizontal'){var parentLeft=(options.moveSlideQty*childrenOuterWidth);jQueryparent.animate({'left':'-='+parentLeft+'px'},options.speed,options.easing,function(){isWorking=false;if(slideLoop){jQueryparent.css('left','-'+getSlidePosition(currentSlide,'left')+'px');}
options.onAfterSlide(currentSlide,jQuerychildren.length,jQuerychildren.eq(currentSlide));});}else if(options.mode=='vertical'){var parentTop=(options.moveSlideQty*childrenMaxHeight);jQueryparent.animate({'top':'-='+parentTop+'px'},options.speed,options.easing,function(){isWorking=false;if(slideLoop){jQueryparent.css('top','-'+getSlidePosition(currentSlide,'top')+'px');}
options.onAfterSlide(currentSlide,jQuerychildren.length,jQuerychildren.eq(currentSlide));});}else if(options.mode=='fade'){setChildrenFade();}
if(options.moveSlideQty>1){makeSlideActive(Math.ceil(currentSlide/options.moveSlideQty));}else{makeSlideActive(currentSlide);}
showCaptions();}}}
this.goToPreviousSlide=function(stopAuto){if(typeof(stopAuto)=='undefined'){var stopAuto=true;}
if(stopAuto){if(options.auto){base.stopShow(true);}}
if(!options.infiniteLoop){if(!isWorking){var slideLoop=false;currentSlide=currentSlide-options.moveSlideQty;if(currentSlide<0){currentSlide=0;if(options.hideControlOnEnd){jQuery('.bx-prev',jQueryouterWrapper).hide();}}
checkEndControls();options.onPrevSlide(currentSlide,jQuerychildren.length,jQuerychildren.eq(currentSlide));base.goToSlide(currentSlide);}}else{if(!isWorking){isWorking=true;var slideLoop=false;currentSlide=(currentSlide-(options.moveSlideQty));if(currentSlide<0){negativeOffset=(currentSlide%jQuerychildren.length);if(negativeOffset==0){currentSlide=0;}else{currentSlide=(jQuerychildren.length)+negativeOffset;}
slideLoop=true;}
options.onPrevSlide(currentSlide,jQuerychildren.length,jQuerychildren.eq(currentSlide));options.onBeforeSlide(currentSlide,jQuerychildren.length,jQuerychildren.eq(currentSlide));if(options.mode=='horizontal'){var parentLeft=(options.moveSlideQty*childrenOuterWidth);jQueryparent.animate({'left':'+='+parentLeft+'px'},options.speed,options.easing,function(){isWorking=false;if(slideLoop){jQueryparent.css('left','-'+getSlidePosition(currentSlide,'left')+'px');}
options.onAfterSlide(currentSlide,jQuerychildren.length,jQuerychildren.eq(currentSlide));});}else if(options.mode=='vertical'){var parentTop=(options.moveSlideQty*childrenMaxHeight);jQueryparent.animate({'top':'+='+parentTop+'px'},options.speed,options.easing,function(){isWorking=false;if(slideLoop){jQueryparent.css('top','-'+getSlidePosition(currentSlide,'top')+'px');}
options.onAfterSlide(currentSlide,jQuerychildren.length,jQuerychildren.eq(currentSlide));});}else if(options.mode=='fade'){setChildrenFade();}
if(options.moveSlideQty>1){makeSlideActive(Math.ceil(currentSlide/options.moveSlideQty));}else{makeSlideActive(currentSlide);}
showCaptions();}}}
this.goToFirstSlide=function(stopAuto){if(typeof(stopAuto)=='undefined'){var stopAuto=true;}
base.goToSlide(firstSlide,stopAuto);}
this.goToLastSlide=function(){if(typeof(stopAuto)=='undefined'){var stopAuto=true;}
base.goToSlide(lastSlide,stopAuto);}
this.getCurrentSlide=function(){return currentSlide;}
this.getSlideCount=function(){return jQuerychildren.length;}
this.stopShow=function(changeText){clearInterval(interval);if(typeof(changeText)=='undefined'){var changeText=true;}
if(changeText&&options.autoControls){jQueryautoControls.html(jQuerystartContent).removeClass('stop').addClass('start');autoPlaying=false;}}
this.startShow=function(changeText){if(typeof(changeText)=='undefined'){var changeText=true;}
setAutoInterval();if(changeText&&options.autoControls){jQueryautoControls.html(jQuerystopContent).removeClass('start').addClass('stop');autoPlaying=true;}}
this.stopTicker=function(changeText){jQueryparent.stop();if(typeof(changeText)=='undefined'){var changeText=true;}
if(changeText&&options.ticker){jQueryautoControls.html(jQuerystartContent).removeClass('stop').addClass('start');autoPlaying=false;}}
this.startTicker=function(changeText){if(options.mode=='horizontal'){if(options.tickerDirection=='next'){var stoppedLeft=parseInt(jQueryparent.css('left'));var remainingDistance=(origShowWidth+stoppedLeft)+jQuerychildren.eq(0).width();}else if(options.tickerDirection=='prev'){var stoppedLeft=-parseInt(jQueryparent.css('left'));var remainingDistance=(stoppedLeft)-jQuerychildren.eq(0).width();}
var finishingSpeed=(remainingDistance*options.tickerSpeed)/origShowWidth;moveTheShow(tickerLeft,remainingDistance,finishingSpeed);}else if(options.mode=='vertical'){if(options.tickerDirection=='next'){var stoppedTop=parseInt(jQueryparent.css('top'));var remainingDistance=(origShowHeight+stoppedTop)+jQuerychildren.eq(0).height();}else if(options.tickerDirection=='prev'){var stoppedTop=-parseInt(jQueryparent.css('top'));var remainingDistance=(stoppedTop)-jQuerychildren.eq(0).height();}
var finishingSpeed=(remainingDistance*options.tickerSpeed)/origShowHeight;moveTheShow(tickerTop,remainingDistance,finishingSpeed);if(typeof(changeText)=='undefined'){var changeText=true;}
if(changeText&&options.ticker){jQueryautoControls.html(jQuerystopContent).removeClass('start').addClass('stop');autoPlaying=true;}}}
this.initShow=function(){jQueryparent=jQuery(this);jQueryorigElement=jQueryparent.clone();jQuerychildren=jQueryparent.children();jQueryouterWrapper='';jQueryfirstChild=jQueryparent.children(':first');childrenWidth=jQueryfirstChild.width();childrenMaxWidth=0;childrenOuterWidth=jQueryfirstChild.outerWidth();childrenMaxHeight=0;wrapperWidth=getWrapperWidth();wrapperHeight=getWrapperHeight();isWorking=false;jQuerypager='';currentSlide=0;origLeft=0;origTop=0;interval='';jQueryautoControls='';jQuerystopHtml='';jQuerystartContent='';jQuerystopContent='';autoPlaying=true;loaded=false;origShowWidth=0;origShowHeight=0;tickerLeft=0;tickerTop=0;firstSlide=0;lastSlide=jQuerychildren.length-1;jQuerychildren.each(function(index){if(jQuery(this).outerHeight()>childrenMaxHeight){childrenMaxHeight=jQuery(this).outerHeight();}
if(jQuery(this).outerWidth()>childrenMaxWidth){childrenMaxWidth=jQuery(this).outerWidth();}});if(options.randomStart){var randomNumber=Math.floor(Math.random()*jQuerychildren.length);currentSlide=randomNumber;origLeft=childrenOuterWidth*(options.moveSlideQty+randomNumber);origTop=childrenMaxHeight*(options.moveSlideQty+randomNumber);}else{currentSlide=options.startingSlide;origLeft=childrenOuterWidth*(options.moveSlideQty+options.startingSlide);origTop=childrenMaxHeight*(options.moveSlideQty+options.startingSlide);}
initCss();if(options.pager&&!options.ticker){if(options.pagerType=='full'){showPager('full');}else if(options.pagerType=='short'){showPager('short');}}
if(options.controls&&!options.ticker){setControlsVars();}
if(options.auto||options.ticker){if(options.autoControls){setAutoControlsVars();}
if(options.autoStart){setTimeout(function(){base.startShow(true);},options.autoDelay);}else{base.stopShow(true);}
if(options.autoHover&&!options.ticker){setAutoHover();}}
if(options.moveSlideQty>1){makeSlideActive(Math.ceil(currentSlide/options.moveSlideQty));}else{makeSlideActive(currentSlide);}
checkEndControls();if(options.captions){showCaptions();}
options.onAfterSlide(currentSlide,jQuerychildren.length,jQuerychildren.eq(currentSlide));}
this.destroyShow=function(){clearInterval(interval);jQuery('.bx-next, .bx-prev, .bx-pager, .bx-auto',jQueryouterWrapper).remove();jQueryparent.unwrap().unwrap().removeAttr('style');jQueryparent.children().removeAttr('style').not('.pager').remove();jQuerychildren.removeClass('pager');}
this.reloadShow=function(){base.destroyShow();base.initShow();}
function initCss(){setChildrenLayout(options.startingSlide);if(options.mode=='horizontal'){jQueryparent.wrap('<div class="'+options.wrapperClass+'" style="width:'+wrapperWidth+'px; position:relative;"></div>').wrap('<div class="bx-window" style="position:relative; overflow:hidden; width:'+wrapperWidth+'px;"></div>').css({width:'999999px',position:'relative',left:'-'+(origLeft)+'px'});jQueryparent.children().css({width:childrenWidth,'float':'left',listStyle:'none'});jQueryouterWrapper=jQueryparent.parent().parent();jQuerychildren.addClass('pager');}else if(options.mode=='vertical'){jQueryparent.wrap('<div class="'+options.wrapperClass+'" style="width:'+childrenMaxWidth+'px; position:relative;"></div>').wrap('<div class="bx-window" style="width:'+childrenMaxWidth+'px; height:'+wrapperHeight+'px; position:relative; overflow:hidden;"></div>').css({height:'999999px',position:'relative',top:'-'+(origTop)+'px'});jQueryparent.children().css({listStyle:'none',height:childrenMaxHeight});jQueryouterWrapper=jQueryparent.parent().parent();jQuerychildren.addClass('pager');}else if(options.mode=='fade'){jQueryparent.wrap('<div class="'+options.wrapperClass+'" style="width:'+childrenMaxWidth+'px; position:relative;"></div>').wrap('<div class="bx-window" style="height:'+childrenMaxHeight+'px; width:'+childrenMaxWidth+'px; position:relative; overflow:hidden;"></div>');jQueryparent.children().css({listStyle:'none',position:'absolute',top:0,left:0,zIndex:98});jQueryouterWrapper=jQueryparent.parent().parent();jQuerychildren.not(':eq('+currentSlide+')').fadeTo(0,0);jQuerychildren.eq(currentSlide).css('zIndex',99);}
if(options.captions&&options.captionsSelector==null){jQueryouterWrapper.append('<div class="bx-captions"></div>');}}
function setChildrenLayout(){if(options.mode=='horizontal'||options.mode=='vertical'){var jQueryprependedChildren=getArraySample(jQuerychildren,0,options.moveSlideQty,'backward');jQuery.each(jQueryprependedChildren,function(index){jQueryparent.prepend(jQuery(this));});var totalNumberAfterWindow=(jQuerychildren.length+options.moveSlideQty)-1;var pagerExcess=jQuerychildren.length-options.displaySlideQty;var numberToAppend=totalNumberAfterWindow-pagerExcess;var jQueryappendedChildren=getArraySample(jQuerychildren,0,numberToAppend,'forward');if(options.infiniteLoop){jQuery.each(jQueryappendedChildren,function(index){jQueryparent.append(jQuery(this));});}}}
function setControlsVars(){if(options.nextImage!=''){nextContent=options.nextImage;nextType='image';}else{nextContent=options.nextText;nextType='text';}
if(options.prevImage!=''){prevContent=options.prevImage;prevType='image';}else{prevContent=options.prevText;prevType='text';}
showControls(nextType,nextContent,prevType,prevContent);}
function setAutoInterval(){if(options.auto){if(!options.infiniteLoop){if(options.autoDirection=='next'){interval=setInterval(function(){currentSlide+=options.moveSlideQty;if(currentSlide>lastSlide){currentSlide=currentSlide%jQuerychildren.length;}
base.goToSlide(currentSlide,false);},options.pause);}else if(options.autoDirection=='prev'){interval=setInterval(function(){currentSlide-=options.moveSlideQty;if(currentSlide<0){negativeOffset=(currentSlide%jQuerychildren.length);if(negativeOffset==0){currentSlide=0;}else{currentSlide=(jQuerychildren.length)+negativeOffset;}}
base.goToSlide(currentSlide,false);},options.pause);}}else{if(options.autoDirection=='next'){interval=setInterval(function(){base.goToNextSlide(false);},options.pause);}else if(options.autoDirection=='prev'){interval=setInterval(function(){base.goToPreviousSlide(false);},options.pause);}}}else if(options.ticker){options.tickerSpeed*=10;jQuery('.pager',jQueryouterWrapper).each(function(index){origShowWidth+=jQuery(this).width();origShowHeight+=jQuery(this).height();});if(options.tickerDirection=='prev'&&options.mode=='horizontal'){jQueryparent.css('left','-'+(origShowWidth+origLeft)+'px');}else if(options.tickerDirection=='prev'&&options.mode=='vertical'){jQueryparent.css('top','-'+(origShowHeight+origTop)+'px');}
if(options.mode=='horizontal'){tickerLeft=parseInt(jQueryparent.css('left'));moveTheShow(tickerLeft,origShowWidth,options.tickerSpeed);}else if(options.mode=='vertical'){tickerTop=parseInt(jQueryparent.css('top'));moveTheShow(tickerTop,origShowHeight,options.tickerSpeed);}
if(options.tickerHover){setTickerHover();}}}
function moveTheShow(leftCss,distance,speed){if(options.mode=='horizontal'){if(options.tickerDirection=='next'){jQueryparent.animate({'left':'-='+distance+'px'},speed,'linear',function(){jQueryparent.css('left',leftCss);moveTheShow(leftCss,origShowWidth,options.tickerSpeed);});}else if(options.tickerDirection=='prev'){jQueryparent.animate({'left':'+='+distance+'px'},speed,'linear',function(){jQueryparent.css('left',leftCss);moveTheShow(leftCss,origShowWidth,options.tickerSpeed);});}}else if(options.mode=='vertical'){if(options.tickerDirection=='next'){jQueryparent.animate({'top':'-='+distance+'px'},speed,'linear',function(){jQueryparent.css('top',leftCss);moveTheShow(leftCss,origShowHeight,options.tickerSpeed);});}else if(options.tickerDirection=='prev'){jQueryparent.animate({'top':'+='+distance+'px'},speed,'linear',function(){jQueryparent.css('top',leftCss);moveTheShow(leftCss,origShowHeight,options.tickerSpeed);});}}}
function setAutoControlsVars(){if(options.startImage!=''){startContent=options.startImage;startType='image';}else{startContent=options.startText;startType='text';}
if(options.stopImage!=''){stopContent=options.stopImage;stopType='image';}else{stopContent=options.stopText;stopType='text';}
showAutoControls(startType,startContent,stopType,stopContent);}
function setAutoHover(){jQueryouterWrapper.find('.bx-window').hover(function(){if(autoPlaying){base.stopShow(false);}},function(){if(autoPlaying){base.startShow(false);}});}
function setTickerHover(){jQueryparent.hover(function(){if(autoPlaying){base.stopTicker(false);}},function(){if(autoPlaying){base.startTicker(false);}});}
function setChildrenFade(){jQuerychildren.not(':eq('+currentSlide+')').fadeTo(options.speed,0).css('zIndex',98);jQuerychildren.eq(currentSlide).css('zIndex',99).fadeTo(options.speed,1,function(){isWorking=false;if(jQuery.browser.msie){jQuerychildren.eq(currentSlide).get(0).style.removeAttribute('filter');}
options.onAfterSlide(currentSlide,jQuerychildren.length,jQuerychildren.eq(currentSlide));});};function makeSlideActive(number){if(options.pagerType=='full'&&options.pager){jQuery('a',jQuerypager).removeClass(options.pagerActiveClass);jQuery('a',jQuerypager).eq(number).addClass(options.pagerActiveClass);}else if(options.pagerType=='short'&&options.pager){jQuery('.bx-pager-current',jQuerypager).html(currentSlide+1);}}
function showControls(nextType,nextContent,prevType,prevContent){var jQuerynextHtml=jQuery('<a href="" class="bx-next"></a>');var jQueryprevHtml=jQuery('<a href="" class="bx-prev"></a>');if(nextType=='text'){jQuerynextHtml.html(nextContent);}else{jQuerynextHtml.html('<img src="'+nextContent+'" />');}
if(prevType=='text'){jQueryprevHtml.html(prevContent);}else{jQueryprevHtml.html('<img src="'+prevContent+'" />');}
if(options.prevSelector){jQuery(options.prevSelector).append(jQueryprevHtml);}else{jQueryouterWrapper.append(jQueryprevHtml);}
if(options.nextSelector){jQuery(options.nextSelector).append(jQuerynextHtml);}else{jQueryouterWrapper.append(jQuerynextHtml);}
jQuerynextHtml.click(function(){base.goToNextSlide();return false;});jQueryprevHtml.click(function(){base.goToPreviousSlide();return false;});}
function showPager(type){var pagerQty=jQuerychildren.length;if(options.moveSlideQty>1){if(jQuerychildren.length%options.moveSlideQty!=0){pagerQty=Math.ceil(jQuerychildren.length/options.moveSlideQty);}else{pagerQty=jQuerychildren.length/options.moveSlideQty;}}
var pagerString='';if(options.buildPager){for(var i=0;i<pagerQty;i++){pagerString+=options.buildPager(i,jQuerychildren.eq(i*options.moveSlideQty));}}else if(type=='full'){for(var i=1;i<=pagerQty;i++){pagerString+='<a href="" class="pager-link pager-'+i+'">'+i+'</a>';}}else if(type=='short'){pagerString='<span class="bx-pager-current">'+(options.startingSlide+1)+'</span> '+options.pagerShortSeparator+' <span class="bx-pager-total">'+jQuerychildren.length+'<span>';}
if(options.pagerSelector){jQuery(options.pagerSelector).append(pagerString);jQuerypager=jQuery(options.pagerSelector);}else{var jQuerypagerContainer=jQuery('<div class="bx-pager"></div>');jQuerypagerContainer.append(pagerString);if(options.pagerLocation=='top'){jQueryouterWrapper.prepend(jQuerypagerContainer);}else if(options.pagerLocation=='bottom'){jQueryouterWrapper.append(jQuerypagerContainer);}
jQuerypager=jQuery('.bx-pager',jQueryouterWrapper);}
jQuerypager.children().click(function(){if(options.pagerType=='full'){var slideIndex=jQuerypager.children().index(this);if(options.moveSlideQty>1){slideIndex*=options.moveSlideQty;}
base.goToSlide(slideIndex);}
return false;});}
function showCaptions(){var caption=jQuery('img',jQuerychildren.eq(currentSlide)).attr('title');if(caption!=''){if(options.captionsSelector){jQuery(options.captionsSelector).html(caption);}else{jQuery('.bx-captions',jQueryouterWrapper).html(caption);}}else{if(options.captionsSelector){jQuery(options.captionsSelector).html(' ');}else{jQuery('.bx-captions',jQueryouterWrapper).html(' ');}}}
function showAutoControls(startType,startContent,stopType,stopContent){jQueryautoControls=jQuery('<a href="" class="bx-start"></a>');if(startType=='text'){jQuerystartContent=startContent;}else{jQuerystartContent='<img src="'+startContent+'" />';}
if(stopType=='text'){jQuerystopContent=stopContent;}else{jQuerystopContent='<img src="'+stopContent+'" />';}
if(options.autoControlsSelector){jQuery(options.autoControlsSelector).append(jQueryautoControls);}else{jQueryouterWrapper.append('<div class="bx-auto"></div>');jQuery('.bx-auto',jQueryouterWrapper).html(jQueryautoControls);}
jQueryautoControls.click(function(){if(options.ticker){if(jQuery(this).hasClass('stop')){base.stopTicker();}else if(jQuery(this).hasClass('start')){base.startTicker();}}else{if(jQuery(this).hasClass('stop')){base.stopShow(true);}else if(jQuery(this).hasClass('start')){base.startShow(true);}}
return false;});}
function checkEndControls(){if(!options.infiniteLoop&&options.hideControlOnEnd){if(currentSlide==firstSlide){jQuery('.bx-prev',jQueryouterWrapper).hide();}else{jQuery('.bx-prev',jQueryouterWrapper).show();}
if(currentSlide==lastSlide){jQuery('.bx-next',jQueryouterWrapper).hide();}else{jQuery('.bx-next',jQueryouterWrapper).show();}}}
function getSlidePosition(number,side){if(side=='left'){var position=jQuery('.pager',jQueryouterWrapper).eq(number).position().left;}else if(side=='top'){var position=jQuery('.pager',jQueryouterWrapper).eq(number).position().top;}
return position;}
function getWrapperWidth(){var wrapperWidth=jQueryfirstChild.outerWidth()*options.displaySlideQty;return wrapperWidth;}
function getWrapperHeight(){var wrapperHeight=jQueryfirstChild.outerHeight()*options.displaySlideQty;return wrapperHeight;}
function getArraySample(array,start,length,direction){var sample=[];var loopLength=length;var startPopulatingArray=false;if(direction=='backward'){array=jQuery.makeArray(array);array.reverse();}
while(loopLength>0){jQuery.each(array,function(index,val){if(loopLength>0){if(!startPopulatingArray){if(index==start){startPopulatingArray=true;sample.push(jQuery(this).clone());loopLength--;}}else{sample.push(jQuery(this).clone());loopLength--;}}else{return false;}});}
return sample;}
this.each(function(){base.initShow();});return this;}
jQuery.fx.prototype.cur=function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop];}
var r=parseFloat(jQuery.css(this.elem,this.prop));return r;}})(jQuery);
