$(document).ready(function() {
	<!--TABS-->
	$('#noticias').tabs({ fxFade: true, fxSpeed: 'fast' });
	
	
	<!--CORNERS-->
	$("#menu").corners("top 4px");
	$("#menu li a").corners("top 4px");
	$("#conteudo").corners("bottom 4px");
	$("#footer").corners("4px");
	$('#lista_revistas h3.titsec').corners("1px");
	$('.content .info').corners("3px");
	
	
	<!--CARROSSEL-->
		function mycarousel_initCallback(carousel)
		{
		    // Disable autoscrolling if the user clicks the prev or next button.
		    carousel.buttonNext.bind('click', function() {
		        carousel.startAuto(0);
		    });

		    carousel.buttonPrev.bind('click', function() {
		        carousel.startAuto(0);
		    });

		    // Pause autoscrolling if the user moves with the cursor over the clip.
		    carousel.clip.hover(function() {
		        carousel.stopAuto();
		    }, function() {
		        carousel.startAuto();
		    });
		};

		$('#carrossel').jcarousel({
			animation: 'slow',
			animate: 'easein',
			auto: 5,
			scroll: 3,
			wrap: 'both',
			start: 1,
			initCallback: mycarousel_initCallback
		});
		
		$('#carrossel img').reflect({
			height: '.2',
			opacity: '.5'
		});
		
	<!--FIM CARROSSEL-->
	
	
	<!--LINKS EXTERNOS-->
	
	$('#publicacoes a').filter(function() {
	    return this.hostname && this.hostname !== location.hostname;
	}).after(' <img class="linkexterno" src="/wp-content/themes/multipublicacoes/images/external.png" alt="link externo" title="link externo" />');
	

	
	
	<!--TOOLTIP-->
	$('.captchahint a').tooltip();

	
	
	
	<!--HISTORY-->
	$('.history').click(function(){
	     history.go(-1);
	 });
	
	
	
	
});