// show the thumbnails if they've got JS enabled

function show_thumbs(category, section)
{
	var html = '';
	
	if (category == 'jujitsu-grading-pictures')
	{
		if (section == 'brown-belt')
		{
			html += "<h2>Robs Brown Belt Grading - 5th August 2002 (Sheffield, UK)</h2>";

			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/1.jpg', 640, 480);\" title=\"Image 1\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/1.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/2.jpg', 640, 480);\" title=\"Image 2\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/2.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/3.jpg', 640, 480);\" title=\"Image 3\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/3.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/4.jpg', 640, 480);\" title=\"Image 4\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/4.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/5.jpg', 640, 480);\" title=\"Image 5\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/5.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/6.jpg', 640, 480);\" title=\"Image 6\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/6.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/7.jpg', 640, 480);\" title=\"Image 7\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/7.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/8.jpg', 640, 480);\" title=\"Image 8\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/8.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/9.jpg', 640, 480);\" title=\"Image 9\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/9.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/10.jpg', 640, 480);\" title=\"Image 10\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/10.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/11.jpg', 640, 480);\" title=\"Image 11\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/11.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/12.jpg', 640, 480);\" title=\"Image 12\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/12.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/13.jpg', 640, 480);\" title=\"Image 13\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/13.gif' width='150' height='113' /></a>";
			html += "<a class='back-to-top' href='#top'>back to top</a>";
		}
		else if (section == 'blue-belt')
		{
			html += "<h2>Robs Blue Belt Grading - 3rd March 2001 (Sheffield, UK)</h2>";

			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/1.jpg', 640, 480);\" title=\"Image 1\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/1.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/2.jpg', 640, 480);\" title=\"Image 2\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/2.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/3.jpg', 640, 480);\" title=\"Image 3\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/3.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/4.jpg', 640, 480);\" title=\"Image 4\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/4.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/5.jpg', 640, 480);\" title=\"Image 5\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/5.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/6.jpg', 640, 480);\" title=\"Image 6\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/6.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/7.jpg', 640, 480);\" title=\"Image 7\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/7.gif' width='150' height='113' /></a>";
			html += "<a class='back-to-top' href='#top'>back to top</a>";
		}
	}
	else if (category == 'brazilian-jiu-jitsu-seminar-pictures')
	{
		if (section == 'marcio-feitosa-2002-11-10')
		{
			html += "<h2>Marcio Feitosa - 10th November 2002 (Sheffield, UK)</h2>";

			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/01.jpg', 640, 480);\" title=\"Image 1\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/01.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/02.jpg', 640, 480);\" title=\"Image 2\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/02.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/03.jpg', 640, 480);\" title=\"Image 3\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/03.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/04.jpg', 640, 480);\" title=\"Image 4\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/04.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/05.jpg', 640, 480);\" title=\"Image 5\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/05.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/06.jpg', 640, 480);\" title=\"Image 6\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/06.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/07.jpg', 640, 480);\" title=\"Image 7\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/07.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/08.jpg', 640, 480);\" title=\"Image 8\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/08.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/09.jpg', 640, 480);\" title=\"Image 9\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/09.gif' width='150' height='113' /></a>";
			html += "<a class='back-to-top' href='#top'>back to top</a>";
		}
		else if (section == 'rob-2001-12-23')
		{
			html += "<h2>Rob Brown - 23rd Dec 2001 (Cleethorpes/Grimsby, UK)</h2>";

			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/01.jpg', 640, 480);\" title=\"Image 1\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/01.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/02.jpg', 640, 480);\" title=\"Image 2\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/02.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/03.jpg', 640, 480);\" title=\"Image 3\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/03.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/04.jpg', 640, 480);\" title=\"Image 4\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/04.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/05.jpg', 640, 480);\" title=\"Image 5\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/05.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/06.jpg', 640, 480);\" title=\"Image 6\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/06.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/07.jpg', 640, 480);\" title=\"Image 7\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/07.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/08.jpg', 640, 480);\" title=\"Image 8\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/08.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/09.jpg', 640, 480);\" title=\"Image 9\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/09.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/10.jpg', 360, 480);\" title=\"Image 10\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/10.gif' width='85' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/11.jpg', 391, 480);\" title=\"Image 11\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/11.gif' width='92' height='113' /></a>";
			html += "<a class='back-to-top' href='#top'>back to top</a>";
		}
		else if (section == 'royce-2001-08-30')
		{
			html += "<h2>Royce Gracie - 30th July 2001 (Sheffield, UK)</h2>";

			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/01.jpg', 640, 480);\" title=\"Image 1\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/01.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/02.jpg', 640, 480);\" title=\"Image 2\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/02.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/03.jpg', 640, 480);\" title=\"Image 3\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/03.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/04.jpg', 640, 480);\" title=\"Image 4\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/04.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/05.jpg', 640, 480);\" title=\"Image 5\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/05.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/06.jpg', 640, 480);\" title=\"Image 6\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/06.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/07.jpg', 640, 480);\" title=\"Image 7\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/07.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/08.jpg', 640, 480);\" title=\"Image 8\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/08.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/09.jpg', 640, 480);\" title=\"Image 9\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/09.gif' width='150' height='113' /></a>";
			html += "<a class='back-to-top' href='#top'>back to top</a>";
		}
	}
	else if (category == 'martial-arts-tournament-pictures')
	{
		if (section == 'gracie_invitational-2005-04-23')
		{
			html += "<h2>Gracie Invitational - 23rd April 2005 (Birmingham, UK)</h2>";

			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/01.jpg', 640, 480);\" title=\"Image 1\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/01.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/02.jpg', 640, 480);\" title=\"Image 2\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/02.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/03.jpg', 640, 480);\" title=\"Image 3\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/03.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/04.jpg', 640, 480);\" title=\"Image 4\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/04.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/05.jpg', 640, 480);\" title=\"Image 5\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/05.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/06.jpg', 640, 480);\" title=\"Image 6\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/06.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/07.jpg', 640, 480);\" title=\"Image 7\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/07.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/08.jpg', 640, 480);\" title=\"Image 8\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/08.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/09.jpg', 640, 480);\" title=\"Image 9\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/09.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/10.jpg', 640, 480);\" title=\"Image 10\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/10.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/11.jpg', 640, 480);\" title=\"Image 11\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/11.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/12.jpg', 640, 480);\" title=\"Image 12\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/12.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/13.jpg', 640, 480);\" title=\"Image 13\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/13.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/14.jpg', 640, 480);\" title=\"Image 14\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/14.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/15.jpg', 640, 480);\" title=\"Image 15\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/15.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/16.jpg', 640, 480);\" title=\"Image 16\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/16.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/17.jpg', 640, 480);\" title=\"Image 17\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/17.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/18.jpg', 640, 480);\" title=\"Image 18\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/18.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/19.jpg', 640, 480);\" title=\"Image 19\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/19.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/20.jpg', 640, 480);\" title=\"Image 20\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/20.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/21.jpg', 640, 480);\" title=\"Image 21\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/21.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/22.jpg', 640, 480);\" title=\"Image 22\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/22.gif' width='150' height='113' /></a>";
			html += "<a class='back-to-top' href='#top'>back to top</a>";
		}
		else if (section == 'yorkshire-fightnight-2003-04-12')
		{
			html += "<h2>Yorkshire Fightnight - 12th April 2003 (Doncaster, UK)</h2>";

			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/01.jpg', 640, 480);\" title=\"Image 1\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/01.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/02.jpg', 640, 480);\" title=\"Image 2\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/02.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/03.jpg', 640, 480);\" title=\"Image 3\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/03.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/04.jpg', 446, 480);\" title=\"Image 4\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/04.gif' width='105' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/05.jpg', 346, 480);\" title=\"Image 5\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/05.gif' width='81' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/06.jpg', 296, 480);\" title=\"Image 6\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/06.gif' width='70' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/07.jpg', 268, 480);\" title=\"Image 7\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/07.gif' width='63' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/08.jpg', 314, 480);\" title=\"Image 8\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/08.gif' width='74' height='113' /></a>";
			html += "<a class='back-to-top' href='#top'>back to top</a>";
		}
		else if (section == 'ksbo-2002-10-19')
		{
			html += "<h2>KSBO Ground-Fighting - 19th October 2002 (Nottingham, UK)</h2>";

			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/01.jpg', 640, 480);\" title=\"Image 1\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/01.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/02.jpg', 640, 480);\" title=\"Image 2\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/02.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/03.jpg', 640, 480);\" title=\"Image 3\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/03.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/04.jpg', 640, 480);\" title=\"Image 4\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/04.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/05.jpg', 640, 480);\" title=\"Image 5\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/05.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/06.jpg', 640, 480);\" title=\"Image 6\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/06.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/07.jpg', 640, 480);\" title=\"Image 7\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/07.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/08.jpg', 640, 480);\" title=\"Image 8\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/08.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/09.jpg', 640, 480);\" title=\"Image 9\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/09.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/10.jpg', 640, 480);\" title=\"Image 10\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/10.gif' width='150' height='113' /></a>";
			html += "<a class='back-to-top' href='#top'>back to top</a>";
		}
		else if (section == 'combat-open-2002-10-06')
		{
			html += "<h2>Combat Open Grappling Championships - 6th October 2002 (Worcester, UK)</h2>";

			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/1.jpg', 640, 480);\" title=\"Image 1\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/1.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/2.jpg', 640, 480);\" title=\"Image 2\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/2.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/3.jpg', 640, 480);\" title=\"Image 3\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/3.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/4.jpg', 640, 480);\" title=\"Image 4\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/4.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/5.jpg', 640, 480);\" title=\"Image 5\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/5.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/6.jpg', 640, 480);\" title=\"Image 6\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/6.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/7.jpg', 640, 480);\" title=\"Image 7\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/7.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/8.jpg', 640, 480);\" title=\"Image 8\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/8.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/9.jpg', 640, 480);\" title=\"Image 9\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/9.gif' width='150' height='113' /></a>";
			html += "<a class='back-to-top' href='#top'>back to top</a>";
		}
		else if (section == 'dewsbury-2002-09-15')
		{
			html += "<h2>Great Britain Ground-Fighting Tournament - 15th September 2002 (Dewsbury, UK)</h2>";

			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/1.jpg', 640, 480);\" title=\"Image 1\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/1.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/2.jpg', 640, 480);\" title=\"Image 2\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/2.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/3.jpg', 640, 480);\" title=\"Image 3\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/3.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/4.jpg', 640, 480);\" title=\"Image 4\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/4.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/5.jpg', 640, 480);\" title=\"Image 5\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/5.gif' width='150' height='113' /></a>";
			html += "<a class='back-to-top' href='#top'>back to top</a>";
		}
		else if (section == 'dewsbury-2001-04-29')
		{
			html += "<h2>Great Britain Ground-Fighting Tournament - 29th April 2001 (Dewsbury, UK)</h2>";

			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/01.jpg', 640, 480);\" title=\"Image 1\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/01.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/02.jpg', 640, 480);\" title=\"Image 2\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/02.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/03.jpg', 640, 480);\" title=\"Image 3\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/03.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/04.jpg', 640, 480);\" title=\"Image 4\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/04.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/05.jpg', 640, 480);\" title=\"Image 5\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/05.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/06.jpg', 640, 480);\" title=\"Image 6\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/06.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/07.jpg', 640, 480);\" title=\"Image 7\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/07.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/08.jpg', 640, 480);\" title=\"Image 8\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/08.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/09.jpg', 640, 480);\" title=\"Image 9\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/09.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/10.jpg', 640, 480);\" title=\"Image 10\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/10.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/11.jpg', 640, 480);\" title=\"Image 11\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/11.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/12.jpg', 640, 480);\" title=\"Image 12\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/12.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/13.jpg', 640, 480);\" title=\"Image 13\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/13.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/14.jpg', 640, 480);\" title=\"Image 14\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/14.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/15.jpg', 640, 480);\" title=\"Image 15\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/15.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/16.jpg', 640, 480);\" title=\"Image 16\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/16.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/17.jpg', 640, 480);\" title=\"Image 17\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/17.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/18.jpg', 640, 480);\" title=\"Image 18\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/18.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/19.jpg', 640, 480);\" title=\"Image 19\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/19.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/20.jpg', 640, 480);\" title=\"Image 20\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/20.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/21.jpg', 640, 480);\" title=\"Image 21\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/21.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/22.jpg', 640, 480);\" title=\"Image 22\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/22.gif' width='150' height='113' /></a>";
			html += "<a class='back-to-top' href='#top'>back to top</a>";
		}
	}
	else if (category == 'other-jujitsu-pictures')
	{
		if (section == 'staines-mushin-bushikan-2006-2007')
		{
			html += "<h2>Staines Mushin Bushikan (Staines, UK)</h2>";

			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/01.jpg', 640, 480);\" title=\"Image 1\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/01.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/02.jpg', 640, 480);\" title=\"Image 2\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/02.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/03.jpg', 320, 480);\" title=\"Image 3\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/03.gif' width='75' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/04.jpg', 320, 480);\" title=\"Image 4\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/04.gif' width='75' height='113' /></a>";
			html += "<a class='back-to-top' href='#top'>back to top</a>";
		}
		else if (section == 'random')
		{
			html += "<h2>Random Jujitsu Pictures (Sheffield, UK)</h2>";

			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/01.jpg', 640, 480);\" title=\"Image 1\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/01.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/02.jpg', 640, 480);\" title=\"Image 2\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/02.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/03.jpg', 640, 480);\" title=\"Image 3\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/03.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/04.jpg', 640, 480);\" title=\"Image 4\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/04.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/05.jpg', 640, 480);\" title=\"Image 5\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/05.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/06.jpg', 640, 480);\" title=\"Image 6\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/06.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/07.jpg', 640, 480);\" title=\"Image 7\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/07.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/08.jpg', 640, 480);\" title=\"Image 8\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/08.gif' width='150' height='113' /></a>";
			html += "<a class='back-to-top' href='#top'>back to top</a>";
		}
		else if (section == 'ujj-outtakes')
		{
			html += "<h2>Ultimate Jujitsu Outtakes (Sheffield, UK)</h2>";

			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/01.jpg', 640, 480);\" title=\"Image 1\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/01.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/02.jpg', 640, 480);\" title=\"Image 2\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/02.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/03.jpg', 640, 480);\" title=\"Image 3\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/03.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/04.jpg', 640, 480);\" title=\"Image 4\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/04.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/05.jpg', 640, 480);\" title=\"Image 5\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/05.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/06.jpg', 640, 480);\" title=\"Image 6\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/06.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/07.jpg', 640, 480);\" title=\"Image 7\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/07.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/08.jpg', 640, 480);\" title=\"Image 8\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/08.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/09.jpg', 640, 480);\" title=\"Image 9\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/09.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/10.jpg', 640, 480);\" title=\"Image 10\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/10.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/11.jpg', 640, 480);\" title=\"Image 11\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/11.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/12.jpg', 640, 480);\" title=\"Image 12\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/12.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/13.jpg', 640, 480);\" title=\"Image 13\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/13.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/14.jpg', 640, 480);\" title=\"Image 14\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/14.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/15.jpg', 640, 480);\" title=\"Image 15\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/15.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/16.jpg', 640, 480);\" title=\"Image 16\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/16.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/17.jpg', 640, 480);\" title=\"Image 17\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/17.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/18.jpg', 640, 480);\" title=\"Image 18\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/18.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/19.jpg', 640, 480);\" title=\"Image 19\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/19.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/20.jpg', 640, 480);\" title=\"Image 20\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/20.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/21.jpg', 640, 480);\" title=\"Image 21\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/21.gif' width='150' height='113' /></a>";
			html += "<a class='back-to-top' href='#top'>back to top</a>";
		}
		else if (section == 'rob-2002-07-24')
		{
			html += "<h2>Rob Brown Teaching Traditional Jujitsu - 24th July 2002 (Sheffield, UK)</h2>";

			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/1.jpg', 640, 480);\" title=\"Image 1\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/1.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/2.jpg', 640, 480);\" title=\"Image 2\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/2.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/3.jpg', 640, 480);\" title=\"Image 3\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/3.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/4.jpg', 640, 480);\" title=\"Image 4\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/4.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/5.jpg', 640, 480);\" title=\"Image 5\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/5.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/6.jpg', 640, 480);\" title=\"Image 6\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/6.gif' width='150' height='113' /></a>";
			html += "<a href=\"javascript:show_image('" + category + "', '" + section + "', '" + category + "/" + section + "/images/7.jpg', 640, 480);\" title=\"Image 7\"><img class='gallery-thumb' src='" + category + "/" + section + "/thumbs/7.gif' width='150' height='113' /></a>";
			html += "<a class='back-to-top' href='#top'>back to top</a>";
		}
	}
	
	document.getElementById(section).innerHTML = html;
}

// replace the div with the image they click on

function show_image(category, section, image, w, h)
{
	var html = '';
	
	if (category == 'jujitsu-grading-pictures')
	{
		if (section == 'brown-belt')
		{
			html +=           '<h2>Robs Brown Belt Grading - 5th August 2002 (Sheffield, UK)</h2>';
		}
		else if (section == 'blue-belt')
		{
			html +=           '<h2>Robs Blue Belt Grading - 3rd March 2001 (Sheffield, UK)</h2>';
		}
	}
        else if (category == 'brazilian-jiu-jitsu-seminar-pictures')
        {
        	if (section == 'marcio-feitosa-2002-11-10')
        	{
			html +=           '<h2>Marcio Feitosa - 10th November 2002 (Sheffield, UK)</h2>';
        	}
        	else if (section == 'rob-2001-12-23')
        	{
			html +=           '<h2>Rob Brown - 23rd Dec 2001 (Cleethorpes/Grimsby, UK)</h2>';
        	}
        	else if (section == 'royce-2001-08-30')
        	{
			html +=           '<h2>Royce Gracie - 30th July 2001 (Sheffield, UK)</h2>';
        	}
        }
	else if (category == 'martial-arts-tournament-pictures')
	{
		if (section == 'gracie_invitational-2005-04-23')
		{
			html +=           '<h2>Gracie Invitational - 23rd April 2005 (Birmingham, UK)</h2>';
		}
		else if (section == 'yorkshire-fightnight-2003-04-12')
		{
			html +=           '<h2>Yorkshire Fightnight - 12th April 2003 (Doncaster, UK)</h2>';
		}
		else if (section == 'ksbo-2002-10-19')
		{
			html +=           '<h2>KSBO Ground-Fighting - 19th October 2002 (Nottingham, UK)</h2>';
		}
		else if (section == 'combat-open-2002-10-06')
		{
			html +=           '<h2>Combat Open Grappling Championships - 6th October 2002 (Worcester, UK)</h2>';
		}
		else if (section == 'dewsbury-2002-09-15')
		{
			html +=           '<h2>Great Britain Ground-Fighting Tournament - 15th September 2002 (Dewsbury, UK)</h2>';
		}
		else if (section == 'dewsbury-2001-04-29')
		{
			html +=           '<h2>Great Britain Ground-Fighting Tournament - 29th April 2001 (Dewsbury, UK)</h2>';
		}
	}
        else if (category == 'other-jujitsu-pictures')
        {
		if (section == 'staines-mushin-bushikan-2006-2007')
		{
			html += "<h2>Staines Mushin Bushikan (Staines, UK)</h2>";
		}
		else if (section == 'random')
		{
			html += "<h2>Random Jujitsu Pictures (Sheffield, UK)</h2>";
		}
		else if (section == 'ujj-outtakes')
		{
			html += "<h2>Ultimate Jujitsu Outtakes (Sheffield, UK)</h2>";
		}
		else if (section == 'rob-2002-07-24')
		{
			html += "<h2>Rob Brown Teaching Traditional Jujitsu - 24th July 2002 (Sheffield, UK)</h2>";
		}
        }
        
        html += "<a href=\"javascript:show_thumbs('" + category + "', '" + section + "');\" title=\"Show Thumbs\"><img class='gallery-full' src='"+ image + "' width='" + w + "' height='" + h + "' alt='Click again to show the thumbnails' /></a>";
        
//        html += "<a class='back-to-top' href='#top'>back to top</a>";

	// replace the div and scroll to it

	document.getElementById(section).innerHTML = html;

	window.location.hash = section;

	// need to fix this so moz and ff can scroll after clicking
	// maybe return true?
 	// blur();
}
