var load_method = (window.ie ? 'load' : 'domready');

window.addEvent(load_method, function() {
//window.addEvent('domready', function() {
			var myTips1 = new MooTips($$('.toolTipImg'), {
				maxTitleChars: 50		// long caption
			});
			
			var myTips2 = new MooTips($$('.toolTipImgDOM'), {
				showDelay: 500,			// Delay for 500 milliseconds
				maxTitleChars: 100
			});


			var myTips3 = new MooTips($$('.toolTipMenuModulo'), {
				initialize:function(){
				this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
			},
			onShow: function(toolTip) {
				this.fx.start(1);
			},
			onHide: function(toolTip) {
				this.fx.start(0);
			},
				evalAlways: true,		// always run the statement
				maxTitleChars: 100,		// very long caption
				fixed: true,			// fixed in place; note tip mouseover does not hide tip
				offsets: {'x':20,'y':30} // offset by 100,100
			});



			var myTips3 = new MooTips($$('.toolTipImgAJAX'), {
				initialize:function(){
				this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
			},
			onShow: function(toolTip) {
				this.fx.start(1);
			},
			onHide: function(toolTip) {
				this.fx.start(0);
			},
				evalAlways: true,		// always run the statement
				maxTitleChars: 100,		// very long caption
				fixed: true,			// fixed in place; note tip mouseover does not hide tip
				offsets: {'x':20,'y':30} // offset by 100,100
			});


			var myTips4 = new MooTips($$('.toolTipImgEVAL1'), {
				evalAlways: true,		// always run the statement
				showOnClick: true,		// click image to show tooltip
				showOnMouseEnter: false	// do not show on mouse enter
			});
			
			var myTips5 = new MooTips($$('.toolTipImgEVAL2'), {});
			var myTips6 = new MooTips($$('.toolTipImgAJAX_Err'), {});
		});
		
		
		function myEvalFunction() {
			return 'Eval Function Title::Text to be displayed in the body of the tooltip';
		}


//////////////////////////////////
window.addEvent(load_method, function() {
//window.addEvent('domready', function() {

/* Tips 2 */
var TipsLink = new Tips($$('.TipsLink a'), {
	initialize:function(){
		this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
	},
	onShow: function(toolTip) {
		this.fx.start(1);
	},
	onHide: function(toolTip) {
		this.fx.start(0);
	}
});

var Tips2 = new Tips($$('.Tips2'), {
	initialize:function(){
		this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
	},
	onShow: function(toolTip) {
		this.fx.start(1);
	},
	onHide: function(toolTip) {
		this.fx.start(0);
	}
});


var Tips2 = new Tips($$('.logo, .logo-succosa'), {
	initialize:function(){
		this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
	},
	onShow: function(toolTip) {
		this.fx.start(1);
	},
	onHide: function(toolTip) {
		this.fx.start(0);
	}
});

});
