// code for navigation

$(document).ready(function() {
	$(".nav").ready(function() { // scan the page for any navigations
		$(".sub").toggle(); // hide the sub menus
		
		$(".sub").parent().mouseover(function(){
			$(this).children(".sub").toggle(); // show the sub menu
		});
		
		$(".sub").parent().mouseout(function(){
			$(this).children(".sub").toggle(); // hide the sub menu
		});
	});
});


// hover effect search button
$(document).ready(function() {	
	$(".submit-postcode").hover(function(){
			$(this).attr("src","img/magnify-search-hov.gif");
	}, function () {
			$(this).attr("src","img/magnify-search.gif");
	});
});
		


// treament centres

/*$(document).ready(function() {	
	$(".toggle-on, .toggle-off").click(function(){
		if ($(this).hasClass('toggle-on'))
		{
			$(this).siblings(".more-txt").show("fast");
			$(this).removeClass('toggle-on').addClass('toggle-off');
		}
		else
		{
			$(this).siblings(".more-txt").hide("fast");
			$(this).removeClass('toggle-off').addClass('toggle-on');
		}
	});
});*/

$(function(){
	 $(".toggle a").click(function(){
			$(this).parent().siblings(".more-txt").toggle("fast");
			$(this).toggleClass("on");
	  });
});



// types of treatment


$(function(){
	 $("ul.treatment-types a").click(function(){
			$(this).siblings("ul").toggle("fast");
			$(this).toggleClass("on");
	  });
});















