jQuery(document).ready(function() {
	
  //jQuery(".rzcolorbox-content-seekdaPortal").colorbox({transition:"elastic",width:"854",height:"80%",opacity:"0.85",overlayClose:0,escKey:0,iframe:true})
  jQuery(".rzcolorbox-content-seekdaPortal").colorbox({transition:"elastic",width:"1100",height:"80%",opacity:"0.85",overlayClose:0,escKey:0,iframe:true})
  //jQuery(".navigation_startseite ul li .sub").hide();
  	
  jQuery(".navigation_startseite ul li").mouseenter(function(){
	jQuery(this).find(".sub").fadeIn("slow");	  
  });
  jQuery(".navigation_startseite ul li").mouseleave(function(){
	jQuery(this).find(".sub").fadeOut(10);	  
  });

  /* SLIDER LIST VIEW */
  jQuery(".startseite-entry").mouseenter(function(){
    jQuery(this).find(".startseite-entry-content").animate({
        "marginTop" : -20
      });
  });
  jQuery(".startseite-entry").mouseleave(function(){
    jQuery(this).find(".startseite-entry-content").animate({
        "marginTop" : 0
      });
  });
  
  jQuery(".startseite-acht-entry").mouseenter(function(){
    jQuery(this).find(".startseite-acht-entry-content").animate({
        "marginTop" : -20
      });
  });
  jQuery(".startseite-acht-entry").mouseleave(function(){
    jQuery(this).find(".startseite-acht-entry-content").animate({
        "marginTop" : 0
      });
  });
/* ################ */

/* ###################### */
/* DATEPICKER / JQUERY UI */
/* ###################### */  
  jQuery(function() {
    var dates = jQuery( "#from, #to" ).datepicker({
      //defaultDate: "+1w",
      changeMonth: true,
      numberOfMonths: 2,
      onSelect: function( selectedDate ) {
	    var option = this.id == "from" ? "minDate" : "maxDate",
	      instance = jQuery( this ).data( "datepicker" ),
	      date = jQuery.datepicker.parseDate(
		    instance.settings.dateFormat ||
		    jQuery.datepicker._defaults.dateFormat,
		    selectedDate, instance.settings );
	    dates.not( this ).datepicker( "option", option, date );
      }
    });
  });
  
  var startDateValue = '+0';
  var endDateValue = '+7';
  jQuery("#from").datepicker('setDate', startDateValue);		
  jQuery("#to").datepicker('setDate', endDateValue);				   	    
  jQuery.datepicker.setDefaults(jQuery.datepicker.regional['de']);
  
});
