$(function()
{
	var menu = new DynamicMenu('.nav > li.sub');	
	$('.datePicker').datepicker($.datepicker.regional.sk);
	$('.datePicker').datepicker('option', { dateFormat : 'dd. mm. yy'});	
  $('#datePickerLink').click(function(){ $(".datePicker").focus(); });	
	var loadingChildren = $(".loading").children();
	loadingChildren.hide();
	$(".loading").ajaxStart(function() { loadingChildren.show(); });
	$(".loading").ajaxStop(function() { loadingChildren.hide(); });
  $("#frm-back").click(function() { window.location = "planner"; });	
  $().piroBox(
  {
      my_speed: 300, //animation speed
      bg_alpha: 0.5, //background opacity
      radius: 4, //caption rounded corner
      scrollImage : false, // true == image follows the page _|_ false == image remains in the same open position
                           // in some cases of very large images or long description could be useful.
      slideShow : 'true', // true == slideshow on, false == slideshow off
      slideSpeed : 3, //slideshow 
      pirobox_next : 'piro_next', // Nav buttons -> piro_next == inside piroBox , piro_next_out == outside piroBox
      pirobox_prev : 'piro_prev', // Nav buttons -> piro_prev == inside piroBox , piro_prev_out == outside piroBox
      close_all : '.piro_close' // add class .piro_overlay(with comma)if you want overlay click close piroBox
  });	
});
