function centralise2()
{
  var leftMargin = 0, topMargin = 0;
  if( document.getElementById )
  {
    if( typeof( window.innerWidth ) == 'number' ) {
      //Non-IE
      leftMargin = window.innerWidth;
      topMargin = window.innerHeight;
    } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
      //IE 6+ in 'standards compliant mode'
      leftMargin = document.documentElement.clientWidth;
      topMargin = document.documentElement.clientHeight;
    } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
      //IE 4 compatible
      leftMargin = document.body.clientWidth;
      topMargin = document.body.clientHeight;
    }
		leftMargin = leftMargin / 2 - 375;
		topMargin = topMargin / 2 - 300;
    if( leftMargin < 0 ) leftMargin = 0;
    if( topMargin < 0 ) topMargin = 0;
		document.write('<style type="text/css"><!--  #page{margin-top:' + topMargin 
													 + 'px;margin-left:' + leftMargin + 'px;} --></style>');
  }
}
/*		
			var active_image = "1";
			var old_thumb = "thumb1";
			var image_path = "./_images/gallery/pic";
			var image_path_thumb = "./_images/gallery/thumb";
			var image_path_hover = "./_images/gallery/thumbhover";
			
			function changeImage(id, thumb, newImage) {
			  if (active_image != newImage) {
				if (document.all) {
				    document.all[id].style.backgroundImage = "url(" + image_path + newImage + ".png" + ")";
				    document.all[thumb].style.backgroundImage = "url(" + image_path_hover + newImage + ".png" + ")";
				    document.all[old_thumb].style.backgroundImage = "url(" + image_path_thumb + active_image + ".png" + ")";
				  }
				  if (document.layers) {
				    document.layers[id].document.style.backgroundImage = "url(" + image_path + newImage + ".png" + ")";
				    document.layers[thumb].style.backgroundImage = "url(" + image_path_hover + newImage + ".png" + ")";
				    document.layers[old_thumb].style.backgroundImage = "url(" + image_path_thumb + active_image + ".png" + ")";
				  }
				  if (document.getElementById) {
				    document.getElementById(id).style.backgroundImage = "url(" + image_path + newImage + ".png" + ")";
				    document.getElementById(thumb).style.backgroundImage = "url(" + image_path_hover + newImage + ".png" + ")";
				    document.getElementById(old_thumb).style.backgroundImage = "url(" + image_path_thumb + active_image + ".png" + ")";
				  }
				  old_thumb = thumb;
				  active_image = newImage;
			  }
			}*/
function showPic (whichpic) {
 if (document.getElementById) {
  document.getElementById('mainimg')
  .src = whichpic.href;
/*  if (whichpic.title) {
   document.getElementById('desc')
  .childNodes[0].nodeValue = whichpic.title;
  } else {
   document.getElementById('desc')
  .childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
  }*/
  return false;
 } else {
  return true;
 }
}
