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

var HINTS_ITEMS = new Array()
HINTS_ITEMS['www.no-image-found.com'] = wrap_img('www.no-image-found.com');

//var myHint = new THints (HINTS_CFG, HINTS_ITEMS);
function wrap_img (url) {
	url = "http://downtownconnection.ca/template/default/images/screenshots/large/" + url + ".jpg";
	//url_default = 'http://downtownconnection.ca/www/template/default/images/screenshots/large/www.aboutimage.ca.jpg'
	// tester = new Image();
    // tester.onError = default_image;
	// tester.src = url;
	return "<table><tr><td><img src='" + url + "'></td></tr></table>"
}

function mouse_over(web){
	if(web==''){
		web = 'www.no-image-found.com';
	}
	
	if (web.indexOf("/") >= 0){
		var pos = web.indexOf("/");
		web = web.substring(0, pos);
	}
	
	myHint.show(web);
}
// var myHint = new THints (HINTS_CFG, HINTS_ITEMS);
