$().ready(function() {

  $("#pikame").PikaChoose();


  $("a[rel=example_group]").fancybox({
    'transitionIn'		: 'none',
    'transitionOut'		: 'none',
    'titlePosition' 	: 'over',
    'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
       return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
    }
  });
  
  
  
    $("a.fancyiframe").fancybox({
    'width'				: '90%',
    'height'			: '90%',
    'autoScale'			: false,
    'transitionIn'		: 'none',
    'transitionOut'		: 'none',
    'type'				: 'iframe'
  });
  
  
  $("a.fancyiframe1").fancybox({
    'width'				: 660,
    'height'			: 400,
    'type'				: 'iframe'
  });
  


  $(function(){
    $("#adultsUp").click(function(){
      $("#adults").val( Number($("#adults").val()) + 1 );
    });
    $("#adultsDown").click(function(){
      if($("#adults").val() > 0){
        $("#adults").val( Number($("#adults").val()) - 1 );
      }
    });
  });

  $(function(){
    $("#childrenUp").click(function(){
      $("#children").val( Number($("#children").val()) + 1 );
    });
    $("#childrenDown").click(function(){
      if($("#children").val() > 0){
        $("#children").val( Number($("#children").val()) - 1 );
      }
    });
  });


  $(function() {
    $("#check-in").datepicker({
      minDate: 0,
      showAnim: 'fadeIn',
      showOn: 'both',
      buttonImage: 'img/gui/calendarIcon.png',
      buttonImageOnly: true,
      dateFormat: 'mm/dd/yy',
      onSelect: function(dateStr) {
        var date = $(this).datepicker('getDate');
        if (date) {
          date.setDate(date.getDate() + 1);
          $("#check-out").datepicker("option", "minDate", date);
        }
      }
    });

    $("#check-out").datepicker({
      showAnim: 'fadeIn',
      showOn: 'both',
      buttonImage: 'img/gui/calendarIcon.png',
      buttonImageOnly: true,
      dateFormat: 'mm/dd/yy'
    });
  });


//	$("#pikame li div img").attr("src", "img/gui/slideShowControl.gif");

});





