﻿/*
#Region "History"
'20100203 - RH - Script file added
'20100302 - RH - IE fix
'20100304 - RH - Fix, Object instantiated after definition, fixes main is not defined errors
#End Region
*/




function showAccomInfo()
{   
          
    document.body.scrollIntoView(true); 
    $('dv_AccomInfo').show(); 
   Website.lightsOff();   
}
 
 function HideAccomInfo()
{
    Website.lightsOn();   
    document.body.scrollIntoView(true);      
    $('dv_AccomInfo').hide(); 
    return true;
}


function showConditions()
{             
    document.body.scrollIntoView(true); 
    $('#dv_conditions').show(); 
   Website.lightsOff();   
}


 function HideConditions()
{
    Website.lightsOn();   
    document.body.scrollIntoView(true);      
    $('#dv_conditions').hide(); 
    return true;
}

function showInsurance()
{             
    document.body.scrollIntoView(true); 
    $('dv_insurance').show(); 
   Website.lightsOff();   
}
 
 function HideInsurance()
{
    Website.lightsOn();   
    document.body.scrollIntoView(true);      
    $('dv_insurance').hide(); 
    return true;
}


function radiofy(t, selector) {

    $(selector).each(function (index, item) { item.checked = false });
    t.checked = true;
}



function SelectSearchType() {


    $('#dd_departing_airport').hide();
    $('#dd_coach_area').hide();
    $('#dd_country').show();

    if ($('#dd_tourtype').val() =='Air'){
        $('#dd_departing_airport').show();
    }

    if ($('#dd_tourtype').val() == 'Coach') {
        $('#dd_coach_area').show();
    }

    if ($('#dd_tourtype').val() == 'Drive') {
        $('#dd_country').hide();
    }
     
}

function clearModal() {       

   
            $('.inlineWarning').hide();        
            $('.inlineMessage').hide();


        }


function BookNow_Click(sender) {
    var id;
    var button;
    id = sender.id;
    button = document.getElementById(id);
    if (button != null) {
        button.style.background = "#5DA080";
        button.innerHTML = "Please wait";
    }
}

function Proceed_Click(sender) {
    var id;
    var button;
    id = sender.id;
    button = document.getElementById(id);
    if (button != null) {
        button.style.background = "#5DA080";
        button.value = "Please wait";
    }
}
