﻿// De variabele productTabstrip & bookingParameters
// worden in het serverside page_load event aangemaakt.

function gotoPriceDetail() {
    $find(productTabstrip).findTabByText('Prijzen & Boeken').select();
    window.scrollBy(0, 400);
}

function gotoSki() {
    $find(productTabstrip).findTabByText('Bestemming').select();
    $find(bestemmingTabstrip).findTabByText('Skigebied informatie').select();
    window.scrollBy(0, 300);
}

function gotoMap() {
    $find(productTabstrip).findTabByText('Beschrijving').select();
    $find(beschrijvingTabstrip).findTabByText('Plattegrond').select();
    window.scrollBy(0, 300);
}

function BookingEnabled() {
    if ($find(productTabstrip).findTabByText('Prijzen & Boeken').get_selected() == true) {
        alert('Wilt u deze reis boeken, klik dan eerst op een prijs in de prijskolom.');
    }
    else {
        gotoPriceDetail();
    }
}

function ShowForecast() {
    var tabCount = $find(productTabstrip).get_tabs().get_count();
    $find(productTabstrip).get_tabs().getTab(tabCount - 1).select();
}


function loadimage(name, image, root, container) {
    if (container != undefined) document.getElementById(container).style.display = '';
    document.getElementById(image).src = root + '/images/skikaarten/' + name + '.gif';
}
