// JavaScript Document
//Publicidade
$(document).ready(function() {  
  $('#header_publicidade').cycle({   
	  speed: 4000,
	  timeout: 12000
  });  
});  
  
//Tempo  
function tempo(){
document.write('<object type="application/x-shockwave-flash" width="420" height="40" data="http://www.sc24horas.com.br/imagens/tempo/tempo_horizontal.swf" >');
document.write ('<param name="movie" value="http://www.sc24horas.com.br/imagens/tempo/tempo_horizontal.swf" />')
document.write ('<param name="wmode" value="Transparent"/>');
document.write ('</object>');
}

function troca(id){
	return document.getElementById(id);
}

//aumentar/diminuir fontes
 $(document).ready(function(){  
 var fonte = 14;  
     $('#aumenta_fonte').click(function(){  
         if (fonte<17){  
             fonte = fonte+1;  
             $('#eng_texto').css({'font-size' : fonte+'px'});  
         }  
     });  
     $('#reduz_fonte').click(function(){  
         if (fonte>10){  
             fonte = fonte-1;  
             $('#eng_texto').css({'font-size' : fonte+'px'});  
         }  
     });  
	        
 }); 


$(document).ready(function() {
  $('div.demo-show2> #submenu_cidades').hide();
  $('div.demo-show2> #city').click(function() {
 $(this).next('#submenu_cidades').slideToggle('fast')
 .siblings('#submenu_cidades:visible').slideUp('fast');
  });
});

function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
	if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
	obj.visibility=v; }
}
setInterval("MM_showHideLayers('layer_dhtml','','hide')", 12000);
