// 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'        : 0, // minimum allowed distance between the hint and the origin (negative values accepted)
	'align'      : 'bcbc', //'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"><b>Gary Neshanian</b><br>Project Manager<br>Business Systems Analyst<br>Web Developer</p>',
	'another <b>sample</b> tooltip with the <a href="http://www.softcomplex.com">link</a>'
];

var myHint = new THints (HINTS_ITEMS, HINTS_CFG);

// map names to image files
var A_IMAGES = [
	'tpbse', "zrc/dp-bscse.jpg",
	'tppmr', "zrc/dp-pmp.jpg",
	'tpb', "zrc/resume-cv-biography.jpg",
	'tpr', "zrc/resume-cv-resume.jpg",
	'tpp', "zrc/resume-cv-portfolio.jpg",
	'tps', "zrc/resume-cv-skills.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'        : 10, //20, // minimum allowed distance between the hint and the origin (negative values accepted)
	'align'      : 'bctc', //'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' : 100, //200, // a delay between initiating event (mouseover for example) and hint appearing
	'hide_delay' : 100, //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);


////////////////////

// map names to image files
var B_IMAGES = [
	'ford', "zrc/bc-ford.jpg",
	'rwc', "zrc/bc-rwc.jpg",
	'dg', "zrc/bc-dg.jpg",
	'kofax', "zrc/bc-kofax.jpg",
	'ca', "zrc/bc-ca.jpg",
	'newd', "zrc/bc-newd.jpg",
	'cincom', "zrc/bc-cincom.jpg",
	'true', "zrc/bc-true.jpg",
	'acclaim', "zrc/bc-acclaim.jpg",
	'open', "zrc/bc-opmkt.jpg"

];


var HINIS_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'        : 185, //20, // minimum allowed distance between the hint and the origin (negative values accepted)
	'align'      : 'mrmr', //'bctc', //'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' : 100, //200, // a delay between initiating event (mouseover for example) and hint appearing
	'hide_delay' : 100, //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'    : 95 // opacity of the hint in %%
};

// generate HTML of the hints from the images list
var HINIS_ITEMS = [];
for (var i = 0; i < B_IMAGES.length; i += 2) { 
	HINIS_ITEMS[B_IMAGES[i]] = '<img src="' + B_IMAGES[i+1] + '" name="im_' + B_IMAGES[i] + '" border="0" />';
	//HINIS_ITEMS[B_IMAGES[i]] = '<img src="images/pixel.gif" name="im_' + B_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 myHini = new THints (HINIS_ITEMS, HINIS_CFG);