$(document).ready(function() {
	var search = document.getElementById("search-box");
	if (search)
	{
	
	       
	       if ($('#cat').val() != "" || $('#cheese').val() != "") {
			//$('#search-box').show('fast');
	       } else {	
		    // hides the slickbox as soon as the DOM is ready
		      //$('#search-box').hide();
		     // shows the slickbox on clicking the noted link  
		      $('#search-show').click(function() {
			$('#search-box').show('slow');
			return false;
		      });
		     // hides the slickbox on clicking the noted link  
		      $('#search-hide').click(function() {
			$('#search-box').hide('fast');
			return false;
		      });

		     // toggles the slickbox on clicking the noted link  
		      $('#search-toggle').click(function() {
			$('#search-box').toggle(400);
			return false;
		      });
	      
	      }
       }

});

