$(function() {
	 $(".jbgallery").jbgallery({
	 	style: "zoom",
		menu: "simple",
		slideshow: true,
		caption: false,
		timers: {
    		fade      : 500,
    		interval  : 10000 
  		},
		labels: {
			play : "Play",
			next : "Next",
			prev : "Prev",
			stop : "Stop"
		}
	});	

	$("#booth").selectbox();
	$("#champaign").selectbox();
		
	$.mask.definitions['~']='[ap]';
	$("#function_start").mask("99:99~m");
	$("#function_end").mask("99:99~m");
		
	$('#inputDate').DatePicker({
		format: 'd-m-Y',
		date: $('#inputDate').val(),
		current: $('#inputDate').val(),
		position: 'right',
		starts: 1,
		onBeforeShow: function(){
			$('#inputDate').DatePickerSetDate(
				$('#inputDate').val(), false);
		},
		onChange: function(formated, dates) {
			$('#inputDate').val(formated);
			//$('#inputDate').DatePickerHide();
		}
	});	

      $('ul.social_media_container li').hover(function() {		
		$(this).stop().animate({		
			left: 150 }, {
			duration: 300,
			easing: 'easeInOutQuart'
		});	
	}, function() {
		$(this).stop().animate({
			left: 0 }, {
			duration: 300,
			easing: 'easeInOutQuart'
		});	
	});
			
	$('a.hide_button').toggle(function() {
		$(this).addClass('active');
		$(this).attr('title', 'Show');
		$('#primary_content').animate({
			left: -960 }, {
				duration: 500,
				easing: 'easeInOutQuart'
		});
		}, function() {
		$(this).removeClass('active');
		$(this).attr('title', 'Hide');
		$('#primary_content').animate({
			left: 0 }, {
				duration: 500,
				easing: 'easeInOutQuart'
		});
	});
});