function content_layer() {

browser_version= parseInt(navigator.appVersion);
browser_type = navigator.appName;

document_offset = 50;

if ((navigator.userAgent.indexOf("Win") != -1)){

	if (browser_type == "Netscape") {
	
	document.write(' <div id="content" style="Z-INDEX: 1; LEFT: 237px; TOP: 25px; VISIBILITY: visible; WIDTH: 525px; HEIGHT: '+(window.innerHeight-document_offset)+'px; POSITION: absolute; overflow: auto;"> ');

	}
	
	else {
	
	document.write(' <div id="content" style="Z-INDEX: 1; LEFT: 237px; TOP: 25px; VISIBILITY: visible; WIDTH: 525px; HEIGHT: '+(document.body.clientHeight-document_offset)+'px; POSITION: absolute; overflow: auto;"> ');

	}
}

if (navigator.userAgent.indexOf('Mac') != -1){

	if (navigator.appName.indexOf('Microsoft') != -1) {
	
	document.write(' <div id="content" style="Z-INDEX: 1; LEFT: 237px; TOP: 25px; VISIBILITY: visible; WIDTH: 525px; HEIGHT: '+(document.body.clientHeight-document_offset)+'px; POSITION: absolute; overflow: auto;"> ');
	
	}
	
	else {
	
	document.write(' <div id="content" style="Z-INDEX: 1; LEFT: 237px; TOP: 25px; VISIBILITY: visible; WIDTH: 525px; HEIGHT: '+(window.innerHeight-document_offset)+'px; POSITION: absolute; overflow: auto;"> ');
	
	}
}

}

function set_content() {
	browser_version= parseInt(navigator.appVersion);
	browser_type = navigator.appName;

	if (browser_type == "Netscape") {
		document.getElementById('content').style.height=window.innerHeight-document_offset;
	}
	else {
		document.getElementById('content').style.height=document.body.clientHeight-document_offset;
	}
}

function change_navigation(total_links,active_link,css) {
	for (x=1; x<=total_links; x++) {
		document.getElementById('link'+x).className=css.substring(0, css.length-7);
	}
	document.getElementById('link'+active_link).className=css;
}

function change_img(img_name) {
	document.img.src='images/bild_'+img_name+'.jpg';
}

