
			//Create a boolean variable to check for a valid Internet Explorer instance.
			var xmlhttp = false;
			//Check if we are using IE.
			try {
			//If the Javascript version is greater than 5.
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
			//If not, then use the older active x object.
			try {
			//If we are using Internet Explorer.
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (E) {
			//Else we must be using a non-IE browser.
			xmlhttp = false;
			}
			}
			//If we are using a non-IE browser, create a javascript instance of the object.
			if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
			xmlhttp = new XMLHttpRequest();
			}


		<!-- ================================================= -->
		<!-- ====    Function the sends a request to server == -->
		<!-- ================================================= -->
		function makerequest(page_path, pic_path) {
			//displays the picture in sidebar_pic
			getPic(pic_path);
			//displays the page contect
			getPage(page_path, 'main_content');
		}			
		
		<!-- ================================================= -->
		<!-- ====    Function the sends a request to server == -->
		<!-- ================================================= -->
		function makerequestWithCloseMenu(page_path, pic_path) {

			closeSub();	
			//displays the picture in sidebar_pic
			getPic(pic_path);
			//displays the page contect
			getPage(page_path, 'main_content');
		}			
		
		<!-- ================================================= -->
		<!-- ====    funtion that toggels the CSS menu    ==== -->
		<!-- ================================================= -->
		function toggleMenu(divId) {
			var div = document.getElementById(divId);
			
			if(div.style.display == "none" &&  divId == "notare")
				document.getElementById('anwaelte').style.display = "none";
			else if(div.style.display == "none" && divId == "anwaelte")
				document.getElementById('notare').style.display = "none";
				

			div.style.display = (div.style.display == "none") ? "block" :"none";
			
			}

		
		<!-- ================================================= -->
		<!-- ====    funtion that displays the pictures   ==== -->
		<!-- ================================================= -->
		function getPic (pic_path) {
	 		if (document.getElementById) {
		 	document.getElementById('pic').src = pic_path;
		 	}
		}
		<!-- ================================================= -->
		<!-- ====    Function the gets a page from server   == -->
		<!-- ================================================= -->
		function getPage(page_path, divId) {
			// accesses the main_content object
			var main_content = document.getElementById(divId);
			
			xmlhttp.open("GET", page_path);
			xmlhttp.onreadystatechange = function() {
				if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
					main_content.innerHTML = xmlhttp.responseText;
				}
			}
			xmlhttp.send(null);
		}			
		
		function setMenuHeight()	{
			var id = document.getElementById('main_content');
			var sidebar_menu = document.getElementById('sidebar_menu');
			var height = id.offsetHeight - 200;
			sidebar_menu.style.height = height+'px';
		}
		
		function closeSub()	{
			if(document.getElementById('anwaelte').style.display == "block")
				document.getElementById('anwaelte').style.display = "none";
			if(document.getElementById('notare').style.display == "block")
				document.getElementById('notare').style.display = "none";
		}
		
		function init()	{
			document.getElementById('anwaelte').style.display = "none";
			document.getElementById('notare').style.display = "none";

		}
		function adjustPage()	{
			var bName = navigator.appName;
			var image = document.getElementById('image');
			var menubar = document.getElementById('menubar');
			
			var screenwidth = screen.width;
			var screenheight = screen.height;
			
			if (bName == "Microsoft Internet Explorer" )	{
				image.style.width = screenwidth - 21;
				menubar.style.height = screenheight - 510;
			}
			else	{	
				image.style.width = screenwidth ;
				menubar.style.height = screenheight - 635;
			}
			
			
		}
