$(document).ready(function(){

// Main Menu Top click and hover functions

$('.btn_passenger').click(function(){
    $('.menu #dropdown_fullwidth_item2').hide();
    $('.menu #dropdown_fullwidth_item_right').hide();
	$('.btn_passenger').toggleClass("btn_passenger_on");
	$('.btn_airport').removeClass("btn_airport_on");
	$('.btn_economic').removeClass("btn_economic_on");
    $('.menu #dropdown_fullwidth_first').slideToggle();
});

$('.btn_airport').click(function(){
    $('.menu #dropdown_fullwidth_first').hide();
    $('.menu #dropdown_fullwidth_item_right').hide();
	$('.btn_airport').toggleClass("btn_airport_on");
	$('.btn_economic').removeClass("btn_economic_on");
	$('.btn_passenger').removeClass("btn_passenger_on");
    $('.menu #dropdown_fullwidth_item2').slideToggle();
});

$('.btn_economic').click(function(){
    $('.menu #dropdown_fullwidth_first').hide();
    $('.menu #dropdown_fullwidth_item2').hide();
	$('.btn_economic').toggleClass("btn_economic_on");
	$('.btn_passenger').removeClass("btn_passenger_on");
	$('.btn_airport').removeClass("btn_airport_on");
    $('.menu #dropdown_fullwidth_item_right').slideToggle();
});

$(function() {
   $('.btn_passenger').hover( function(){
      $(this).addClass('btn_passenger_hover');
   },
   function(){
      $(this).removeClass('btn_passenger_hover');
   });
});

$(function() {
   $('.btn_airport:not(.btn_airport_on)').hover( function(){
      $(this).addClass('btn_airport_hover');
   },
   function(){
      $(this).removeClass('btn_airport_hover');
   });
});

$(function() {
   $('.btn_economic').hover( function(){
      $(this).addClass('btn_economic_hover');
   },
   function(){
      $(this).removeClass('btn_economic_hover');
   });
});

	$('.hidelink').hide();
	$('.more').hide();

});

function showHide(shID) {
    if (document.getElementById(shID)) {
        if (document.getElementById(shID+'-show').style.display != 'none') {
            document.getElementById(shID+'-show').style.display = 'none';
            document.getElementById(shID).style.display = 'block';
			$('.hidelink').show();
			$('.more').show();
			return false;
        }
        else {
            document.getElementById(shID+'-show').style.display = 'inline';
            document.getElementById(shID).style.display = 'none';
			return false;
        }
    }
}

