// ************************
// gua script
// ************************
//
// This script uses the jquery framework and the cycle plugin.
// (many thanks to both project teams)
// 
// jQuery is available at:
// http://jquery.com/
// 
// jQuery Cycle Plugin is available at: 
// http://malsup.com/jquery/cycle/
// 

$(function() {

  // DOM ready
  
  $('#draco').cycle({ 
    fx:      'slideY', 
    timeout: 0, 
    speed:   300, 
    next:    '#draco', 
    before:  onBefore, 
    after:   onAfter 
  });

  $('#elf').cycle({ 
    fx:      'slideY', 
    timeout: 0, 
    speed:   300, 
    next:    '#elf', 
    before:  onBefore, 
    after:   onAfter 
  });

  $('#gnom').cycle({ 
    fx:      'slideY', 
    timeout: 0, 
    speed:   300, 
    next:    '#gnom', 
    before:  onBefore, 
    after:   onAfter 
  });

  $('#engel').cycle({ 
    fx:      'slideY', 
    timeout: 0, 
    speed:   300, 
    next:    '#engel', 
    before:  onBefore, 
    after:   onAfter 
  });

  $('#tiere').cycle({ 
    fx:      'slideY', 
    timeout: 0, 
    speed:   300, 
    next:    '#tiere', 
    before:  onBefore, 
    after:   onAfter 
  });

  $('#rooms').cycle({ 
    fx:      'slideY', 
    timeout: 0, 
    speed:   300, 
    next:    '#rooms', 
    before:  onBefore, 
    after:   onAfter 
  });

  $('#imps').cycle({ 
    fx:      'slideY', 
    timeout: 0, 
    speed:   300, 
    next:    '#imps', 
    before:  onBefore, 
    after:   onAfter 
  });

  $('#sternz').cycle({ 
    fx:      'slideY', 
    timeout: 0, 
    speed:   300, 
    next:    '#sternz', 
    before:  onBefore, 
    after:   onAfter 
  });

  $('#wicht').cycle({ 
    fx:      'slideY', 
    timeout: 0, 
    speed:   300, 
    next:    '#wicht', 
    before:  onBefore, 
    after:   onAfter 
  });


  // jQuery Cycle Plugin: callback
  function onBefore() {
    $('#coutp').html("");
  }

  // jQuery Cycle Plugin: callback
  function onAfter() {
    $('#coutp').html(this.alt);
  }
  
});

