<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">


$(document).ready(function(){
	/*=============== tabing jquery ==================*/

	
	$('.specialSearch li a.speOff').click(function(){
		$('.offerList').hide();
		$('.specialSearch li a.speOff').removeClass('active')
		$($(this).attr('rel')).show();
		$(this).addClass('active');
	});

	$('.rightArea li a.carShow').click(function(){
		$('.carList').hide();
		$('.rightArea li a.carShow').removeClass('active')
		$($(this).attr('rel')).show();
		$(this).addClass('active');
	});
	
	$('#PayNow').click(function(){
			$('#submitBusForm').click();
		});

	$('.destination .change').click(function(){
		$('.tabitem').fadeIn();
		$('.cancle').show();
		$('.destination .change').hide();
	});

	$('.destination .cancle').click(function(){
		$('.tabitem').hide();
		$('.cancle').hide();
		$('.destination .change').show();
	});
	
	$('.filterDest .filter').click(function(){
		$('.tabitem1').fadeIn();
		$('.closefilter').show();
		$('.filterDest .filter').hide();
	});

	$('.testimonial .addfeedback').click(function(){
		$('.feedBox').fadeIn();
		$('.closefeedback').show();
		$('.testimonial .addfeedback').hide();
	});

	$('.testimonial .closefeedback').click(function(){
		$('.feedBox').fadeOut();
		$('.closefeedback').hide();
		$('.testimonial .addfeedback').show();
	});

	/*=============== mobile menu =======================*/
	
	$('.holiday_request').click(function(){
		$('.popUp').fadeIn();	
		$('.holidayContact').fadeIn();
	});	
	
	
	
	/*=============== holiday &amp; honeymoon jquery ==================*/

	//APPEDING DETAIL ON LIST.PHP
	$('body').on('click', '.list_record', function(){
                 var fullId = $(this).attr('id');
		var classes = $(this).attr('class');

		var ids = fullId.split('_');
		var cls = classes.split(' ');

		var destId = ids[1];
		var pkgId = ids[2];
		var startFromId = ids[3];
		var recordNo = cls[1];

		var mainDivId = $('.'+recordNo).parent('div').attr('id');

		var lastDivId;
		if($('#'+mainDivId).hasClass('last')){

			lastDivId = mainDivId;

		} else {

			lastDivId = $('#'+mainDivId).nextAll(".last:eq(0)").attr('id');

		}

		$('.fullInner').hide();

		$.ajax({

			url : 'ajax_pack.php' ,
			data : 'action=details&amp;packid='+pkgId+'&amp;destid='+destId+'&amp;strFrmId='+startFromId,
			method : 'POST' ,

            beforeSend: function () {
            	$('.fullDetails').remove();
				$('.item').removeClass('active');

            	if(window.innerWidth &lt;= 641){

	                $('&lt;div class="fullDetails '+mainDivId+'"&gt;&lt;div class="float_l ajaxLoder"&gt;&lt;img src="images/377.GIF"&gt;&lt;strong class="lh30"&gt;Please Wait&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;').insertAfter('#'+mainDivId);

	            } else {

	            	$('&lt;div class="fullDetails '+mainDivId+'"&gt;&lt;div class="float_l ajaxLoder"&gt;&lt;img src="images/377.GIF"&gt;&lt;strong class="lh30"&gt;Please Wait&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;').insertAfter('#'+lastDivId);

	            }
            },

			success : function (data){

				$('.ajaxLoder').remove();
				$('#fullInner').remove();
				$('.fullDetails').html(data);
				$('#'+mainDivId).addClass('active');
                                      
            	if(window.innerWidth &lt;= 641){

				    var curentScroll = $('html,body').scrollTop();
					var pckagposition = $('#'+mainDivId).offset();
                                       // alert(pckagposition);
					var srollhtm = pckagposition.top - curentScroll ;
					$('html').animate({scrollTop:(curentScroll+srollhtm) - 50}, '4000');

				} else {

				    var curentScroll = $('html,body').scrollTop();
					var pckagposition = $('#'+lastDivId).offset();
					var srollhtm = pckagposition.top - curentScroll ;
					$('html').animate({scrollTop:(curentScroll+srollhtm) - 50}, '4000');

				}
			}
		});
	});

        $('body').on('click', '.deals_record', function(){
                var fullId = $(this).attr('id');
		var classes = $(this).attr('class');
                //alert(classes);
		var ids = fullId.split('_');
		var cls = classes.split(' ');

		var destId = ids[1];
		var pkgId = ids[2];
		var startFromId = ids[3];
		var recordNo = cls[1];

		var mainDivId = $('.'+recordNo).parent('div').attr('id');
                
		var lastDivId;
		if($('#'+mainDivId).hasClass('last')){

			lastDivId = mainDivId;

		} else {

			lastDivId = $('#'+mainDivId).nextAll(".last:eq(0)").attr('id');

		}

		$('.fullInner').hide();

		$.ajax({

			url : 'deals_pack.php' ,
			data : 'action=details&amp;packid='+pkgId+'&amp;destid='+destId+'&amp;strFrmId='+startFromId,
			method : 'POST' ,

            beforeSend: function () {
            	$('.fullDetails').remove();
				$('.item').removeClass('active');

            	if(window.innerWidth &lt;= 641){

	                $('&lt;div class="fullDetails '+mainDivId+'"&gt;&lt;div class="float_l ajaxLoder"&gt;&lt;img src="images/377.GIF"&gt;&lt;strong class="lh30"&gt;Please Wait&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;').insertAfter('#'+mainDivId);

	            } else {

	            	$('&lt;div class="fullDetails '+mainDivId+'"&gt;&lt;div class="float_l ajaxLoder"&gt;&lt;img src="images/377.GIF"&gt;&lt;strong class="lh30"&gt;Please Wait&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;').insertAfter('#'+lastDivId);

	            }
            },

			success : function (data){

				$('.ajaxLoder').remove();
				$('#fullInner').remove();
				$('.fullDetails').html(data);
				$('#'+mainDivId).addClass('active');

            	if(window.innerWidth &lt;= 641){

				    var curentScroll = $('html,body').scrollTop();
					var pckagposition = $('#'+mainDivId).offset();
					var srollhtm = pckagposition.top - curentScroll ;
					$('html,body').animate({scrollTop:(curentScroll+srollhtm) - 50}, '4000');

				} else {

				    var curentScroll = $('html,body').scrollTop();
					var pckagposition = $('#'+lastDivId).offset();
					var srollhtm = pckagposition.top - curentScroll ;
					$('html,body').animate({scrollTop:(curentScroll+srollhtm) - 50}, '4000');

				}
			}
		});
	});
        
        
        
        
       $('body').on('click', '.list_records', function(){

		var fullId = $(this).attr('id');
		var classes = $(this).attr('class');

		var ids = fullId.split('_');
		var cls = classes.split(' ');

		var destId = ids[1];
		var pkgId = ids[2];
		var startFromId = ids[3];
		var recordNo = cls[1];

		var mainDivId = $('.'+recordNo).parent('div').attr('id');
                

		var lastDivId;
		if($('#'+mainDivId).hasClass('last')){

			lastDivId = mainDivId;

		} else {

			lastDivId = $('#'+mainDivId).nextAll(".last:eq(0)").attr('id');

		}

		$('.fullInner').hide();

		$.ajax({

			url : 'offers_pack.php' ,
			data : 'action=details&amp;packid='+pkgId+'&amp;destid='+destId+'&amp;strFrmId='+startFromId,
			method : 'POST' ,

            beforeSend: function () {
            	$('.fullDetails').remove();
				$('.item').removeClass('active');

            	if(window.innerWidth &lt;= 641){
	                $('&lt;div class="fullDetails '+mainDivId+'"&gt;&lt;div class="float_l ajaxLoder"&gt;&lt;img src="images/377.GIF"&gt;&lt;strong class="lh30"&gt;Please Wait&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;').insertAfter('#'+mainDivId);

	            } else {

	            	$('&lt;div class="fullDetails '+mainDivId+'"&gt;&lt;div class="float_l ajaxLoder"&gt;&lt;img src="images/377.GIF"&gt;&lt;strong class="lh30"&gt;Please Wait&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;').insertAfter('#'+lastDivId);

	            }
            },

			success : function (data){

				$('.ajaxLoder').remove();
				$('#fullInner').remove();
				$('.fullDetails').html(data);
				$('#'+mainDivId).addClass('active');

            	if(window.innerWidth &lt;= 641){

				    var curentScroll = $('html,body').scrollTop();
					var pckagposition = $('#'+mainDivId).offset();
					var srollhtm = pckagposition.top - curentScroll ;
					$('html').animate({scrollTop:(curentScroll+srollhtm) - 50}, '4000');

				} else {

				    var curentScroll = $('html,body').scrollTop();
					var pckagposition = $('#'+lastDivId).offset();
					var srollhtm = pckagposition.top - curentScroll ;
					$('html').animate({scrollTop:(curentScroll+srollhtm) - 50}, '4000');

				}
			}
		});
	});



	$('body').on('click', '.fullDetails a.right', function(){
		$(".fullDetails").fadeOut('slow');
	});

});
      
function openformDiv ( pk , pkshow, pkshow1){
		$(pk).parents('.tabCotent').children().hide().css({width: '0'});
		$(pk).parents('.tabCotent').children('#fulldivShow').show().css({width: '100%', float: 'left'});
		$(pk).parents('.tabCotent').find('#second').hide();
		$(pk).parents('.tabCotent').find('#first').show();
		$('#'+pkshow1).hide();
		$('#'+pkshow).show();
	};
	
	function closeformDiv ( pk , pkshow, pkshow1){
		$('#'+pkshow).hide();
		$('#'+pkshow1).show();
		$(pk).parents('.tabCotent').children().show().css({width: '70%'});
		$(pk).parents('.tabCotent').children('#fulldivShow').show().css({width: '28%' , float: 'right'});
		$(pk).parents('.tabCotent').find('#first').hide();
		$(pk).parents('.tabCotent').find('#second').show();
		$(pk).parents('.tabCotent').children('#fulldivShow1').show().css({width: '28%' , float: 'right'});
	};
	
	function closenowDiv ( pk , pkshow, pkshow1){
		$('.'+pkshow).hide();
		$('.'+pkshow1).hide();
	};
	
	
	function showTab ( pk , pkshow){
		$('.tabmenu li').removeClass('active');
		$('.tabCotent').hide();
		$('#'+pkshow).show();
		$(pk).parent().addClass('active');
	};
	
	function popupBus ( pk , pkshow){
		$(pk).parents('#contentCntr') .find('.buUp').fadeIn();
		$('.'+pkshow).show();
	};
	
	function addonemore (thiss){
		$('.lessOne').hide();
		var i = $('#multistop').val();
		var k = parseInt(i)-1;	
		var n = $('#goingToDesti_'+k).val();
			
			$('.innerRepeat').append('&lt;p class="trig" id="rem'+i+'"&gt;&lt;span&gt;&lt;input type="text" class="required text" value="'+n+'" id="goingFrmDesti_'+i+'" onkeyup=multiCity("goingFrmDesti_'+i+'") name="from'+i+'" placeholder="Depart From"/&gt;&lt;input id="fromgoingFrmDesti_'+i+'" class="from" type="hidden" value="" name="from'+i+'" autocomplete="off"&gt;&lt;/span&gt;&lt;span&gt;&lt;input type="text" class="required text" id="goingToDesti_'+i+'" onkeyup=multiCity("goingToDesti_'+i+'") name="to'+i+'" placeholder="Going to" /&gt;&lt;input id="togoingToDesti_'+i+'" class="to" type="hidden" value="" name="to'+i+'" autocomplete="off"&gt;&lt;/span&gt;&lt;span class="right"&gt;&lt;input id="mulDate_'+i+'" class="text1 required" onclick=multiDate("mulDate_'+i+'") readonly="readonly" type="text" name="depart-date3" placeholder="Depart Date"/&gt;&lt;input id="departDate_'+i+'" class="departDate" type="hidden" name="depart-date" value="" /&gt;&lt;label for="mulDate_'+i+'"&gt;&lt;i class="fa fa-calendar"&gt;&lt;/i&gt;&lt;/label&gt;&lt;/span&gt;&lt;span class="last" id="anch'+i+'"&gt;&lt;a onclick="less(this,'+i+')" class="lessOne" id="remove'+i+'" href="javascript:void(0)"&gt;&lt;i class="fa fa-minus"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;');
		var j = parseInt(i)+1;	
		$('#multistop').val(j);
			$('#remove'+k).remove();
			
	}
	
 function less(th, k){
	 $('#rem'+k).remove();
	 if(k&gt;2)
	 {
		var k = parseInt(k)-1;	 
		$('#anch'+k).append('&lt;a onclick="less(this,'+k+')" class="lessOne" id="remove'+k+'" href="javascript:void(0)"&gt;&lt;i class="fa fa-minus"&gt;&lt;/i&gt;&lt;/a&gt;'); 
	 }
	 
	 $('#multistop').val(k);
	 
 }
function multiCity(idd)
{
	$('#'+idd).autocomplete({
        source: function(request, response) {
            $.ajax({
                url: 'ajax/ajax-flight.php',
                dataType: "json",
                data: {
                    term : request.term,
                    country : $('.flighttyp:checked').val(),
					type: 'flight'
                },
                success: function(data) {
                    response(data);
                }
            });
        },
		focus: function (event, ui) {
			console.log(ui);
            $('#'+idd).val(ui.item.label); 
            $('#from'+idd).val(ui.item.id); // save selected id to hidden input
			$('#to'+idd).val(ui.item.id);
        },
        min_length: 3,
        delay: 300
    });
	
}

function multiDate(id){
	
	$("#"+id).datepicker({
			numberOfMonths: 1,
			dateFormat: "dd-M-yy",
			minDate : 0 , 
			firstDay: 1 ,
			onSelect: function (date) {
				var date2 = $("#"+id).datepicker('getDate');
				date2.setDate(date2.getDate());
			},
			onClose: function(){
				$("#"+id).datepicker("hide");
			}
		});
}

function SearchVal(){var e;return $(".searchValid").each(function(){if($(this).val().search(/\w/)&lt;0){e=!1;var a=$(this).offset(),t=a.top-52;return $("body").append('&lt;div class="error" style="top:'+t+"px;left:"+a.left+'px;"&gt;&lt;div class="errorMssege"&gt;This Field Is Required&lt;/div&gt;&lt;div class="errorArrow"&gt;&lt;/div&gt;&lt;/div&gt;'),$(this).focus(),$(this).blur(function(){_("ok"),$(".error").remove()}),!1}}),0==e?!1:void 0}

  // (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  // (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  // m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  // })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  // ga('create', 'UA-77921021-1', 'auto');
  // ga('send', 'pageview');
  
  
  
  
  </pre></body></html>