function displayMessages() {
    if(d_reservation)
        switch(d_reservation.context) {
            case "leasureGroup":
                
                if(d_reservation.isHotelClosed) {
                    document.getElementById('altern_default_hotel_closed').style.display="block";
                }
                else {
                    document.getElementById('altern_leasuregroup').style.display="block";
                }
                break;
            case "travelAgency":
                
                if(d_reservation.isHotelClosed) {
                    document.getElementById('altern_default_hotel_closed').style.display="block";
                }
                else {
                    document.getElementById('altern_travelAgency').style.display="block";
                }
                break;
			case "corporate":
                
                if(d_reservation.isHotelClosed) {
                    document.getElementById('altern_default_hotel_closed').style.display="block";
                }
                else {
                    document.getElementById('altern_corporate').style.display="block";
                }
                break;                
            default:
                if(d_reservation.isHotelClosed) {
                    document.getElementById('altern_default_hotel_closed').style.display="block";
                }
                else {
                    document.getElementById('altern_default').style.display="block";
                }
                break;
        }
}

title_default="Sorry, this hotel is not available at the dates selected. You can";
title_default_de="Dieses Hotel ist leider zu den von Ihnen angefragten Daten nicht verf&uuml;gbar, aber Sir k&ouml;nnen";
title_default_en="Sorry, this hotel is not available at the dates selected. You can";
title_default_es="Lo sentimos, este hotel no est&aacute; disponible en los días seleccionados., pero puede";
title_default_fr="D&eacute;sol&eacute;, cet h&ocirc;tel n'est pas disponible aux dates s&eacute;lectionn&eacute;es, mais vous pouvez";
title_default_it="Siamo spiacenti, questo albergo non &egrave; disponibile per le date richieste. Vi invitiamo a";
title_default_pt="Desculpe, mas esse hotel n&atilde;o est&aacute; disponível no período selecionado";
title_default_nl="Het spijt ons; dit hotel is niet beschikbaar op de geselecteerde data";
title_default_zh="对不起，这家酒店未能供应房间。您可以：";
title_default_ja="申し訳ございません。このホテルは、選択された日は満室です。";
title_default_pl="Przepraszamy – hotel jest niedostępny w wybranym terminie. Możesz";

title_hotelclosed="Sorry, this hotel is not available. You can";
title_hotelclosed_de="Dieses Hotel ist leider nicht verf&uuml;gbar, aber Sie k&ouml;nnen";
title_hotelclosed_en="Sorry, this hotel is not available. You can";
title_hotelclosed_es="Lo sentimos, este hotel no est&aacute; disponible en los días seleccionados., pero puede";
title_hotelclosed_fr="D&eacute;sol&eacute;, cet h&ocirc;tel n'est pas disponible, mais vous pouvez";
title_hotelclosed_it="Siamo spiacenti, questo albergo non &egrave; disponibile. Vi invitiamo a";
title_hotelclosed_pt="Desculpe, mas esse hotel n&atilde;o est&aacute; disponível, mas pode";
title_hotelclosed_nl="Het spijt ons; dit hotel is niet beschikbaar, maar u kunt";
title_hotelclosed_zh="对不起，这家酒店未能供应房间。您可以：";
title_hotelclosed_ja="申し訳ございません。このホテルは満室です。";
title_hotelclosed_pl="Przepraszamy – hotel jest niedostępny. Możesz";

link_expand="Expand your search";
link_expand_de="Ihre Suche auf andere Hotels in der N&auml;he Ihres Reiseziels erweitern";
link_expand_en="Expand your search";
link_expand_es="Ampliar su b&uacute;squeda";
link_expand_fr="Elargir votre recherche";
link_expand_it="Ampliare la ricerca";
link_expand_nl="Maar u kunt uw opzoeking";
link_expand_pt="Alargar o âmbito da pesquisa";
link_expand_zh="Expand your search";
link_expand_ja="検索範囲を広げて";
link_expand_pl="Poszerzyć kryteria wyszukiwania";

text_expand=" to other hotels near your destination.";
text_expand_de=".";
text_expand_en=" to other hotels near your destination.";
text_expand_es=" a otros hoteles situados cerca de su destino.";
text_expand_fr=" &agrave; d'autres h&ocirc;tels &agrave; proximit&eacute; de votre destination.";
text_expand_it=" ad altri alberghi nei pressi della destinazione scelta.";
text_expand_nl=" uitbreiden naar andere hotels in de buurt van uw bestemming.";
text_expand_pt=" a outros hot&eacute;is nas proximidades do destino pretendido.";
text_expand_zh=" to other hotels near your destination.";
text_expand_ja=" 、他の近隣のホテルを探すことができます。";
text_expand_pl=" o inne hotele w pobliżu wskazanego miejsca podróży.";

link_modify="Modify your search";
link_modify_de="Ihre Suche in der Suchmaschine &auml;ndern";
link_modify_en="Modify your search";
link_modify_es="Modificar su b&uacute;squeda";
link_modify_fr="Modifier votre recherche";
link_modify_it="Modificare la ricerca";
link_modify_nl="Wijzig uw opzoeking";
link_modify_pt="Alterar a pesquisa";
link_modify_zh="修改您的搜寻条件";
link_modify_ja="検索条件の変更";
link_modify_pl="Zmienić kryteria wyszukiwania";

text_consult="Consult the calendar below of available dates at this hotel.";
text_consult_de="Die verf&uuml;gbaren Daten f&uuml;r das gew&uuml;nschte Hotel anzeigen lassen.";
text_consult_en="Consult the calendar below of available dates at this hotel.";
text_consult_es="Consultar a continuaci&oacute;n el calendario de las disponibilidades para el hotel solicitado.";
text_consult_fr="Consulter ci-dessous le calendrier des disponibilit&eacute;s pour cet h&ocirc;tel.";
text_consult_it="Consultare qui di seguito il calendario delle disponibilit&agrave; per albergho richiesto.";
text_consult_nl="Raadpleeg hieronder de kalender van de beschikbaarheden van de hotels van de gevraagde bestemming.";
text_consult_pt="Consultar a seguir o calend&aacute;rio de disponibilidades para os hot&eacute;is pretendidos;";
text_consult_zh="Consult the calendar below of available dates at this hotel.";
text_consult_ja="下のカレンダーでこのホテルの空室状況を確認する";
text_consult_pl="Skorzystać z poniższego kalendarza dostępnych terminów w wybranym hotelu.";

function getBundle(key, lang) {
    try {
        var value = key+"_"+lang;
        if(eval(value))
            document.write(eval(value));
    }
    catch(error) {
        document.write(eval(key));
    }
}	

