// 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>ausgedruckt am "+tag+"."+monat+"."+jahr;
}

function go(x)  {
      window.location.href=x;
}


startList = function() {
   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;
	}
}

window.onload=startList;

// cookie helpers [TM, 2007-04-04]

// this function gets the cookie, if it exists
function getCookie( name ) {
  var start = document.cookie.indexOf( name + "=" );
  var len = start + name.length + 1;
  if ( ( !start ) &&
       ( name != document.cookie.substring( 0, name.length ) ) )
    {
      return null;
    }
  if ( start == -1 ) return null;
  var end = document.cookie.indexOf( ";", len );
  if ( end == -1 ) end = document.cookie.length;
  return unescape( document.cookie.substring( len, end ) );
}

// this deletes the cookie
function deleteCookie( name, path, domain ) {
  if ( getCookie( name ) ) {
    document.cookie = name + "=" +
      ( ( path ) ? ";path=" + path : "") +
      ( ( domain ) ? ";domain=" + domain : "" ) +
      ";expires=Thu, 01-Jan-1970 00:00:01 GMT";
  }
}


