$(function() {
  		
		/*Ejecuciones!!************************/
		
		$("#banner_bancomer").hide()
		$("#pin_bancomer").hide()
		$("#texto_bancomer").hide()
		$("#bancomer").hide()
	
		/*Funciones!!*/
		
		
		/*Aparece Primer Banner!!*/
		
		function apareceFondo(imagen, pleca, texto){	
		
		
		$(".nada").animate({
    		opacity: 0,
    		left: '-=280',
    		height: 'toggle'
  				}, 1500, function() {
   			
			$(pleca).animate({
    		opacity: 100,
    		bottom: '=280',
    		height: 'toggle'
  			}, 1500, function() {
					
   					$(imagen).fadeIn();
					$(texto).fadeIn();
					
					$(".nada").animate({
    		
    		height: 'toggle'
  			}, 100, function() {
					rebote("#pin_bancomer");
					aparece("#circulo_bancomer")
 					});
 					});
				});
		
		
		}
		
		
		function rebote(imagen){	
		$(imagen).show();
		$(imagen).animate({
		 opacity: 100,
      marginTop: '+=10',
    }, 800, function() {
        $(imagen).animate({
          marginTop: '-=10',
        }, 800, function() {
            rebote("#pin_bancomer")
			
        });
    });
	
		
		
		}
		
		function aparece(imagen){	
		$(imagen).fadeIn();
		$(".nada").animate({
		 opacity: 0,
		 opacity: '+=100',
    }, 2000, function() {
		$(imagen).fadeOut();
        $(".nada").animate({
          opacity: '-=100',
        }, 2000, function() {
            aparece("#circulo_bancomer")
        });
    });
	
		
		
		}
		
		/*Controladores de eventos!!************/
		
		/*BTN_sobre*/
		
		apareceFondo("#banner_bancomer", "#bancomer", "#texto_bancomer")
		
		
		/*$("#lotes").mouseover(function(){
		
		crece("#lotes div.normal", "#lotes div.over" )
		})*/
		
		
		
			
		
});

