
$(document).ready(function() {
	$(".datepicker").datepicker();
	$("textarea.editor").ckeditor();
	
	// Get a reference to the container.
	var container = $( ".login_main" );
	
	// Bind the link to toggle the slide.
	function linkClick(event)
	{
		// Prevent the default event.
		event.preventDefault();
		// Toggle the slide based on its current
		// visibility.
		if(container.is( ":visible" ))
		{
			// Hide - slide up.
			container.slideUp( 500 );
		}
		else
		{
			// Show - slide down.
			container.slideDown( 500 );
		}
		
		return false;
	}
	
	$(".login_link").click(linkClick);
	$(".login_link2").click(linkClick);
	
});

