/*
 * JQUERY Code by Zitrox GmbH
 * Auto: Michael Martin
 * Date: July 2010
 */

// funktion für den 1. inhalt..

    $(document).ready(function() {

      // Marquee at startpage
      $('marquee').marquee('pointer').mouseover(function () {
        $(this).trigger('stop');
      }).mouseout(function () {
        $(this).trigger('start');
      }).mousemove(function (event) {
        if ($(this).data('drag') == true) {
          this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX);
      }}).mousedown(function (event) {
        $(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
      }).mouseup(function () {
        $(this).data('drag', false);
      }); // ende marquee


      // Team - beim Hover über Link das Bild aufleuchten.
      $('.rightcol.teamname a.img').hover(function() {
        // mouse over
          var id = $(this).attr("id");
          var pic_neu = "images/stories/portrait/team/" + id + "_rot.jpg";
          var target = 'img.' + id ;
          $(target).stop().attr("src", pic_neu)

        // mouse leave
        }, function() {
          var id = $(this).attr("id");
          var pic_alt = "images/stories/portrait/team/" + id + "_sw.jpg";
          var target = 'img.' + id ;
          $(target).stop().attr("src", pic_alt)
      }).click(function(){ return false; });

      // Healthlab Submenus ausblenden..
      $('li.item41,li.item42,li.item43,li.item44').hide();

    }); // end ready

