/*
 * jQuery(document).ready(function($){$('#aslider').anythingSlider();});
*/
/*jQuery(window).load(function(){jQuery('#aslider').anythingSlider();});
*/
jQuery(document).ready(function(){
	jQuery('#aslider')
	       .anythingSlider({
	    	//theme: "minimalist-square",
	    	theme: "default",   
	    	
	    	resizeContents: false,
	    	
	    	buildNavigation: true,      // If true, builds a list of anchor links to link to each panel
			buildStartStop: true,      // ** If true, builds the start/stop button
		    buildArrows: false,
		    autoPlay: true,
		    pauseOnHover: false,
		    delay               : 10000,      // How long between slideshow transitions in AutoPlay mode (in milliseconds)
		    animationTime       : 1500, 
		    width: 991,
		    height: 280
	       })
	       .anythingSliderFx({
	    	// base FX definitions
	    	// '.selector' : [ 'effect(s)', 'size', 'time', 'easing' ]
	    	// 'size', 'time' and 'easing' are optional parameters, but must be kept in order if added
	    	//'.quoteSlide:first *' : [ 'grow', '24px', '400', 'easeInOutCirc' ],
	    	//'.quoteSlide:last'    : [ 'top', '500px', '400', 'easeOutElastic' ],
	    	//'.expand'             : [ 'expand', '10%', '400', 'easeOutBounce' ],
	    	//'.aslide p'  : [ 'fade', '400px', '1000', 'easeOutBounce' ],
	    	//'.aslide img': [ 'expand' ,'10%', '1000']
	    	inFx:{
	    	//	  '.aslide p'  :
	    		  '.aslide img.r':{width: '667px', top: '0%', left: '0%', duration: 1400},
	              '.aslide .opis':{width: '300px', bottom: 0, left: '0',  duration: 1000}
	    	},
	    	outFx:{
	    	//	  '.aslide p'  :
	    		  '.aslide img.r':{width: '10%', top: '50%', left: '50%', duration: 1500},
	    	      '.aslide .opis':{width: '300px', bottom: -400, left: '0', duration: 300}
	    	}
	       });
});

