﻿function Placefooter(offset) {

var a, b;
  	if (self.innerHeight) {
		a = window.innerHeight+20;
  	} else if (window.document.documentElement.clientHeight || window.document.body.clientHeight) {
		a = window.document.documentElement.clientHeight+10;
  	} else if (document.documentElement && document.documentElement.clientHeight) {
		a = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		a = document.body;
	}
	var zahl1 = parseInt(a);
	var zahl2 = zahl1-18;
	var cont = document.getElementById("main").offsetHeight;
	var content = parseInt(cont);
	if(content < zahl2) {
		document.getElementById("wrapper").style.height = zahl2-2 + 'px';
		document.getElementById("main").style.height = zahl2-147 + 'px';
		document.getElementById("content").style.height = zahl2-165 + 'px';
		document.getElementById("nav").style.height = zahl2-230 + 'px';
	}
}

function swapContent(showcontent) {
	$("#task").slideUp("fast");
	document.getElementById('li_task').className = 'inact';
	$("#project").slideUp("fast");
	document.getElementById('li_project').className = 'inact';
	$("#meeting").slideUp("fast");
	document.getElementById('li_meeting').className = 'inact';
	$("#ressourcen").slideUp("fast");
	document.getElementById('li_ressourcen').className = 'inact';
	$("#" + showcontent).slideDown("fast");
	document.getElementById('li_' + showcontent).className = 'act';
}

function popup(film) {
    x = screen.availWidth/2-w/2;
    y = screen.availHeight/2-h/2;
    var popupWindow = window.open('','','width=640,height=480,scrollbars=no,toolbar=no');
    popupWindow.document.write('<html><object height="200" width="640" style="width: 640px; height: 200px;" data="/mce/flash/' + film + '.swf" type="application/x-shockwave-flash"><param name="flashvars" value="xmlfile=default.xml&amp;loaderColor=#ffffff" /><param name="src" value="/mce/flash/' + film + '.swf" /><param name="bgcolor" value="#ffffff" /></object></html>');
  }

