function controlSwfplay(whichsound,where){
    var movie = findeFlash('loadmp3');
    if (movie) { 
  
        movie.SetVariable("thesound", whichsound);
        movie.GotoFrame(3);
    } else {
        alert ("Es fehlt das Player-Movie");
    }  
}

  function findeFlash (flash) {

    if (document.all) {
      if (document.all[flash]) {
         
        return document.all[flash];
      }
      if (window.opera) {
        var movie = eval(window.document + flash);
        if (movie.SetVariable) {
          return movie;
        }
      }
      return;
    }
    if(document.layers) {
   
      if(document.embeds) {
        var movie = document.embeds[flash];
        if (movie.SetVariable) {
         
          return movie;
          
        }
      }
      return;
    }
    if (!document.getElementById) {
     
      return;
    }
    var movie = document.getElementById(flash);
    
    if (movie.SetVariable) {
      return movie;
    }
    var movies = movie.getElementsByTagName('embed');
    if (!movies || !movies.length) {
      return;
    }
    movie = movies[0];
    if (movie.SetVariable) {
      return movie;
    }
    return;
  }















function fonload(){
    clipareainitpage();

}




function centerIt(){
        location.reload();
}

//-----arbeit 20071205 ---------------------------------------------------start
function overNavPic(whichPic){
// whichPic muss am Ende "-1" aufweisen
        if (document.images){           
            mysrc = document.images[whichPic].src;
            myname = mysrc.substring(mysrc.lastIndexOf("/")+1);
            myprefix = myname.substring(0,myname.lastIndexOf(".")-1);
            mysuffix = myname.substring(myname.lastIndexOf("."));
            mypath = mysrc.substring(0,mysrc.lastIndexOf("/")+1);
            document.images[whichPic].src = mypath + myprefix + "2" + mysuffix ;
        }

}
function outNavPic(whichPic){
        if (document.images){
            mysrc = document.images[whichPic].src;
            myname = mysrc.substring(mysrc.lastIndexOf("/")+1);
            myprefix = myname.substring(0,myname.lastIndexOf(".")-1);
            mysuffix = myname.substring(myname.lastIndexOf("."));
            mypath = mysrc.substring(0,mysrc.lastIndexOf("/")+1);
            document.images[whichPic].src = mypath + myprefix + "1" + mysuffix ;
        }
}

//-----arbeit 20080818 ---------------------------------------------------start
var isNav, isIE
var lastdiv1 = ""
var lastdiv2 = ""
var lasthiddenText = ""
var coll = ""
var styleObj = ""
var myTop = 0;
if(navigator.appName=="Netscape"){
        isNav=true
} else {
        isIE=true
        coll="all."
        styleObj=".style"
}
function js_hide_navoutmouse(){
    js_hide2(lastdiv2);
    js_hide(lastdiv1);
}
function js_show(what, where){
        if (lastdiv1 != ""){
                js_hide(lastdiv1);
                js_hide2(lastdiv2);
        }
        myTop = where;      
        if (isNav){
        
        if (document.getElementById(what + "parent1")){
        //alert (where);
                document.getElementById(what + "parent1").style.top=where;
                document.getElementById(what + "parent1").style.visibility="visible";
                document.getElementById(what + "child1").style.top = where-4;
                document.getElementById(what + "child1").style.visibility="visible";
                document.getElementById("navoutmouse").style.visibility="visible";


        }
        } else {
                if (eval(document.all(what+ "parent1"))) {
                        var obj=eval("document." + coll + what + "parent1" + styleObj);
                        obj.top = where;
                        obj.visibility="visible";
                        var obj=eval("document." + coll + what + "child1" + styleObj);
                        obj.top = where;
                        obj.visibility="visible";
                        var obj=eval("document." + coll + "navoutmouse" + styleObj);
                        obj.visibility="visible";

                }
        }
        lastdiv1 = what;
}

function js_hide(what){
        if (isNav){
            if (document.getElementById(what + "parent1")){
                    document.getElementById(what + "parent1").style.visibility="hidden";
                    document.getElementById(what + "child1").style.visibility="hidden";
                    document.getElementById("navoutmouse").style.visibility="hidden";
            }
        } else {
            if (eval(document.all(what+ "parent1"))) {
                var obj=eval("document." + coll + what + "parent1" + styleObj);
                obj.visibility="hidden";
                var obj=eval("document." + coll + what + "child1" + styleObj);
                obj.visibility="hidden";
                var obj=eval("document." + coll + "navoutmouse" + styleObj);
                obj.visibility="hidden";
            }
        }
}
function js_show2(what, where){
        if (lastdiv2 != ""){
               js_hide2(lastdiv2);
        }
        if (isNav){
            document.getElementById("navoutmouse").style.visibility="visible";
            if (document.getElementById(what + "parent2")){
                    document.getElementById(what + "parent2").style.left = where+200;
                    document.getElementById(what + "parent2").style.top = myTop;
                    document.getElementById(what + "parent2").style.visibility="visible";
                    document.getElementById(what + "child2").style.left = where+200;
                    document.getElementById(what + "child2").style.top = myTop-400;
                    document.getElementById(what + "child2").style.visibility="visible";                    
                    document.getElementById("navoutmouse").style.visibility="visible";
            }        
        } else {
            //alert (myTop);
                if (eval(document.all(what+ "parent2"))) {
                        var obj=eval("document." + coll + what + "parent2" + styleObj);
                        obj.visibility="visible";
                        obj.left = where+200;
                        obj.top = myTop;
                        var obj=eval("document." + coll + what + "child2" + styleObj);
                        obj.visibility="visible";
                        obj.left = where+200;
                        obj.top = myTop-394;
                        var obj=eval("document." + coll + "navoutmouse" + styleObj);
                        obj.visibility="visible";
                }
        }
        lastdiv2 = what;
}
function js_hide2(what){
        if (isNav){
            if (document.getElementById(what + "parent2")){
                    document.getElementById(what + "parent2").style.visibility="hidden";
                    document.getElementById(what + "child2").style.visibility="hidden";
                    document.getElementById("navoutmouse").style.visibility="hidden";
            }
        } else {
            if (eval(document.all(what+ "parent2"))) {
                    var obj=eval("document." + coll + what + "parent2" + styleObj);
                    obj.visibility="hidden";
    
                    var obj=eval("document." + coll + what + "child2" + styleObj);
                    obj.visibility="hidden";
    
                    var obj=eval("document." + coll + "navoutmouse" + styleObj);
                    obj.visibility="hidden";
            }
        }
}
function js_showFunc(what, where){
    //alert (what);
        if (lasthiddenText != ""){
               js_hideFunc(lasthiddenText);
        }
                lasthiddenText = what;
        if (isNav){           
            if (document.getElementById(what + "hiddenText")){
            //positionsangabe muss fuer OSX/safari gemacht werden ??? 20080613

                    document.getElementById(what + "hiddenText").style.left=0;              
                    document.getElementById(what + "hiddenText").style.visibility="visible";   

                                
            }        
        } else {
                if (eval(document.all(what+ "hiddenText"))) {
                        var obj=eval("document." + coll + what + "hiddenText" + styleObj);
                        obj.visibility="visible";


                }
        }

}
function js_hideFunc(what){
   if (lasthiddenText != ""){
        if (isNav){
            if (document.getElementById(what + "hiddenText")){
                   document.getElementById(what + "hiddenText").style.visibility="hidden";
                   document.getElementById(what + "hiddenText").style.left=0;  
            }
        } else {
            if (eval(document.all(what+ "hiddenText"))) {
                    var obj=eval("document." + coll + what + "hiddenText" + styleObj);
                    obj.visibility="hidden";
    
            }
        }
   }
}