$(document).ready(function() {
	// Stuff to do as soon as the DOM is ready;
	
	// Add class to remove borders from linked images
	$(".content a > img").parent().addClass('linkedImage');
	$(".galleryAlbum a > img").parent().addClass('linkedImage');
	
	// Search box: on focus
	$('#search .inputHolder .inputText').focus(function() {
		// Add class to change the background
		$('#search .inputHolder').parent().addClass('inputActive');
		// Change font-color to blue
		$('#search .inputHolder .inputText').css('color','#003362');
	});
	
	// Search box: on leave
	$('#search .inputHolder .inputText').blur(function() {
		// Remove class to put back the original background
		$('#search .inputHolder').parent().removeClass('inputActive');
		// Change font-color to white so text is still readable
		$('#search .inputHolder .inputText').css('color','#FFF');
	})
	
	// firstChild and lastChild in subnavigation
	$('#subnavigation li').first().addClass('firstChild');
	$('#subnavigation li').last().addClass('lastChild');
	
	// Remove border from last comment for esthetics
	$('#blog .comment').last().css('border-bottom', 'none');
});

