/********************************************************************/
// vars
/********************************************************************/

var sExpressInstall = "web/pix/expressInstall.swf";
var captionDiv = "caption";


/********************************************************************/
// general functions
/********************************************************************/

// address flash movie for external interface in action script
function thisMovie( movieName )
{
    if ( navigator.appName.indexOf("Microsoft") != -1 )
    {
        return window[movieName];
    }
    else
    {
        return document[movieName];
    }
}


function showProjectData( projectIndex )
{
	if ( aProjectData.length > 0 )
	{
		var infoBox = document.getElementById( "projectInfo" );
		if ( infoBox )
		{
			var sInfo = '<h2>' + aProjectData[projectIndex]["title"] + '</h2><p>' + aProjectData[projectIndex]["location"] + '</p>';
			sInfo += '<p id="projectLink"><a href="' + aProjectData[projectIndex]["href"] + '">' + aProjectData[projectIndex]["link_title"] + '</a></p>';
			infoBox.innerHTML = sInfo;
		}
	}
}


function openRecommendForm( webpage )
{
	var recommendWin = window.open( 'seite_empfehlen?page=' + webpage, 'recommendform', 'left=100, top=100, width=400, height=550, scrollbars=no, location=no, toolbar=no, status=yes' );
}


function getWindowHeight ()
{
    var windowHeight = 0;
    if ( typeof(window.innerHeight) == 'number' )
    {
       windowHeight = window.innerHeight;
    }
    else
    {
        if ( document.documentElement &&
            document.documentElement.clientHeight )
        {
            windowHeight = document.documentElement.clientHeight;
        }
        else
        {
            if ( document.body &&
                document.body.clientHeight )
            {
                windowHeight = document.body.clientHeight;
            }
        }
    }
    return windowHeight;
}


function setContentHeight ()
{
	var viewPortHeight = getWindowHeight() - 160;
	document.getElementById('stdContent').style.height = viewPortHeight + "px";
}

if ( document.getElementById("stdContent") )
{
	// window.onload = setContentHeight;
	// window.onresize = setContentHeight;
}

