
$(document).ready(function($)
{
	
	$(".light").lightBox({fixedNavigation:true});
	$(".videoyoutube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
	$(".indica").colorbox({width:"50%", inline:true, href:"#indica-form"});
	

	$(".btn_fechar").click(function(){$(this).fadeOut('slow');$(".campo_login").fadeOut('slow')});
	$('#data-nasc').mask('99/99/9999');
	$('#tel_res').mask('(99) 9999-9999');
	
	
	$(".quero-fazer").fancybox({
				'width'				: 600,
				'height'			: 500,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
	$(".indicar-site").fancybox({
				'width'				: 600,
				'height'			: 350,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});		


	$("#img_loc_filial").goMap({ 
        markers: [{  
            latitude: -16.33371, 
            longitude: -48.947589,			
            html: { 
                content: 'Performance Place', 
                popup: true 
            } 
        },{  
            latitude: -16.33371, 
            longitude: -48.947589, 
            html: 'Hello!' 
        }],
		zoom: 18,
		maptype: 'HYBRID',
        hideByClick: false
    }); 
	
	$("#img_loc").goMap({ 
        markers: [{  
            latitude: -16.729201, 
            longitude: -49.252331,			
            html: { 
                content: 'Performance Place', 
                popup: true 
            } 
        },{  
            latitude: -16.729201, 
            longitude:-49.252331, 
            html: 'Hello!' 
        }],
		zoom: 18,
		maptype: 'HYBRID',
        hideByClick: false
    }); 
	
	
	
		
	// 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');
			}
		}
	});
	
	
	$("#box-recuperar").dialog({
		title: 'Recuperar Senha',
		autoOpen: false,
		height: 150,
		width: 250,
		modal: true,
		buttons: {
			'Recuperar Senha': function() {
				$('form#formRecuperaSenha').submit();
				$(this).dialog('close');
			},
			'Cancelar': function() {
				$(this).dialog('close');
			}
		}
	});
	
	$('.recuperaEmail').click(function() {
		$('#box-recuperar').dialog('open');
		
	});
	
	$('#imprime').click(function(){
        $('.contentPrint').printArea({
        		
        });
        return false;
     });
	
	$('#nuvem a').tagcloud({
        
        size: {
            start: 08, 
            end: 13, 
            unit: 'pt'
        }, 
        color: {
            start: '#999999', 
            end: '#666666'
        }                   
                                       
    });
	
});
