<!-- ACIONA ONLOAD
$(document).ready(function(){
LinksExternos();
LightBOX("principal","lightbox[imagens]");
$("a[@rel*=lightbox]").lightBox();
VarreFormulario("form_contato");
SelecionaMenu("menu","selecao","","s");
menu("menu");
});
//--> ACIONA ONLOAD

<!-- MENU JQUERY
function menu(id){
if(document.getElementById(id)){
$("div#"+id+" ul li a")
.css({backgroundPosition:"-20px 35px"} )
.mouseover(function(){
$(this).stop().animate({backgroundPosition:"(-20px 94px)"},{duration:500})
})
.mouseout(function(){
$(this).stop().animate({backgroundPosition:"(40px 35px)"},{duration:200,complete:function(){
$(this).css({backgroundPosition: "-20px 35px"})
}})
})
}
}
//--> MENU JQUERY

<!-- ATIVA O LIGHTBOX
function LightBOX(id,orel){
if(document.getElementById(id)){
var no=document.getElementById(id).getElementsByTagName("img");
for(var i=0;i<no.length;i++){
var omn=no[i];
var pai=omn.parentNode;
var omnv=pai.getAttribute("href");
if(omnv!=null){
var ext=omnv.substring(omnv.lastIndexOf(".")+1);
if(ext.toLowerCase()=="jpg"){
pai.rel=orel;
pai.target="_blank";
}
}
}
}
}
//--> ATIVA O LIGHTBOX
