/**
 * debug.js
 *
 * A collection of Javascript commands to initialize the
 * debugging features.
 * Based on jQuery.
 *
 * @author    Andreas Doelling
 * @copyright 2009 Zentrale Medien GmbH
 * @version   1.0
 */

 jQuery(document).ready( function() {
   // init toggling of debug box
	
   jQuery('#toggleDebug a').show( function() {
      jQuery(this).blur();
      jQuery('#debug').toggle();
   });

   jQuery('#toggleDebug a').click( function() {
      jQuery(this).blur();
      jQuery('#debug').toggle();
   });


   // init toggling of debug box
   jQuery('#popupToggleDebug a').click( function() {
      jQuery(this).blur();
      jQuery('#popupDebug').toggle();
   });
   
   jQuery('#debug h1 a, #popupDebug h1 a').click( function() {
      jQuery(this).blur();
      jQuery(this).parent().next('div').toggle();
   });
 });
