﻿function fOnLoad()
{
  if(top == self)
  {
    if((window.location.pathname).indexOf('C:') == -1)
    {
      top.location.href = '../../index.html?vIFR=' + window.location.pathname
    }
    else
    {
      top.location.href = '../../index.html?vIFR=' + (window.location.pathname).substr((window.location.pathname).indexOf('Content'))
    }
  }
}

function fResizeParentControls()
{
  var intHeight = document.body.scrollHeight + 30
  // Resize IFrame
  if(intHeight < 350)
  {
    intHeight = 350
  }
  parent.document.getElementById('ContentLoading').style.display = 'none'
  parent.document.getElementById('ContentIFrame').style.height = intHeight + 'px'
  parent.document.getElementById('ContentIFrame').style.visibility = 'visible'
}
