text: //------------------------------
  //Picker
  //------------------------------
  jQuery(function() {
  	jQuery( "#datepicker,#datepicker2,#datepicker3,#datepicker4,#datepicker5,#datepicker6,#datepicker7,#datepicker8" ).datepicker();
  	$("#datepicker").datepicker('setDate', new Date($("#datepicker").data("date")));
  	$("#datepicker2").datepicker('setDate', new Date($("#datepicker2").data("date")));
  
  	 
  $('#daterangepicker,#daterangepicker2').daterangepicker({
      "autoApply": true,
      "showDropdowns": true,
      "locale": {
          "format": "DD/MM/YYYY",
          "separator": " - ",
          "applyLabel": "Apply",
          "cancelLabel": "Cancel",
          "fromLabel": "From",
          "toLabel": "To",
          "customRangeLabel": "Custom",
          "weekLabel": "H",
          "daysOfWeek": ["Pz", "Pt", "Sa", "Çş", "Pş", "Cu", "Ct"],
          "monthNames": [
              "Ocak",
              "Şubat",
              "Mart",
              "Nisan",
              "Mayıs",
              "Haziran",
              "Temmuz",
              "Ağustos",
              "Eylül",
              "Ekim",
              "Kasım",
              "Aralık"
          ],
          "firstDay": 1
      },
      "showCustomRangeLabel": false,
      "minDate": moment(),
      "opens": "center"
  }, function(start, end, label) {
    console.log("New date range selected: ' + start.format('YYYY-MM-DD') + ' to ' + end.format('YYYY-MM-DD') + ' (predefined range: ' + label + ')");
  });
  
  if ($('#daterangepicker').data("sdate") != "")
  {
  $('#daterangepicker').data('daterangepicker').setStartDate(moment($('#daterangepicker').data("sdate")));
  $('#daterangepicker').data('daterangepicker').setEndDate(moment($('#daterangepicker').data("edate")));
  $('#daterangepicker2').data('daterangepicker').setStartDate(moment($('#daterangepicker').data("sdate")));
  $('#daterangepicker2').data('daterangepicker').setEndDate(moment($('#daterangepicker').data("edate")));
  }
  
  });
  
  
  
  //------------------------------
  //Custom select
  //------------------------------
  jQuery(document).ready(function(){
  	jQuery('.mySelectBoxClass').customSelect();
  
  	/* -OR- set a custom class name for the stylable element */
  	//jQuery('.mySelectBoxClass').customSelect({customClass:'mySelectBoxClass'});
  });
  
  function mySelectUpdate(){
  	setTimeout(function (){
  		$('.mySelectBoxClass').trigger('update');
  	}, 200);
  }
  
  $(window).resize(function() {
  	mySelectUpdate();
  });
  		
  		
  		
  //------------------------------
  //Animations for this page
  //------------------------------
  $(document).ready(function(){
  	$('.tip-arrow').css({'bottom':1+'px'});
  	$('.tip-arrow').animate({'bottom':-9+'px'},{ duration: 700, queue: false });	
  	
  	$('.bookfilters').css({'margin-top':-40+'px'});
  	$('.bookfilters').animate({'margin-top':0+'px'},{ duration: 1000, queue: false });	
  	
  	$('.topsortby').css({'opacity':0});
  	$('.topsortby').animate({'opacity':1},{ duration: 1000, queue: false });	
  
  	$('.itemscontainer').css({'opacity':0});
  	$('.itemscontainer').animate({'opacity':1},{ duration: 1000, queue: false });			
  });
  
  
  //------------------------------
  //Counter
  //------------------------------
  jQuery(function($) {
  	$('.countprice').countTo({
  		from: 5,
  		to: 36,
  		speed: 1000,
  		refreshInterval: 50,
  		onComplete: function(value) {
  			console.debug(this);
  		}
  	});
  	$('.counthotel').countTo({
  		from: 1,
  		to: 53,
  		speed: 2000,
  		refreshInterval: 50,
  		onComplete: function(value) {
  			console.debug(this);
  		}
  	});			
  });
  
  
  //------------------------------
  //Nicescroll
  //------------------------------
  jQuery(document).ready(function() {
  
  	var nice = jQuery("html").niceScroll({
  
  		cursorcolor:"#ccc",
  		//background:"#fff",	
  		cursorborder :"0px solid #fff",			
  		railpadding:{top:0,right:0,left:0,bottom:0},
  		cursorwidth:"5px",
  		cursorborderradius:"0px",
  		cursoropacitymin:0,
  		cursoropacitymax:0.7,
  		boxzoom:true,
  		autohidemode:false
  	});  
  	
  	jQuery(".hotelstab").niceScroll({horizrailenabled:false});
  	jQuery(".flightstab").niceScroll({horizrailenabled:false});
  	jQuery(".vacationstab").niceScroll({horizrailenabled:false});
  	jQuery(".carstab").niceScroll({horizrailenabled:false});
  	jQuery(".cruisestab").niceScroll({horizrailenabled:false});
  	jQuery(".flighthotelcartab").niceScroll({horizrailenabled:false});
  	jQuery(".flighthoteltab").niceScroll({horizrailenabled:false});
  	jQuery(".flightcartab").niceScroll({horizrailenabled:false});
  	jQuery(".hotelcartab").niceScroll({horizrailenabled:false});
  	
  
  	jQuery('html').addClass('no-overflow-y');
  	
  });
  
  
  
  //------------------------------
  //Add rooms
  //------------------------------
  		function addroom2(){
  			$('.room2').addClass('block');
  			$('.room2').removeClass('none');
  			$('.addroom1').removeClass('block');
  			$('.addroom1').addClass('none');
  			
  		}
  		function removeroom2(){
  			$('.room2').addClass('none');
  			$('.room2').removeClass('block');
  			
  			$('.addroom1').removeClass('none');
  			$('.addroom1').addClass('block');
  		}
  		function addroom3(){
  			$('.room3').addClass('block');
  			$('.room3').removeClass('none');
  			
  			$('.addroom2').removeClass('block');
  			$('.addroom2').addClass('none');
  		}
  		function removeroom3(){
  			$('.room3').addClass('none');
  			$('.room3').removeClass('block');
  			
  			$('.addroom2').removeClass('none');
  			$('.addroom2').addClass('block');			
  		}
  	
  	
  
  	
  //------------------------------
  //slider parallax effect
  //------------------------------
  
  jQuery(document).ready(function($){
  var $scrollTop;
  var $headerheight;
  var $loggedin = false;
  	
  if($loggedin == false){
    $headerheight = $('.navbar-wrapper2').height() - 20;
  } else {
    $headerheight = $('.navbar-wrapper2').height() + 100;
  }
  
  
  $(window).scroll(function(){
    var $iw = $('body').innerWidth();
    $scrollTop = $(window).scrollTop();	   
  	  if ( $iw < 992 ) {
  	 
  	  }
  	  else{
  	   $('.navbar-wrapper2').css({'min-height' : 110-($scrollTop/2) +'px'});
  	  }
    $('#dajy').css({'top': ((- $scrollTop / 5)+ $headerheight)  + 'px' });
    //$(".sboxpurple").css({'opacity' : 1-($scrollTop/300)});
    $(".scrolleffect").css({'top': ((- $scrollTop / 5)+ $headerheight) + 50  + 'px' });
    $(".tp-leftarrow").css({'left' : 20-($scrollTop/2) +'px'});
    $(".tp-rightarrow").css({'right' : 20-($scrollTop/2) +'px'});
  });
  
  });
  
  
  //------------------------------
  //Scroll animations
  //------------------------------
  jQuery(window).scroll(function(){            
  	var $iw = $('body').innerWidth();
  	
  		
  		if(jQuery(window).scrollTop() != 0){
  			jQuery('.mtnav').stop().animate({top: '0px'}, 500);
  			jQuery('img.logo').stop().animate({width: '90px'}, 100);
  			
  			jQuery('a.logo').stop().animate({marginTop: '0px'}, 100);
  			//jQuery('a.logo').toggleClass("logo");
  			
  
  		}       
  		else {
  			 if ( $iw < 992 ) {
  			  }
  			  else{
  			   jQuery('.mtnav').stop().animate({top: '30px'}, 500);
  			  }
  			
  			
  			jQuery('img.logo').stop().animate({width: '120px'}, 100);
  			//jQuery('a.logo').toggleClass("logo");
  			jQuery('a.logo').stop().animate({marginTop: '-35px'}, 100);
  	
  		}
  	
  	//Social
  	if(jQuery(window).scrollTop() >= 900){
  		jQuery('.social1').stop().animate({top:'0px'}, 100);
  		
  		setTimeout(function (){
  			jQuery('.social2').stop().animate({top:'0px'}, 100);
  		}, 100);
  		
  		setTimeout(function (){
  			jQuery('.social3').stop().animate({top:'0px'}, 100);
  		}, 200);
  		
  		setTimeout(function (){
  			jQuery('.social4').stop().animate({top:'0px'}, 100);
  		}, 300);
  		
  		setTimeout(function (){
  			jQuery('.gotop').stop().animate({top:'0px'}, 200);
  		}, 400);				
  		
  	}       
  	else {
  		setTimeout(function (){
  			jQuery('.gotop').stop().animate({top:'100px'}, 200);
  		}, 400);	
  		setTimeout(function (){
  			jQuery('.social4').stop().animate({top:'-120px'}, 100);				
  		}, 300);
  		setTimeout(function (){
  			jQuery('.social3').stop().animate({top:'-120px'}, 100);		
  		}, 200);	
  		setTimeout(function (){
  		jQuery('.social2').stop().animate({top:'-120px'}, 100);		
  		}, 100);	
  
  		jQuery('.social1').stop().animate({top:'-120px'}, 100);			
  
  	}
  	
  });	
  
  //tab change evetn
  var reserveOpen = false;
  $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
    var target = $(e.target).attr("href") // activated tab
    if (target == "#roomrates")
    {
  	reserveOpen = true;
  	$("#tabs").toggleClass("col-md-8");
  	$("#tabs").toggleClass("col-md-12");
  	$("#panels").toggleClass("hidden")
    }
    else if (reserveOpen)
    {
  	reserveOpen = false;
  	$("#tabs").toggleClass("col-md-8");
  	$("#tabs").toggleClass("col-md-12");
  	$("#panels").toggleClass("hidden")
    }
  });
  
  
  $("#updateDate").click(function(){
  	jQuery("#start_date").val(jQuery('#daterangepicker').data('daterangepicker').startDate._d.sql());
  	jQuery("#end_date").val(jQuery('#daterangepicker').data('daterangepicker').endDate._d.sql());
  	$("#updateform").submit();
  });
  $("#updateDate2").click(function(e){
  	e.preventDefault();
  	jQuery("#start_date").val(jQuery('#daterangepicker2').data('daterangepicker').startDate._d.sql());
  	jQuery("#end_date").val(jQuery('#daterangepicker2').data('daterangepicker').endDate._d.sql());
  	$("#updateform").submit();
  });
  
  $("#resForm").submit(function() {
  	$("input[name=sd]").val($('#daterangepicker2').data('daterangepicker').startDate._d.sql());
  	$("input[name=ed]").val($('#daterangepicker2').data('daterangepicker').endDate._d.sql());
  	return true;
  });