	$(function() {
	    
	    
	    
	    // Dropdown Nav
	    
	    $('ul.dropdown li').hover(function(){
	    
	        $(this).addClass('hover');
	        $('ul:first',this).css('visibility', 'visible');
	    
	    }, function(){
	    
	        $(this).removeClass('hover');
	        $('ul:first',this).css('visibility', 'hidden');
	    
	    });
	
	
		// Job fair shrinker
		
		$('#job_fair').delay(4000).animate({ height: '94px'}, 1000 ).hover( function() {
			$(this).animate({ height: '200px'}, { duration: 500, queue: false } ).find('span').animate({'padding-right' : '15px'}, { duration: 100, queue: false } );
		}, function() {
			$(this).animate({ height: '94px'}, { duration: 500, queue: false } ).find('span').animate({'padding-right' : '6px'}, { duration: 100, queue: false } );
		});
		
		// profile pages animation
	
		var i = 0
		var n = $('.sml_profile').length;
		
		function showbox() {
			if(i <= n){ 
			$('.sml_profile').eq(i).fadeIn(200, function(){ i++; showbox(); });
            }        
        } showbox();
		
		// Landing page grid animtion
		
		var aniSpeed = 500
		var fadeSpeed = 2000
	
	
		$('#cell_1').animate({'width' : '642px', 'height' : '310px'}, {duration: aniSpeed, complete: function() {
			$(this).children().show().find('a').css("display", "block");
			$('#cell_2').delay(0).animate({'width' : '296px', 'height' : '150px'}, {duration: aniSpeed, complete: function() {
				$(this).children().fadeIn(fadeSpeed).css("display", "block");
				$('#cell_3').animate({'width' : '296px', 'height' : '150px'}, {duration: aniSpeed, complete: function() {
					$(this).children().fadeIn(fadeSpeed).css("display", "block");
					$('#cell_4').animate({'width' : '445px', 'height' : '277px'}, {duration: aniSpeed, complete: function() {
						$(this).children().fadeIn(fadeSpeed).css("display", "block");
						$('#cell_5').animate({'width' : '225px', 'height' : '279px', 'top' : '520px'}, {duration: aniSpeed, complete: function() {
							$(this).children().fadeIn(fadeSpeed).css("display", "block");
							$('#cell_6').animate({'width' : '267px', 'height' : '279px'}, {duration: aniSpeed, complete: function() {
								$(this).children().fadeIn(fadeSpeed).css("display", "block");
								$('#cell_7').animate({'width' : '220px', 'height' : '119px', 'top' : '443px'}, {duration: aniSpeed, complete: function() {
									$(this).children().fadeIn(fadeSpeed).css("display", "block");
									$('#cell_8').delay(500).children().fadeIn(fadeSpeed).css("display", "block");
								 	
								} });
							} });
						} });
					} });
				} });
			} });
		} });
		

		$('.grid_cell a, .job_fair, .video-title').hover( 
			function() {
				$(this).find('span').animate({'padding-right' : '0px'}, { duration: 100, queue: false } );
			},
			function() {
				$(this).find('span').animate({'padding-right' : '0px'}, { duration: 100, queue: false } );
			}
		);
		
		$('a.box_link').hover( 
			function() {
				$(this).animate({'padding-right' : '0px'}, { duration: 100, queue: false } );
			},
			function() {
				$(this).animate({'padding-right' : '0px'}, { duration: 100, queue: false } );
			}
		);
		
		
		// TABS //
		
		//When page loads...
		$(".tab_content").hide(); //Hide all content
		$("ul.tabs li:first").addClass("active").show(); //Activate first tab
		$(".tab_content:first").show(); //Show first tab content
	
		//On Click Event
		$("ul.tabs li").click(function() {
	
			$("ul.tabs li").removeClass("active"); //Remove any "active" class
			$(this).addClass("active"); //Add "active" class to selected tab
			$(".tab_content").hide(); //Hide all tab content
	
			var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
			$(activeTab).fadeIn(); //Fade in the active ID content
			return false;
		});
		
		
		// Q and A pages
		
		$('.faq dd').hide();
		$('.faq dt').click( function() {
			$(this).next('dd').fadeToggle('fast');
		});
		
		// Taleo buttons
		
		
		$(':submit').addClass('taleo_button').hover( 
			function() {
				$(this).addClass('input_hov');
			},
			function() {
				$(this).removeClass('input_hov');
			}
		);
	
	});
