/**
 * NVS_CORE 
 * 
 * @author		Sebastiaan Smid <sebastiaan@netvlies.nl>
 *
 * @category		jQuery Plugin
 * @package			Netvlies CORE
 * @version			0.1
 * @requires		jquery-1.3.1.min.js
 *
 */

	 jQuery(document).ready(function($){   
									 
		$("input[value!=][type=text]").focus(function () { 
			if(!$(this).attr("startvalue")) {  
				$(this).attr("startvalue", $(this).val());
			} 
			if($(this).val() == $(this).attr("startvalue")) {
				$(this).val('');
			} 
		}).blur(function () { 
			if($(this).val() == '') {
				$(this).val($(this).attr("startvalue"));
			}
		});
		
		// Show the print button when the user can print
		if(window.print && $('#print-btn').length > 0) { $('#print-btn').show();$('#print-btn').click(function() { window.print();} ); }
	});