// for simplicity this method is currently used in preference to the Search class
	function toggleSnippets(el, on, off) 
	{
		var snippetsVisibilty = on;
		var e=document.getElementsByTagName("div");
		
		for(var i=0;i<e.length;i++)
		{
			if(e[i].id != null && e[i].id.indexOf("snippet_") >= 0)
			{
				var current = (e[i].style.display == "none") ? "block" : "none";
				snippetsVisibilty = (e[i].style.display == "none") ? off : on;
				e[i].style.display = current;
			}
		}
		el.innerHTML = snippetsVisibilty;
	}
	
Search = {

	toggleSnippets : function(el, on, off)
	{
		if(!this.snippets)
			this.snippets = $("#results .text");
		
		jQuery.fxQueues.clear("first");
		
		if(Cookies.get("snippets") != null) 
		{
			this.snippets.each(function()
			{
				$(this).slideDown({
					speed: 80,
					queue: "first",
					opacity: 0
				});

			});
			
			el.innerHTML = off;
		
			Cookies.clear("snippets");
		}
		else 
		{
			this.snippets.each(function()
			{
				$(this).slideUp({
					speed: 80,
					queue: "first",
					wait: 30
				});

			});
			
			el.innerHTML = on;
			
			Cookies.set("snippets", 1, 42)
		}
		
		return false;
		
	}

}


/*$(document).ready(function()
{
	$("#results .text").each(function()
	{
		$(this).slideUp({
			speed: 150,
			queue: "first",
			wait: 50
		});

	});
	
	$("#results .text").each(function()
	{
		$(this).slideDown({
			speed: 150,
			queue: "first",
			wait: 50
		});

	});

});*/