    $(document).ready(function() {
        initTabs();
    });
    function initTabs() {
        $('#tabset a').bind('click', function(e) {
            e.preventDefault();
            var thref = $(this).attr("href").replace(/#/, '');
            $('#tabset a').removeClass('active');
            $(this).addClass('active');
            $('#tab-content div.tab').removeClass('selected');
            $('#' + thref).addClass('selected');
        });
    }



    $(document).ready(function() {
        initiateContentTabs();
    });
    function initiateContentTabs() {
	$(".cnttab:not(:first)").hide();
	$(".cnttab:first").show();
	$('#tabset2 a').bind('click', function(e) {
	    e.preventDefault();
	    var thref = $(this).attr("href").replace(/#/, '');
	    $('#tabset2 a').removeClass('active');
	    $(this).addClass('active');
	    stringref = $(this).attr("href").split('#')[1];
	    $('.cnttab:not(#' + stringref + ')').hide();
	    //			$('.cnttab:not(#'+stringref+')').addClass('hidden');
	    //			$('.cnttab#' + stringref).removeClass('hidden');
	    if (stringref == "mtab2" && document.getElementById("ifrm") != null) document.getElementById("ifrm").src = document.getElementById("ifrm").src;
	    if (stringref == "mtab4" && document.getElementById("ifrm2") != null) document.getElementById("ifrm2").src = document.getElementById("ifrm2").src;
	    $('.cnttab#' + stringref).show();
	    
	    return false;
	});
	$('#tourinquirynext').click(function(){ // bind click event to link	    
	    $('#tabset2 a').removeClass('active');
	    $('#mtab2').addClass('active');
	    $('.cnttab#mtab1').hide();
	    $('.cnttab#mtab2').show();
        return false;
    });

    }
    
    //var $tabs = $('ul.tabset2').tabs();




    $(document).ready(function() {
        initiatePlannerTabs();
    });
    function initiatePlannerTabs() {
	$(".hptab:not(:first)").hide();
	$(".hptab:first").show();
        $('#tabset3 a').bind('click', function(e) {
            e.preventDefault();
            var thref = $(this).attr("href").replace(/#/, '');
            $('#tabset3 a').removeClass('selected');
            $(this).addClass('selected');
			stringref = $(this).attr("href").split('#')[1];
			$('.hptab:not(#'+stringref+')').hide();
			$('.hptab#' + stringref).show();
			return false;
        });
    }	



	$(document).ready(function() {
        initiateUserInfoTabs();
    });
    function initiateUserInfoTabs() {
	$(".citab:not(:first)").hide();
	$(".citab:first").show();
        $('#tabset4 a').bind('click', function(e) {
            e.preventDefault();
            var thref = $(this).attr("href").replace(/#/, '');
            $('#tabset4 a').removeClass('active');
            $(this).addClass('active');
			stringref = $(this).attr("href").split('#')[1];
			$('.citab:not(#'+stringref+')').hide();
			$('.citab#' + stringref).show();
			return false;
        });
    }
	
	$(document).ready(function() {
        initiateBookingTabs();
    });
    function initiateBookingTabs() {
	$(".sbtab:not(:first)").hide();
	$(".sbtab:first").show();
        $('#tabset5 a').bind('click', function(e) {
            e.preventDefault();
            var thref = $(this).attr("href").replace(/#/, '');
            $('#tabset5 a').removeClass('active');
            $(this).addClass('active');
			stringref = $(this).attr("href").split('#')[1];
			$('.sbtab:not(#'+stringref+')').hide();
			$('.sbtab#' + stringref).show();
			return false;
        });
    }