function visible(reveal, prefix, first, last) {
	var i,id;
	for(i=first;i<=last;i++) {
	id=prefix+i;
    	if(i==reveal) {
			element = document.getElementById(id).style;
	        element.visibility = "visible";
	       element.display = "inline"; }
		else {
		    element = document.getElementById(id).style;
	        element.visibility = "hidden";
	        element.display = "none"; }
	}
}
function detect_home() {
	var durl = document.URL;
	var srch = durl.search(/index/);
	if (srch == -1) document.write('&raquo; <a href="index.shtml">mehr Info...</a>');
}
function disp_email( prefix, domain, tld ) {
		var lnk = prefix + "@" + domain + "." + tld;
		document.write("<a h" + "ref=" + "ma" + "il" + "to:" + prefix + "@" + domain + "." + tld  + ">" + lnk + "</" + "a>");
} 
function searchit() {
	var srch = document.Suchen.p_search.value;
	window.location.href = 'suchergebnis.shtml?search=' + srch;
	}

function slideshow(xmlfile) {
	document.write('<div id="flashcontent">');
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="370" HEIGHT="519" id="flashcontent" ALIGN="">');
	document.write('<param name="movie" value="slideshow.swf?file='+xmlfile+'"> ');
	document.write('<param name="quality" value="high"> ');
	document.write('<param name="scale" value="noscale"> ');
	document.write('<param name="wmode" value="opaque"> ');
	document.write('<param name="bgcolor" value="#ffffff">');
	document.write('<embed src="slideshow.swf?file='+xmlfile+'" quality="high" scale="noscale" wmode="transparent" bgcolor="#ffffff"  width="370px" height="519px" name="flashcontent" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.write('</object>');
	document.write('</div>');
}

