function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function largeImagePopup(imageUrl)
{
	var child = open("largeImagePopup.php?imageUrl="+imageUrl,
		"child",
		"height=500,width=600,screenX=300,screenY=200,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=1,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0");
	child.focus();
}
function jemail(user, domain, suffix, cssClass)
{
	if(cssClass)
	{
		document.write('<a class="' + cssClass + '" href="mailto:' + user + '@' + domain + '.' + suffix + '"' + '>' + user + '@' + domain + '.' + suffix + '<' + '/' + 'a' + '>');
	}
	else
	{
		document.write('<a href="mailto:' + user + '@' + domain + '.' + suffix + '"' + '>' + user + '@' + domain + '.' + suffix + '<' + '/' + 'a' + '>');
	}
}
function writeMap(user, domain, suffix)
{
	document.write('<map name="headerO_Map">');
	document.write('<area shape="rect" alt="Email us" title="Email us" coords="537,77,762,99" href="');
	document.write('mailto:' + user + '@' + domain + '.' + suffix);
	document.write('">');
	document.write('<area shape="poly" alt="Home" title="Home" coords="0,0, 529,0, 524,29, 515,56, 508,71, 499,83, 492,91, 487,94, 481,97, 474,99, 0,99" href="http://www.gardenofficesuk.co.uk/">');
	document.write('</map>');
}
function popUp(url, width, height, scrollbars)
{
	var width = (width == null) ? "400" : width;
	var height = (height == null) ? "400" : height;
	var scrollbars = (scrollbars == null || scrollbars == false) ? "0" : "1";
	var screenX = (window.screen.width/2) - (width)/2;
	var screenY = (window.screen.height/2) - (height)/2;
	var child = window.open(
		url,
		"child",
		"height="+height+",width="+width+",screenX="+screenX+",screenY="+screenY+",top="+screenY+",left="+screenX+",alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=1,scrollbars="+scrollbars+",status=1,titlebar=0,toolbar=0,z-lock=0"
	);
	child.focus();
}