jQuery(document).ready(function(){
								
	/***
	* BETER METER
	***/
	
	$('div[name="slider"]').slider({
		value:0,
		min: 0,
		max: 300,
		step: 100,
		animate: true,
		slide: function(event, ui) {
			$("#waarde_"+this.id+"").val(ui.value);
		}
	});
	
	$('.antwoord_optie img').click(function () {
		//var sliderDiv = $('div#slider'+this.id+'').attr('id');
		//var newValue = $(this).attr("rel");
		//console.log(sliderDiv+': '+newValue);
		//$('#'+sliderDiv).slider('moveTo', newValue);
	});
	
	$('#submit').hover(
		function(){ 
			$(this).addClass("ui-state-hover"); 
		},
		function(){ 
			$(this).removeClass("ui-state-hover"); 
		}
		).mousedown(function(){
			$(this).addClass("ui-state-active"); 
		})
		.mouseup(function(){
			$(this).removeClass("ui-state-active");
		});
		
	//$('.betermeter').pngFix();

	// END BETER METER

	$("#beter-tabs").tabs({event: 'mouseover'}).tabs('rotate', 5000);
	$(".caroussel").tabs({event: 'mouseover'}).tabs('rotate', 5000);

});