inTacto 10 Years

$(document).ready(function() {

  /*-------NAVBAR------*/
  $('.anio_2012').click(function() {
    $.scrollTo({
      top: 0,
      left: 0
    }, 1000)
  });
  $('.anio_2011').click(function() {
    $.scrollTo({
      top: 1405,
      left: 0
    }, 1000)
  });
  $('.anio_2010').click(function() {
    $.scrollTo({
      top: 2300,
      left: 0
    }, 1000)
  });
  $('.anio_2009').click(function() {
    $.scrollTo({
      top: 2955,
      left: 0
    }, 1000)
  });
  $('.anio_2008').click(function() {
    $.scrollTo({
      top: 3622,
      left: 0
    }, 1000)
  });
  $('.anio_2007').click(function() {
    $.scrollTo({
      top: 4176,
      left: 0
    }, 1000)
  });
  $('.anio_2006').click(function() {
    $.scrollTo({
      top: 5040,
      left: 0
    }, 1000)
  });
  $('.anio_2005').click(function() {
    $.scrollTo({
      top: 5282,
      left: 0
    }, 1000)
  });
  $('.anio_2004').click(function() {
    $.scrollTo({
      top: 6426,
      left: 0
    }, 1000)
  });
  $('.anio_2003').click(function() {
    $.scrollTo({
      top: 6996,
      left: 0
    }, 1000)
  });
  $('.anio_2002').click(function() {
    $.scrollTo({
      top: 7255,
      left: 0
    }, 1000)
  });
  $('.anio_2001').click(function() {
    $.scrollTo({
      top: 12147,
      left: 0
    }, 1000)
  }); /*----------DESPEGAR---------*/
  $('.despegar').click(function() {
    $.scrollTo({
      top: 0,
      left: 0
    }, 88000)
  }); /*-------VARIABLES PRINCIPALES------*/

  var $window = $(window);
  var ancho_navegador = $window.width();
  var alto_navegador = $window.height();
  var alto_y_ancho_navegador = ancho_navegador + 'x' + alto_navegador;
  var scroll_posicion = $window.scrollTop();
  var hand_position = $(".hand").position();
  $('.scroll_posicion').html('Scroll: ' + scroll_posicion);
  $('.alto_y_ancho_navegador').html('Resolucion Navegador: ' + alto_y_ancho_navegador);

  $.scrollTo({
    top: 12000,
    left: 0
  }, 10)

  $('.estrellas_chicas').scrollingParallax({
    staticSpeed: 0.90,
    reverseDirection: false,
    staticScrollLimit: false
  });
  $('.estrellas_grandes').scrollingParallax({
    staticSpeed: 1.1,
    reverseDirection: false,
    staticScrollLimit: false
  }); /*------------ETAPA 1------------*/
  $('.nube_1').scrollingParallax({
    staticSpeed: 0.70,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.nube_2').scrollingParallax({
    staticSpeed: 0.65,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.nube_4').scrollingParallax({
    staticSpeed: 0.70,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.nube_5').scrollingParallax({
    staticSpeed: 0.68,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.nube_3').scrollingParallax({
    staticSpeed: 0.70,
    reverseDirection: false,
    staticScrollLimit: false

  }); /*------------ETAPA 2------------*/
  $('.banda_2').scrollingParallax({
    staticSpeed: 1.2,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.wiki_img').scrollingParallax({
    staticSpeed: 0.88,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.myspace').scrollingParallax({
    staticSpeed: 0.80,
    reverseDirection: false,
    staticScrollLimit: false

  }); /*------------ETAPA 3------------*/
  $('.banda_3').scrollingParallax({
    staticSpeed: 1.2,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.satelite_1').scrollingParallax({
    staticSpeed: 0.40,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.onda_1').scrollingParallax({
    staticSpeed: 0.40,
    reverseDirection: false,
    staticScrollLimit: false

  });

  $('.satelite_2').scrollingParallax({
    staticSpeed: 0.45,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.onda_2').scrollingParallax({
    staticSpeed: 0.45,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.satelite_3').scrollingParallax({
    staticSpeed: 0.35,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.onda_3').scrollingParallax({
    staticSpeed: 0.35,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.estrellas_etapa_3_a').scrollingParallax({
    staticSpeed: 0.60,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.estrellas_etapa_3_b').scrollingParallax({
    staticSpeed: 0.50,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.estrellas_etapa_3_c').scrollingParallax({
    staticSpeed: 0.40,
    reverseDirection: false,
    staticScrollLimit: false

  }); /*------------ETAPA 4------------*/
  $('.banda_4').scrollingParallax({
    staticSpeed: 1.2,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.gmail').scrollingParallax({
    staticSpeed: 0.88,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.youtube').scrollingParallax({
    staticSpeed: 0.75,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.cohete_suma_upper_left').scrollingParallax({
    staticSpeed: 0.75,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.cohete_suma_upper_right').scrollingParallax({
    staticSpeed: 0.75,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.cohete_suma_bottom_left').scrollingParallax({
    staticSpeed: 0.75,
    reverseDirection: true,
    staticScrollLimit: false

  });
  $('.cohete_suma_bottom_right').scrollingParallax({
    staticSpeed: 0.75,
    reverseDirection: true,
    staticScrollLimit: false

  });
  $('.chrome').scrollingParallax({
    staticSpeed: 0.70,
    reverseDirection: false,
    staticScrollLimit: false

  });

  /*------------ETAPA 5------------*/
  $('.banda_5').scrollingParallax({
    staticSpeed: 1.2,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.facebook').scrollingParallax({
    staticSpeed: 0.70,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.twiter01').scrollingParallax({
    staticSpeed: 0.90,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.twiter02').scrollingParallax({
    staticSpeed: 0.75,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.twiter03').scrollingParallax({
    staticSpeed: 0.80,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.nave_suelta_der').scrollingParallax({
    staticSpeed: 0.90,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.nave_suelta_izq').scrollingParallax({
    staticSpeed: 0.70,
    reverseDirection: true,
    staticScrollLimit: false

  });
  $('.nave_suelta_izq_2').scrollingParallax({
    staticSpeed: 0.70,
    reverseDirection: false,
    staticScrollLimit: false

  }); /*------------ETAPA 6------------*/
  $('.banda_6').scrollingParallax({
    staticSpeed: 1.2,
    reverseDirection: false,
    staticScrollLimit: false

  }); /*------------ETAPA 7------------*/
  $('.plat_7_estella_1').scrollingParallax({
    staticSpeed: 0.25,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.plat_7_estella_2').scrollingParallax({
    staticSpeed: 0.20,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.plat_7_estella_3').scrollingParallax({
    staticSpeed: 0.30,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.plat_7_facebook').scrollingParallax({
    staticSpeed: 0.25,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.plat_7_twitter').scrollingParallax({
    staticSpeed: 0.23,
    reverseDirection: false,
    staticScrollLimit: false

  });
  $('.plat_7_facebook').scrollingParallax({
    staticSpeed: 0.25,
    reverseDirection: false,
    staticScrollLimit: false

  });
/*	$('.plat_7_facebook_link').scrollingParallax({
        staticSpeed : 0.23,
		reverseDirection : false,
        staticScrollLimit : false
		
	});			
	$('.plat_7_twitter_link').scrollingParallax({
        staticSpeed : 0.90,
		reverseDirection : false,
        staticScrollLimit : false
		
	});	*/
  $('.plat_7_estrellas').scrollingParallax({
    staticSpeed: 0.60,
    reverseDirection: false,
    staticScrollLimit: false

  });
  //SACO EL SCROLL EN TIEMPO REAL
  $(document).scroll(function() {

    var $window = $(window);
    var scroll_posicion = $window.scrollTop();
    var scroll_posicion_2 = -10 + (+(scroll_posicion * 1.5 - 2390));
    $('.scroll_posicion').html('Scroll: ' + scroll_posicion);
    $('.scroll_posicion_2').html('Test Formulas: ' + scroll_posicion_2);

    /*-----------NAVBAR------------*/
    /*-------2001------*/
    if (scroll_posicion <= 12147) {
      $(".navbar_back").css("top", "477px");
    }; /*-------2002------*/
    if (scroll_posicion <= 7564) {
      $(".navbar_back").css("top", "447px");
    }; /*-------2003------*/
    if (scroll_posicion <= 6996) {
      $(".navbar_back").css("top", "417px");
    }; /*-------2004------*/
    if (scroll_posicion <= 6426) {
      $(".navbar_back").css("top", "385px");
    }; /*-------2005------*/
    if (scroll_posicion <= 5626) {
      $(".navbar_back").css("top", "354px");
    }; /*-------2006------*/
    if (scroll_posicion <= 5040) {
      $(".navbar_back").css("top", "323px");
    }; /*-------2007------*/
    if (scroll_posicion <= 4176) {
      $(".navbar_back").css("top", "292px");
    }; /*-------2008------*/
    if (scroll_posicion <= 3622) {
      $(".navbar_back").css("top", "262px");
    }; /*-------2009------*/
    if (scroll_posicion <= 2955) {
      $(".navbar_back").css("top", "230px");
    }; /*-------2010------*/
    if (scroll_posicion <= 2300) {
      $(".navbar_back").css("top", "199px");
    }; /*-------2011------*/
    if (scroll_posicion <= 1405) {
      $(".navbar_back").css("top", "168px");
    }; /*-------2012------*/
    if (scroll_posicion <= 250) {
      $(".navbar_back").css("top", "137px");
    }; /*-----------COHETE------------*/
    if (scroll_posicion <= 10819) {
      $(".cohete_fuego").css('display', 'block');
      $(".cohete").css({
        'position': 'fixed',
        'top': '142px',
        'background-position': '843px 0'
      });
    } else {
      $(".cohete_fuego").css('display', 'none');
      $(".cohete").css({
        'position': 'absolute',
        'top': '10971px',
        'background-position': '843px 0'
      });
    };

    if (scroll_posicion > 10819) {
      $(".cohete_fuego").css('display', 'none');
      $(".cohete_fuego_2").css('display', 'none');
    };


    if (scroll_posicion <= 10480) {
      $(".cohete_fuego").css('display', 'none');
      $(".cohete_fuego_2").css('display', 'block');
    };

    if (scroll_posicion > 10480 && scroll_posicion <= 10819) {
      $(".cohete_fuego").css('display', 'block');
      $(".cohete_fuego_2").css('display', 'none');
    };


    if (scroll_posicion <= 9533) {
      $(".cohete_fuego").css('display', 'block');
      $(".cohete_fuego_2").css('display', 'none');
    };

    if (scroll_posicion <= 630) {
      $(".cohete_fuego").css('display', 'none');
      $(".cohete_fuego_2").css('display', 'none');
    };


    /*------------ETAPA 1------------*/
    if (scroll_posicion <= 10907 && scroll_posicion >= 10646) {
      $(".compuerta_right").css("left", -10 - (scroll_posicion * 1.5 - 17322));
    } else {

    };

    if (scroll_posicion <= 10646) {
      $(".compuerta_right").css("left", "1343px");
    } else {

    };

    if (scroll_posicion <= 10907 && scroll_posicion >= 10646) {
      $(".compuerta_left").css("left", 10 + (scroll_posicion * 1.5 - 15850));
    } else {

    };

    if (scroll_posicion <= 10646) {
      $(".compuerta_left").css("left", "129px");
    } else {

    };

    if (scroll_posicion <= 10831) {
      $(".nube_1").css("opacity", (0.1 - (scroll_posicion - 10831) / 100));
    } else {
      $(".nube_1").css("opacity", 0);
    };

    if (scroll_posicion <= 10831) {
      $(".nube_1").css("background-position", -10 - (+(scroll_posicion * 1.5 - 16420)) + "px", "-100px");
    } else {

    };

    if (scroll_posicion <= 10831) {
      $(".nube_2").css("opacity", (0.1 - (scroll_posicion - 10831) / 100));
    } else {
      $(".nube_2").css("opacity", 0);
    };
    if (scroll_posicion <= 10831) {
      $(".nube_2").css("background-position", -10 + (+(scroll_posicion * 1.5 - 14700)) + "px", "-100px");
    } else {

    };


    if (scroll_posicion <= 10350) {
      $(".nube_4").css("opacity", (0.1 - (scroll_posicion - 10350) / 100));
    } else {
      $(".nube_4").css("opacity", 0);
    };
    if (scroll_posicion <= 10831) {
      $(".nube_4").css("background-position", -10 + (+(scroll_posicion * 1.5 - 14000)) + "px", "-100px");
    } else {

    };

    if (scroll_posicion <= 10350) {
      $(".nube_5").css("opacity", (0.1 - (scroll_posicion - 10350) / 100));
    } else {
      $(".nube_5").css("opacity", 0);
    };
    if (scroll_posicion <= 10831) {
      $(".nube_5").css("background-position", -10 - (+(scroll_posicion * 1.5 - 15700)) + "px", "-100px");
    } else {

    };

    if (scroll_posicion <= 10115) {
      $(".nube_3").css("opacity", (0.1 - (scroll_posicion - 10115) / 100));
    } else {
      $(".nube_3").css("opacity", 0);
    };
    if (scroll_posicion <= 10831) {
      $(".nube_3").css("background-position", -10 + (+(scroll_posicion * 1.4 - 12800)) + "px", "-100px");
    } else {

    }; /*------------ETAPA 2------------*/

    /*------------ETAPA 3------------*/
    /*---------*/
    if (scroll_posicion <= 7690 && scroll_posicion >= 7370) {
      $(".satelite_1").css("background-position", -10 + (+(scroll_posicion * 1.5 - 9790)) + "px", "-100px");
      $(".onda_1").hide(1);
    } else {

    };
    if (scroll_posicion <= 7370) {
      $(".satelite_1").css("background-position", "1265.5px");
      $(".onda_1").show(300);
    } else {

    }; /*---------*/
    if (scroll_posicion <= 7690 && scroll_posicion >= 7160) {
      $(".satelite_2").css("background-position", 2300 - (scroll_posicion * 1.5 - 8900) + "px", "100px");
      $(".onda_2").hide(1);
    } else {

    };

    if (scroll_posicion <= 7160) {
      $(".satelite_2").css("background-position", "460px");
      $(".onda_2").show(300);
    } else {

    }; /*---------*/
    if (scroll_posicion <= 7655) {
      $(".satelite_3").css("opacity", (0.000001 - (scroll_posicion - 7655) / 100));
    } else {
      $(".satelite_3").css("opacity", 0);
    };

    if (scroll_posicion <= 7690 && scroll_posicion >= 7300) {
      $(".satelite_3").css("background-position", 2300 - (scroll_posicion * 1.5 - 9045) + "px", "100px");
      $(".onda_3").hide(1);
    } else {

    };
    if (scroll_posicion <= 7300) {
      $(".satelite_3").css("background-position", "381.5px");
      $(".onda_3").show(300);
    } else {

    };




    if (scroll_posicion > 7404) {
      $(".onda_1").css("display", "none");
      $(".onda_2").css("display", "none");
      $(".onda_3").css("display", "none");
    } else {

    };


    /*------------ETAPA 4------------*/
    if (scroll_posicion <= 5635 && scroll_posicion >= 5169) {
      $(".cohete_suma_upper_left").css("background-position", 2300 - (scroll_posicion * 1.5 - 6100) + "px", "100px");
    } else {

    };
    if (scroll_posicion <= 5635) {
      $(".cohete_suma_upper_left").css("opacity", (0.000001 - (scroll_posicion - 5635) / 100));
    } else {
      $(".cohete_suma_upper_left").css("opacity", 0);
    };

    if (scroll_posicion <= 5169) {
      $(".cohete_suma_upper_left").css("background-position", "646.5px", "100px");
    } else {

    }; /*---------*/
    if (scroll_posicion <= 5635 && scroll_posicion >= 5169) {
      $(".cohete_suma_upper_right").css("background-position", 2300 + (scroll_posicion * 1.5 - 9280) + "px", "100px");
    } else {

    };
    if (scroll_posicion <= 5635) {
      $(".cohete_suma_upper_right").css("opacity", (0.000001 - (scroll_posicion - 5635) / 100));
    } else {
      $(".cohete_suma_upper_right").css("opacity", 0);
    };
    if (scroll_posicion <= 5169) {
      $(".cohete_suma_upper_right").css("background-position", "775.5px", "100px");
    } else {

    }; /*---------*/
    if (scroll_posicion <= 5635 && scroll_posicion >= 5169) {
      $(".cohete_suma_bottom_left").css("background-position", 2300 - (scroll_posicion * 1.5 - 6100) + "px", "100px");
    } else {

    };
    if (scroll_posicion <= 5635) {
      $(".cohete_suma_bottom_left").css("opacity", (0.000001 - (scroll_posicion - 5635) / 100));
    } else {
      $(".cohete_suma_bottom_left").css("opacity", 0);
    };

    if (scroll_posicion <= 5169) {
      $(".cohete_suma_bottom_left").css("background-position", "646.5px", "100px");
    } else {

    }; /*---------*/
    if (scroll_posicion <= 5635 && scroll_posicion >= 5169) {
      $(".cohete_suma_bottom_right").css("background-position", 2300 + (scroll_posicion * 1.5 - 9280) + "px", "100px");
    } else {

    };
    if (scroll_posicion <= 5635) {
      $(".cohete_suma_bottom_right").css("opacity", (0.000001 - (scroll_posicion - 5635) / 100));
    } else {
      $(".cohete_suma_bottom_right").css("opacity", 0);
    };
    if (scroll_posicion <= 5169) {
      $(".cohete_suma_bottom_right").css("background-position", "775.5px", "100px");
    } else {

    };


    if (scroll_posicion <= 5152) {
      $(".cohete").css('display', 'none');
      $(".cohete_2").css('display', 'block');
      $(".cohete_suma_upper_left").css('display', 'none');
      $(".cohete_suma_upper_right").css('display', 'none');
      $(".cohete_suma_bottom_left").css('display', 'none');
      $(".cohete_suma_bottom_right").css('display', 'none');
    };
    if (scroll_posicion > 5152) {
      $(".cohete").css('display', 'block');
      $(".cohete_2").css('display', 'none');
      $(".cohete_suma_upper_left").css('display', 'block');
      $(".cohete_suma_upper_right").css('display', 'block');
      $(".cohete_suma_bottom_left").css('display', 'block');
      $(".cohete_suma_bottom_right").css('display', 'block');
    };

    if (scroll_posicion <= 630) {
      $(".cohete_2").css('display', 'none');
    };

    if (scroll_posicion > 630 && scroll_posicion <= 5152) {
      $(".cohete_2").css('display', 'block');
    };

    /*------------ETAPA 5------------*/
    /*---------*/
    if (scroll_posicion <= 3822 && scroll_posicion >= 3617) {
      $(".nave_suelta_der").css("background-position", 2300 + (scroll_posicion * 1.5 - 7300) + "px", "100px");
    } else {

    };
    if (scroll_posicion <= 3822) {
      $(".nave_suelta_der").css("opacity", (0.000001 - (scroll_posicion - 3822) / 100));
    } else {
      $(".nave_suelta_der").css("opacity", 0);
    };

    if (scroll_posicion <= 3617) {
      $(".nave_suelta_der").css("background-position", "425.5px", "100px");
    } else {

    };
    if (scroll_posicion <= 4722) {
      $(".twiter01").css("background-position", 2300 - (scroll_posicion * 0.35 - 350) + "px", "100px");
    } else {

    };
    if (scroll_posicion <= 4722) {
      $(".twiter02").css("background-position", 2300 - (scroll_posicion * 0.3 - 97) + "px", "100px");
    } else {

    };
    if (scroll_posicion <= 4722) {
      $(".twiter03").css("background-position", 2300 - (scroll_posicion * 0.4 - 550) + "px", "100px");
    } else {

    }; /*---------*/
    if (scroll_posicion <= 3826 && scroll_posicion >= 3604) {
      $(".nave_suelta_izq").css("background-position", 2300 - (scroll_posicion * 1.5 - 4250) + "px", "100px");
    } else {

    };
    if (scroll_posicion <= 3822) {
      $(".nave_suelta_izq").css("opacity", (0.000001 - (scroll_posicion - 3822) / 100));
    } else {
      $(".nave_suelta_izq").css("opacity", 0);
    };

    if (scroll_posicion <= 3604) {
      $(".nave_suelta_izq").css("display", "none");
      $(".nave_suelta_izq").css("background-position", "1143px", "100px");
      $(".nave_suelta_izq_2").css("display", "block");
    } else {
      $(".nave_suelta_izq").css("display", "block");
      $(".nave_suelta_izq_2").css("display", "none");

    };
    //*------------ETAPA 6------------*/
    if (scroll_posicion <= 2750) {
      $(".cohetechico_plataforma_1").css("display", "block");
      $(".cohetechico_plataforma_1").css("top", 2300 + (scroll_posicion * 1.5 - 6200) + "px");
    } else {

    };
    if (scroll_posicion > 2750) {
      $(".cohetechico_plataforma_1").css("display", "none");
    } else {

    }; /*---------*/
    if (scroll_posicion <= 1750) {
      $(".cohetechico_plataforma_2").css("top", 2300 + (scroll_posicion * 1.5 - 4350) + "px");
    } else {

    }; /*---------*/
    if (scroll_posicion <= 2506) {
      $(".cohetechico_plataforma_3").css("top", 2300 + (scroll_posicion * 1.5 - 5500) + "px");
    } else {

    }; /*---------*/
    if (scroll_posicion <= 2035) {
      $(".cohetechico_plataforma_4").css("display", "block");
      $(".cohetechico_plataforma_4").css("top", 2300 + (scroll_posicion * 1.5 - 5080) + "px");
    } else {

    };
    if (scroll_posicion > 2035) {
      $(".cohetechico_plataforma_4").css("display", "none");
    } else {

    }; /*------------ETAPA 7------------*/

    /*--------------------*/

  });


  /*--------------------*/



});
$(document).ready(function() {

/*-------NAVBAR------*/
$('.anio_2012').click(function() {
  $.scrollTo( { top:0, left:0}, 1000)
});
$('.anio_2011').click(function() {
  $.scrollTo( { top:1405, left:0}, 1000)
});
$('.anio_2010').click(function() {
  $.scrollTo( { top:2300, left:0}, 1000)
});
$('.anio_2009').click(function() {
  $.scrollTo( { top:2955, left:0}, 1000)
});
$('.anio_2008').click(function() {
  $.scrollTo( { top:3622, left:0}, 1000)
});
$('.anio_2007').click(function() {
  $.scrollTo( { top:4176, left:0}, 1000)
});
$('.anio_2006').click(function() {
  $.scrollTo( { top:5040, left:0}, 1000)
});
$('.anio_2005').click(function() {
  $.scrollTo( { top:5282, left:0}, 1000)
});
$('.anio_2004').click(function() {
  $.scrollTo( { top:6426, left:0}, 1000)
});
$('.anio_2003').click(function() {
  $.scrollTo( { top:6996, left:0}, 1000)
});
$('.anio_2002').click(function() {
  $.scrollTo( { top:7255, left:0}, 1000)
});
$('.anio_2001').click(function() {
  $.scrollTo( { top:12147, left:0}, 1000)
});
/*----------DESPEGAR---------*/
$('.despegar').click(function() {
  $.scrollTo( { top:0, left:0}, 88000 )
});
/*-------VARIABLES PRINCIPALES------*/

	var $window = $(window);
	var ancho_navegador = $window.width();
	var alto_navegador = $window.height();
	var alto_y_ancho_navegador = ancho_navegador + 'x' + alto_navegador;
	var scroll_posicion = $window.scrollTop();
	var hand_position = $(".hand").position();
	$('.scroll_posicion').html('Scroll: ' + scroll_posicion);
	$('.alto_y_ancho_navegador').html('Resolucion Navegador: ' + alto_y_ancho_navegador);
	
	$.scrollTo( { top:12000, left:0}, 10 )

	$('.estrellas_chicas').scrollingParallax({
        staticSpeed : 0.90,
		reverseDirection : false,
        staticScrollLimit : false	
	});	
	$('.estrellas_grandes').scrollingParallax({
        staticSpeed : 1.1,
		reverseDirection : false,
        staticScrollLimit : false	
	});		
/*------------ETAPA 1------------*/
	$('.nube_1').scrollingParallax({
			staticSpeed : 0.70,
			reverseDirection : false,
			staticScrollLimit : false
			
		});
	$('.nube_2').scrollingParallax({
			staticSpeed : 0.65,
			reverseDirection : false,
			staticScrollLimit : false
			
		});
	$('.nube_4').scrollingParallax({
			staticSpeed : 0.70,
			reverseDirection : false,
			staticScrollLimit : false
			
		});
	$('.nube_5').scrollingParallax({
			staticSpeed : 0.68,
			reverseDirection : false,
			staticScrollLimit : false
			
		});
	$('.nube_3').scrollingParallax({
			staticSpeed : 0.70,
			reverseDirection : false,
			staticScrollLimit : false
			
		});	
/*------------ETAPA 2------------*/
	$('.banda_2').scrollingParallax({
			staticSpeed : 1.2,
			reverseDirection : false,
			staticScrollLimit : false
			
		});	
	$('.wiki_img').scrollingParallax({
			staticSpeed : 0.88,
			reverseDirection : false,
			staticScrollLimit : false
			
		});		
	$('.myspace').scrollingParallax({
			staticSpeed : 0.80,
			reverseDirection : false,
			staticScrollLimit : false
			
		});				
/*------------ETAPA 3------------*/
	$('.banda_3').scrollingParallax({
			staticSpeed : 1.2,
			reverseDirection : false,
			staticScrollLimit : false
			
		});	
	$('.satelite_1').scrollingParallax({
        staticSpeed : 0.40,
		reverseDirection : false,
        staticScrollLimit : false
		
	});
	$('.onda_1').scrollingParallax({
        staticSpeed : 0.40,
		reverseDirection : false,
        staticScrollLimit : false
		
	});	
	
	$('.satelite_2').scrollingParallax({
        staticSpeed : 0.45,
		reverseDirection : false,
        staticScrollLimit : false
		
	});
	$('.onda_2').scrollingParallax({
        staticSpeed : 0.45,
		reverseDirection : false,
        staticScrollLimit : false
		
	});	
	$('.satelite_3').scrollingParallax({
        staticSpeed : 0.35,
		reverseDirection : false,
        staticScrollLimit : false
		
	});	
	$('.onda_3').scrollingParallax({
        staticSpeed : 0.35,
		reverseDirection : false,
        staticScrollLimit : false
		
	});		
	$('.estrellas_etapa_3_a').scrollingParallax({
        staticSpeed : 0.60,
		reverseDirection : false,
        staticScrollLimit : false
		
	});		
	$('.estrellas_etapa_3_b').scrollingParallax({
        staticSpeed : 0.50,
		reverseDirection : false,
        staticScrollLimit : false
		
	});	
	$('.estrellas_etapa_3_c').scrollingParallax({
        staticSpeed : 0.40,
		reverseDirection : false,
        staticScrollLimit : false
		
	});						
/*------------ETAPA 4------------*/
	$('.banda_4').scrollingParallax({
			staticSpeed : 1.2,
			reverseDirection : false,
			staticScrollLimit : false
			
		});
	$('.gmail').scrollingParallax({
			staticSpeed : 0.88,
			reverseDirection : false,
			staticScrollLimit : false
			
		});		
	$('.youtube').scrollingParallax({
			staticSpeed : 0.75,
			reverseDirection : false,
			staticScrollLimit : false
			
		});	
	$('.cohete_suma_upper_left').scrollingParallax({
			staticSpeed : 0.75,
			reverseDirection : false,
			staticScrollLimit : false
			
		});	
	$('.cohete_suma_upper_right').scrollingParallax({
			staticSpeed : 0.75,
			reverseDirection : false,
			staticScrollLimit : false
			
		});	
	$('.cohete_suma_bottom_left').scrollingParallax({
			staticSpeed : 0.75,
			reverseDirection : true,
			staticScrollLimit : false
			
		});	
	$('.cohete_suma_bottom_right').scrollingParallax({
			staticSpeed : 0.75,
			reverseDirection : true,
			staticScrollLimit : false
			
		});	
	$('.chrome').scrollingParallax({
        staticSpeed : 0.70,
		reverseDirection : false,
        staticScrollLimit : false
		
	});		
										
/*------------ETAPA 5------------*/
	$('.banda_5').scrollingParallax({
			staticSpeed : 1.2,
			reverseDirection : false,
			staticScrollLimit : false
			
		});	
	$('.facebook').scrollingParallax({
        staticSpeed : 0.70,
		reverseDirection : false,
        staticScrollLimit : false
		
	});	
	$('.twiter01').scrollingParallax({
        staticSpeed : 0.90,
		reverseDirection : false,
        staticScrollLimit : false
		
	});	
	$('.twiter02').scrollingParallax({
        staticSpeed : 0.75,
		reverseDirection : false,
        staticScrollLimit : false
		
	});	
	$('.twiter03').scrollingParallax({
        staticSpeed : 0.80,
		reverseDirection : false,
        staticScrollLimit : false
		
	});			
	$('.nave_suelta_der').scrollingParallax({
        staticSpeed : 0.90,
		reverseDirection : false,
        staticScrollLimit : false
		
	});	
	$('.nave_suelta_izq').scrollingParallax({
        staticSpeed : 0.70,
		reverseDirection : true,
        staticScrollLimit : false
		
	});	
	$('.nave_suelta_izq_2').scrollingParallax({
        staticSpeed : 0.70,
		reverseDirection : false,
        staticScrollLimit : false
		
	});							
/*------------ETAPA 6------------*/
	$('.banda_6').scrollingParallax({
			staticSpeed : 1.2,
			reverseDirection : false,
			staticScrollLimit : false
			
		});	
/*------------ETAPA 7------------*/	
	$('.plat_7_estella_1').scrollingParallax({
        staticSpeed : 0.25,
		reverseDirection : false,
        staticScrollLimit : false
		
	});	
	$('.plat_7_estella_2').scrollingParallax({
        staticSpeed : 0.20,
		reverseDirection : false,
        staticScrollLimit : false
		
	});
	$('.plat_7_estella_3').scrollingParallax({
        staticSpeed : 0.30,
		reverseDirection : false,
        staticScrollLimit : false
		
	});	
	$('.plat_7_facebook').scrollingParallax({
        staticSpeed : 0.25,
		reverseDirection : false,
        staticScrollLimit : false
		
	});	
	$('.plat_7_twitter').scrollingParallax({
        staticSpeed : 0.23,
		reverseDirection : false,
        staticScrollLimit : false
		
	});
	$('.plat_7_facebook').scrollingParallax({
        staticSpeed : 0.25,
		reverseDirection : false,
        staticScrollLimit : false
		
	});	
/*	$('.plat_7_facebook_link').scrollingParallax({
        staticSpeed : 0.23,
		reverseDirection : false,
        staticScrollLimit : false
		
	});			
	$('.plat_7_twitter_link').scrollingParallax({
        staticSpeed : 0.90,
		reverseDirection : false,
        staticScrollLimit : false
		
	});	*/
	$('.plat_7_estrellas').scrollingParallax({
        staticSpeed : 0.60,
		reverseDirection : false,
        staticScrollLimit : false
		
	});																					
//SACO EL SCROLL EN TIEMPO REAL
  $(document).scroll(function() {
	  
	var $window = $(window);
	var scroll_posicion = $window.scrollTop();
	var scroll_posicion_2 = -10  + (  + (scroll_posicion * 1.5 - 2390));
	$('.scroll_posicion').html('Scroll: ' + scroll_posicion);
	$('.scroll_posicion_2').html('Test Formulas: ' +scroll_posicion_2);	

/*-----------NAVBAR------------*/
/*-------2001------*/	
	if (scroll_posicion <= 12147) 
	{
 	  $(".navbar_back").css("top","477px");
	};
/*-------2002------*/	
	if (scroll_posicion <= 7564) 
	{
 	  $(".navbar_back").css("top","447px");
	};
/*-------2003------*/	
	if (scroll_posicion <= 6996) 
	{
  	  $(".navbar_back").css("top","417px");
	};
/*-------2004------*/	
	if (scroll_posicion <= 6426) 
	{
	  $(".navbar_back").css("top","385px");
	};
/*-------2005------*/	
	if (scroll_posicion <= 5626) 
	{
	  $(".navbar_back").css("top","354px");
	};
/*-------2006------*/	
	if (scroll_posicion <= 5040) 
	{
 	  $(".navbar_back").css("top","323px");
	};
/*-------2007------*/	
	if (scroll_posicion <= 4176) 
	{
	  $(".navbar_back").css("top","292px");
	};
/*-------2008------*/	
	if (scroll_posicion <= 3622) 
	{
 	  $(".navbar_back").css("top","262px");
	};
/*-------2009------*/	
	if (scroll_posicion <= 2955) 
	{
	  $(".navbar_back").css("top","230px");
	};	
/*-------2010------*/		
	if (scroll_posicion <= 2300) 
	{
		$(".navbar_back").css("top","199px");
	};	
/*-------2011------*/	
	if (scroll_posicion <= 1405) 
	{
  		$(".navbar_back").css("top","168px");
	};	
/*-------2012------*/
	if (scroll_posicion <= 250) 
	{
  		$(".navbar_back").css("top","137px");
	};				
/*-----------COHETE------------*/
	if(scroll_posicion <= 10819  )
   {
		$(".cohete_fuego").css('display','block');
		$(".cohete").css({
			'position' : 'fixed',
			'top' : '142px',
			'background-position' : '843px 0'
		});
   }
   else {
		$(".cohete_fuego").css('display','none');
		$(".cohete").css({
			'position' : 'absolute',
			'top' : '10971px',
			'background-position' : '843px 0'
		});
	};

	if (scroll_posicion > 10819 ) 
	{
		$(".cohete_fuego").css('display','none');
		$(".cohete_fuego_2").css('display','none');
	};	
	
		
   if(scroll_posicion <= 10480  )
   {
		$(".cohete_fuego").css('display','none');
		$(".cohete_fuego_2").css('display','block');
   };
	
   if(scroll_posicion > 10480 && scroll_posicion <= 10819 )
   {
		$(".cohete_fuego").css('display','block');
		$(".cohete_fuego_2").css('display','none');
   };
	
	
	if (scroll_posicion <= 9533 ) 
	{
		$(".cohete_fuego").css('display','block');
		$(".cohete_fuego_2").css('display','none');
	};	
	
	if (scroll_posicion <= 630 ) 
	{
		$(".cohete_fuego").css('display','none');
		$(".cohete_fuego_2").css('display','none');
	};		
		
	
/*------------ETAPA 1------------*/	
    if(scroll_posicion <= 10907 && scroll_posicion >= 10646)
   {
		$(".compuerta_right").css("left", -10  -  (scroll_posicion * 1.5 - 17322) );
   }
   else {
		
	};

   if(scroll_posicion <= 10646)
   {
		$(".compuerta_right").css("left", "1343px");
   }
   else {
		
	};
	
   if(scroll_posicion <= 10907 && scroll_posicion >= 10646)
   {
		$(".compuerta_left").css("left", 10 + (scroll_posicion * 1.5 - 15850) );
   }
   else {
		
	};
	
   if(scroll_posicion <= 10646)
   {
		$(".compuerta_left").css("left", "129px");
   }
   else {
		
	};	
	
   if(scroll_posicion <= 10831)
   {
		$(".nube_1").css("opacity",(0.1-(scroll_posicion -10831)/100));
   }
   else {
		$(".nube_1").css("opacity",0);
	};	
	
	if(scroll_posicion <= 10831)
   {
		$(".nube_1").css("background-position", -10  - (  + (scroll_posicion * 1.5 - 16420)) + "px", "-100px");
   }
   else {
		
	};	
	
   if(scroll_posicion <= 10831)
   {
		$(".nube_2").css("opacity",(0.1-(scroll_posicion -10831)/100));
   }
   else {
		$(".nube_2").css("opacity",0);
	};	
	if(scroll_posicion <= 10831)
   {
		$(".nube_2").css("background-position", -10  + (  + (scroll_posicion * 1.5 - 14700)) + "px", "-100px");
   }
   else {
		
	};	

	
   if(scroll_posicion <= 10350)
   {
		$(".nube_4").css("opacity",(0.1-(scroll_posicion -10350)/100));
   }
   else {
		$(".nube_4").css("opacity",0);
	};
	if(scroll_posicion <= 10831)
   {
		$(".nube_4").css("background-position", -10  + (  + (scroll_posicion * 1.5 - 14000)) + "px", "-100px");
   }
   else {
		
	};		
		
   if(scroll_posicion <= 10350)
   {
		$(".nube_5").css("opacity",(0.1-(scroll_posicion -10350)/100));
   }
   else {
		$(".nube_5").css("opacity",0);
	};	
	if(scroll_posicion <= 10831)
   {
		$(".nube_5").css("background-position", -10  - (  + (scroll_posicion * 1.5 - 15700)) + "px", "-100px");
   }
   else {
		
	};			

   if(scroll_posicion <= 10115)
   {
		$(".nube_3").css("opacity",(0.1-(scroll_posicion -10115)/100));
   }
   else {
		$(".nube_3").css("opacity",0);
	};	
	if(scroll_posicion <= 10831)
   {
		$(".nube_3").css("background-position", -10  + (  + (scroll_posicion * 1.4 - 12800)) + "px", "-100px");
   }
   else {
		
	};		
/*------------ETAPA 2------------*/

/*------------ETAPA 3------------*/
	/*---------*/	
	if(scroll_posicion <= 7690 && scroll_posicion >= 7370 )
   {
		$(".satelite_1").css("background-position", -10  + (  + (scroll_posicion * 1.5 - 9790)) + "px", "-100px");
		$(".onda_1").hide(1);
   }
   else {
		
	};
 if(scroll_posicion <= 7370)
   {
		$(".satelite_1").css("background-position", "1265.5px");
		$(".onda_1").show(300);
   }
   else {
		
	};	
/*---------*/	
 if(scroll_posicion <= 7690 && scroll_posicion >= 7160)
   {
		$(".satelite_2").css("background-position", 2300 - (scroll_posicion * 1.5 - 8900) + "px", "100px");
		$(".onda_2").hide(1);
   }
   else {
		
	};	
	
 if(scroll_posicion <= 7160)
   {
		$(".satelite_2").css("background-position", "460px");
		$(".onda_2").show(300);
   }
   else {
		
	};			
/*---------*/		
 if(scroll_posicion <= 7655)
   {
		$(".satelite_3").css("opacity",(0.000001-(scroll_posicion -7655)/100));
   }
   else {
		$(".satelite_3").css("opacity",0);
	};	
	
 if(scroll_posicion <= 7690 && scroll_posicion >= 7300)
   {
		$(".satelite_3").css("background-position", 2300 - (scroll_posicion * 1.5 - 9045) + "px", "100px");
		$(".onda_3").hide(1);
   }
   else {
		
	};
 if(scroll_posicion <= 7300)
   {
		$(".satelite_3").css("background-position", "381.5px");
		$(".onda_3").show(300);
   }
   else {
		
	};	
	
	
	
	
 if(scroll_posicion > 7404)
   {
	   	$(".onda_1").css("display","none");
	    $(".onda_2").css("display","none");
		$(".onda_3").css("display","none");
   }
   else {
		
	};

	
/*------------ETAPA 4------------*/
 	if(scroll_posicion <= 5635 && scroll_posicion >= 5169 )
   {
		$(".cohete_suma_upper_left").css("background-position", 2300 - (scroll_posicion * 1.5 - 6100) + "px", "100px");
   }
   else {
		
	};
 if(scroll_posicion <= 5635)
   {
		$(".cohete_suma_upper_left").css("opacity",(0.000001-(scroll_posicion -5635)/100));
   }
   else {
		$(".cohete_suma_upper_left").css("opacity",0);
	};	
	
  if(scroll_posicion <= 5169)
   {
		$(".cohete_suma_upper_left").css("background-position", "646.5px", "100px");
   }
   else {
		
	};	
/*---------*/		
  if(scroll_posicion <= 5635 && scroll_posicion >= 5169)
   {
		$(".cohete_suma_upper_right").css("background-position", 2300 + (scroll_posicion * 1.5 - 9280) + "px", "100px");
   }
   else {
		
	};
 if(scroll_posicion <= 5635)
   {
		$(".cohete_suma_upper_right").css("opacity",(0.000001-(scroll_posicion -5635)/100));
   }
   else {
		$(".cohete_suma_upper_right").css("opacity",0);
	};	
  if(scroll_posicion <= 5169)
   {
		$(".cohete_suma_upper_right").css("background-position", "775.5px", "100px");
   }
   else {
		
	};	
/*---------*/	
  if(scroll_posicion <= 5635 && scroll_posicion >= 5169 )
   {
		$(".cohete_suma_bottom_left").css("background-position", 2300 - (scroll_posicion * 1.5 - 6100) + "px", "100px");
   }
   else {
		
	};
 if(scroll_posicion <= 5635)
   {
		$(".cohete_suma_bottom_left").css("opacity",(0.000001-(scroll_posicion -5635)/100));
   }
   else {
		$(".cohete_suma_bottom_left").css("opacity",0);
	};	
	
  if(scroll_posicion <= 5169)
   {
		$(".cohete_suma_bottom_left").css("background-position", "646.5px", "100px");
   }
   else {
		
	};	
/*---------*/		
  if(scroll_posicion <= 5635 && scroll_posicion >= 5169)
   {
		$(".cohete_suma_bottom_right").css("background-position", 2300 + (scroll_posicion * 1.5 - 9280) + "px", "100px");
   }
   else {
		
	};
 if(scroll_posicion <= 5635)
   {
		$(".cohete_suma_bottom_right").css("opacity",(0.000001-(scroll_posicion -5635)/100));
   }
   else {
		$(".cohete_suma_bottom_right").css("opacity",0);
	};	
  if(scroll_posicion <= 5169)
   {
		$(".cohete_suma_bottom_right").css("background-position", "775.5px", "100px");
   }
   else {
		
	};		
	
	
 if(scroll_posicion <= 5152)
   {
	   	$(".cohete").css('display','none');
		$(".cohete_2").css('display','block');
	   	$(".cohete_suma_upper_left").css('display','none');
		$(".cohete_suma_upper_right").css('display','none');
		$(".cohete_suma_bottom_left").css('display','none');
		$(".cohete_suma_bottom_right").css('display','none');	
   };
   if (scroll_posicion > 5152) {
		$(".cohete").css('display','block');
		$(".cohete_2").css('display','none');	   
	   	$(".cohete_suma_upper_left").css('display','block');
		$(".cohete_suma_upper_right").css('display','block');
		$(".cohete_suma_bottom_left").css('display','block');
		$(".cohete_suma_bottom_right").css('display','block');
	};	

   if(scroll_posicion <= 630  )
   {
		$(".cohete_2").css('display','none');
   };
   
   if (scroll_posicion > 630 && scroll_posicion <= 5152 ) 
	{
		$(".cohete_2").css('display','block');
	};			
		
/*------------ETAPA 5------------*/
	/*---------*/	
  if(scroll_posicion <= 3822 && scroll_posicion >= 3617 )
   {
		$(".nave_suelta_der").css("background-position", 2300 + (scroll_posicion * 1.5 - 7300) + "px", "100px");
   }
   else {
		
	};
 if(scroll_posicion <= 3822)
   {
		$(".nave_suelta_der").css("opacity",(0.000001-(scroll_posicion -3822)/100));
   }
   else {
		$(".nave_suelta_der").css("opacity",0);
	};	
	
  if(scroll_posicion <= 3617)
   {
		$(".nave_suelta_der").css("background-position", "425.5px", "100px");
   }
   else {
		
	};
  if(scroll_posicion <= 4722 )
   {
		$(".twiter01").css("background-position", 2300 - (scroll_posicion * 0.35 - 350) + "px", "100px");
   }
   else {
		
	};	
  if(scroll_posicion <= 4722)
   {
		$(".twiter02").css("background-position", 2300 - (scroll_posicion * 0.3 - 97) + "px", "100px");
   }
   else {
		
	};
  if(scroll_posicion <= 4722)
   {
		$(".twiter03").css("background-position", 2300 - (scroll_posicion * 0.4 - 550) + "px", "100px");
   }
   else {
		
	};		
/*---------*/	
  if(scroll_posicion <= 3826 && scroll_posicion >= 3604)
   {
		$(".nave_suelta_izq").css("background-position", 2300 - (scroll_posicion * 1.5 - 4250) + "px", "100px");
   }
   else {
		
	};
 if(scroll_posicion <= 3822)
   {
		$(".nave_suelta_izq").css("opacity",(0.000001-(scroll_posicion -3822)/100));
   }
   else {
		$(".nave_suelta_izq").css("opacity",0);
	};
	
  if(scroll_posicion <= 3604)
   {
	   	$(".nave_suelta_izq").css("display", "none");
		$(".nave_suelta_izq").css("background-position", "1143px", "100px");
		$(".nave_suelta_izq_2").css("display", "block");
   }
   else {
	   $(".nave_suelta_izq").css("display", "block");
	   $(".nave_suelta_izq_2").css("display", "none");
		
	};
//*------------ETAPA 6------------*/
	if(scroll_posicion <= 2750)
   {
	   $(".cohetechico_plataforma_1").css("display","block");
		$(".cohetechico_plataforma_1").css("top", 2300 + (scroll_posicion * 1.5 - 6200) + "px");
   }
   else {
		
	};
  if(scroll_posicion > 2750)
   {
		$(".cohetechico_plataforma_1").css("display","none");
   }
   else {
		
	};	
/*---------*/
  if(scroll_posicion <= 1750)
   {
		$(".cohetechico_plataforma_2").css("top", 2300 + (scroll_posicion * 1.5 - 4350) + "px");
   }
   else {
		
	};	
/*---------*/
  if(scroll_posicion <= 2506)
   {
		$(".cohetechico_plataforma_3").css("top", 2300 + (scroll_posicion * 1.5 - 5500) + "px");
   }
   else {
		
	};	
/*---------*/
  if(scroll_posicion <= 2035)
   {
	   $(".cohetechico_plataforma_4").css("display","block");
		$(".cohetechico_plataforma_4").css("top", 2300 + (scroll_posicion * 1.5 - 5080) + "px");
   }
   else {
		
	};
  if(scroll_posicion > 2035)
   {
		$(".cohetechico_plataforma_4").css("display","none");
   }
   else {
		
	};		 
/*------------ETAPA 7------------*/

/*--------------------*/

	});


/*--------------------*/



});