if(document.getElementById("tel")){document.getElementById("tel").innerHTML="Telephone:&nbsp;&nbsp;"+tel;}
if(document.getElementById("mob")){document.getElementById("mob").innerHTML="Mobile:&nbsp;&nbsp;"+mob;}
if(document.getElementById("tel1")){document.getElementById("tel1").innerHTML="Telephone:&nbsp;&nbsp;"+tel;}
if(document.getElementById("mob1")){document.getElementById("mob1").innerHTML="Mobile:&nbsp;&nbsp;"+mob;}
for(i=0;i<c.length;i++){cm+=c[i];}
if(document.getElementById("em")){document.getElementById("em").innerHTML="Email:&nbsp;&nbsp;<a href=\"mailto:"+cm+"\">"+cm+unescape("%3C%2Fa%3E");}
if(document.getElementById("em1")){document.getElementById("em1").innerHTML="<a href=\"mailto:"+cm+"\">"+cm+unescape("%3C%2Fa%3E");}
if(document.getElementById("validator2")){document.getElementById("validator2").innerHTML=unescape("%3Ca href%3D%22http%3A%2F%2Fvalidator.w3.org%2Fcheck?uri%3Dreferer%22 target%3D%22_blank%22 title%3D%22W3C HTML validator%22%3E%3Cimg src%3D%22./images/valid-xhtml10-blue.png%22 alt%3D%22Valid XHTML 1.0%22 style%3D%22height:31px;width:88px;border:0px;%22%3E%3C/a%3E")+"<a href=\"http://jigsaw.w3.org/css-validator/validator?uri="+rooturl+"style/style.css&amp;profile=css3\" target=\"_blank\"><img style=\"margin-top:10px;border:0;width:88px;height:31px;\" src=\"./images/valid-css-blue.png\" alt=\"Valid CSS!\"></a>";}
if(document.getElementById("twitter")){document.getElementById("twitter").innerHTML="<a href=\"http://twitter.com/share\" class=\"twitter-share-button\" data-count=\"none\" data-via=\"Cottesbrooke\" data-related=\"James Alexander-Sinclair:Garden Designer\">Tweet</a>";}
var s_map=document.getElementById("site_map");
var smh=s_map.offsetHeight;
var smv=0;
s_map.style.display="none";
function show_sitemap(){
 if(smv==0){
  s_map.style.display="block";
  var vp=getClientBounds(4);
  scrollTo(0,(vp+smh));
  smv=1;
 }else{
  smv=0;
  s_map.style.display="none";
 }
}
document.write("<div id=\"zoomlayer\" style=\"position:fixed;z-index:1111;top:0px;left:0px;width:0px;height:0px;background-image:url('images/pb.png');text-align:center;font-size:20pt;color:#ffffcc;font-family:verdana,arial;visibility:hidden;\">"+unescape("%3C%2Fdiv%3E"));
  var zl=document.getElementById("zoomlayer");var rnum=100;
function zoomimage(zi,zp,zg,zt){
 if(!zt){zt=0;}
  var w=getClientBounds(1);var h=getClientBounds(2);
  if(iev>2&&iev<7){
   zl.style.position='absolute';
   zl.style.top=getClientBounds(4)+"px";
  }
  zl.style.width=w+"px";
  zl.style.height=h+"px";
  rnum="zoomframe"+Math.floor(Math.random()*999-100+1)+100;
  zl.innerHTML="<div style=\"position:relative;z-index:1111;top:3px;left:3px;width:"+Math.round(w-6)+"px;height:"+Math.round(h-6)+"px;\"><iframe id=\"zoomframe"+rnum+"\" name=\"zoomframe"+rnum+"\" ALLOWTRANSPARENCY=\"true\" frameborder=\"0\" scrolling=\"No\" align=\"middle\" src=\"incs/zoompage.php?imgid="+zi+"&pid="+zp+"&gid="+zg+"&zt="+zt+"&mw="+Math.round(w-10)+"&mh="+Math.round(h-10)+"\" style=\"top:0px;left:0px;width:"+Math.round(w-6)+"px;height:"+Math.round(h-6)+"px;border:0px none #ffffff;background-color:transparent;\">"+unescape("%3C%2Fiframe%3E%3C%2Fdiv%3E");
  zl.style.visibility="visible";
}
function desktop(imgid,z,pid,eid,st){
  if(!pid&&pid!=0){pid=-1;}
  var w=getClientBounds(1);var h=getClientBounds(2);
  var fw=Math.round(w-60);var fh=Math.round(h-60);var fl=30;
  if(iev>2&&iev<7){
   zl.style.position='absolute';
   zl.style.top=getClientBounds(4)+"px";
  }
  zl.style.width=w+"px";
  zl.style.height=h+"px";
  rnum="zoomframe"+Math.floor(Math.random()*999-100+1)+100;
  var theurl="";var dc="";if(z==1){dc="&w="+screen.width+"&h="+screen.height;}
  if(z==2&&pid!=-1){
   theurl="email.php?page="+pid+"&amp;imgid="+imgid+"&amp;ssid="+eid+"&amp;start="+st;
   fl=Math.round((fw-534)/2);fw=530;
  }else{
    theurl="image.php?img="+imgid+dc+"&amp;mw="+Math.round(w-80)+"&amp;mh="+Math.round(h-106);
  }
  var zlcode="<div class=\"desktoplayer\" style=\"position:relative;z-index:1111;top:25px;left:"+(fl-5)+"px;width:"+(fw+10)+"px;height:"+(fh+10)+"px;\">";
  if(z<2){
   zlcode+="<div class=\"loadimg\" id=\"imgload_message\" style=\"top:"+Math.round((h/2)-60)+"px;left:"+Math.round((w/2)-100)+"px;z-index:25;visibility:visible;\">Creating and loading image.<br>Please Wait..."+unescape("%3C%2Fdiv%3E");
  zlcode+="<iframe id=\""+rnum+"\" name=\""+rnum+"\" ALLOWTRANSPARENCY=\"true\" frameborder=\"0\" scrolling=\"No\" align=\"middle\" src=\""+theurl+"\" style=\"position:absolute;z-index:20;top:5px;left:5px;width:"+fw+"px;height:"+fh+"px;border:0px none #ffffff;background-color:transparent;\">"+unescape("%3C%2Fiframe%3E%3C%2Fdiv%3E");
  }else{
  zlcode+="<div style=\"float:left;width:500px;margin:3px 15px;font-family:arial,verdana;font-size:10pt;color:#000000;font-weight:bold;\"><div style=\"float:left;width:440px;\">Send an E-card to a friend"+unescape("%3C%2Fdiv%3E")+"<div style=\"float:left;width:60px;\"><img src=\"images/close_t.png\" style=\"cursor:pointer;\" onclick=\"zl.style.visibility='hidden';\">"+unescape("%3C%2Fdiv%3E%3C%2Fdiv%3E");
  zlcode+="<iframe id=\""+rnum+"\" name=\""+rnum+"\" ALLOWTRANSPARENCY=\"true\" align=\"middle\" src=\""+theurl+"\" frameborder=\"0\" style=\"position:absolute;z-index:20;top:25px;left:5px;width:"+fw+"px;height:"+(fh-25)+"px;background-color:#ffffee;\">"+unescape("%3C%2Fiframe%3E%3C%2Fdiv%3E");
  }
  zl.innerHTML=zlcode;
  zl.style.visibility="visible";
}

