jQuery(document).ready(function($){
	var map_css_top = $('#map').css('top');
	var map_css_top_num = map_css_top.slice(0,-2);
	$('#map').css({ top: Math.max(($('#wrapper2')[0].offsetHeight-200)/2,map_css_top_num) + ' px' });
	$("img").each(function (i) {
		if (this.alt == 'click'){
			var source = this.src;
			$(this).wrapAll("<a href='" + source + "'></a>");
			$(this).parent().click(function() { 
				jQuery.facebox('<img src ="' + source + '" />');
				return false;
			});
		}
	});	
});
