$(function(){

	$('.launchshow').click(function(){
	var sshow = $(this).attr('rel');
		$('#overlay').css('opacity', '0.75');
		$('#overlay').fadeIn();
		$('#slideshow_wrap').css('z-index','9001');
		$('#'+sshow).fadeIn();
		return false
	});


	//Remove litebox when you click the close bar
	$('.close a').live('click',function(){
		$('.slideshow:visible').fadeOut();
		$('#slideshow_wrap').css('z-index','0');
		$('#overlay').fadeOut();
		return false
	});

	//Remove litebox when you click outside its borders
	$('#overlay').live('click',function(){
		$('.slideshow:visible').fadeOut();
		$('#slideshow_wrap').css('z-index','0');
		$('#overlay').fadeOut();
		return false
	});

});
