function contact() {
  var coded = "RN7H@FHFfbxbbebT5F1N5.8HF";
  var key = "F1b5x3yTEPwWjpJOY4nR9Mu0XZ6fckDVQgodGmeatszNrqA2UBLl78SviIKHCh";
  var shift = coded.length;
  var link = [];
  for (i=0; i<coded.length; i++) {
    if (key.indexOf(coded.charAt(i))==-1) {
      ltr = coded.charAt(i);
      link.push(ltr);
    }
    else {     
      ltr = (key.indexOf(coded.charAt(i))-shift+key.length) % key.length;
      link.push(key.charAt(ltr));
    }
  }
  var l = link.join("");
  return '<a href="mailto:' + l + '" title="Contact us for bookings or more information">' + l + '</a>';
}
var headerimages = [];
$(document).ready(function(){
    window.setTimeout('switchImage(0)', 5000);
    $("#nav > ul > li > a").hover(
        function(evt) {
            $(this).find("span.bg").fadeTo(200, 0.65);
        },
        function(evt) {
            $(this).find("span.bg").fadeTo(500, 0.25);
        }
    );
});
function switchImage(ix) {
    var current = ix;
    if(++ix >= headerimages.length) { ix = 0; }
    var next = headerimages[ix];
    if($("#rotator_" + ix).length == 0) {
        var img = new Image();
        img.src = next.src;
        img.alt = next.alt;
        img.id = "rotator_" + ix;
        img.style.display = "none";
        $("#rotator").append(img);
        $("#rotator_" + ix).bind("load", function(e) {
            $("#rotator_" + current).fadeOut("slow");
            $(this).fadeIn("slow");
            window.setTimeout('switchImage(' + ix + ')', 5000);
        });
    }
    else {
        $("#rotator_" + current).fadeOut("slow");
        $("#rotator_" + ix).fadeIn("slow");
        window.setTimeout('switchImage(' + ix + ')', 5000);
    }
    
}

