$(function(){
	$('#slides').slides({
		preload: true,
		preloadImage: 'images/loading.gif',
		generateNextPrev: false,
		play: 5000,
		pause: 2500,
		hoverPause: true,
		animationStart: function(current){
			$('.caption').animate({
				bottom:0 //-122
			},100);
			if (window.console && console.log) {
				// example return of current slide number
				console.log('animationStart on slide: ', current);
			};
		},
		animationComplete: function(current){
			$('.caption').animate({
				bottom:0
			},200);
			if (window.console && console.log) {
				// example return of current slide number
				console.log('animationComplete on slide: ', current);
			};
		},
		slidesLoaded: function() {
			$('.caption').animate({
				bottom:0
			},200);
		}
	});
	
	$('#klienci_slide').slides({
		container: 'slides_container2',
		generateNextPrev: true,
		play: 0,
		pagination: false
	});
});


$(function(){
	// Tabs
	$('#tabs').tabs();
	
	// Slider
	$('#slider').slider({
		range: true,
		values: [17, 67]
	});
	
	//hover states on the static widgets
	$('#dialog_link, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
});


/* $(document).ready(function(){
  $("#tab1_toggle").click(function(){
    $("#tab1").toggle();
  });
}); */

/* 
jQuery(document).ready(function() {
  jQuery(".content").hide();
  //toggle the componenet with class msg_body
  jQuery(".heading").click(function()
  {
    jQuery(this).next(".content").slideToggle(500);
  });
}); */
