// Configuration of TIGRA HINT for nexoft.pl

var nexoftHint = {
	config: { // Hints config
		'wise'       : true, // don't go off screen, don't overlap the object in the document
		'margin'     : 10, // minimum allowed distance between the hint and the window edge (negative values accepted)
		'gap'        : 4, // minimum allowed distance between the hint and the origin (negative values accepted)
		'align'      : 'bctc', // align of the hint and the origin (by first letters origin's top|middle|bottom left|center|right to hint's top|middle|bottom left|center|right)
		'css'        : 'nexoft-hint', // a style class name for all hints, applied to DIV element (see style section in the header of the document)
		'show_delay' : 200, // a delay between initiating event (mouseover for example) and hint appearing
		'hide_delay' : 500, // a delay between closing event (mouseout for example) and hint disappearing
		'follow'     : false, // hint follows the mouse as it moves
		'z-index'    : 100, // a z-index for all hint layers
		'IEfix'      : false, // fix IE problem with windowed controls visible through hints (activate if select boxes are visible through the hints)
		'IEtrans'    : ['blendTrans(DURATION=.3)', 'blendTrans(DURATION=.3)'], // [show transition, hide transition] - nice transition effects, only work in IE5+
		'opacity'    : 100 // opacity of the hint in %%
	},

	hints: [], // Hints list
	
	hObject: null, // Hints objects
	
	// Adds hint to list; id-hint id; s-hint content
	addHint: function(id, s) {
		this.hints[id] = s;
		return id;
	},
	
	// Initizalizes hint object
	initHints: function() {
		this.hObject = new THints (this.hints, this.config);
	},
	
	// Shows given hint; id-hint id, element-parent html object
	show: function(id, element) {
		if (this.hObject != null)		
			this.hObject.show(id, element);
	},
	
	// Hides hint
	hide: function() {
		if (this.hObject != null)		
			this.hObject.hide();
	}
};

