
	// Check for JavaScript 1.1
	var browserOK = false;
	var Bilder;

	/*
	 *		Check browser
	 */

	var detect = navigator.userAgent.toLowerCase();
	var OS,browser,version,total,thestring;
	
	if (checkIt('konqueror'))
	{
		browser = "Konqueror";
		OS = "Linux";
	}
	else if (checkIt('safari')) browser = "Safari"
	else if (checkIt('omniweb')) browser = "OmniWeb"
	else if (checkIt('opera')) browser = "Opera"
	else if (checkIt('webtv')) browser = "WebTV";
	else if (checkIt('icab')) browser = "iCab"
	else if (checkIt('msie')) browser = "Internet Explorer"
	else if (!checkIt('compatible'))
	{
		browser = "Netscape Navigator"
		version = detect.charAt(8);
	}
	else browser = "An unknown browser";
	
	if (!version) version = detect.charAt(place + thestring.length);
	
	if (!OS)
	{
		if (checkIt('linux')) OS = "Linux";
		else if (checkIt('x11')) OS = "Unix";
		else if (checkIt('mac')) OS = "Mac"
		else if (checkIt('win')) OS = "Windows"
		else OS = "an unknown operating system";
	}
	
	function checkIt(string)
	{
		place = detect.indexOf(string) + 1;
		thestring = string;
		return place;
	}
	
<!-- 
	// Browser is JavaScript 1.1 compatible
	browserOK = true;
	Pics = new Array();
// -->

<!--
	// Picture path
	var pic_path = "/fileadmin/images/pics/";
	var obj_count = -1;

	// Change images on mouse over
	function mouse_over(name) {
		var obj_ind = -1;
		
		// Check for compatible browser
		if (browserOK) {
			// Traverse all navigation objects
			for (i=0; i<=obj_count; i++) {
				// Check for image
				if (document.images[Pics[i][0]]) {
					// Check name, change it, else set to passive
					if (name != Pics[i][0]) {
						// Change image to passive
						document.images[Pics[i][0]].src = Pics[i][1].src
						
					} else {
						// Store obj_ind
						obj_ind = i;
					}
				}
			}
			
			// Change image to active
			document.images[Pics[obj_ind][0]].src  = Pics[obj_ind][2].src;
		}
	}
	
	// Change images on mouse out
	function mouse_out(name) {
		var obj_ind = -1;
		
		// Check for compatible browser
		if (browserOK) {
			// Traverse all navigation objects
			for (i=0; i<=obj_count; i++) {
				// Check for image
				if (document.images[Pics[i][0]]) {
					// Change image to passive
					document.images[Pics[i][0]].src = Pics[i][1].src
				}
			}
		}
	}
		
	// Load images
	function load(imageName, aImage, pImage) {
		// Check for compatible browser
		if (browserOK) {
			// Increment obj_count
			++obj_count;
			
			// Initialize new array
			Pics[obj_count] = new Array(4);
			
			// Set names
			Pics[obj_count][0] = imageName;
			Pics[obj_count][1] = new Image();
			Pics[obj_count][1].src = pic_path + aImage;
			Pics[obj_count][2] = new Image();
			Pics[obj_count][2].src = pic_path + pImage;
		}
	}
	
	// Open new window, special dimensions
	function win(theURL,winName,features) {
  		fenster=null;

 		fenster=window.open(theURL,winName,features);
  
		if(fenster!=null) {
			if(fenster.opener==null) { fenster.opener==self; fenster.location.href=theURL; }
 		} 
	}
	
	// Resize window to contents
	function resize_to_contents(image_width,image_height) {
		// Get new window width
		var width_new = image_width+122;
	
		// Check for ie
		if(browser == "Internet Explorer") {
			// Get new window height
			var height_new = image_height+177;

		} else {
			// Get new window height
			var height_new = image_height+157;
		}
		
		// Resize window
		window.resizeTo(width_new,height_new);
		
		// Move to 0,0
		//window.moveTo(10,10);
	}

	// Open new document window
	function zoom(name) {
		var foto_page = "/pic.php";
	
		// Open new window
		win(foto_page + "?file=" + name, "foto", "width=572,height=432,scrollbars=no,status=no");
	}

-->