/* Javascript Doc Version 1.3 y.s. */

function Titles()
{
	var titles = $(".title div");
	// Attach Hover Event to the titles.
	titles.hover(
		function(){ $(".title ." + this.className + " img").fadeIn("fast"); },
		function(){ $(".title ." + this.className + " img").fadeOut("fast");}
	);
	// Attach Click Event to the titles.
	$("#logo").click(function(){ gallery.Hide(); });
	
	titles.click(
		function(e)
		{
			$(".title ." + this.className + " img").css("display", "inline");
			
			subWindow.Show();
			e.stopPropagation();
			
			// Show each title's content.
			$("#subject div").css("display", "none");
			$("#subject ." + this.className + ", #subject ." + this.className + " div").css("display", "");
			$("#subject").fadeIn("slow");
		}
	);
}

