jQuery(function($) {
	
	$('.blink')
		.focus(function(){
			if( $(this).attr('value') == $(this).attr('title') ) {
				$(this).attr({ 'value' : '' });
			}
		})
		.blur(function(){
			if( $(this).attr('value') ==  '' ) {
				$(this).attr({ 'value' : $(this).attr('title') });
			}
		});

		
		
	$('#welcomecontent div').hide(); // Hide all divs

	$('#welcomecontent div:first').show(); // Show the first div
	$('#welcomenav li:first a').addClass('active'); // Set the class of the first link to active
	

	$('#welcomenav li a').click(function(){ //When any link is clicked

		$('#welcomenav li a').removeClass('active'); // Remove active class from all links
		$(this).addClass('active'); //Set clicked link class to active

		var currentTab = $(this).attr('href'); // Set variable currentTab to value of href attribute of clicked link
		$('#welcomecontent div').hide(); // Hide all divs
		$(currentTab).show(); // Show div with id equal to variable currentTab
		return false;
	});
		
});

