// JavaScript Document

//Corrigi o problema do PNG Transparente

//Fim Corrigi o problema do PNG Transparente


////Função de Aumentar o tamanho do Texto
//$(function(){
//		$('a.tamanho').click(function(){
//			var ourText = $('#topico');
//			var currFontSize = ourText.css('fontSize');
//			var finalNum = parseFloat(currFontSize, 10);
//			var stringEnding = currFontSize.slice(-2);
//			if(this.id == 'large') {
//				finalNum *= 1.2;
//			}
//			else if (this.id == 'small'){
//				finalNum /=1.2;
//			}
//			ourText.css('fontSize', finalNum + stringEnding);
//		});
//	});
////Fim da Função de Aumentar o tamanho do Texto



// initialize the jquery code
//$(function(){
//			$("a.tamanho").click(function(){
//				var $mainText = $('#topico');
//				var currentSize = $mainText.css('font-size');
//				var num = parseFloat(currentSize, 10);
//				var unit = currentSize.slice(-2);
//				if (this.id == 'large'){
//					num = num * 1.4;
//					} else if (this.id == 'small'){
//						num = num / 1.4;
//						}
//				$mainText.css('font-size', num + unit);
//				return false;
//					});
//		   });
//$(function() {
//	$('#compartilhar .compartilheImprimir a').click(function() {
//		window.print();
//		return false;
//	});
//});

//Specify affected tags. Add or remove from list:
//Specify affected tags. Add or remove from list:
var tgs = new Array( 'div' );

//Specify spectrum of different font sizes:
var szs = new Array( 'xx-small','x-small','small','medium','large','x-large','xx-large' );
var startSz = 2;

function ts( trgt,inc ) {
if (!document.getElementById) return
var d = document,cEl = null,sz = startSz,i,j,cTags;
sz += inc;
if ( sz < 0 ) sz = 0;
if ( sz > 6 ) sz = 6;
startSz = sz;
if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];

cEl.style.fontSize = szs[ sz ];

for ( i = 0; i < tgs.length; i++ ) {
cTags = cEl.getElementsByTagName( tgs[ i ] );
for ( j = 0; j < cTags.length; j++ ) cTags[ j ].style.fontSize = szs[ sz ];
}
}


/*$(document).ready(function(){ 
        $(document).pngFix(); 
    }); 
$(function(){
	$('#featured ul').jwSlider({
			speed : 1500,
			pause : 10000,
			transition : 'slide'
		});
});

$(function () {
        
            $('#featured-container').anythingSlider({
                easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
                autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
                delay: 3000,                    // How long between slide transitions in AutoPlay mode
                startStopped: false,            // If autoPlay is on, this can force it to start stopped
                animationTime: 600,             // How long the slide transition takes
                hashTags: true,                 // Should links change the hashtag in the URL?
        		pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover
		        navigationFormatter: formatText       // Details at the top of the file on this use (advanced use)
            });
            
            $("#slide-jump").click(function(){
                $('#featured-container').anythingSlider(3);
            });


$(document).ready(function(){	
	$("#featured").easySlider({
		prevId: 'prev',
		nextId: 'next',
		controlsShow: false,
		auto: true,
		pause: 2000,
		continuous: true 
	});
});*/