// JavaScript-Funktionen fuer die Bilder-Galerie
// Copyright (C) by Gerhard Bürgmann

function ds(dom,user) {
   document.write("<a href=\"mailto:"+user+'@'+dom+"\">"+user+'@'+dom+"</a>");
}

var Fotos = new Array(
"k-04",
"k-05",
"k-06",
"k-07"
);
var Text = new Array();

function gross(bild) {
	document.getElementById('full').style.visibility="visible";
	document.getElementById('thumbnails').style.visibility="hidden";
	
}

function toggle() {
	if (document.getElementById('full').style.visibility == "visible") {
		document.getElementById('full').style.visibility="hidden";
		document.getElementById('thumbnails').style.visibility="visible";
	} else {
		document.getElementById('full').style.visibility="visible";
		document.getElementById('thumbnails').style.visibility="hidden";
	}
}


var hasFlash = function(){
	var nRequiredVersion = 6;	
	
	if(navigator.appVersion.indexOf("MSIE") != -1 && navigator.appVersion.indexOf("Windows") > -1){
		document.write('<script language="VBScript"\> \non error resume next \nhasFlash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & ' + nRequiredVersion + '))) \n</script\> \n');
		if(window.hasFlash != null){
			return window.hasFlash;
		};
	};
	
	if(navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){
		var flashDescription = (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description;
		return parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1)) >= nRequiredVersion;
	};
	
	return false;
}();
