
/* the next line is an example of how you can override default options globally (currently commented out) ... */

 // $.fn.cluetip.defaults.tracking = true;
  // $.fn.cluetip.defaults.width = 'auto';
$(document).ready(function() {

  $.cluetip.setup({insertionType: 'insertBefore', insertionElement: 'div:first'});
  $.fn.cluetip.defaults.ajaxSettings.beforeSend = function(ct) {
     console.log(this);
  };

//default theme
  $('#sticky1').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#sticky2').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#sticky3').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#sticky4').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#sticky5').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#sticky6').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#begriff1').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: false });
  $('#begriff2').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: false });
  $('#begriff3').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: false });
  $('#begriff4').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: false });
  $('#begriff5').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: false });
  $('#begriff6').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: false });
  $('#begriff7').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: false });
  $('#begriff8').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: false });
  $('#begriff9').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: false });
  $('#begriff10').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: false });
  $('#funktion1').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#funktion2').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#funktion3').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#funktion4').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#funktion5').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#funktion6').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#funktion7').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#funktion8').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#funktion9').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#funktion10').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#funktion21').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#funktion22').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#funktion23').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#funktion24').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#funktion25').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#funktion26').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#funktion27').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#funktion28').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#funktion29').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#funktion210').cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  $('#inlaymap').cluetip({sticky: true, width: 600, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });

  for (i=0;i<=50;i++)
  {
  $('#gegenstand'+i).cluetip({sticky: true, width: 450, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  }


  for (i=0;i<=100;i++)
{

  $('#1teilnahme'+i).cluetip({sticky: false, width: 500, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  
}
  for (i=0;i<=100;i++)
{

  $('#2teilnahme'+i).cluetip({sticky: false, width: 500, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  
}
  for (i=0;i<=100;i++)
{

  $('#3teilnahme'+i).cluetip({sticky: false, width: 500, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  
}  
  for (i=0;i<=100;i++)
{

  $('#1teilnahmeall'+i).cluetip({sticky: false, width: 500, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  
}
  for (i=0;i<=100;i++)
{

  $('#2teilnahmeall'+i).cluetip({sticky: false, width: 500, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  
}
  for (i=0;i<=100;i++)
{

  $('#3teilnahmeall'+i).cluetip({sticky: false, width: 500, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  
}
  for (i=0;i<=100;i++)
{

  $('#event'+i).cluetip({sticky: false, width: 500, closeText: '<img src="../images/cluetip/cross.png" alt="close" width="16" height="16" />',closePosition: 'title', arrows: true });
  
}  
// jTip theme
  $('a.jt:eq(0)').cluetip({
    cluetipClass: 'jtip', 
    arrows: true, 
    dropShadow: false,
    sticky: true,
    mouseOutClose: true,
    closePosition: 'title',
    closeText: '<img src="../images/cluetip/cross.png" alt="close" />'
  });
  $('a.jt:eq(1)').cluetip({cluetipClass: 'jtip', arrows: true, dropShadow: false, hoverIntent: false});
  $('span[title]').css({borderBottom: '1px solid #900'}).cluetip({splitTitle: '|', arrows: true, dropShadow: false, cluetipClass: 'jtip'});

  $('a.jt:eq(2)').cluetip({
    cluetipClass: 'jtip', 
    arrows: true, 
    dropShadow: false, 
    height: '150px', 
    sticky: true,
    positionBy: 'bottomTop'    
  });

  $('a.jt:eq(3)').cluetip({local: true, hideLocal: false});
  
  $('a.jt:eq(4)').cluetip({
    cluetipClass: 'jtip', arrows: true, 
    dropShadow: false, 
    onActivate: function(e) {
      var cb = $('#cb')[0];
      return !cb || cb.checked;
    }
  });

// Rounded Corner theme
  $('ol.rounded a:eq(0)').cluetip({splitTitle: '|', dropShadow: false, cluetipClass: 'rounded', showtitle: false});
  $('ol.rounded a:eq(1)').cluetip({cluetipClass: 'rounded', dropShadow: false, showtitle: false, positionBy: 'mouse'});
  $('ol.rounded a:eq(2)').cluetip({cluetipClass: 'rounded', dropShadow: false, showtitle: false, positionBy: 'bottomTop', topOffset: 70});
  $('ol.rounded a:eq(3)').cluetip({cluetipClass: 'rounded', dropShadow: false, sticky: true, ajaxCache: false, arrows: true});
  $('ol.rounded a:eq(4)').cluetip({cluetipClass: 'rounded', dropShadow: false});    
});

//unrelated to clueTip -- just for the demo page...

$(document).ready(function() {
  $('div.html, div.jquery').next().css('display', 'none').end().click(function() {
    $(this).next().toggle('fast');
  });
  
  $('a.false').click(function() {
    return false;
  });
});
  




