$(document).ready(function(){
  
  /* Nav effects */
  $("#nav li").hover(function(){
    $(this).attr("class","hover");
    $(this).children().slice(0,1).css("color","#90c4cf");
  }, 
  function(){
    $(this).removeAttr("class","hover");
    var link = $(this).children().slice(0,1);
    if($(this).is("#selectedpage")){
      link.css("color","#90c4cf");
    } else {
      link.css("color","white");
    }
  });
  
  /* blog blindup */
  $("#blog").click(function(e){
    e.preventDefault();
    $("#top-content-wrapper").slideUp("slow", function(){
      window.location.href = 'blog.html'
    })
  });
  
  /* blog blindup */
  $("#index").click(function(e){
    e.preventDefault();
    $("#top-content-wrapper").slideDown("slow", function(){
      window.location.href = 'index.html'
    })
  });
  
});