//This script needs jquery script

$(document).ready(function() {
	

	
 // hides the videoBar as soon as the DOM is ready (a little sooner that page load)
  $('#videoBar').hide();
  
 // shows and hides and toggles the videoBar on click  
  $('#slick-show').click(function() {
    $('#videoBar').show('slow');
    return false;
  });
  $('#slick-hide').click(function() {
    $('#videoBar').hide('fast');
    return false;
  });
  $('#slick-toggle').click(function() {
    $('#videoBar').toggle(400);
    return false;
  });

 // slides down, up, and toggle the videoBar on click    
  $('#slick-down').click(function() {
    $('#videoBar').slideDown('slow');
    return false;
  });
  $('#slick-up').click(function() {
    $('#videoBar').slideUp('fast');
    return false;
  });
  
  $('#slick-slidetoggle').click(function() {
    $('#videoBar').slideToggle(400);
	$('#videoSpacer').slideToggle(400);
    return false;
  });


  $("a[rel^='prettyPhoto']").prettyPhoto({
				animationSpeed: 'normal', /* fast/slow/normal */
				padding: 40, /* padding for each side of the picture */
				opacity: 0.35, /* Value betwee 0 and 1 */
				showTitle: true, /* true/false */
				allowresize: true, /* true/false */
				counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
				theme: 'dark_rounded', /* light_rounded / dark_rounded / light_square / dark_square */
				callback: function(){}
			});
  
});
