function Pagefit() {
  var myHeight = 0, myHeight2 = 0, extra = 0;
  var screenWidth=null, scale = null; 
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myHeight = window.innerHeight;
    myHeight2 = myHeight - 230;
    document.getElementById('main').style.height = myHeight2;
    screenWidth=window.outerWidth; 
    if(screenWidth != null) 
	{ 
	scale = changescale(screenWidth);
	document.body.style.fontSize = scale + "em"; 
	}  

  } else if( document.documentElement && ( document.documentElement.clientWidth ||  document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myHeight = document.documentElement.clientHeight;
    myHeight2 = myHeight - 200;
/*    document.documentElement.clientHeight = myHeight2;*/
/*    screenWidth = window.outerWidth; */
    screenwidth = document.body.clientWidth;
    window.resizeTo(screenwidth, myHeight2); 
    if(screenWidth != null) 
	{ 
	scale = changescale(screenWidth);
	document.body.style.fontSize = scale + "em"; 
	}    

  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    /* IE 4 compatible */
    myHeight = document.body.clientHeight;
    myHeight2 = myHeight - 240;
    document.getElementById('main').style.height = myHeight2;
    screenWidth = document.body.clientWidth;
    if(screenWidth != null) 
	{ 
	scale = changescale(screenWidth);
	document.body.style.fontSize = scale + "em"; 
	}
  return myHeight; 
  }

/* var photo = document.getElementById("photo"); */
/* photo.style.border = photo.style.border; */

return 0;
}

function changescale(scrwidth)
{
   scale = 1 * ((scrwidth-200)/870);
   if (scale < 0.1) {scale = 0.1;}
   if (scale > 1.25) {scale = 1.25;}
   return scale;
}


function initialize() 
{
if (GBrowserIsCompatible()) 
  {
  var map = new GMap2(document.getElementById("map_canvas"));
  var text  = "<strong>Bournemouth Upholstery Centre</strong><br>";
  text += "890 Wimborne Road<br>";
  text += "Moordown<br>";
  text += "Bournemouth<br>";
  text += "Dorset   BH9 2DR<br>";
      
  map.setCenter(new GLatLng(50.7533, -1.8760), 16);
  map.openInfoWindow(map.getCenter(),text);
  map.addOverlay(new GMarker(map.getCenter()));
  map.addControl(new GSmallMapControl());
  map.addControl(new GMapTypeControl());
  }
}

