//<![CDATA[
    $(function() {
		$("li.ease > a").mouseover(function() {
		  $(this).animate({ paddingLeft: '25px' },{duration: 500,easing: 'easeOutElastic'});
		});
		$("li.ease > a").mouseout(function() {
		  $(this).animate({ paddingLeft: '0' }, 1000);
		});
/*
		function emilysHoverOver(){
			  $(this).find("a").first().animate({ paddingLeft: '25px' },{duration: 500,easing: 'easeOutElastic'});
		}
		function emilysHoverOut(){
			  $(this).find("a").first().animate({ paddingLeft: '-25px' }, 1000);
		}
		//Set custom configurations

		var config = {
		     sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)
		     interval: 100, // number = milliseconds for onMouseOver polling interval
		     over: emilysHoverOver, // function = onMouseOver callback (REQUIRED)
		     timeout: 500, // number = milliseconds delay before onMouseOut
		     out: emilysHoverOut // function = onMouseOut callback (REQUIRED)
		};
	    $("li.ease").hoverIntent(config); //Trigger Hover intent with custom configurations
*/
	    $("li.page > a").click(function() {
			var pageDiv = $(this).attr("href").replace("#", ""); //gets current clicked link
  			if($('#main img.mimg').attr('src') == $('#' + pageDiv + ' img.mimg').attr('src')){
				changeContent(pageDiv);
			}
			else {
                $('#main img.mimg, #main div.text, #main img.tagline').hide();
				doMotion(pageDiv);
			}
		});

    });
//]]>
