<!-- VERIFICA REGRA
eurl=window.location.href;
if(eurl.indexOf("/meusite/")!=-1){
prefixo="/meusite/reidoguipir.com.br";
}else{
prefixo="";
}
<!-- VERIFICA REGRA

<!-- ACIONA ONLOAD
$(document).ready(function(){
slides("div#slides","left");
LinksExternos();
VarreFormulario("form_contato");
SelecionaMenu("menu","selecao","produtos.html","#<span></span>");
menu("div#menu ul li:not(.selecao) a");
ColocaLink("body.psp div#principal","fotos");
$("div#principal a[href$='.jpg'],div#principal a[href$='.JPG']").prettyPhoto({theme:"facebook"});
});
//--> ACIONA ONLOAD

<!-- SLIDE
function slides(id,direcao){
var $id=$(id);
var cont=$id.find("p").html();
$id.html('<div class="scrollWrapper"><div class="scrollableArea">'+cont+"</div></div>")
.smoothDivScroll({
autoScroll:"always",
autoScrollDirection:"endlessloop"+direcao,
autoScrollStep:1,
autoScrollInterval:5
})
.bind("mouseover",function(){
$(this).smoothDivScroll("stopAutoScroll");
}).bind("mouseout",function(){
$(this).smoothDivScroll("startAutoScroll");
});
}
//--> SLIDE

<!-- MENU JQUERY
function menu(id){
$(id)
.css({backgroundPosition:"(0px 0px)"})
.mouseover(function(){
$(this).stop().animate({backgroundPosition:"(0px -50px)"},"slow")
.children("span").stop().animate({backgroundPosition:"(right -50px)"},"slow")
})
.mouseout(function(){
$(this).stop().animate({backgroundPosition:"(0px 0px)"},"fast")
.children("span").stop().animate({backgroundPosition:"(right 0px)"},"fast")
}).children("span").css({backgroundPosition:"(right 0px)"})
}
//--> MENU JQUERY

<!-- TESTA UNDEFINED
function Undefined(valor){
if((valor==undefined)||(valor=="undefined")){
return "";
}else{
return valor;
}
}
//--> TESTA UNDEFINED

<!-- COLOCAR LINK NAS IMAGENS PARA LIGHTBOX
function ColocaLink(id,Rel){
var $id=$(id),ourl,olink,aray;
$id.addClass(Rel);
$id.find("a img").addClass("foto");
$id.find("img:not(.foto)").each(function(h){
ourl=(($(this).attr("src")).toLowerCase()).replace(".jpg","");
olink=ourl.substring(ourl.lastIndexOf("/")+1);
aray=olink.split("-");
$(this).replaceWith("<a href='"+$(this).attr("src")+"' rel='prettyPhoto["+Rel+"]' title='Código: <strong>"+aray[2]+"</strong> <br /> Largura: <strong>"+(aray[3]).replace("_",".")+"cm</strong>'><img src='"+$(this).attr("src")+"' /></a>");
})
}
//--> COLOCAR LINK NAS IMAGENS PARA LIGHTBOX
