// JavaScript Document
// Copyright (c) 2011 Emily Ridge.

$(document).ready(function()
{
	if($currentPage=='work')
	{
		$('#slider').css('left', '0px');
	}
	else if($currentPage=='about')
	{
		$('#slider').css('left', '82px');
	}
	else if($currentPage=='contact')
	{
		$('#slider').css('left', '169px');
	}
	
	// WORK PAGE
	  
	$('#work').mouseenter(function()
	{
	  //$('#slider').css('left', '9px');
	  $('#slider').animate({ left: "0px" }, 400);
	  
	});
	
	$('#work').click(function () { 
      $('#slider').css('left', '0px');
    });

	// ABOUT PAGE
  
	$('#about').mouseenter(function()
	{
	  $('#slider').animate({ left: "82px" }, 400);
	});
	
	$('#about').click(function () { 
      $('#slider').css('left', '82px');
    });
  
  $('#contact').mouseenter(function()
  {
	//$('#slider').css('left', '179px');
	$('#slider').animate({ left: "169px" }, 400);
  });  
  
  $('#nav').mouseleave(function()
  {
	if($currentPage=='work')
	{
		$('#slider').animate({ left: "0px" }, 400);
	}
	else if($currentPage=='about')
	{
		$('#slider').animate({ left: "82px" }, 400);
	}
	else if($currentPage=='contact')
	{
		$('#slider').animate({ left: "169px" }, 400);
	}
	
  });
  

		// set effect from select menu value
		$( "" ).mouseenter(function() {
			runEffect();
			return false;
		});
		
		$('.fade-in').mouseenter(function(e) {
       		$(this).children('a').children('span').fadeIn(200);
		
			}).mouseleave(function(e) {
       		$(this).children('a').children('span').fadeOut(600);
    	});
		
		
		
		//Changing the 'About Me' text 
		
		//$("#about-info").mouseenter(function() {
			//$("h1").toggle();
	//	});

});
