var HINTS_CFG = {
	'top'        : 5, // a vertical offset of a hint from mouse pointer
	'left'       : 5, // a horizontal offset of a hint from mouse pointer
	'css'        : 'hintsClass', // a style class name for all hints, TD object
	'show_delay' : 1000, // a delay between object mouseover and hint appearing
	'hide_delay' : -1, // a delay between hint appearing and hint hiding
	'wise'       : true,
	'follow'     : true,
	'z-index'    : 3 // a z-index for all hint layers
},

HINTS_ITEMS = {
	//number:wrapintheme("message","theme")
	search:wrap("Click here to search for a list of <br> practitioners","Blue"),
	newsearch:wrap("Click here to clear search criteria","Blue"),
	addnew:wrap("Click here to add a new practitioner","Blue"),
	sort:wrap("Click here to sort by this header","Blue"),
	edit:wrap("Click here to edit this row","Blue"),
	remove:wrap("Click here to delete this row","Blue")
};

var myHint = new THints (HINTS_CFG, HINTS_ITEMS);

function wrap (message,theme) {
	var popbox  = "<table class=popup2 cellpadding='0' cellspacing='0' border='0'>";
		popbox += "<tr>";
		
		popbox += "<td ><img src='Scripts/Hints/spacer.png' width='54' height='32' style='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=Scripts/Hints/Themes/"+theme+"/ulul.png, sizingMethod=scale);'></td>";
		popbox += "<td style='background:Scripts/Hints/spacer.png;width:3;height:32;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=Scripts/Hints/Themes/"+theme+"/ts.png, sizingMethod=scale);'></td>";
		popbox += "<td><img src='Scripts/Hints/spacer.png' width='23' height='32' style='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=Scripts/Hints/Themes/"+theme+"/ur.png, sizingMethod=scale);'></td>";
		
		popbox += "</tr><tr>";
		
		popbox += "<td height=0 align=top><img src='images/spacer.png' width='54' height='23' style='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=Scripts/Hints/Themes/"+theme+"/ulll.png, sizingMethod=scale);'></td>";
		popbox += "<td nowrap background='images/blank.gif' rowspan=2>"+message+"</td>";
		popbox += "<td style='background:Scripts/Hints/spacer.png;width:23;height:3;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=Scripts/Hints/Themes/"+theme+"/rs.png, sizingMethod=scale);'>&nbsp;</td>";
		
		popbox += "</tr><tr>";
		
		popbox += "<td style='background:Scripts/Hints/spacer.png;width:54; height:3; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=Scripts/Hints/Themes/"+theme+"/ls.png, sizingMethod=scale);'>&nbsp;</td>";
		popbox += "<td style='background:Scripts/Hints/spacer.png;width:23;height:3;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=Scripts/Hints/Themes/"+theme+"/rs.png, sizingMethod=scale);'>&nbsp;</td>";
		
		popbox += "</tr><tr>";
		
		popbox += "<td><img src='Scripts/Hints/spacer.png' width='54' height='19' style='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=Scripts/Hints/Themes/"+theme+"/ll.png, sizingMethod=scale);'></td>";
		popbox += "<td style='background:images/spacer.png;width:3;height:19;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=Scripts/Hints/Themes/"+theme+"/bs.png, sizingMethod=scale);'>&nbsp;</td>";
		popbox += "<td><img src='Scripts/Hints/spacer.png' width='23' height='19' style='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=Scripts/Hints/Themes/"+theme+"/lr.png, sizingMethod=scale);'></td>";
		
		popbox += "</tr>";
		popbox += "</table>";
	return popbox;
}

function wrap_img (s_file, s_title) {
	return "<table cellpadding=5 bgcolor=white style='border:1px solid #777777'><tr><td><img src='../images/k0"+s_file+".jpg' class='picI'></td></tr><tr><td align=center>"+s_title+"</td></tr></table>"
}

