function mainmenu(){
$(" #nav ul ").css({display: "none"}); // Opera Fix
$(" #nav li").hover(function(){
		$(this).find('ul:first').css('width', "235px");
		$(this).find('ul:first').css({visibility: "visible",display: "none"}).show("slow");
		},function(){
		$(this).find('ul:first').css({visibility: "hidden"});
		});
}

$(document).ready(function(){
	mainmenu();
	if($("#contenu").length > 0){
		$("#contenu").scrollbar();
		//galleryinf
	}

	if($("#carouselInf").length > 0){
		$("#carouselInf").jCarouselLite({
			btnNext: "#car-next",
			btnPrev: "#car-prev", 
			visible: 6
		});
	}
	
	
	$('.galleryInfItem').css('height', '120px');
	$('.galleryInfItem').mouseover(function() {
		//alert('oi');
		$(this).css('background-color', '#676767');
	});
	$('.galleryInfItem').mouseout(function() {
		//alert('oi');
		$(this).css('background-color', '#000');
	});
	$('.galleryInfItem').click(function() {
		id = $(this).attr('id').substring(14,15);
		newimg = $(this).find(">:first-child").next().next().text();
		$("#image").html("<img src=\"" + newimg + "\" />");
		$("#div_galleryinf_txt").html(scriptGalleryInfTxt[id]);
	});
	
	$('.escLocal').mouseover(function() {
		//alert('oi');
		$(this).css('text-decoration', 'underline');
	});
	$('.escLocal').mouseout(function() {
		//alert('oi');
		$(this).css('text-decoration', '');
	});
	$('.escLocal').click(function() {
		id = $(this).attr('id').substring(8,9);
		
		$("#ESCFone").html(scriptContactFone[id]);
		$("#ESCEmail").html("<a href=\"mailto:"+scriptContactEmail[id]+"\">"+scriptContactEmail[id]+"</a>");
		$("#ESCNome").html(scriptContactNome[id]);
		$("#ESCEndereco").html(scriptContactEnd[id]);
	});


});


$("#logo_area").click(function(){
		top.location.href='/index.html';
});




