/******************************************************************************
 ** MP_Aufklapp/Zuklapp  v0.5                                                **
 ** ~~~~~~~~~~~~~~~~~~~~~~~~~                                                **
 **                                                                          **
 ** Beschreibung:                                                            **
 **                                                                          **
 ** Funktionen zum Aufklappen bzw. Zuklappen von Inhalten innerhalb einer    **
 ** Seite. Eswird jeweils das nächste Element in den display modus 'block'   **
 ** gesetzt. bzw. 'none'                                                     **
 **                                                                          **
 ** Geteste Browser:                                                         **
 **                                                                          **
 **  - IE 6.x                                                                **
 **  - Moziall Firefox 2.x                                                   **
 **                                                                          **
 ** ChangeLog:                                                               **
 **                                                                          **
 **  28.03.2007:  Erstellt, Daniel Schwarz                                   **
 **                                                                          **
 **              MP_Aufklapp/Zuklapp   (c) 2007, medienPARK, Daniel Schwarz  **
 *****************************************************************************/         
       
 document.aktivesKlappObj = null;
 
 function MP_NaechstesElement(obj) {
   objNext = obj;
   if ( objNext && 
        objNext.nextSibling) {
     objNext = objNext.nextSibling;
     while (objNext != null && objNext.nodeType != 1) {
       objNext = objNext.nextSibling;
     }
   }
   return objNext;
 }
 
 
 function MP_Aufklappen(obj) {
   MP_Zuklappen();
   objNext = MP_NaechstesElement(obj);
   if (objNext != null) {      
     objNext.style.display = 'block';
     obj.style.display = 'none';
     document.aktivesKlappObj = obj;
   }
 }
 
 function MP_Zuklappen() {
   if (document.aktivesKlappObj != null) {
     objNext = MP_NaechstesElement(document.aktivesKlappObj);
     if (objNext != null) {     
       objNext.style.display = 'none';
       document.aktivesKlappObj.style.display = 'inline';             
       document.aktivesKlappObj = null;
     }
   }           
 }

 
  function MP_Top() {
    document.location.hash = '#top'; 
    window.status = "Top";
  }
