var actnum = 0;
function playMovie(movie,theme,nr){
         /* link_content wegschalten */
         ac = document.getElementById('link_content');
         ac.style.display = 'none';

         /* movie einschalten und Laden */
         mv = document.getElementById('movie');
         mv.style.display = 'block';
         mv.LoadMovie(0, "mov/" + movie + ".swf");

         /* ueberschrift movie einschalten */
         th = document.getElementById('theme');
         th.LoadMovie(0, "mov/" + theme + ".swf");

         /* alle navigationselemente grau faerben   */

         for (var i = 0; i <= 14; i++) {
             temp = 'nav_' + i;
             var nav = document.getElementById(temp);
             nav.style.color = '#999';
             nav.style.border = '1px dotted #111';
         }

         /* ausgewaehltes nav-element gruen faerben + rahmen   */
         var navi = document.getElementById('nav_' + nr);
         navi.style.border = '1px dotted #99CC66';
         navi.style.color = '#99CC66';


         /* sound wechseln wenn noetig (zugriff auf flash-film musicbox.swf
         per object id/name 'snd') */
         var snd = document.getElementById('snd');

         with(snd)
         {
           if
           (((nr == 0) ||
           (nr == 1) ||
           (nr == 2) ||
           (nr == 3) ||
           (nr == 4) ||
           (nr == 5) ||
           (nr == 6)) &&
           ((actnum != 0) &&
           (actnum != 1) &&
           (actnum != 2 ) &&
           (actnum != 3 ) &&
           (actnum != 4 ) &&
           (actnum != 5 ) &&
           (actnum != 6)))
                    {
                    GotoFrame(25);
                    Play();
                    }
           else if
           (((nr == 7) ||
           (nr == 8) ||
           (nr == 9) ||
           (nr == 10)) &&
           ((actnum != 7) &&
           (actnum != 8) &&
           (actnum != 9 ) &&
           (actnum != 10)))
                    {
                    GotoFrame(27);
                    Play();
                    }
           else if (nr == 11) {
                    GotoFrame(29);
                    Play();
                    }
           else if (nr == 12) {
                    GotoFrame(31);
                    Play();
                    }
           else if (nr == 13) {
                    GotoFrame(33);
                    Play();
                    }
         }
         actnum = nr;
}

function showLinks () {
         mv = document.getElementById('movie');
         mv.style.display = 'none';
         ac = document.getElementById('link_content');
         ac.style.display = 'block';
         th = document.getElementById('theme');
         th.LoadMovie(0, "mov/t_links.swf");

         for (var i = 0; i <= 14; i++) {
             var nav = document.getElementById('nav_' + i);
             nav.style.color = '#999';
             nav.style.border = '1px dotted transparent';
         }
         var navi = document.getElementById('nav_14');
         nav.style.border = '1px dotted #99CC66';
         nav.style.color = '#99CC66';
         var snd = findeFlash('snd');
         with(snd)
                  {
                  GotoFrame(35);
                  Play();
                  }
}
