<!--//--><![CDATA[//><!--

sfHover = function() {
    var sfEls = document.getElementById("nav").getElementsByTagName("LI");
    for (var i=0; i<sfEls.length; i++) {
        sfEls[i].onmouseover=function() {
            this.className+=" sfhover";
        }
        sfEls[i].onmouseout=function() {
            this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
        }
    }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function OpenBrowser(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function load_it() {
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=load_it.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}

function changeFormBooking(po_this) {
    switch(po_this.value) {
        case 'hotel':
            montre('small-book-hotel','small-book-flight');
            break;
        case 'flight':
            montre('small-book-flight','small-book-hotel');
            break
    }
}
 
function setDeparture(po_form) {
    document.forms['frm-book'].out_month.selectedIndex = po_form.selectedIndex ;
}

function setDeparture2(po_form) {
    document.forms['frm-rate'].out_month.selectedIndex = po_form.selectedIndex ;
}

function BookIt(po_form) {
    po_form.submit();
}

function UpdateDeparture(po_form, po_element) {
    po_element.selectedIndex = po_form.selectedIndex ;
}

function montre(show, hidden) {
    var dShow = document.getElementById(show);
    var dHidden = document.getElementById(hidden);

    if (dShow) {dShow.style.display='block';}
    if (dHidden) {dHidden.style.display='none';}
}