/*
 This file is part of HiNii.

 Copyright (C) 2008 Carnino Claudio (jollyr0ger) <jollyr0g3r@gmail.com>
 */

/**
 * Tooltips autostarter
 * @author jollyr0ger
 *
 * Attention need:
 * -Prototype
 * -Scriptaculous
 * -Cooltips
 */
var TooltipsAutostart = Class.create({ });
Object.extend(TooltipsAutostart, {
	
	
	/**
	 * Start the tooltips system
	 * @parma	string		className		Class name of reference
	 */
	start: function(className){
		
		// Check the class style
		if(className == null){
			className = ".show-help";
		}
	
		// Wait the load of the page
		Event.observe(document, 'dom:loaded', function(){
			
			// Add the tooltips
			$$(className).each(function(item){
				new Tooltip(item, { opacity: .95 });
			});
		});
	}

});



