// JavaScript Document

$(document).ready(function(){
	
	prepareInputFields();

});

function prepareInputFields() {
	$('input[type=text]:not(.no-auto-clear)').each(function(){
		var startText = $(this).val();
		$(this).bind('focus', function(){

			if (!($(this).hasClass("not"))){
				startText = $(this).val();

				$(this).val('');
			}
		});

		$(this).bind('blur', function(){

			if (!($(this).hasClass("not"))){
				if($(this).val() == '') {
					$(this).val( startText );
				}
			}
		});
	});
}