
/* ====== TEXT kann nicht markiert werden ====== */
/* function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
 */
/* ====== Rechte Maustaste wird deaktiviert ====== */
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

/* ====== Bildnavigation highlighten ====== */
function high(name,over)
{
	if(top.document.images)
	{
		if (over)
			top.document.images[name].src = "../images/" + name + "_high.gif";
		else
			top.document.images[name].src = "../images/" + name + ".gif";
	}
}

/* ====== Bildnavigation highlighten ====== */
function unhigh(name,over)
{
	if(top.document.images)
	{
		if (over)
			top.document.images[name].src = "images/" + name + "_high.gif";
		else
			top.document.images[name].src = "images/" + name + ".gif";
	}
}

/* ====== MouseOver Bildgalerie ====== */
function showLayer(layerid)
{
layer = document.getElementById(layerid);
layer.style.visibility = "visible";
}
function hideLayer(layerid)
{
layer = document.getElementById(layerid);
layer.style.visibility = "hidden";
}

/* ====== Bilderanimation ====== */
$(document).ready(function(){
			anim_phase1 = function(a) {
				var t = setTimeout('anim_phase2('+a+')', t_stand);
			}
			anim_phase2 = function(a) {
				var b = a+1;
				if ( b > animAnzahl) b = 1
				  $('#'+animArr[a-1].id).fadeOut(t_fade);
				  $('#'+animArr[b-1].id).fadeIn(t_fade, anim_phase1(b));
			}
			
			var animArr = $('.animate-pic');
			var animAnzahl = animArr.length;
			var t_stand = 3000;
			var t_fade = 2000;
			
			anim_phase1(1);
			
		});
