// JavaScript Document
$(document).ready(function() {
				
	$.fn.shuffle = function() {
		return this.each(function(){
			var items = $(this).children().clone(true);
			return (items.length) ? $(this).html($.shuffle(items)) : this;
		});
	}
	
	$.shuffle = function(arr) {
		for(var j, x, i = arr.length; i; j = parseInt(Math.random() * i), x = arr[--i], arr[i] = arr[j], arr[j] = x);
		return arr;
	}
			
	$(".images").shuffle();		
				
	$(".images").tabs("img", {
	
		// enable "cross-fading" effect
		effect: 'fade',
		fadeOutSpeed: "fast",
		// start from the beginning after the last tab
		rotate: true	
	// use the slideshow plugin. It accepts its own configuration
	}).slideshow({autoplay:true, interval:8000});
	
	
	
});
