Cache1 = new Image();
Cache1.src = "/media/images/minus_9025.jpg";

$(document).ready(function() {
	$("ul.subCats").hide();
		$("a.plus").click(function() 
		{
		$(this).siblings("ul.subCats").slideToggle("slow");
		if($(this).is('.Open')) {
			$(this).html('<img src="/media/images/plus_9024.jpg" alt="Plus Sign" />');
			$(this).removeClass("Open");
			$(this).parent(".catalogueWidget").removeClass("greyBack");
			return false;
		} else {
			$(this).html('<img src="/media/images/minus_9025.jpg" alt="Minus Sign" />');
			$(this).addClass("Open");
			$(this).parent(".catalogueWidget").addClass("greyBack");
			return false;
		}
		return false;
	});
	var config = {    
	     sensitivity: 2, 
	     interval: 100,  
	     over: catOpen,
	     timeout: 500, 
	     out: catClose
	};
	function catOpen () {
		$(this).children("ul.subCats").slideDown("slow");
		$(this).children('a.plus').html('<img src="/media/images/minus_9025.jpg" alt="Minus Sign" />');
		$(this).children('a.plus').addClass("Open");
		$(this).addClass("greyBack");
		return false;
	};
	function catClose (){
		$(this).children('a.plus').html('<img src="/media/images/plus_9024.jpg" alt="Plus Sign" />');
		$(this).children('a.plus').removeClass("Open");
		$(this).removeClass("greyBack");
		$(this).children("ul.subCats").slideUp("slow");
		return false;
	};
	$("div.catalogueWidget").hoverIntent( config )
	
	
	
});