$(document).ready(function() {
	$('a.img_large').fancybox({
			"frameHeight": 500,
			"overlayOpacity": 0.8
		});
		
	if($('.rightGal').length > 0) {
		$('.rightGal a').fancybox({
			"frameHeight": 500,
			"overlayOpacity": 0.8
		});
	}
	
	if($("#box_shot").length > 0) {
		$('#box_shot').fancybox({
			"frameHeight": 500,
			"overlayOpacity": 0.8
		});
	}
	
	if($("#toggle").length > 0) {
		$('#toggle').hide();
		var DOWN = false;
		$('#more').click(function() {
			switch(DOWN) {
				case true:
					$('#toggle').slideUp(500);
					$('#more').html('more info');
					DOWN = false;
				break;
				case false:
					$('#toggle').slideDown(500);
					$('#more').html('less info');
					DOWN = true;
				break;
			}
		});
	} else {
		$('#more').hide();
	}
	
	/*var div = $('.txt_holder');
	var height = div.height();
	var limit = 321;
	var DOWN = false; // keep track of div
	var this_e; // ref to $(this)
	
	if (height > limit) {
		div.css({
			height: "321px",
			overflow: "hidden"
		});
		$('#more').click(function(){
			this_e = $(this);
			
			switch (DOWN) {
				case true:
					$('.txt_holder').animate({
						height: limit
					}, 1000);
					this_e.html("more info");
					DOWN = false;
				break;
				case false:
					$('.txt_holder').animate({
						height: height
					}, 1000);
					this_e.html("less info");
					DOWN = true;
				break;
			}
		});
	} else {
		$('#more').hide();
	}*/
});