window.t="";var p=" ";window.onload=function(){$("#carrega_tudo").slideUp(300);$("#total").slideDown(300,function(){$("#topo").slideDown(300,function(){$("#menu").slideDown(300);window.t=setInterval(escreve_hora,1000);carrega_flash("flash/player.swf?file=down/Jingle-1.mp3&as=1","player",165,40,"");$("#slide_noticias").wslide({width:355,height:175,autolink:"menu_noticias",horiz:true,duration:400});$("#slide_mensagens").wslide({width:355,height:175,autolink:"menu_mensagens",horiz:true,duration:400});$("#slide_fotos").wslide({width:717,height:175,autolink:"menu_fotos",horiz:true,duration:400})})})};function mo_menu(){$("#meio_menu").slideToggle(200,function(){$("#meio_menu").delay(5000).slideToggle(200)})}function escreve_hora(){var s=new Date;var w=s.getHours();if(w>=0&&w<13){var o="Bom dia,"}else{if(w>=13&&w<19){var o="Boa tarde,"}else{if(w>=19){var o="Boa noite,"}}}if(w<10){w="0"+w}var v=s.getMonth();var y="Janeiro,Fevereiro,Mar&ccedil;o,Abril,Maio,Junho,Julho,Agosto,Setembro,Outubro,Novembro,Dezembro";var y=y.split(",");var n=s.getDate();if(n<10){n="0"+n}var m=s.getFullYear();var r=s.getMinutes();if(r<10){r="0"+r}var t="Domingo,Segunda-feira,Ter&ccedil;a-feira,Quarta-feira,Quinta-feira,Sexta-feira,S&aacute;bado";var t=t.split(",");var x=s.getDay();var u=t[x];if(p==" "){p=":"}else{p=" "}var q=o+" "+u+" dia "+n+" de "+y[v]+" de "+m+" - "+w+p+r;$("#hora").html(q)};

//Nifty player

var FlashHelper={movieIsLoaded:function(a){if(typeof(a)!="undefined"){return a.PercentLoaded()==100}else{return}false},getMovie:function(a){if(navigator.appName.indexOf("Microsoft")!=-1){return window[a]}else{return document[a]}}};function niftyplayer(a){this.obj=FlashHelper.getMovie(a);if(!FlashHelper.movieIsLoaded(this.obj)){return}this.play=function(){this.obj.TCallLabel("/","play")};this.stop=function(){this.obj.TCallLabel("/","stop")};this.pause=function(){this.obj.TCallLabel("/","pause")};this.playToggle=function(){this.obj.TCallLabel("/","playToggle")};this.reset=function(){this.obj.TCallLabel("/","reset")};this.load=function(b){this.obj.SetVariable("currentSong",b);this.obj.TCallLabel("/","load")};this.loadAndPlay=function(b){this.load(b);this.play()};this.getState=function(){var c=this.obj.GetVariable("playingState");var b=this.obj.GetVariable("loadingState");if(c=="playing"){if(b=="loaded"){return c}else{return b}}if(c=="stopped"){if(b=="empty"){return b}}if(b=="error"){return b}else{return c}return c};this.getPlayingState=function(){return this.obj.GetVariable("playingState")};this.getLoadingState=function(){return this.obj.GetVariable("loadingState")};this.registerEvent=function(b,c){this.obj.SetVariable(b,c)};return this};