// EXIBE FLASH
function ExibeFlash(w,h,id,wmode,movie,flashVars) {
	var isFlashVars = arguments.length==6;
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+w+'" height="'+h+'" id="'+id+'">');
	document.write('<param name="id" value="'+id+'"/>');
	document.write('<param name="wmode" value="'+wmode+'"/>');
	document.write('<param name="scale" value="noscale"/>');
	document.write('<param name="quality" value="high"/>');
	document.write('<param name="movie" value="'+movie+'"/>');
	if (isFlashVars){
		document.write('<param name="FlashVars" value="'+flashVars+'"/>');
	}
	document.write('<embed src="'+movie+'" quality="high" scale="noscale" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="'+wmode+'" width="'+w+'" height="'+h+'" ');
	if (isFlashVars){
		document.write(' FlashVars="'+flashVars+'"');
	}
	document.write('></embed>');
	document.write('</object>');
}


//AUMENTAR E DIMINUIR TAMANHO DO TEXTO - JQUERY - BY THIAGO SANTOS
/*$(function(){
        $('img').click(function(){
            var ourText = $('div');
            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.animate({fontSize: finalNum + stringEnding},600);


        });
        

       
    });*/

//MENU NOVO PORTAL
$(document).ready(function() {
	$("ul#topnav li:first").css({ 'background' : '#56b8dd'}); //Add background color + image on hovered list item
	$("ul#topnav span:first").show();
	
	$("ul#topnav li").hover(function() { //Hover over event on list item
		$(this).css({ 'background' : '#56b8dd'}); //Add background color + image on hovered list item
		$(this).find("ul#topnav span").show(); //Show the subnav
	} , function() { //on hover out...
		$(this).css({ 'background' : 'none'}); //Ditch the background
		$(this).find("ul#topnav span").hide(); //Hide the subnav
	});
	
	$("ul#topnav li").mouseout(function() {
		$("ul#topnav li:first").css({ 'background' : '#56b8dd'}); //Add background color + image on hovered list item
		$("ul#topnav span:first").show();
	
	});
	
	$('ul#topnav li:not(:first)').mouseover(function(){
		$('ul#topnav li:first').css({'background' : '#f1f8fa'});
		$("ul#topnav li:first span").hide();
	})
	
	
});

