/// ----------------------------------------------------------------------------
/// --- All elements copyright (c) 2002 - 2008 by
/// --- SFW - Stefan Falz Webconsulting
/// --- http://www.asp-solutions.de/
/// --- 
/// --- Unauthorized use is strongly prohibited
/// ----------------------------------------------------------------------------
/// --- Frontend JavaScript functions
/// ---
/// --- Created on: 24.04.2007 von SFW (SF)
/// ----------------------------------------------------------------------------
/// --- Last changed on  : 17.06.2007
/// --- Last changed from: SF
/// --- Reason           : Inserted several functions
/// ---                    - changeColor
/// ---                    - highlightItem
/// ---                    - gotoPage
/// ---                    - changeVideo
/// ---
/// --- Last changed on  : 20.11.2007
/// --- Last changed from: SF
/// --- Reason           : Inserted several functions
/// ---                    - activateFlash
/// ---                    - activateMedia
/// ---
/// --- Last changed on  : 15.02.2008
/// --- Last changed from: SF
/// --- Reason           : Changed code
/// ----------------------------------------------------------------------------

function calcHeight()
{
var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;

//find the height of the internal page
var the_height

    if(isIE)
    {
        the_height = document.getElementById('ContentFrame').contentWindow.document.body.scrollHeight + 8;
    }
    else
    {
        the_height = document.getElementById('ContentFrame').contentWindow.document.body.offsetHeight + 18;
    }

    //change the height of the iframe
    document.getElementById('ContentFrame').height = the_height;
}

