var galpath = "images/gallery/big/";
$(document).ready(function(){
	$('#content').jScrollPane();       
  $(window).resize(function(){
    $('#content').jScrollPaneRemove();
  	$('#content').jScrollPane();	
  });
  
    $("div.scrollimages ul").scrollable({ 
        vertical:true,  
        size: 6 
    });    
    
    $('#mainimg').cycle({
		speed:  2500,
        timeout: 4000,
        pager:  '#scrollimages',
		pagerEvent: 'mouseover',
	    pagerAnchorBuilder: function(idx, slide) {
			return '#scrollimages li:eq(' + idx + ')'; 
    	}
    });
    
		/*	$.dpText = {
				TEXT_PREV_YEAR		:	'DE Previous year',
				TEXT_PREV_MONTH		:	'DE Previous month',
				TEXT_NEXT_YEAR		:	'DE Next year',
				TEXT_NEXT_MONTH		:	'DE Next month',
				TEXT_CLOSE			:	'DE Close',
				TEXT_CHOOSE_DATE	:	'DE Choose date'
			}     */

  // ---- Календарь -----
  Date.format = 'dd. mmmm yyyy';
  $('#checkInDate').datePicker({createButton:false});
  $("#checkInDateCalendar").click(function() { 
        $("#checkInDate").dpDisplay();
  });  
                              
  $('#CheckOutDate').datePicker({createButton:false});
  $("#checkOutDateCalendar").click(function() { 
        $("#CheckOutDate").dpDisplay();
  });
  // ---- Календарь -----


  startMenuIe6 = function() {
      if (document.all&&document.getElementById) {
            navRoot = document.getElementById("topmenu");
            for (i=0; i<navRoot.childNodes.length; i++) {
                  node = navRoot.childNodes[i];
                  if (node.nodeName=="LI") {
                        node.onmouseover=function() {
                              this.className+=" hover";
                        }
                        node.onmouseout=function() {
                              this.className=this.className.replace(" hover", "");
                        }
                  }
            }
      }
  }
  if(/MSIE (5|6)/.test(navigator.userAgent)) {
    window.onload=startMenuIe6;
  }

});