$(document).ready(function() {
	$('#mais').tabs({ fxFade: true, fxSpeed: 'fast' });
	$('#temacapa').tabs({ fxFade: true, fxSpeed: 'fast'});
	//Font resize
	//reset font size
	var currentFontSizeNum = 10;
	
	//size1
	$(".small").click(function(){
		var newFontSize = currentFontSizeNum*1;
		$('#corpoNoticia').css('font-size',newFontSize);
		$('#conteudonoticia').css('font-size',newFontSize);		
		return false;
	});
	//size2
	$(".medium").click(function(){
		var newFontSize = currentFontSizeNum*1.2;
		$('#corpoNoticia').css('font-size',newFontSize);
		$('#conteudonoticia').css('font-size',newFontSize);	
		return false;
	});
	//size3
	$(".large").click(function(){	
		var newFontSize = currentFontSizeNum*1.4;
		$('#corpoNoticia').css('font-size',newFontSize);
		$('#conteudonoticia').css('font-size',newFontSize);	
		return false;
	});
	//size4
	$(".huge").click(function(){
		var newFontSize = currentFontSizeNum*1.8;
		$('#corpoNoticia').css('font-size',newFontSize);
		$('#conteudonoticia').css('font-size',newFontSize);	
		return false;
	});

	//FANCYBOX
	
	$("a[href$='.jpg']").addClass('fancybox');
	$("a[href$='.png']").addClass('fancybox');
	
	$("#corpoNoticia a.fancybox").fancybox({
		'zoomSpeedIn':	300, 
		'zoomSpeedOut':	300,
		'zoomOpacity': true,
		'overlayShow':	true,
		'overlayOpacity': .5
	});
	
	$("#conteudonoticia a.fancybox").fancybox({
		'zoomSpeedIn':	300, 
		'zoomSpeedOut':	300,
		'zoomOpacity': true,
		'overlayShow':	true,
		'overlayOpacity': .5
	});
	
	//$('div#corpoNoticia p:first').fancyletter();
	//$('div#conteudonoticia p:first').fancyletter();

	/*EXTERNAL LINKS*/
	$('#corpoNoticia a').filter(function() {
	    return this.hostname && this.hostname !== location.hostname;
	}).after(' <img class="linkext" src="/wp-content/themes/multipublicacoes/images/external.png" alt="link externo" title="link externo" />');
	
	$('.contentr a').filter(function() {
	    return this.hostname && this.hostname !== location.hostname;
	}).after(' <img class="linkext" src="/wp-content/themes/multipublicacoes/images/external.png" alt="link externo" class="external_link" title="link externo" />');
	
	
	/*PRINT LINK*/
	$('.printlink').click(function(){
		print();
	});
	
	<!--HISTORY-->
	$('.history').click(function(){
	     history.go(-1);
	 });
	
});












