// Handles default values in text fields
$.each($("input[type='text']"), function() {
	//Collect the default value
	$.data(this, 'value', this.value);
	
	//Clear the value on focus, if it's still the default
	$(this).bind('focus',function() {				
		if (this.value == $.data(this, 'value')) this.value = ''; 
	});
	
	//If a value hasn't been set restore it to the default
	$(this).bind('blur',function() {
		if (this.value == '' ) this.value = $.data(this, 'value'); 
	});
	
});

//Launch Fancybox
$("dt.gallery-icon a").fancybox({
	'titleShow'	: false
});
