// JavaScript Document

// Region "onload"

function waehleframe(frame) {
    if (frame != 'index') {
        document.location.href = 'index.html?' + frame;
    }

    else {
        if (window.location.search.replace('?', '') != '') {
            var Frame_iframe = document.getElementById('iframe');
            Frame_iframe.src = 'frames/' + window.location.search.replace('?', '') + window.location.hash;
        }

    }

}

function checklevel(frame)
{
	if (top == self)
		self.location = '../index.html?' + frame;
}

function resizeiframe()
{
	var margin_top = 0;
	if (!isNaN(parseInt(document.body.style.marginTop))) {
		margin_top = parseInt(document.body.style.marginTop);
	}

	var margin_bottom = 0;
	if (!isNaN(parseInt(document.body.style.marginBottom))) {
		margin_bottom = parseInt(document.body.style.marginBottom);
	}

	var size = 0;
	if (document.body.clientHeight) {
		size = document.body.clientHeight + margin_top + margin_bottom;
	}
	else {
		size = self.innerHeight + margin_top + margin_bottom;
	}

	var mindesthoehe = 150;
	var Frame_iframe = parent.document.getElementById('iframe');

	if (size > mindesthoehe) {
		Frame_iframe.style.height = size + 'px';
	}
	else {
		Frame_iframe.style.height = mindesthoehe + 'px';
	}
}

// End Region "onload"
