// COMMON FUNCTIONALITIES

$(document).ready(function() {
	
	// General Page Functions
	
	// Insert span tags in the navigation of pages other than the index for css page markers
	$('body:not([class=index]) #header .primaryNav a').append('<span></span>');
	
	// Function to set example texts in forms (focus and blur of texts)
	$('input[type=text],textarea').example(function() {
		return $(this).attr('title');
	}, {className: 'blank'});
	
	// Fade any error labels when correcting inputs and selects
    $('input[type=text],select,textarea').focus(function() {
    	$(this).parent().children('.error').css('opacity','0.5');
    });
	
});
