function resize()
{
  var wide = window.screen.availWidth
  var high = window.screen.availHeight
  var maxh = 600 
  var maxw = 600 
  var content = document.getElementById('content')
  content.style.position = 'absolute'
  
  if(maxh > 0 && high <= maxh){
	content.style.height = high + "px"
  }
  
  if(maxw > 0 && wide <= maxw){
	content.style.height = high + "px"
  }
  
  if(maxh > 0 && high > maxh){
	content.style.height = maxh + "px"
	high = (high - maxh) / 2
	content.style.top = high/2 + "px"
  }
  
  if(maxw > 0 && wide > maxw){
	content.style.width = maxw + "px"
	wide = (wide - maxw) / 2
	content.style.left = wide + "px"
  }
  
}
