j = jQuery.noConflict();
j(document).ready(function($)
{
	
	// Menu Sanfona
	/*$("li ul").hide();
	$("li ul:first").show();
	
	$("ul li a").click(function(){
		
		$("li ul").slideUp();
		
		$(this).next().slideToggle();
	})*/
	
	$("#gomap").goMap({ 
        markers: [{  
            latitude: -16.697348, 
            longitude: -49.263133,			
            html: { 
                content: 'Aliança Francesa Goiânia', 
                popup: true 
            } 
        },{  
            latitude: -16.697348, 
            longitude: -49.263133, 
            html: 'Hello!' 
        }],
		zoom: 18,
		maptype: 'HYBRID',
        hideByClick: false
    }); 
	
			
	// Mascaras
	$('#tel_res').mask('(99) 9999-9999');
	
	// Validação
	/*$('#formContato').validate(
	{														
		rules: 
		{
			nome: {required: true},
			email: {required: true, email: true},
			telefone: {required: false},
			assunto: {required: false},
			mensagem: {required: true}
			
		},
		messages:
		{
			nome: {required: "Por favor, informe seu Nome."},
			email: {required: "Por favor, digite um E-mail válido.", email: "Por favor, digite um e-mail v&aacute;lido."},
			telefone: {required: "Por favor, informe seu Telefone."},
			assunto: {required: "Por favor, informe um Assunto."},
			mensagem: {required: "Por favor, informe uma Mensagem."}
		},
		errorLabelContainer: "#messageBox",
		wrapper: "li"

	});*/
	
	// Monta janelas DIALOG JQUERY UI
	$(".dialog").dialog({
		bgiframe: true,
		modal: true,
		buttons: {
			Ok: function() {
				$(this).dialog('close');
			}
		}
	});
	$(".dialog-info").dialog({
		bgiframe: true,
		modal: true,
		autoOpen: false,
		buttons: {
			Ok: function() {
				$(this).dialog('close');
			}
		}
	});
	
	// JCarrossel	
	if($('.carrossel ul li').size() > 5) {
        $(".carrossel").jCarouselLite({
			btnNext: ".next",
			btnPrev: ".prev",
			speed: 500,
			circular: true,
			scroll: 5,
			visible: 5
    	});
	}
	
	// Lightbox
	$('a.lightbox').lightBox({
		overlayBgColor: '#000',
		overlayOpacity: 0.6,
		imageLoading: 'imagens/lightbox/loading.gif',
		imageBtnClose: 'imagens/lightbox/close.gif',
		imageBtnPrev: 'imagens/lightbox/prev.gif',
		imageBtnNext: 'imagens/lightbox/next.gif',
		containerResizeSpeed: 350,
		txtImage: 'Imagem',
		txtOf: 'de'

    });
	
	
});
