$(document).ready(function() {
	$(".thumbs img").livequery(function() {
		$(this).css('cursor','pointer');
		$(this).click(function() {
			var toLoad = $(this).attr("src").split("/");
			var imgSrc = toLoad[0] + '/' + toLoad[1] + '/' + toLoad[3];
			$("body").append("<div id=\"vp-shader\"></div><div id=\"vp-alert\"></div>");
			$("#vp-shader").height($(document).height());
			$("#vp-shader").show('normal').fadeTo(0, 0.45).addClass("vp-alert-on");
			$("#vp-alert").show('normal').fadeTo(0, 1.00).addClass("vp-alert-on");
			$(function () {
				var img = new Image();
				$("#vp-alert").fadeTo(600, 0.75, function() {
					$(img).load(function () {
						$('#vp-alert').html(this);
						$("#vp-alert").fadeTo(600, 1.00);
						$(this).width();
						$(this).height();
					}).error(function () {
					}).attr('src', imgSrc);													   
				});
			});
			return false;
		});
	});
	$("#vp-shader,#vp-alert").livequery(function() {
		$(this).click(function() {
			$("#vp-alert").remove();
			$("#vp-shader").remove();
			return false;
		});
	});
});
