	jQuery(document).ready(function() {
		jQuery(".more_btn").live("click", function () {
			jQuery(this).parent().siblings().filter(".more_content").slideDown();
			jQuery(this).hide();
			jQuery(this).siblings().filter(".less_btn").show();
			return false;
		});
		jQuery(".less_btn").live("click", function () {
			jQuery(this).parent().siblings().filter(".more_content").slideUp();
			jQuery(this).hide();
			jQuery(this).siblings().filter(".more_btn").show();
			return false;
		});
		jQuery(".show_commentform").live("click", function () {
			jQuery("#commentform").slideDown();
			return false;
		});
		jQuery(".hide_commentform").live("click", function () {
			jQuery("#commentform").hide();
			return false;
		});
	});
	
	var i = 0;//initialize
	var int=0;//Internet Explorer Fix
	$(window).bind('load', function() {//The load event will only fire if the entire page or document is fully loaded
		var int = setInterval('doThis(i)');//500 is the fade in speed in milliseconds
	});

	function doThis() {
		var images = $('.gal_item img').length;//count the number of images on the page
		if (i >= images) {// Loop the images
			clearInterval(int);//When it reaches the last image the loop ends
		}
		$('.gal_loading').fadeOut(400);//fades in the hidden images one by one
		i++;//add 1 to the count
	}
