<!--

/* JQUERY FUNCTIONS
   dependencies: jquery
************************/

/* EMAIL-A-FRIEND TOGGLE */
$(document).ready(function()
{
	//hide the all of the element with id #emailFriendCollapsable
	$("#emailFriendCollapsable").hide();
	//toggle the form
	$("#emailFriendToggler a").click(function()
	{
		// expand/collapse content
		$(this).parent().parent().children("#emailFriendCollapsable").slideToggle(600);
		
		return false;
	});
	
	$('.searchform .go').click(function(){
		$(this).closest('.searchform').submit();
	});
	
	// Removes input field default text on focus, replaces it on blur
	$('.searchform input').focus(function() { 
		if (this.value == this.defaultValue){  
			this.value = '';
		}  
		if(this.value != this.defaultValue){  
			this.select();  
		}
		$(this).removeClass('default'); 
	});  
	$('.searchform input').blur(function() {
		if ($.trim(this.value) == ''){ 
			$(this).addClass('default'); 
			this.value = (this.defaultValue ? this.defaultValue : ''); 
		}  
	});
	
});
	
-->
