$( function() {
	$(".widget_recent_entries li:even").addClass("even");
	$(".widget_recent_comments li:even").addClass("even");
	$(".botmenu li:first-child").addClass("first current-menu-item");
	$(".botmenu li:last-child").addClass("last");
	$( "#datepicker" ).datepicker({
		dateFormat:'dd/mm/yy',
		minDate: 0,
		maxDate: "+12M",
		onSelect: function(dateText,picker) {
			$('#gg').val( dateText.split(/\//)[0] );
			$('#mm').val( dateText.split(/\//)[1] );
			$('#aa').val( dateText.split(/\//)[2] );
		}
	});

});
$(document).ready( function() {
	$('.slideshow').cycle({
		fx: 'fade',
		speed: 2500
	});
	$('#off_slide').cycle({
		fx: 'scrollUp',
		speed: 2500,
		timeout: 6000, 
		delay: -2000
	});
});

var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-264024-46']);
  _gaq.push(['_trackPageview']);

  (function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
