$(function() {
  		
		/*Ejecuciones!!************************/
		
		$("#imagen1").hide()
		$("#textoP1").hide()
		$("#clic1").hide()
		$("#vector1").hide()
		
		$("#imagen2").hide()
		$("#textoP2").hide()
		$("#clic2").hide()
		$("#vector2").hide()
		
		$("#imagen3").hide()
		$("#textoP3").hide()
		$("#clic3").hide()
		$("#vector3").hide()
		
		$("#boton_transp1").hide()
		$("#boton_transp2").hide()
		$("#boton_transp2").hide()
		

		
		/*Funciones!!*/
		
		
		/*Aparece Primer Banner!!*/
		
		function apareceB1(imagen, texto, clic, vector){	
		$(imagen).fadeIn(1000)
		$(vector).show(1000)
		$(clic).show(1500)
		$("#boton_transp1").show(1500)
		
  		$(texto).animate({
    		opacity: 1,
    		left: '+=280',
    		height: 'toggle'
  			}, 3000, function() {
				
   				desaparece("#imagen1", "#textoP1", "#clic1", "#vector1")
  				});
		}
		
		function desaparece(imagen, texto, clic, vector){	
		
		$(".nada").animate({
    		opacity: 0,
    		left: '-=280',
    		height: 'toggle'
  				}, 3000, function() {
					
					$(clic).fadeOut();
					$(vector).fadeOut();
					
   					$(texto).animate({
    		opacity: 0,
    		left: '-=280',
    		height: 'toggle'
  				}, 1500, function() {
					
   					$(imagen).fadeOut();
					$(texto).hide();
					$(clic).hide();
					$(vector).hide();
					$("#boton_transp1").hide()
					apareceB2("#imagen2", "#textoP2", "#clic2", "#vector2")
 					});
 					});
		
		
		}
		
		/*Aparece Segundo Banner!!*/
		
		function apareceB2(imagen, texto, clic, vector){	
		$(imagen).fadeIn(1000)
		$(vector).show(2000)
		$(clic).show(1500)
		$("#boton_transp2").show(1500)
		
  		$(texto).animate({
    		opacity: 1,
    		left: '+=260',
    		height: 'toggle'
  			}, 3000, function() {
   				desaparece2("#imagen2", "#textoP2", "#clic2", "#vector2")
  				});
		}
		
		function desaparece2(imagen, texto, clic, vector){	
		 $(".nada").animate({
    		opacity: 0,
    		left: '-=280',
    		height: 'toggle'
  				}, 3000, function() {
					
					$(clic).fadeOut();
					$(vector).fadeOut();
					
   					$(texto).animate({
    		opacity: 0,
    		left: '-=260',
    		height: 'toggle'
  				}, 1500, function() {
					
   					$(imagen).fadeOut();
					$(texto).hide();
					$(clic).hide();
					$(vector).hide();
					$("#boton_transp2").hide()
					apareceB3("#imagen3", "#textoP3", "#clic3", "#vector3")
 					});
 					});
		
		
		
		}
		
		/*Aparece Tercero Banner!!*/
		
		function apareceB3(imagen, texto, clic, vector){	
		$(imagen).fadeIn(1000)
		$(vector).show(1000)
		$(clic).show(1500)
		$("#boton_transp3").show(1500)
		
  		$(texto).animate({
    		opacity: 1,
    		left: '+=460',
    		height: 'toggle'
  			}, 3000, function() {
   				desaparece3("#imagen3", "#textoP3", "#clic3", "#vector3")
  				});
		}
		
		function desaparece3(imagen, texto, clic, vector){	
		$(".nada").animate({
    		opacity: 0,
    		left: '-=280',
    		height: 'toggle'
  				}, 3000, function() {
					
					$(clic).fadeOut();
					$(vector).fadeOut();
					
   					$(texto).animate({
    		opacity: 0,
    		left: '-=460',
    		height: 'toggle'
  				}, 1500, function() {
					
   					$(imagen).fadeOut();
					$(texto).hide();
					$(clic).hide();
					$(vector).hide();
					$("#boton_transp3").hide()
					apareceB1("#imagen1", "#textoP1", "#clic1", "#vector1")
 					});
 					});
		}
		
		
		
		
		/*Controladores de eventos!!************/
		
		/*BTN_sobre*/
		
		apareceB1("#imagen1", "#textoP1", "#clic1", "#vector1")
		
		
		$("#lotes").mouseover(function(){
		
		crece("#lotes div.normal", "#lotes div.over" )
		})
		
		
		
			
		
});

