// http://theopensourcery.com/jshints.htm

var HINTS_CFG = {
	'top'        : -1, // 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' : 600, // a delay between object mouseover and hint appearing
	'hide_delay' : 90000, // a delay between hint appearing and hint hiding
	'wise'       : true,
	'follow'     : true,
	'z-index'    : 0 // a z-index for all hint layers
},

HINTS_ITEMS = [
   wrap_img('yahoo-links.png', 'Yahoo! search results that include article copies hosted on WhenU web servers.'),
   "<img src='whenu-cnn.png'>", 
   "<img src='whenu-businessweek.png'>", 
   "<img src='whenu-yahoonews-ap.png'>", 
   "<img src='whenu-cnet2.png'>", 
   "<img src='whenu-reuters.png'>", 
   "<img src='whenu-internetnews.png'>", 
   "<img src='whenu-wsj2.png'>", 
   "<img src='whenu-business2.png'>", 
   "<img src='whenu-taipeitimes-nyt.png'>", 
   "<img src='whenu-nyt2.png'>", 
   "<img src='whenu-nyt-iht.png'>", 
   "<img src='whenu-internetnews2.png'>", 
   "<img src='whenu-businessweek2.png'>", 
   "<img src='whenu-zdnet.png'>", 
   "<img src='whenu-wsj3.png'>", 
   "<img src='whenu-cnet3.png'>", 
   "<img src='whenu-oregonlive.png'>", 
   "<img src='whenu-denverpost.png'>", 
   "<img src='whenu-twincities.png'>", 
   "<img src='whenu-cbsmarketwatch.png'>", 
   "<img src='whenu-businesstoday.png'>", 
   "<img src='whenu-bostonherald.png'>", 
   "<img src='whenu-orlandosentinel.png'>", 
   "<img src='whenu-ctnow.png'>", 
   "<img src='whenu-nyt2.png'>", 
   "<img src='whenu-cbsmarketwatch2.png'>", 
   "<img src='whenyou-cnn.png'>", 
   "<img src='whenucook-cnet.png'>", 
   "<img src='wayback-whenu-nyt.png'>"
   ];
var myHint = new THints (HINTS_CFG, HINTS_ITEMS);

function wrap (s_,b_ques) {
	return "<table cellpadding='0' cellspacing='0' border='0' ><tr><td rowspan='2'><img src='images/1"+(b_ques?"q":"")+"'></td><td><img src='/img/pixel.gif' width='1' height='15'></td></tr><tr><td background='javascript/images/2.gif' height='28' nowrap>"+s_+"</td><td><img src='javascript/images/4.gif'></td></tr></table>"
}

function wrap_img (s_file, s_title) {
	return "<table cellpadding=2 bgcolor=#dddddd style='border:1px solid #777777'><tr><td><img src='" + s_file + "' class='picI'></td></tr><tr><td align=center>"+s_title+"</td></tr></table>"
//	return "<table cellpadding=5 bgcolor=white style='border:1px solid #777777'><tr><td><img src='javascript/images/%22%2Bs_file%2B%22' class='picI'></td></tr><tr><td align=center>"+s_title+"</td></tr></table>"
}
