
/* 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
  $('area.title').cluetip({splitTitle: '|'});
  $('area.basic').cluetip();
  $('area.custom-width').cluetip({width: '200px', showTitle: false});
  $('h4').cluetip({attribute: 'id', hoverClass: 'highlight'});
  $('#sticky').cluetip({sticky: true, closePosition: 'title', arrows: true });
  $('#examples area').cluetip({
    hoverClass: 'highlight',
    sticky: true,
    closePosition: 'bottom',
    closeText: '<img src="cross.png" alt="close" width="16" height="16" />',
    truncate: 60
  });
  $('area.load-local').cluetip({local:true, hideLocal: true, sticky: true, arrows: true, cursor: 'pointer'});
  $('#clickme').cluetip({activation: 'click', sticky: true, width: 650});
 
// jTip theme
	$('area.jt').cluetip({
    cluetipClass: 'jtip', 
    arrows: true, 
	width: 515,
    dropShadow: false,
    sticky: true,
	positionBy: 'bottomTop',
    mouseOutClose: true,
    closePosition: 'title',
    closeText: '<img src="images/boton_borrar.png" alt="cerrar" />'
  });


  $('span[title]').css({borderBottom: '1px solid #900'}).cluetip({splitTitle: '|', arrows: true, dropShadow: false, cluetipClass: 'jtip'});


// Rounded Corner theme
  $('ol.rounded area').cluetip({splitTitle: '|', dropShadow: false, cluetipClass: 'rounded', showtitle: 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');
  });
  
  $('area.false').click(function() {
    return false;
  });
});
  




