<!-- ACIONA ONLOAD
$(document).ready(function(){
LinksExternos();
$("div#principal a[href$='.jpg'],div#principal a[href$='.JPG']").prettyPhoto({theme:'facebook'});
VarreFormulario("form_contato");
SelecionaMenu("menu","selecao","","s");
SelecionaMenu("div#menu_lateral","","","");
menu("menu");
slides("tela");
slides("tela_coluna");
arredonda("div#menu_lateral  ul li,div.coluna,div#tela,div.padrao form button","roundtotal05px",5,5,5,5);
arredonda("div#rodape","roundtotal10px",10,10,10,10);
});
//--> ACIONA ONLOAD

<!-- ARREDONDA IE
function arredonda(obj,classe,r1,r2,r3,r4){
if((navigator.userAgent.indexOf("MSIE 6")==-1)&&(navigator.userAgent.indexOf("MSIE 9")==-1)){
if(navigator.userAgent.indexOf("MSIE")!=-1){
$(obj).addClass(classe);
var settings={tl:{radius:r1},tr:{radius:r2},bl:{radius:r3},br:{radius:r4},antiAlias:true}
curvyCorners(settings,"."+classe);
}
}
}
//--> ARREDONDA IE

<!-- MENU JQUERY
function menu(id){
if(document.getElementById(id)){
$("div#"+id+" ul li a")
.css({backgroundPosition:"0 -80px",color:"#29166F"})
.mouseover(function(){
$(this).stop().animate({backgroundPosition:"(0 0px)",color:"#fff"},"slow")
})
.mouseout(function(){
$(this).stop().animate({backgroundPosition:"(0 -80px)",color:"#29166F"},"slow")
})
}
}
//--> MENU JQUERY

<!-- SLIDES FADE IN FADE OUT
function slides(id,aleatorio){
if(document.getElementById(id)){
slideSwitch(id,aleatorio);
setInterval(function(){slideSwitch(id,aleatorio)},5000);
}
}
function slideSwitch(id,aleatorio){
var $active=$("div#"+id+" ul li.active");
if($active.length==0) $active=$("div#"+id+" ul li:last");
if(aleatorio!=undefined){
var $next=$active.next().length?$active.next()
:$("div#"+id+" ul li:first");
}else{
var $sibs=$active.siblings();
var rndNum=Math.floor(Math.random()*$sibs.length);
var $next=$($sibs[rndNum]);
}
$active.addClass("last-active");
$next.css({opacity:0.0})
.addClass("active")
.animate({opacity:1.0},1000,function(){
$active.removeClass("active last-active");
});
}
//--> SLIDES FADE IN FADE OUT

