$(document).ready(function(){
  $("body").removeClass("noJS");
  
  $("a.read-it").hover(function () {
      $(this).toggleClass("replace");
    }, 
    function () {
      $(this).toggleClass("replace");
    }
  );
  
  $("#heart-initial").hover(function () {
    $(this).fadeOut("slow");
    $("#heart-hover").fadeIn("slow");
  },
  function () {
    $("#heart-hover").fadeOut("slow");
    $(this).fadeIn("slow");
  });
  
  $("a.fancy-case-tb").fancybox({
    padding: 0,
    hideOnContentClick: false
  });
  
  $("#main").scrollable({size: 1, clickable: false}).navigator({
    navi: "#flowtabs",
    navItem: 'a',
    activeClass: 'active'
  });

  $("a#t1").click(function () {
    $("#main").animate({height: "750px"}, 400 );
  });
  
  $("a#t2").click(function () {
    $("#main").animate({height: "280px"}, 400 );
  });
  
  $("a#t3").click(function () {
    $("#main").animate({height: "350px"}, 400 );
  });
  
  
  $("a.fancy").fancybox({
    padding : 0,
    border: 0
  });
  
  $(".screen").hover(function () {
    $(this).children(".hover").fadeIn("slow");
  }, 
  function () {
    $(this).children(".hover").fadeOut("slow");
  });
  $('#map1').jmap('init', {'mapType':'map','mapCenter':[34.08348,-118.34678], 'mapZoom':15});
  $("#map1").jmap('AddMarker', {
    'pointLatLng': [34.08348, -118.34678],
    'pointHTML': "<strong>Don't forget to bring food & beer</strong>"
  });
});