// JavaScript Document
function mycarousel_initCallback(carousel) {
    jQuery('.jcarousel-control a').bind('click', function() {
        carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
        return false;
    });

    jQuery('.jcarousel-scroll select').bind('change', function() {
        carousel.options.scroll = jQuery.jcarousel.intval(this.options[this.selectedIndex].value);
        return false;
    });

    jQuery('#mycarousel-next').bind('click', function() {
        carousel.next();
        return false;
    });

    jQuery('#mycarousel-prev').bind('click', function() {
        carousel.prev();
        return false;
    });
};

// Ride the carousel...
jQuery(document).ready(function() {
    jQuery("#mycarousel").jcarousel({
        scroll: 1,
        initCallback: mycarousel_initCallback,
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null
    });
});

//captions with captify



$(document).ready(function(){
    $('img.captify').captify({
    // all of these options are... optional
    // speed of the mouseover effect
    speedOver: 'fast',
    // speed of the mouseout effect
    speedOut: 'normal',
    // how long to delay the hiding of the caption after mouseout (ms)
    hideDelay: 500,
   // 'fade', 'slide', 'always-on'
    animation: 'slide',
    // text/html to be placed at the beginning of every caption
    prefix: '',
    // opacity of the caption on mouse over
    opacity: '0.7',
    // the name of the CSS class to apply to the caption box
    className: 'caption-bottom',
    // position of the caption (top or bottom)
    position: 'bottom',
    // caption span % of the image
    spanWidth: '100%'
    });
});

$(document).ready(function(){
$('#slickbox_1').hide();
$('#slickbox_2').hide();
$('#slickbox_3').hide();
$('#slickbox_4').hide();
$('#slickbox_5').hide();
$('#slickbox_6').hide();
$('#slickbox_7').hide();
$('#slickbox_8').hide();
$('#slickbox_9').hide();
$('#slickbox_10').hide();
$('#slickbox_11').hide();
$('#slickbox_12').hide();

   
	
	$('a#slick1-toggle').click(function() {
    $('#slickbox_1').toggle(400);
    return false;
    });
	
	$('a#slick2-toggle').click(function() {
    $('#slickbox_2').toggle(400);
    return false;
    });
		$('a#slick3-toggle').click(function() {
    $('#slickbox_3').toggle(400);
    return false;
    });
		$('a#slick4-toggle').click(function() {
    $('#slickbox_4').toggle(400);
    return false;
    });
		$('a#slick5-toggle').click(function() {
    $('#slickbox_5').toggle(400);
    return false;
    });
		$('a#slick6-toggle').click(function() {
    $('#slickbox_6').toggle(400);
    return false;
    });
		$('a#slick7-toggle').click(function() {
    $('#slickbox_7').toggle(400);
    return false;
    });
		$('a#slick8-toggle').click(function() {
    $('#slickbox_8').toggle(400);
    return false;
    });
		$('a#slick9-toggle').click(function() {
    $('#slickbox_9').toggle(400);
    return false;
    });	
	
		$('a#slick10-toggle').click(function() {
    $('#slickbox_10').toggle(400);
    return false;
    });
		
		$('a#slick11-toggle').click(function() {
    $('#slickbox_11').toggle(400);
    return false;
    });
	
	
		$('a#slick12-toggle').click(function() {
    $('#slickbox_12').toggle(400);
    return false;
    });
		
});



  $(document).ready(function() {
   $('div.demo-show:eq(1)> div:gt(0)').hide();  
   $('div.demo-show:eq(1)> h3').click(function() {
   $(this).next('div:hidden').slideDown('fast')
  .siblings('div:visible').slideUp('fast');
   
        });
   
      });

   
      $(document).ready(function() {
   		$('div.demo-show:eq(0)> div').hide();  
   		$('div.demo-show:eq(0)> h3').click(function() {
   		 $(this).next().slideToggle('fast');
   
        });
   
      });