$(document).ready(function() {
	
	// nav dropdown for IE6
	
	$('header nav ul li.primary').mouseover(function() {
		$(this).find('ul li').addClass('hover');
	});
	$('header nav ul li.primary').mouseout(function() {
		$(this).find('ul li').removeClass('hover');
	});
	
	
	// font re-size
	
	if($.cookie('TEXT_SIZE')) {
		$('body').addClass($.cookie('TEXT_SIZE')); 
	}
	$('.resizer a').click(function() {
		var textSize = $(this).parent().attr('class');
		$('body').removeClass('small medium large').addClass(textSize);
		$.cookie('TEXT_SIZE',textSize, { path: '/', expires: 10000 });
		return false;
	});

	//tickbox hover
	$('#booking .tooltip').removeClass('focus');
		$('.tooltip').hover(function () {
		$('#booking .tooltip').addClass('focus');
		},
		function() {
		$('#booking .tooltip').removeClass('focus');
	});

	// show hide patient's name
	$('.pPatient').hide();
	$("#bookingFor").click(function () {
		if ($('#bookingFor:checked').val() !== undefined) {
			$(".pPatient").slideDown();
		} else {
			$(".pPatient").slideUp();
		}
	}); 	
});
