function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function flash() {
document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"512\" height=\"223\">");
document.writeln("<param name=\"movie\" value=\"flash/banner.swf\">");
document.writeln("<param name=\"quality\" value=\"high\">");
document.writeln("<embed src=\"flash/banner.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"512\" height=\"223\"></embed></object>");
}

function Rpanel() {
document.writeln("<img src=\"http://www.jonespeckover.com/images/envelope.gif\" alt=\"Contact Wrexham office by email\" width=\"12\" height=\"9\" border=\"0\" align=\"middle\">&nbsp;&nbsp;<a href=\"mailto:wrexham@jonespeckover.com\" class=\"rlink\"><strong>Email Wrexham office</strong></a><br>tel: 01978 364283 or fax: 01978 291718<br><br>");
document.writeln("<img src=\"http://www.jonespeckover.com/images/envelope.gif\" alt=\"Contact Denbigh office by email\" width=\"12\" height=\"9\" border=\"0\" align=\"middle\">&nbsp;&nbsp;<a href=\"mailto:denbigh@jonespeckover.com\" class=\"rlink\"><strong>Email Denbigh office</strong></a><br>tel: 01745 812127 or fax: 01745 816429<br><br>");
document.writeln("<img src=\"http://www.jonespeckover.com/images/envelope.gif\" alt=\"Contact Abergele office by email\" width=\"12\" height=\"9\" border=\"0\" align=\"middle\">&nbsp;&nbsp;<a href=\"mailto:abergele@jonespeckover.com\" class=\"rlink\"><strong>Email Abergele office</strong></a><br>tel: 01745 832240 or fax: 01745 827190<br><br>");
document.writeln("<img src=\"http://www.jonespeckover.com/images/envelope.gif\" alt=\"Contact Menai Bridge office by email\" width=\"12\" height=\"9\" border=\"0\" align=\"middle\">&nbsp;&nbsp;<a href=\"mailto:menaibridge@jonespeckover.com\" class=\"rlink\"><strong>Email Menai Bridge office</strong></a><br>tel: 01248 362524 or fax: 01248 715197");
document.writeln("<br>..................................................................<br><a href=\"javascript:addbookmark()\">");
document.writeln("<img src=\"http://www.jonespeckover.com/images/fave.jpg\" alt=\"Add this site to your Internet Explorer \'favourites\' list\" vspace=\"7\" border=\"0\" width=\"120\" height=\"25\"></a><br>");
document.writeln("<a href=\"http://www.jonespeckover.com/sitemap.htm\">");
document.writeln("<img src=\"http://www.jonespeckover.com/images/sitemapbtn.jpg\" alt=\"Property sitemap\" border=\"0\" width=\"69\" height=\"25\"></a>");
document.writeln("</p><form onsubmit=\"return noway()\" name=\"FORM2\" class=\"sendtoform\">..................................................................<br>");
document.writeln("<span class=\"formhead\"><img src=\"http://www.jonespeckover.com/images/lisml.gif\" alt=\"\" align=\"top\" width=\"19\" height=\"14\">Send this page to a friend?</span>");
document.writeln("<br><input name=\"Button\" type=\"button\" onClick=\"mailme(this.form)\" class=\"sendbtn\" value=\"Send\"><input name=\"to\" type=\"text\" class=\"formbox2\" value=\"enter email address\" size=\"24\" onFocus=\"clearBox(this);\">");
document.writeln("<br>..................................................................</form><p class=\"subnav\">");
document.writeln("This website and it\'s content<br>&copy; Jones Peckover 2007.<br>All rights reserved.<br><br>By using this website you agree to<br>our <a href=\"http://www.jonespeckover.com/privacy-statement.htm\" class=\"rlink\">terms and conditions</a>.<br><br><br>");
}

function rics() {
document.writeln("<a href=\"http://www.rics.org/\" target=\"_blank\"><img src=\"http://www.jonespeckover.com/images/RICS_top.gif\" alt=\"Members of the Royal Institute of Chartered Surveyors\" width=\"90\" height=\"31\" border=\"0\" class=\"ricslogo\"></a>");
}

function oea() {
document.writeln("<br><a href=\"http://www.oea.co.uk/\" target=\"_blank\"><img src=\"images/oea.gif\" alt=\"Member of the Ombudsman for Estate agents scheme\" width=\"59\" height=\"40\" border=\"0\" hspace=\"20\" vspace=\"25\"></a>");
}

function mailme(form) {
document.location.href=("mailto:" + form.to.value + "?subject=A property web site you may be interested in&body=I just found this web page at " + document.location.href + ", which I thought you might find useful. \n\n")
}

function noway() {
alert('Please click the send button to mail this page to a friend.')
return false
}

var bookmarkurl = "http://www.jonespeckover.com";
var bookmarktitle = "Jones Peckover Estate Agents";

function addbookmark() {
if (document.all) window.external.AddFavorite(bookmarkurl, bookmarktitle);
}

function clearBox(box) {
 if(box.value==box.defaultValue) {
   box.value = "";
  }
 }
 
 function deleteconfirm()
{
var formconfirm = "This will PERMANENTLY delete your listing - Do you really want to remove it?";
if (confirm(formconfirm))
return true;
else
return false;
}

function replaceconfirm()
{
var imageconfirm = "Are you sure you want to reset your listing image to a 'coming soon' placeholder?";
if (confirm(imageconfirm))
return true;
else
return false;
}