jQuery(document).ready(function() {
    jQuery("#mycarousel").jcarousel({
        scroll: 1 });

    var wwidth = $(window).width()
    $(".jcarousel-skin-tango.jcarousel-container-horizontal").width(wwidth);
	$(".jcarousel-skin-tango .jcarousel-clip-horizontal").width(wwidth);
	   
   var video_state = "open";
 
   $(".hide_video").click(function() {
   
			if(video_state == "open") {
				$('.video').css({display:'none'});
				$('.hide_video').html("Show Videos");
				video_state = "closed";
				return false;
			}else if(video_state == "closed") {
				$('.video').css({display:'block'});
				$('.hide_video').html("Hide Videos");
				video_state = "open";
				return false;
			}// end if statement			
	
   });
   
   
   var text_state = "open";
 
   $(".hide_text").click(function() {
   
			if(text_state == "open") {
				jQuery('#content').fadeOut('fast', function(){
					$('.hide_text').html("Show Text");}
				);
				text_state = "closed";
				return false;
			}else if(text_state == "closed") {
				jQuery('#content').fadeIn('Fast', function(){
					$('.hide_text').html("Hide Text");}
				);
				text_state = "open";
				return false;
			}// end if statement			
	
   
   });
   
    });
 
