$(document).ready(function()
{
	$('#search').focus(function() {
	
		//Check for change from deault value
		if(this.value == this.defaultValue) {
			this.select();
		}
	});
	
	$('#search').blur(function() {
	
		//Check for empty string
		if($.trim(this.value) == "") {
			this.value = "Search";
		}
	});
	
	$('#timeline-table a').mouseover(function() {
	
		//Remove highlight from all other timeline nodes
		$('#timeline-table a').removeClass('highlight');
		//Add highlight to current timeline node
		$(this).addClass('highlight');
		$('.timeline-picture').hide();
		$('.timeline-description').hide();
		$('#timeline-picture' + this.id.replace('timeline', '')).show();
		$('#timeline-description' + this.id.replace('timeline', '')).show();
	});
	
	$('#our-people-scroll-frame ul li img').mouseover(function() {
	
		$(this).attr("src", $(this).attr("src").replace(".jpg", "-over.jpg")).show();
	
	});
	
	$('#our-people-scroll-frame ul li img').mouseout(function() {
	
		$(this).attr("src", $(this).attr("src").replace("-over.jpg", ".jpg")).show();
	
	});
	
});
