//DW script
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
//martin script

// Panoramabewegung links/rechts und Pfeile Overlay
	  var moveactiv;
    var minpos = 0;        // linker Bildrand (normalerweise 0)
    var minspeed = 1;    // langsame Geschwindigkeit
    var medspeed = 2;    // mittlere Geschwindigkeit
    var maxspeed = 7;    // schnelle Geschwindigkeit
    var movespeed = 0;    // aktuelle Geschwindigkeit
    function leftin(mydiv) {
		mydiv.style.backgroundImage="url(../grafic/arrow_left_2.png)";
        window.clearInterval(moveactiv);                    // stop moving
        moveactiv = window.setInterval("moveleft()", 20);    // start moving
    }
    function rightin(mydiv) {
		mydiv.style.backgroundImage="url(../grafic/arrow_right_2.png)";
        window.clearInterval(moveactiv);                    // stop moving
        moveactiv = window.setInterval("moveright()", 20);    // start moving
    }
    function leftout(mydiv) {
		mydiv.style.backgroundImage="url(../grafic/arrow_left_1.png)";
		        window.clearInterval(moveactiv);                    // stop moving
    }
    function rightout(mydiv) {
		mydiv.style.backgroundImage="url(../grafic/arrow_right_1.png)";
        window.clearInterval(moveactiv);                    // stop moving
    }
    function speedslow() {
        movespeed = minspeed;
    }
    function speedmed() {
        movespeed = medspeed;
    }
    function speedfast() {
        movespeed = maxspeed;
    }
    function moveleft() {
        with (document.getElementById("stage").style) {
            var actpos = parseInt(backgroundPosition);
            if (isNaN(actpos)) actpos = 0;
            actpos += movespeed;
            if (actpos > minpos) actpos = minpos;
            backgroundPosition = actpos+"px top";
        }
    }
    function moveright() {
        with (document.getElementById("stage").style) {
            var actpos = parseInt(backgroundPosition);
            if (isNaN(actpos)) actpos = 0;
            actpos -= movespeed;
            if (actpos < -maxpos) actpos = -maxpos;
            backgroundPosition = actpos+"px top";
        }
    }

// Seiteninitialisierung, Menusteuerung und Preload
    function pageinit() {
        document.getElementById(thismenuid).style.visibility="visible";
		MM_preloadImages('../grafic/arrow_left_2.png','../grafic/arrow_right_2.png','../images/team/team_banner.jpg');
    }
    function menuover(myid) {
        document.getElementById(thismenuid).style.visibility="hidden";
        document.getElementById(myid).style.visibility="visible";
    }
    function menuout(myid) {
        document.getElementById(myid).style.visibility="hidden";
        document.getElementById(thismenuid).style.visibility="visible";
    }
// Fenster oeffnen für impressum und datenschutz
	function FensterOeffnen (Adresse) {
	  ExtraFenster = window.open(Adresse, "Zweitfenster", "width=500,height=500,left=100,top=200");
	  ExtraFenster.focus();
	}

