// Arquivo de controle das páginas
//Autor: Tool Interativa


$(document).ready(function(){
	ctrConteudosGrandes()// chama o controle para conteudos grandes
	$(".content").hide();    
});

function ctrConteudosGrandes() {
	$(".abre-post").css("cursor", "pointer");
  	$('.abre-post').click(
    function() {
      var checkElement = $(this).next();
      if((checkElement.is('.content')) && (checkElement.is(':visible'))) {
        return false;
        }
      if((checkElement.is('.content')) && (!checkElement.is(':visible'))) {
        $('.content:visible').slideUp('normal');
        checkElement.slideDown('normal');
        return false;
        }
      }
    );
  }


// - executar flashs
// ---------------------------------------- +
function RodarFlash( path,variaveis,_width,_height ) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+_width+'" height="'+_height+'">');
	document.write('<param name="movie" value="'+path+'?'+variaveis+'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="allowscriptaccess" value="samedomain">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed src="'+path+'?'+variaveis+'" width="'+_width+'" height="'+_height+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>');
	document.write('</object>');
}





