	jQuery().ready(function(){

		jQuery('#list1a').accordion({ 
			header: '.head'
		});		
		
	});	
	
	jQuery.fn.slideFadeToggle = function(speed, easing, callback) {
		return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback); 
	};
	
	jQuery.fn.blindToggle = function(speed, easing, callback) {
		var h = this.height() + parseInt(this.css('paddingTop')) + parseInt(this.css('paddingBottom'));
		return this.animate({marginTop: parseInt(this.css('marginTop')) < 0 ? 0 : -h}, speed, easing, callback); 
	};
	
    $(document).ready(function() {
	   var first = Math.floor(Math.random()*$('.slide_mensajes h2').length);
        $('.slide_mensajes').after('<div id="nav">').cycle({
			timeout: 10000,
		    next: '#next', 
			prev: '#prev', 
			pager: '#nav',
			startingSlide: first, // La primera foto aleatoria. La lista se numera desde 0.
            fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
        });
    });