window.addEvent('load', function(){
	new MooTooltips({
		hovered:'.tipper',		// the element that when hovered shows the tip		
		ToolTipClass:'ToolTips',	// tooltip display class
		toolTipPosition:-1, // -1 top; 1: bottom - set this as a default position value if none is set on the element
		sticky:false,		// remove tooltip if closed  
		fromTop: 0,		// distance from mouse or object 
		fromLeft: -40,	// distance from left  
		duration: 100,		// fade effect transition duration
		fadeDistance: 10    // the distance the tooltip starts the morph 
	});		  
}); 
 
	 
window.addEvent('load', function(){ 
	lf = $('loginform');							 
	if(lf){
		lf.setStyle('display', 'block'); 
		if(lf.hasClass('visible')){ 
			
		} else {
			$('loginform').fade('hide'); 
		}
	} 
});     
  
document.addEvent('domready', function() {
 
	/**
	 * Simple example, backend returns a list of <li> elements,
	 * processed by Autocompleter.Request.HTML. 
	 */
	var inputWord = $('fulltext'); 
 	if(inputWord){
		new Autocompleter.Request.HTML(inputWord, '/?autocomplete=1', { 
			'indicatorClass': 'autocompleter-loading' // class added to the input during request
		}); 
 	} 
	
	var inputLIWord = $('fulltextLI');  
 	if(inputLIWord){  
		new Autocompleter.Request.HTML(inputLIWord, '/?autocompleteLI=1', { 
			'indicatorClass': 'autocompleter-loading' // class added to the input during request
		});  
 	}  
});
