/*
====================================================================== 
Version:       1.0													
Last Updated:	May 17, 2010
Copyright:	   (c) 2010 Joe Nyaggah. All rights reserved.				
====================================================================== 
*/
jQuery(document).ready(function($) {
								
	//hide these elements on dom ready
	$('form.siteSearch, .moreWork, .refs, ').hide();
	
	//enlarges textarea when you click (focus)
	//and reduces it when you leave (blur)
	//just a lil extra touch of sexiness
	$('textarea').focus(function(){ 
		$(this).animate({ height:"150px"}, 500); // enlarge height 
	}).blur(function(){ 
		$(this).animate({ height:"50px"}, 500); // reduce height 
	});
	
	//slide toggles the search
	$('a#showSearch').click(function() {
		$('form.siteSearch').slideToggle(200);
		return false;
	});
	
	//reveal additional work experience list
	$('a#reveal-work').click(function() {
		$('.moreWork').slideToggle(400);							   
	});
	
	//reveal references
	$('a#reveal-refs').click(function() {
		$('.refs').slideToggle(400);							   
	});
	
	//colorbox divs
	$(".enlarge").colorbox();
	
	//colorbox in portfolio pages
	//links on same page with the 
	//rel value of "portfolio" 
	//will be viewed as a set.
	$("a[rel='portfolio']").colorbox();
	
	//colorbox: show the tell-a-friend form
	//on the resume page
	$(".showBuddy").colorbox();
});//end
