// makes the smooth scroll
$(document).ready(function(){
  $('a[href*=#]').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
    && location.hostname == this.hostname) {
      var $target = $(this.hash);
      $target = $target.length && $target
      || $('[name=' + this.hash.slice(1) +']');
      if ($target.length) {
        var targetOffset = $target.offset().top;
        $('html,body')
        .animate({scrollTop: targetOffset}, 1000, 'expoinout');
       return false;
      }
    }
  });
});

//hides top logIn box
$(document).ready(function(){
	$("#logInLink").click(function(){
	  $("#logInContainer").fadeIn("slow");
	});
	
});

$(document).ready(function(){
	$("#closeLogInLink").click(function(){
	  $("#logInContainer").fadeOut("slow");
	});
	
});



$(document).ready(function(){

	$(".portfolioImages li").click(function(){
	  window.location=$(this).find("a").attr("href"); return false;
	});

});


$(document).ready(function(){
    $(".portfolioImages li").fadeTo(250, 0.3);

    $(".portfolioImages li").hover(function(){
        $(this).stop().animate({
            opacity : 1
        }, 250);

        },function(){
        $(this).stop().animate({
            opacity : 0.3
        }, 250);
    });
});




        $(document).ready(function(){
	    $("input, textarea").addClass("idle");
            $("input, textarea").focus(function(){
                $(this).addClass("activeField").removeClass("idle");
	    }).blur(function(){
                $(this).removeClass("activeField").addClass("idle");
	    });
        });

