// Version vom 21.8.: aktive Sektionen werden zu Beginn permanent gesetzt
// Version vom 22.8.: unterschiedliche Farben zum Unterstreichen der Navigation (img_underline_sections)


	// Definition der Bilder
	var img_underline		   = "image/mint.gif";
	var img_underline_sections = new Array (img_underline, img_underline, img_underline, 
							    img_underline, img_underline, img_underline,
							    img_underline, img_underline, img_underline,
							    img_underline);	
	var img_setback		= "image/trans.gif";
	var img_mark_active	= "image/mint.gif";


	// Definition Bilder Zeilen
	var sections = new Array (1);

	// Navigationsseite
	var sections_nav = new Array (10);
	sections_nav[0] = 16;
	sections_nav[1] = 22;
	sections_nav[2] = 27;

	// Biografie
	var sections_bio = new Array (10);
	sections_bio[0] = 16;
	sections_bio[1] = 23;
	sections_bio[2] = 35;

	// Diskografie
	var sections_diskografie = new Array (10);
	sections_diskografie[0] = 16;
	sections_diskografie[1] = 23;
	sections_diskografie[2] = 41;
	sections_diskografie[3] = 33;

	// DJ
	var sections_dj = new Array (10);
	sections_dj[0] = 15;
	sections_dj[1] = 22;
	sections_dj[2] = 33;
	sections_dj[3] = 58;


	// Galerie
	var sections_galerie = new Array (10);
	sections_galerie[0] = 15;
	sections_galerie[1] = 22;
	sections_galerie[2] = 32;
	sections_galerie[3] = 57;


	// Geschichten
	var sections_tales = new Array (10);
	sections_tales[0] = 15;
	sections_tales[1] = 22;
	sections_tales[2] = 33;
	sections_tales[3] = 59;

	// mp3
	var sections_mp3 = new Array (10);
	sections_mp3[0] = 15;
	sections_mp3[1] = 22;
	sections_mp3[2] = 30;

	// Neuigkeiten
	var sections_news = new Array (10);
	sections_news[0] = 15;
	sections_news[1] = 22;
	sections_news[2] = 35;

	// Pressefotos
	var sections_presse = new Array (10);
	sections_presse[0] = 15;
	sections_presse[1] = 22;
	sections_presse[2] = 30;

	// Pressespiegel, Interviews
	var sections_pressespiegel = new Array (10);
	sections_pressespiegel[0] = 15;
	sections_pressespiegel[1] = 22;
	sections_pressespiegel[2] = 31;

	// Pressespiegel, Interviews - Inhalt
	var sections_pressespiegel_inhalt = new Array (10);
	sections_pressespiegel_inhalt[0] = 15;
	sections_pressespiegel_inhalt[1] = 21;
	sections_pressespiegel_inhalt[2] = 23;

	// Radio
	var sections_radio = new Array (10);
	sections_radio[0] = 17;
	sections_radio[1] = 24;
	sections_radio[2] = 36;

	// Tipps
	var sections_tipps = new Array (10);
	sections_tipps[0] = 15;
	sections_tipps[1] = 22;
	sections_tipps[2] = 29;

	// Video
	var sections_video = new Array (10);
	sections_video[0] = 15;
	sections_video[1] = 22;
	sections_video[2] = 34;
		
	// Zweite Hand
	var sections_2ndhand = new Array (10);
	sections_2ndhand[0] = 15;
	sections_2ndhand[1] = 22;
	sections_2ndhand[2] = 29;
	sections_2ndhand[3] = 56;

	// zxy
	var sections_zxy = new Array (10);
	sections_zxy[0] = 15;
	sections_zxy[1] = 22;
	sections_zxy[2] = 32;


	

	// aktive Rubrik
	var active_section = -1;
	var active_image = -1;

	var active_section_2 = -1;
	var active_image_2 = -1;


	function underline(section, imgnum) {
		if ((section != active_section   || imgnum != active_image)  && 
		    (section != active_section_2 || imgnum != active_image_2)) {
			window.document.images[sections[section - 1] + imgnum - 1].src = img_underline_sections[section-1];
		}
	}

	function setback(section, imgnum) {
		if ((section != active_section   || imgnum != active_image) && 
		    (section != active_section_2 || imgnum != active_image_2)) {
			window.document.images[sections[section - 1] + imgnum - 1].src = img_setback;
		}
	}

	var max_loops = 500;
	var cur_loop = 0;
	function mark_active() {
		if (window.document.images[sections[active_section - 1] + active_image - 1] != null && 
			active_section > 0 && active_image > 0) {
			
			// erste Rubrik markieren
			window.document.images[sections[active_section - 1] + active_image - 1].src = img_mark_active;

			// zweite Rubrik markieren
			if (active_section_2 > 0 && active_image_2 > 0) {
				if (window.document.images[sections[active_section_2 - 1] + active_image_2 - 1] != null) {
					window.document.images[sections[active_section_2 - 1] + active_image_2 - 1].src = img_mark_active;
				} 
			}
		}

		if (cur_loop++ < max_loops) {
			window.setTimeout("mark_active()", 300);
		} 
	}

	// Aufruf: markiere aktive Rubrik
	mark_active();
