/************************************************************
 ** Clears a field
 ** By: 	Joshua Sowin (fireandknowledge.org)
 ** HTML: <input type="text" value="Search" name="search"
 **			id="search" size="25" 
 ** 		onFocus="clearInput('search', 'Search')" 
 ** 		onBlur="clearInput('search', 'Search')" />
 ***********************************************************/
function clearInput(field_id, term_to_clear) {
	
	// Clear input if it matches default value
	if (document.getElementById(field_id).value == term_to_clear ) {
		document.getElementById(field_id).value = '';
	}
	
	// If the value is blank, then put back term
	else if (document.getElementById(field_id).value == '' ) {
		document.getElementById(field_id).value = term_to_clear;
	}
} // end clearSearch()
          // This is a very simple demo that shows how a range of elements can
            // be paginated.


$(document).ready(function() {
	
	$(".photos ul li a").click(function() {
		$(".mainImage img").attr('src', $(this).attr('href'));
		$(".mainImage h2").text($(this).find("img").attr('title'));
		$(".mainImage h3").text($(this).find("img").attr('alt'));
		$(".mainImage p").text($(this).find("img").attr('rel'));
		return(false);
	});
	
	$("a#showbizBioLink").click(function() {
		$("#showbizBio").show();
		$("#humbleBeginnings").hide();
		return(false);
	});
	
	$("a#humbleBeginningsLink").click(function() {
		$("#showbizBio").hide();
		$("#humbleBeginnings").show();
		return(false);
	});
	
		jQuery(".photos ul").jcarousel(); 
});
