// Copyright (C) 2006 Dennis Klein
// Autor: Dennis Klein
// Datei: default.js
// The copyright notice must stay intact for use!
//
// This program is distributed in the hope that it will be useful,
// but without any warranty, expressed or implied.


// if left marginal larger then content or right marginal,
// this function will resize the content to hide the background-color of
// contentWrapper wich is used for the background of the left marginal

		function contentHeight() {
			temp1 = document.getElementById('leftMarginal').offsetHeight/16;
			temp2 = document.getElementById('content').offsetHeight/16;
			if (document.getElementById('rightMarginal')){
				temp3 = document.getElementById('rightMarginal').offsetHeight/16;
			}
			else{
				temp3= 0;
			}
			if (document.getElementById('imageHeadline')){
				temp4 = 13.5;
			}
			else{
				temp4 = 0;
			}
			if (document.getElementById('contentTeaser1')){
				temp5 = document.getElementById('contentTeaser1').offsetHeight/16;
			}
			else{
				temp5 = 0;
			}
			if ((temp1 > (temp2+temp4+temp5))&&(temp1 > (temp3+temp4+temp5))) {
				if (window.navigator.userAgent.indexOf("MSIE ") > -1 && parseFloat(navigator.appVersion) <= 6){
					document.getElementById('content').style.height = (temp1-temp4-temp5-2)+'em';
				}
				else{
				document.getElementById('content').style.minHeight = (temp1-temp4-temp5-2)+'em';
				}
			}
		}


		function toggleSlide(currentid) {
			$(currentid).next(0).toggleClassName('hidden');
			$(currentid).toggleClassName('slideHeadline1');
			$(currentid).toggleClassName('slideHeadline2');
		}
