/**
 * @author Konstantin Dankov
 */

function initGallery(){
	$("#gallery dd").hide();
	$("#gallery dl>dt").click(function(){
		var nid = this.id.substring(2,40);
		$("#dd"+nid).toggle();
	});

	$("a.thumb").click(function(){
		var elem = $(this);
		var imgsrc = elem.attr("href");
		var imgtitle = elem.find("img").attr("title");
		$("#info").hide();
		$("#image").fadeOut("slow", function(){
			$("#imgel").src(imgsrc);
			$("#imgel").attr("title",imgtitle);
			$("#info").html(imgtitle);
			$("#info").show();
		});
		setTimeout("$('#image').fadeIn('slow')", 3500);
		return false;
	});

	$("#ddy2006").show();
	$("#dditem13").show();
		
}

$(function(){
	initGallery(); 
});

/*
window.onload = function(){
	
}
*/
