function changeheader(pic) {
  if(heading.background != pic)
    heading.background = pic;
}

function show(elmnt,menu) {
  if(document.all) 
    var el = document.all(elmnt);
  else 
    if(document.getElementById) 
      var el = document.getElementById(elmnt);
  
  el.style.visibility="visible";
  if(menu == true) {
    el.style.width="10px";
    el.style.height="10px";
  }
}

function hide(elmnt,menu) {
  
  if(document.all) 
    var el = document.all(elmnt);
  else 
    if(document.getElementById) 
      var el = document.getElementById(elmnt);

  el.style.visibility="hidden";
  if(menu == true) {
    el.style.width="0px";
    el.style.height="0px";
  }
}

function showpic(pic,w,h,title) { 
  var win;

  win = window.open("",pic.replace(".",""),"width="+w+",height="+h+",top="+((window.screen.availHeight - h) / 2)+",left="+((window.screen.availWidth - w) /2)+",menubar=no,toolbar=no");
  win.document.open();
  win.document.write("<html><head><title>"+title+"</title>");
  win.document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">');
  win.document.write('<meta http-equiv="imagetoolbar" content="no">');
  win.document.write("</head><body>");
  win.document.write('<div style="position:absolute;width:'+w+'px;height:'+h+'px;left:0px;top:0px">');
  win.document.write('<img src="../images/big/'+ pic+'" alt=""></div></body></html>');
  win.document.close();
  win.focus();
}

function displayfooter () {
  if (screen.height >= 768) {
    document.write("<tr>");
    document.write("<td class='footer' colspan='2'>&nbsp;</td>");
    document.write("</tr>");
  }
}

function contactus(txtlink) {
  em=('laprimavera@' + 'wanadoo.fr');
  if (txtlink == "")
     txtlink = em;
  document.write(' <a class="textlink" href="mailto:' + em + '"> ' + txtlink + '</a>');
}

function scrollpic() {
  if(document.all) {
    var el = document.all('rightcell');
	el.style.backgroundPositionY = -textbox.scrollTop;
  }
  else 
    if(document.getElementById) {
      var el = document.getElementById('rightcell');
	  el.style.backgroundPosition = "147px -" + document.getElementById('textbox').scrollTop  + "px";
	}
}

function go(suffix,w,h) {
  var win;

  win = window.open(suffix+"booking_terms_and_conditions.htm","bookingcnditions","width="+w+",height="+h+",top="+((window.screen.availHeight - h) / 2)+",left="+((window.screen.availWidth - w) /2)+",menubar=no,toolbar=no,scrollbars=yes");
  win.focus();
}

function changelanguage(txtcolor) {
  var f = document.URL;
  if(f.indexOf("file:") == -1)
    var search = "/";
  else
    var search = "\\";
  offset = f.lastIndexOf(search);
  filename = f.substr(offset+1,f.length);
  document.write('<br><div style="margin-top: -8px;text-align: right"><a class="language" style="color:' + txtcolor + '" href="../en/'+ filename + '">EN</a> <a class="language" style="color:' + txtcolor + '" href="../fr/'+ filename + '">FR</a></div>');
}