// BUILT ON TOP OF JQUERY ////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////
/*************************************************************************************************/

$(document).ready(function() {
	
	// CONTACT SHEETS /////////////////////////////////////////////////////
	
	// Add click listener to checkboxes
	$('.imageSet input').click(function()
		{
			$('.imageSet #image'+this.id+' a').toggleClass('selected');
		}
	);
	
	// Add click listener to textareas
	$('.imageSet textarea').click(function()
		{
			this.select();
		}
	);
	
	// BASKET  ////////////////////////////////////////////////////////////
	
	// Add hover to basket rows (done with css tr:hover, but this is for IE)
	// disabled as doesn't appear to work in IE
	/*$(
	 function()
	 {
	  $(".basket tr").hover(
	   function()
	   {
		$(this).addClass("highlight");
		alert('bgfgf');
	   },
	   function()
	   {
		$(this).removeClass("highlight");
	   }
	  )
	 }
	)*/

	
	// CALENDAR ///////////////////////////////////////////////////////////
	
	// init tooltip
	tooltip();
	
	// disable title attribute of calendar table cells
	$('.calendarWrapper_JCP td').hover(function()
		{
		this.title = "";
		}
	);
	
	
	
	// REQUEST REMINDER /////////////////////////////////////////////////////
	
	// Add click listener to request password reminder link
	$('.requestReminderLink').click(function()
		{
			$('.requestReminderLink').toggle();
			$('.requestReminderForm').toggle();
		}
	);

					   
});