/*
 * Konfiguration von jQuery
 * und jQuery Plugins
*/

$(document).ready(function() { 
  // Konfiguration Mega Pop-up - Plugin hoverintent  
  function addMega(){
    $(this).addClass("hovering");
  }
  function removeMega(){
    $(this).removeClass("hovering");
  }
  var megaConfig = {
     interval: 350,
     sensitivity: 4,
     over: addMega,
     timeout: 350,
     out: removeMega
  };
  $("li.mega").hoverIntent(megaConfig)    
  // Tooltipp Links korrigieren - jQuery
  $("a.tooltip").attr( { 'href' : '#' } )
  // Konfiguration Tooltipps - Plugin qTip
  $("a.tooltip[title]").qtip({
      position: {
        corner: {
          target: 'bottomRight',
          tooltip: 'topLeft'
        },
        adjust: {
          screen: true
        }
      },
      style: {
        padding: 0,
        background: 'transparent url(bilder/blind.gif) no-repeat right bottom',
        width: {
          min: 205,
          max: 205
        },
        border: {
          width: 0
        },
        classes: {
          tooltip: 'tool',
          title: 'tool-title',
          tip: 'tool-tip',
          content: 'tool-content'
        }
      }
  });  
});
