<!-- VERIFICA REGRA
if((window.location.href).indexOf("/meusite/")!=-1){
prefixo="/meusite/vizzara.com.br";
}else{
prefixo="";
}
<!-- VERIFICA REGRA

<!-- ACIONA ONLOAD
$(document).ready(function(){
LinksExternos();
VarreFormulario("form_contato");
SelecionaMenu("menu","selecao","","");
SelecionaMenu("chamadas","","","");
slides("body.hom div#slider","/layout/lay/slides/hom_",5,5000);
sorteio("div#slider","/layout/lay/slides/slide_",4);
$("div#menu ul li:last").addClass("facebook");
menu("div#menu ul li:not(.facebook,.selecao) a");
$("div#principal a[href$=.jpg],div#principal a[href$=.JPG]").attr("rel","prettyPhoto[fotos]").prettyPhoto({theme:"dark_square"});
$("div#principal img[align=left]").addClass("esquerda").removeAttr("align");
$("div#principal img[align=right]").addClass("direita").removeAttr("align");
$("div#principal img[border]").addClass("borda").removeAttr("border");
$("div#menu ul li a[href$=index.html]").parent().remove();
});
//--> ACIONA ONLOAD

<!-- NÚMERO ALEATÓRIO
function aleatorio(menor,maior){
numPossibilidades=maior-menor;
aleat=Math.random()*numPossibilidades;
aleat=Math.floor(aleat);
return parseFloat(menor)+aleat;
} 
//--> NÚMERO ALEATÓRIO

<!-- SORTEIO DE IMAGENS
function sorteio(id,endereco,quantos){
if($("body").attr("class").indexOf("hom")==-1){
var cont="",numero="";
quantos=parseInt(quantos+1);
numero=aleatorio(1,quantos);
if(numero<10){numero="0"+numero;}
$(id).css({backgroundImage:"url("+prefixo+endereco+numero+".jpg)",backgroundPosition:"0 -340px",backgroundRepeat:"no-repeat"});
$(id).animate({backgroundPosition:"(0 2px)"},"slow");
}
}
//--> SORTEIO DE IMAGENS

<!-- MENU JQUERY
function menu(id){
$(id)
.css({backgroundPosition:"0 -10px",color:"#FFFFFF"})
.mouseover(function(){
$(this).stop().animate({backgroundPosition:"(0 -38px)",color:"#555B0C"},"fast")
})
.mouseout(function(){
$(this).stop().animate({backgroundPosition:"(0 -10px)",color:"#FFFFFF"},"slow")
})
}
//--> MENU JQUERY

<!-- COLOCAR LINK NAS IMAGENS PARA LIGHTBOX
function ColocaLink(pag,id,Rel){
var ourl=window.location.href;
var olink=ourl.substring(ourl.lastIndexOf("/")+1);
if((pag==olink)||(pag=="")){
$(id).addClass("fotos");
$(id+" img").each(function(h){
$(id).append("<a href='"+$(this).attr("src")+"' rel='prettyPhoto["+Rel+"]' title='"+$(this).attr("title")+"'></a>");
$(this).appendTo($(id+" a:last"));
});
}
}
//--> COLOCAR LINK NAS IMAGENS PARA LIGHTBOX

<!-- SLIDES FADE IN FADE OUT
function slides(id,endereco,quantos,tempo){
var img="",cont="";
quantos=parseInt(quantos+1);
for(var i=1;i<quantos;i++){if(i<10){cont="0"+i;}else{cont=i;}img+='<img src="'+prefixo+endereco+cont+'.jpg" />'}
$(id)
.append(img)
.innerfade({
speed:1000,
timeout:tempo,
type:"sequence",
containerheight:"100%"
});
}
//--> SLIDES FADE IN FADE OUT
