// 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'     : 0, //10, // minimum allowed distance between the hint and the window edge (negative values accepted)
	'gap'        : 0, // minimum allowed distance between the hint and the origin (negative values accepted)
	'align'      : 'tcbc', // 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, //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'    : 75 //100 // opacity of the hint in %%
};

// text/HTML of the hints
var HINTS_ITEMS = [
	'<p align="center">The owner of these pages makes no claim for their moral,<br>cultural or other insignificant value and assumes no responsibility or liability<br>for any emotional or intellectual damage resulting from their use. <br><br>We reserve the right to refuse response to any humorless,<br> or otherwise unforgiving responses or flames.<br><br>All rights reserved, and no part of this document may be reproduced<br>without the express written consent of lots of overpaid attorneys.<br><br>Remember they can do nasty stuff like send you to prison<br>where you might end up sharing a jail cell with some big hairy guy<br>that might like to see you in a dress, unless you are into that...<br><br>*** I UNDERSTAND, I AM ENTERING AT MY OWN RISK! ***<br><br></p>',
	'<iframe src="indey.html" frameborder="0" scrolling="no" width="100%" height="17" allowTransparency="true" STYLE="background-color: transparent"></iframe>',
	'<iframe src="http://www.mobiletides.com/mtwap/MTService?screen=177X177&requestType=imageStrip&id=744&display=Santa Ana River entrance (inside)" frameborder="0" scrolling="no" width="250" height="300" allowTransparency="true" STYLE="background-color: transparent"></iframe>',
	'another <b>sample</b> tooltip with the <a href="http://www.softcomplex.com">link</a>',
	'<img src="images/gnish.gif">'
];

var myHint = new THints (HINTS_ITEMS, HINTS_CFG);

// map names to image files
//	'tp1', "images/gnish.gif",
//	'tp2', "images/g6.gif"

var A_IMAGES = [
	'nish', "thumbnails/2NishConsulting.jpg", 
	'resu', "thumbnails/1resume.jpg", 
	'gnis', "thumbnails/2gnish.jpg", 
	'gold', "thumbnails/1gnish.jpg", 
	'accl', "thumbnails/Acclaim.jpg", 
	'auto', "thumbnails/Asi.jpg", 
	'avay', "thumbnails/Avaya.jpg", 
	'capg', "thumbnails/CapGroup.jpg", 
	'cfco', "thumbnails/CFCOC.jpg", 
	'cinc', "thumbnails/Cincom.jpg", 
	'cone', "thumbnails/Conexant.jpg", 
	'crea', "thumbnails/CreativePlantery.jpg", 
	'hamm', "thumbnails/HammerCo.jpg", 
	'joys', "thumbnails/JoySailing.jpg", 
	'jobs', "thumbnails/2job.jpg", 
	'omni', "thumbnails/2Omni.jpg", 
	'paci', "thumbnails/PacificLife.jpg", 
	'patt', "thumbnails/PattiesPiks.jpg", 
	'port', "thumbnails/2Portal.jpg", 
	'rich', "thumbnails/RichleeBag.jpg", 
	'ship', "thumbnails/Shipper.jpg", 
	'sist', "thumbnails/AAUW.jpg", 
	'slim', "thumbnails/SlimDown.jpg", 
	'smho', "thumbnails/SMHOA.jpg", 
	'ypac', "thumbnails/YPAC.jpg"
];


var HINPS_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'        : -15, //10, //20, // minimum allowed distance between the hint and the origin (negative values accepted)
	'align'      : 'mlml', //'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'        : 'hinpsClass', // a style class name for all hints, applied to DIV element (see style section in the header of the document)
	'show_delay' : 25, //200, // a delay between initiating event (mouseover for example) and hint appearing
	'hide_delay' : 25, //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'    : ['revealTrans(TRANSITION=3,DURATION=.5)', 'revealTrans(TRANSITION=2,DURATION=.5)'], // [show transition, hide transition] - transition effects, only work in IE5+
	'opacity'    : 80 // opacity of the hint in %%
};

// generate HTML of the hints from the images list
var HINPS_ITEMS = [];
for (var i = 0; i < A_IMAGES.length; i += 2) { 
	HINPS_ITEMS[A_IMAGES[i]] = '<img src="' + A_IMAGES[i+1] + '" name="im_' + A_IMAGES[i] + '" border="0" />';
	//HINPS_ITEMS[A_IMAGES[i]] = '<img src="images/pixel.gif" name="im_' + A_IMAGES[i] + '" border="1" />';
}

// call this function in onload providing the images list
function f_downloadIMages (a_imgList) {
	for (var i = 0; i < a_imgList.length; i +=2)
		if (document.images['im_' + a_imgList[i]])
			document.images['im_' + a_imgList[i]].src = a_imgList[i+1];
}

var myHinp = new THints (HINPS_ITEMS, HINPS_CFG);

