if (self.parent.frames.length==0 && location.host) {
  var strIndex = location.href.replace(/[^\/]+$/, "");
//  top.location = (strIndex == location.href) ? "/" : strIndex;
}

var objContentDiv;
var minHeight;
var maxHeight;
function InitContentDiv() {
  objContentDiv = document.getElementById('divContent');
  minHeight = 150; //parseInt( objContentDiv.offsetParent.offsetTop );
  maxHeight = objContentDiv.style.pixelHeight;
  window.onresize = ResizeContentDiv;
  ResizeContentDiv();
}

function ResizeContentDiv() {
 // if (!objContentDiv) InitContentDiv();
  var newHeight = document.body.offsetHeight - parseInt( objContentDiv.offsetParent.offsetTop );
  if (newHeight < minHeight) newHeight = minHeight;
  else if (newHeight > maxHeight) newHeight = maxHeight;
  objContentDiv.style.pixelHeight = newHeight;
}



function InitContentDivPark() {
  objContentDiv = document.getElementById('divContent');
  minHeight = 100;
  maxHeight = objContentDiv.style.pixelHeight;
  window.onresize = ResizeContentDivPark;
  ResizeContentDivPark();
}
function ResizeContentDivPark() {
 // if (!objContentDiv) InitContentDiv();
  var newHeight = document.body.offsetHeight - parseInt( objContentDiv.offsetTop );
  if (newHeight < minHeight) newHeight = minHeight;
  else if (newHeight > maxHeight) newHeight = maxHeight;
  objContentDiv.style.pixelHeight = newHeight;
}