$(function() {
		$( ".accordion" ).accordion({
			event: "mouseover"
		});

	
	$('input[title!=""]').hint();
	$('textarea[title!=""]').hint();
	
	
	$('#Forgotten').click(function () {
			$('.password').slideDown('slow');					 
								 
	});
					   
	$('#ForgottenClose').click(function () {
								 
			$('.password').slideUp('slow');		 
								 
	});
	
	});
	
	// JavaScript Document

/**
* @author Remy Sharp
* @url http://remysharp.com/2007/01/25/jquery-tutorial-text-box-hints/
*/



(function ($) {
	$.fn.hint = function (blurClass) {	
	
	
		if (!blurClass) { 
			blurClass = 'blur';
		}			
		return this.each(function () {	
								   		   
			// get jQuery version of 'this'
			var $input = $(this),				
			// capture the rest of the variable to allow for reuse
			title = $input.attr('title'),		
			$form = $(this.form),
			$win = $(window);
			//console.log('title=' + title);
			$(this).val('');
			function remove() {
				if( $(this).val() == title) {
					$(this).val('');
				};				
				$input.addClass(blurClass);				
			}	
			
			// only apply logic if the element has the attribute
			if (title) {
			
				// on blur, set value to title attr if text is blank
				$input.blur(function () {
					$input.removeClass(blurClass);					
					if( $(this).val() == '') {						
						$(this).val(title);					
					}					
				}).focus(remove).blur(); // now change all inputs to title			
			};
		});
	};
})(jQuery);
