$(function(){
		

				$(".list small").hide();

		
		$(".list").hover(function(){
		$("small", this).show();
		}, function() {
		$("small", this).hide();

		});
		
		
		$('#contact_enroll li input').focus( function(){
		$(this).parent().css({'background-color' : '#FFF7C0'})
		
		});
		
		$('#contact_enroll li input').blur( function(){
		$(this).parent().css({'background' : 'none'})
		
		});
		
		
		$('#contact_enroll li textarea').focus( function(){
		$(this).parent().css({'background-color' : '#FFF7C0'})
		
		});
		
		$('#contact_enroll li textarea').blur( function(){
		$(this).parent().css({'background' : 'none'})
		
		});
		
		
		
	
		
    $('.fadein img:gt(0)').hide();
    setInterval(function(){
      $('.fadein :first-child').fadeOut()
         .next('img').fadeIn()
         .end().appendTo('.fadein');}, 
      5000);
      
      
  
     
     var $el, leftPos, newWidth,
        $mainNav = $("#example-one")
        
        
        
        
    $mainNav.append("<li id='magic-line'></li>");
    
    var $magicLine = $("#magic-line");
    
    $magicLine
        .width($(".current_page_item").width())
        .css("left", $(".current_page_item a").position().left)
        .data("origLeft", $magicLine.position().left)
        .data("origWidth", $magicLine.width());
        
                
    $("#example-one li").find("a").hover(function() {
        $el = $(this);
        leftPos = $el.position().left;
        newWidth = $el.parent().width();
        
        $magicLine.stop().animate({
            left: leftPos,
            width: newWidth
        });
    }, function() {
        $magicLine.stop().animate({
            left: $magicLine.data("origLeft"),
            width: $magicLine.data("origWidth")
        });    
    });
  



 
});
