
function check_content()
{
  // Get natural heights
  var cHeight = xHeight("content");
  var minHeight = 400;

  // Find the maximum height
  var maxHeight = Math.max(cHeight, minHeight);
  // alert(lHeight);

  // Assign maximum height to all columns
  xHeight("content", maxHeight);

}


function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return [curleft,curtop];
}

function getMouseXY(e) {
  if (document.all) { // grab the x-y pos.s if browser is IE
    tempX = event.clientX + document.body.scrollLeft
    tempY = event.clientY + document.body.scrollTop
  } else {  // grab the x-y pos.s if browser is NS
    tempX = e.pageX
    tempY = e.pageY
  }
  // catch possible negative values in NS4
  return [tempX,tempY];

}

function put_slogan()
{
  if (document.getElementById('slogan_img'))
  {
    mouse_position_array = getMouseXY();
    obj_position_array = findPos(document.getElementById('slogan_img'));
    lowerX = eval(obj_position_array[0] + 15);
    lowerY = eval(obj_position_array[1] + 15) ;
    // alert(lowerX + ' ' + lowerY );
    document.getElementById('slogan').style.left = lowerX + 'px';
    document.getElementById('slogan').style.top = lowerY + 'px';
    document.getElementById('slogan').style.display = 'inline';
  }
  if (document.getElementById('address_img')) put_address();
}


function put_address()
{
  mouse_position_array = getMouseXY();
  obj_position_array = findPos(document.getElementById('address_img'));
  lowerX = eval(obj_position_array[0] + 285);
  lowerY = eval(obj_position_array[1] + 3) ;
  // alert(lowerX + ' ' + lowerY );
  document.getElementById('header_address').style.left = lowerX + 'px';
  document.getElementById('header_address').style.top = lowerY + 'px';
  document.getElementById('header_address').style.display = 'inline';
}

