// Version 1.5

function zoom_out() {
      document.all.bild_klein.style.display = "none";  
      document.all.bild_gross.style.display = "block";          
}

function zoom_in() {
      document.all.bild_klein.style.display = "inline";  
      document.all.bild_gross.style.display = "none";          
}


function changeList(id) {
  if (document.getElementById(id).style.display!="none") var aktion="einklappen";
  
  for (i=1;;i++) {
     if (document.getElementById("zielgruppe"+i)) {      
	      document.getElementById("zielgruppe"+i).style.display="none";	
        document.getElementById("zielgruppe"+i).parentNode.className="ausklappen";	
        }
     else break;
	}
    
	if (aktion=="einklappen")
  {
  document.getElementById(id).style.display="none";	
  document.getElementById(id).parentNode.className="ausklappen";
  } else {
  document.getElementById(id).style.display="block";	
  document.getElementById(id).parentNode.className="ausgeklappt";
  }
}

function printFooter()  {
      var heute = new Date();
      var jahr = heute.getYear();
      var monat = heute.getMonth()+1;
      var tag = heute.getDate();
//      document.all["print_data"].innerHTML = window.document.URL+"<br>printed on "+tag+"."+monat+"."+jahr;
      document.all["print_data"].innerHTML = window.document.URL+"<br>printed on "+heute;
}

function go(x)  {
      window.location.href=x;
}


startList = function() {
	setPage();
   for (i=1;;i++) {
     if (document.getElementById("zielgruppe"+i)) {      
	      document.getElementById("zielgruppe"+i).style.display="none";	
        document.getElementById("zielgruppe"+i).parentNode.className="ausklappen";	
        }
     else break;
	}
}

/**************************************************************************
 *                                                                        *
 *  JAVASCRIPT MENU HIGHLIGHTER v.1.0 (051123)                            *
 * --------------------------------------------                           *
 * ©2005 Media Division (www.MediaDivision.com)                           *
 *                                                                        *
 * Written by Marius Smarandoiu & Armand Niculescu                        *
 *                                                                        *
 * You are free to use, modify and distribute this file, but please keep  *
 * this header and credits                                                *
 *                                                                        *
 * Usage:                                                                 *
 * - the script will apply the .current class to the <a> and its parent   *
 *   <li> that is contained in the element with id="primarynav" and points*
 *   to the current URL                                                   *
 * - works in IE6, Firefox and Opera                                      *
 **************************************************************************/
function extractPageName(hrefString) {
	var arr = hrefString.split('/');
	return (arr.length<2) ? hrefString : arr[arr.length-2].toLowerCase() + arr[arr.length-1].toLowerCase();
}

function setActiveMenu(arr, crtPage)
{
	for (var i=0; i<arr.length; i++) {
		if(extractPageName(arr[i].href) == crtPage) {
/*			if (arr[i].parentNode.tagName != "DIV") { */
				arr[i].className = "navigation_aktiv";
/*				arr[i].parentNode.className = "navigation_aktiv"; */
				}
			}
}

function setPage()
{
	hrefString = document.location.href ? document.location.href : document.location;

	if (document.getElementById("hauptnavigation")!=null) 
		setActiveMenu(document.getElementById("hauptnavigation").getElementsByTagName("a"), 
							extractPageName(hrefString));
}

window.onload=startList;