function show(ID){
  document.getElementById(ID).style.visibility="visible";
}

function hide(ID){
  document.getElementById(ID).style.visibility="hidden";
}



// set width of relatively-positioned container for absolutely-positioned menu
// to be menu width

function respace_menu(){
  var menu_width=document.getElementById("menu").offsetWidth-20;
  document.getElementById("menuwrapper").style.width=menu_width + "px";
}




var main_height;
function page_setup(){

  // set height of maincontent

  var win_height=document.documentElement.clientHeight;
  main_height=win_height-156;
  if(main_height<350)main_height=350;

  var fdw_height=document.getElementById("fdw").offsetHeight;
  var rimg_height=document.getElementById("rimg").offsetHeight;


  if(main_height<fdw_height)main_height=fdw_height;
  if(main_height<rimg_height)main_height=rimg_height;



  document.getElementById("maincontent").style.height=main_height + "px";

  // hack as IE & Safari misplaces menus

  if(navigator.appVersion.indexOf("Safari")>-1){
    document.getElementById("menu").style.top="35px";
  }

  if(navigator.appName.indexOf("Microsoft")>-1){
    document.getElementById("menu").style.top="55px";
  }

}




var blarr=new Array();
blarr["enq"]="";

blarr["enq"]+="enq";
blarr["enq"]+="uir";
blarr["enq"]+="ies@";
blarr["enq"]+="laun";
blarr["enq"]+="de-c";
blarr["enq"]+="onfe";
blarr["enq"]+="renc";
blarr["enq"]+="es.c";
blarr["enq"]+="o.uk";

function blat(){
  document.write("<a href='mailto:" + blarr[arguments[0]] + "'>" + blarr[arguments[0]] + "</a>");
}


function printmap(){
  var propstr="";
  propstr+="status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=1,scrollbars=1,";
  propstr+="height=340,width=480,top=0,left=0";
  var mapwin=window.open("map.htm","_blank",propstr);
}



