jQuery(document).ready(function(){
	jQuery(".js_read-more").each(function(){
		$this = jQuery(this);
		
		var content_height = $this.find(".js_read-more-content").outerHeight();
		var content_height_collapsed = $this.find(".js_read-more-content").attr("data-collapsed-height");
		
		$this.find(".js_read-more-content").css({"height":content_height_collapsed});
		
		$this.find(".js_read-more-open").live("click",function(e){
			e.preventDefault();
			jQuery(this).text("Read less...").removeClass("js_read-more-open").addClass("js_read-more-close");
			$this.find(".js_read-more-content").animate({"height":content_height},1000);
		});
		$this.find(".js_read-more-close").live("click",function(e){
			e.preventDefault();
			jQuery(this).text("Read more...").removeClass("js_read-more-close").addClass("js_read-more-open");
			$this.find(".js_read-more-content").animate({"height":content_height_collapsed},1000);
		});
	});
	
	jQuery(".js_fancybox-1").fancybox({
		'openEffect'	: 'elastic',
		'closeEffect'	: 'elastic',
		'closeClick'	: false
	});

	jQuery(".mod-video-reviews a").fancybox({
		"maxWidth"		: 800,
		"maxHeight"		: 600,
		"fitToView"		: false,
		"width"			: '70%',
		"height"		: '70%',
		"autoSize"		: false,
		"closeClick"	: false,
		"openEffect"	: 'none',
		"closeEffect"	: 'none'
	});
	
	jQuery(".coda-slider").codaSlider({
		"autoHeight" : 0,
		"dynamicTabsAlign" : "right",
		"dynamicArrowLeftText" : "",
		"dynamicArrowRightText" : "",
		"autoSlide" : true,
		"autoSlideInterval" : 7000
	});
	
	jQuery("#past-productions").jcarousel({
		wrap: 'circular'
	});
});
