var uname = false;
var email = false;

/* jQuery Function */
$(document).ready(function() {
	$('ul#nav li:last').addClass('last');
	
	$('#header ul#nav li a').each(function() {
		//alert('hit');
		var ai = $(this).attr('id');
		
		if (ai == '') { 
			var a = $(this).attr('href');
			//alert(a);
			
			c = a.split('/');
			id = c[c.length-2];
			//alert(id);
			$(this).attr('id',id);
			$(this).attr('title',id);
		}
	});
	
	$('.intro p:first').css('padding-top','1em');
	$('.intro p:last').css('padding-bottom','0em');
	$('.intro p:last').css('margin-bottom','0em');
	
	$('input#uname').focus(function(){
		if(!uname){
			$(this).attr('value','');
			uname = true;
		}
	});	
	
	$('input#email').focus(function(){
		if(!email){
			$(this).attr('value','');
			email = true;
		}
	});	
});
