function initgallery(){
		$("#content .photocol span.expl").hide();
		$("#content .photocol a").hover(function(){
			$(this).children("span.expl").stop(true, true).slideDown();
		},function(){$(this).children("span.expl").slideUp();});

		$("#content .photonav .photolrg").each(function(){
			var findpiclink = $(this).parent().parent().children().children().children("li:nth-child(1)").children("a").attr("href");
			var findpicrel = $(this).parent().parent().children().children().children("li:nth-child(1)").children("a").attr("rel");
			$(this).attr("href",findpiclink);
			$(this).attr("rel",findpicrel+"-1");
		});

		$("#content .photonav .photoback").hide();

		$("#content .photonav .photofwd").each(function(){
			var morepics = $(this).parent().parent().find("img").length;
			if(morepics < 2){$(this).hide();}
		})

		$("#content .photofwd").click(function(){
			var numphoto = $(this).parent().parent().find("img").length;
			if(typeof $(this).parent().data('clicks') == 'undefined'){
				$(this).parent().data('clicks', 1);
			}
			if($(this).parent().data('clicks') < numphoto){
				$(this).parent().children(".photoback").show();
				$(this).parent().parent().children().children("ul").animate({ left: '-=276px'},350);
				iclick = $(this).parent().data('clicks') + 1;
				$(this).parent().data('clicks',iclick);
				var piclink = $(this).parent().parent().children().children().children("li:nth-child("+$(this).parent().data('clicks')+")").children("a").attr("href");
				$(this).parent().children(".photolrg").attr("href",piclink);
			}
			if($(this).parent().data('clicks') == numphoto){$(this).hide();}

			return false;
		});
		$("#content .photoback").click(function(){
			var numphoto = $(this).parent().parent().find("img").length;
			if($(this).parent().data('clicks') > 1){
				$(this).parent().children(".photofwd").show();
				$(this).parent().parent().children().children("ul").animate({ left: '+=276px'},350);
				iclick = $(this).parent().data('clicks')-1;
				$(this).parent().data('clicks',iclick);
				var piclink = $(this).parent().parent().children().children().children("li:nth-child("+$(this).parent().data('clicks')+")").children("a").attr("href");
				$(this).parent().children(".photolrg").attr("href",piclink);
			}
			if ($(this).parent().data('clicks') == 1){
				$(this).hide();
				$(this).parent().data('clicks',1);
			}
			return false;
		});
}
