$(function() {
$(".pestanas").tabs(".ventanas > .elemento", {effect: 'fade', fadeOutSpeed: "slow", autoplay:true, rotate: true, play: true, clickable: true }).slideshow(); 
$("#scrollablea").scrollable({size: 1, circular: true}).navigator({navi: "#nava", naviItem: 'a', activeClass: 'current'}).autoscroll({steps: 1, interval: 8500}); 
$("#scrlink").scrollable({size: 1, circular: true, speed: 120});
$("#un-catecont").scrollable({size: 1, circular: false});
//$("#ef_nav").tabs("#ef_cont > .items .item ", {effect: 'fade', fadeOutSpeed: "slow", autoplay:true, rotate: true, play: true, clickable: true }); 
$("#ef_nav").tabs("#ef_cont > .items .item ", {effect: 'fade', fadeOutSpeed: "slow", rotate: true, play: true, clickable: false }); 
$("#un-catecont").tabs(".un > #ultimas-noticias", {effect: 'ajax', onBeforeClick: function(event, i) { 
var pane = this.getPanes(".un > #ultimas-noticias"); 
pane.html('<div class="espere"><img src="/wp-content/themes/ayuntamiento/images/main/gif-municipio.gif"/><span><strong>Cargando informaci&oacute;n </strong><br /> Por favor espere un momento</span></div>'); 
} });
$("#navmininews").scrollable({easing: 'custom', speed: 700, circular: true, next: '.sig', prev: '.ant', steps:2 }).autoscroll({steps:2, interval:9500});
$.easing.custom = function (x, t, b, c, d) {
	var s = 1.70158; 
	if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
	return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
}	
}); 


