$(document).ready(function() {
	var	tObj	= null;
	$("#work .shows .show").hover(
		function() {
			if(tObj) { tObj	= null; }
			$el	= $("#work .shows .background");
			if($el.css("display") == "none") {
				$el.css({ top: $(this).position().top });
				$el.fadeIn(150);
			} else {
				$el.stop().fadeTo(100, 1.0);
				$el.animate({ top: $(this).position().top }, { queue: false, duration: 100 });
			}
			tObj	= setTimeout("hide_div()", 7000);
		},
		function() { }
	);
	$("#work .shows .show").click(function() {
		if(!$(this).hasClass("noclick")){
			regex									= /-(\w+)\.\w{3}$/i;
			show									= $(this).children(".thumb").children("img").attr("src").match(regex);
			window.location.href	= "/show/" + show[1].toLowerCase();
		}
	});
	$("#work .shows .show .noclick").click();
});

function hide_div() {
	$("#work .shows .background").stop().fadeOut(1000);
	tObj	= null;
}