$(function(){
//apresentadores
	$(".apresentadores").hover(
			     function () {
					$(this).attr('src', '/gazeta_imoveis/imgs/apresentador1.jpg' );
				  }, 
				 function () {
					$(this).attr('src', '/gazeta_imoveis/imgs/apresentador.jpg' );
				  }
		);

//on maps 
	$(".maps_opem").click(function() {
					 $('.maps').show("slow");
					 $('.close_maps').show();
	 }); 
		$(".close_maps").click(function() {
					 $('.maps').hide("slow");
					 $('.close_maps').hide();
	 });
		
	$(".busca").click(function() {
					 $('.div_menu').fadeIn();
	 }); 
		$(".close_div").click(function() {
					 $('.div_menu').slideUp();
	 });
//on focus   
	$(".focus").hover(
			     function () {
					 $(this).find('.actions').show();
				  }, 
				 function () {
					$(this).find('.actions').hide();
				  }
		);
// exibir videos
	$("a[id^='video_emp_']").live('click', function(){
		 var video = $(this).attr('id').replace('video_emp_','');


		 			$.ajax({
					url: '../_ajax/exibe_video.php',
					type: 'post',
					dataType:'text',
					cache: false,
					data: {video:video},
					async: true,  
					error: function(XMLHttpRequest, textStatus, errorThrown){
						alert('Ocorreu um problema, entre em contato com o setor de inform�tica!');
					},
					success: function(response){
						$('#exibe_video').html(response);
					}
			});	
	 });
 });

