$(document).ready(function(){

  $("div.slideToggle").hide();
  $("a.slideToggle").show();
  
	$("a.slideToggle").click(function(){

		$(this).parent().next("div.slideToggle").slideToggle("normal"); 

	});
	
	$("input.load").click(function(){

		$("div#overlay").toggle('fast');

	});


});

      $(document).ready(function() {
      $("a.fancybox").fancybox({
      'zoomSpeedIn': 600,
      'zoomSpeedOut': 600,
      'overlayOpacity': 0.9,
      'imageScale': true

      });

      });

      $(document).ready(function() {
        $("a.iframe").fancybox({
        'zoomSpeedIn': 600,
        'zoomSpeedOut': 600,
        'overlayOpacity': 0.9,
        'frameWidth': 800,
        'frameHeight': 600,
        'imageScale': true

        });

      });

      $(document).ready(function() {
        // Plugin
        $.fn.delay = function( time, name ) {
            return this.queue( ( name || "fx" ), function() {
                var self = this;
                setTimeout(function() { $.dequeue(self); } , time );
            });
        };

        // Klicker
        $('.layer').delay(5000).fadeOut(1500);
      });
            $(document).ready(function()
        {
            $("table.accountverwaltung").tablesorter();
        }
        );


/*      $(document).ready(function(){
        $("a.loeschen").click(function(){
          $('div.bild').load($(this).attr("href")).fadeOut().fadeIn();
          return false;
        });

      });

      $(document).ready(function() {
        $('a.loeschen').each(
          function( intIndex ){
            var newHREF = "ajax.php?loeschen=" + this.id;
            $( this ).attr('href', newHREF);
          }
        );
      });

*/