﻿
// configuration variable for the hint object, these setting will be shared among all hints created by this object
var HINTS_CFG = {
	'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'        : 20, // 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'        : 'hintsClass', // 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' : 200, // 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'    : ['revealTrans(TRANSITION=3,DURATION=.5)', 'revealTrans(TRANSITION=2,DURATION=.5)'], // [show transition, hide transition] - transition effects, only work in IE5+
	'opacity'    : 100 // opacity of the hint in %%
};
// text/HTML of the hints
var HINTS_ITEMS = {
	'tt1': '<a href="http://www.mwvastronomy.com"><img src="images/mwvastronomy.jpg" border="1" /></a>',
	'tt2': '<a href="http://www.muracco.com"><img src="images/mike.jpg" border="1" /></a>',
	'tt3': '<a href="http://www.forestgleninn.com"><img src="images/forest2.jpg" border="1" /></a>',
	'tt4': '<a href="http://www.beechrivermill.com"><img src="images/beech_river_mill.jpg" border="1" /></a>',
	'tt5': '<a href="http://www.carolinacedarworks.com"><img src="images/cedar_works.jpg" border="1" /></a>',
	'tt6': '<a href="http://www.organicdogsandcats.com"><img src="images/organic_dogs_and_cats.jpg" border="1" /></a>',
};

var myHint = new THints (HINTS_ITEMS, HINTS_CFG);