// What is $(document).ready ? See: http://flowplayer.org/tools/documentation/basics.html#document_ready
$(document).ready(function() {

$(".slidetabs").tabs(".images > div", {

	initialIndex: eval(Math.floor(Math.random()*2)),

	// enable "cross-fading" effect
	effect: 'fade',
	fadeOutSpeed: "slow",

	// start from the beginning after the last tab
	rotate: true

// use the slideshow plugin. It accepts its own configuration
}).slideshow({autoplay: true, interval: 4000, clickable: false});

});
