$(function() {
	
	
	// Animate menu
	$('.primary-links li a')
		.css( {fontSize: "11px"})
		.mouseover(function(){
			$(this).stop().animate({fontSize:"14px"}, {duration:500})
		})
		.mouseout(function(){
			$(this).stop().animate({fontSize:"11px"}, {duration:1100, complete:function(){
				$(this).css({fontSize:"11px"})
			}})
		})

				
	// Set the scroll to anchor
	anchor.init()
	
});

anchor = {
	init : function()  {
		$("a.anchorLink").click(function () {	
			elementClick = $(this).attr("href")
			destination = $(elementClick).offset().top;
			$("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination}, 1100 );
		  	return false;
		})
	}
}
