
/*function imagePreview(){	
		xOffset = 40;
		yOffset = +40;

	$("img.legenda").hover(function(e){
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "<br/>" + this.t : "";
		$("body").append("<div id='preview'><div id='conteudo_legendas'>"+ this.t +"</div></div>");
		$("#preview")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");						
    },
	function(){
		this.title = this.t;	
		$("#preview").remove();
    });	
	$("a").mousemove(function(e){
		$("#preview")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};*/


function imagePreview(){	
		xOffset = 40;
		yOffset = +20;

	$("map").hover(function(e){
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "<br/>" + this.t : "";
		$("body").append("<div id='preview'><div id='conteudo_legendas'>"+ this.t +"</div></div>");
		$("#preview")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");						
    },
	function(){
		this.title = this.t;	
		$("#preview").remove();
    });	
	$("a").mousemove(function(e){
		$("#preview")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});	
	
	//Produtos hover		
	$('#listaProdutos ul li').click(function(){
					
		$('#listaProdutos ul li').removeClass('selecionado_prod');
			
		$(this).addClass('selecionado_prod');
					
	});
	
	//shadowbox
	//$("#mini_fotos_detalhes a").lightBox();

	//$('.piscinas a').lightBox();
	
	
$(function() {
       	$('.piscinas a').lightBox();
});

	
};

$(document).ready(function(){
	//produtosHover();
	imagePreview();
	
});


