Object.extend(Prototip.Styles, {
	'defifoot_default': {
    	border: 1, borderColor: '#333333', className: 'defifoot_default',
    	closeButton: false, hideAfter: false, hideOn: 'mouseleave',
    	hook: false, radius: 1, showOn: 'mousemove',
	    stem: {
	      //position: 'topLeft',       // Example: optional default stem position, this will also enable the stem
	      height: 8, width: 8
	    }
  	},
  	'defifoot_modal': {
    	border: 2, borderColor: '#336600', className: 'defifoot_modal',
    	closeButton: false, hideAfter: false, hideOn: 'click', hook: false, fixed: false,
    	images: 'http://'+HTTP_HOST+'/images/tooltip/modal/',    // Example: different images. An absolute url or relative to the images url defined above.
    	radius: 2, showOn: 'click', borderColor: "#336600"
  	},
  	'defifoot_classic': {
  	    border: 2, borderColor: '#336600', className: 'defifoot_classic', fixed: true,
  	    hideOn: 'click', images: 'http://'+HTTP_HOST+'/images/tooltip/modal/',    // Example: different images. An absolute url or relative to the images url defined above.
  	    radius: 2, showOn: 'click', hook: { tip: 'topLeft', mouse: true }, offset: { x:7, y:-4},
  	    stem: { position: 'leftTop', height: 12, width: 15 }
  	  }
});
var TooltipDefault = Class.create(Tooltip, {
  initialize: function($super, element, content, options) {
		options = (options!=null)?options:{};
		Object.extend(options, { style: 'defifoot_default' });		
		$super(element, content, options);
  }
});
var TooltipModal = Class.create(Tooltip, {
  initialize: function($super, element, content, options) {
		options = (options!=null)?options:{};
		Object.extend(options, { style: 'defifoot_modal' });	
		$super(element, content, options);
		Event.observe(element, 'click', DefifootWindow.activerModal);		
  },
  hide: function($super) {
	  DefifootWindow.cancelModal();
	  $super();
  }
});
var TooltipClassic = Class.create(Tooltip, {
  initialize: function($super, element, content, options) {
		options = (options == null)?{}:options;
		options.style = 'defifoot_classic';
		$super(element, content, options);		
  }
});
var TooltipClassicSolo = Class.create(TooltipClassic, {
  initialize: function($super, element, content, options) {
		$super(element, content, options);	
  },
  show: function($super) {
	  if (TooltipClassicSolo._tipDisplayed != null) {
		  TooltipClassicSolo._tipDisplayed.hide();
	  }
	  TooltipClassicSolo._tipDisplayed = this;
	  $super();
  }
});
Object.extend(TooltipClassicSolo, { _tipDisplayed: null });
