/* 
	CONFIGURATION VARS
*/

// you can turn on and off the image slider here. Just set the next variable to false for off or true for on.
// if you set this true, you should have at least 3 images for the slider.
var slider = true;

// how long should the slider transition effect (fade) last? 1 second = 1000
var slider_trans  = 200;

// how long should one image be shown? This does not affect the above transition duration.
var slider_dura   = 1000;

var v = 0;


jQuery(document).ready(function($){
	


	
	
	// img "slider"
	function countdownimgs() {
		setTimeout(function() {
		/*	v++;
			$("#v").html(v);*/
			$(".sliderimg").last().animate({
				"opacity": "0"
			}, 2000);
			setTimeout(function() { $(".sliderimg").last().prependTo("#slider_area"); }, 2000);
			$(".sliderimg").first().animate({
				"opacity": "1"
			}, 0);
			countdownimgs();
		}, 8000)
	}
	
	if(slider == true) { 
	countdownimgs(); 
	}
	
	/*$("#progressbar").progressbar({ value: progress });
	$(".ui-progressbar-value").html(progress + '%');
	*/
});
