var HINTS_CFG = {
	'top'        : -5, // a vertical offset of a hint from mouse pointer
	'left'       : 14, // a horizontal offset of a hint from mouse pointer
	'css'        : 'hintsClass', // a style class name for all hints, TD object
	'show_delay' : 250, // a delay between object mouseover and hint appearing
	'hide_delay' : 25000, // a delay between hint appearing and hint hiding
	'wise'       : true,
	'follow'     : false,
	'z-index'    : 0 // a z-index for all hint layers
},

HINTS_ITEMS = [
	'<table border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC" width="200"><tr><td bgcolor="#ECECEC"><span class="text9"><font color="#666666">Company Name to appear on Roadworks Website.</font></span></td></tr></table>',
	'<table border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC" width="200"><tr><td bgcolor="#ECECEC"><span class="text9"><font color="#666666">Street or Road. Please do not abbreviate. ie Ponsonby <b>Rd</b> should be entered as Ponsonby <b>Road.</b></font></span></td></tr></table>',
	'<table border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC" width="200"><tr><td bgcolor="#ECECEC"><span class="text9"><font color="#666666">You only need to fill in this field if your postal address is different from the Street Address above.</font></span></td></tr></table>',
	'<table border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC" width="200"><tr><td bgcolor="#ECECEC"><span class="text9"><font color="#666666">Use only spaces between numbers. No brackets, hyphens etc.<br>ie: 09 378 8497</font></span></td></tr></table>',
	'<table border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC" width="200"><tr><td bgcolor="#ECECEC"><span class="text9"><font color="#666666">Use only spaces between numbers. No brackets, hyphens etc.<br>ie: 09 378 8497<br>This field only appears on the site if you have a paid website link.</font></span></td></tr></table>',
	'<table border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC" width="200"><tr><td bgcolor="#ECECEC"><span class="text9"><font color="#666666">Must be a valid email address.<br>ie: info@roadworks.co.nz<br>This field only appears on the site if you have a paid website link.</font></span></td></tr></table>',
	'<table border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC" width="200"><tr><td bgcolor="#ECECEC"><span class="text9"><font color="#666666">Hold down <b>Ctrl</b> to select more than one.<br>These are the categories for your business to be listed under.</font></span></td></tr></table>',
	'<table border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC" width="200"><tr><td bgcolor="#ECECEC"><span class="text9"><font color="#666666">Separated by commas. These are other keywords relating to your business. They are used when searching via the search bar.</font></span></td></tr></table>',
	'<table border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC" width="200"><tr><td bgcolor="#ECECEC"><span class="text9"><font color="#666666">Hold down <b>Ctrl</b> to select more than one.<br>These are the other websites your listing will appear in.<br>All listings will be displayed in www.roadworks.co.nz website.</font></span></td></tr></table>',
	'<table border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC" width="200"><tr><td bgcolor="#ECECEC"><span class="text9"><font color="#666666">Country your business is located in.<br>All New Zealand businesses will be displayed in www.nz.co.nz website.</font></span></td></tr></table>',
	'<table border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC" width="200"><tr><td bgcolor="#ECECEC"><span class="text9"><font color="#666666">This is the businesses website address.<br>ie: http://www.webaddress.com</font></span></td></tr></table>',
	'<table border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC" width="200"><tr><td bgcolor="#ECECEC"><span class="text9"><font color="#666666">Person responsible for paying pending invoice.</font></span></td></tr></table>',
	'<table border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC" width="200"><tr><td bgcolor="#ECECEC"><span class="text9"><font color="#666666">Contact phone number for the billing contact. Use auto complete button if same as business phone number.</font></span></td></tr></table>',
	'<table border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC" width="200"><tr><td bgcolor="#ECECEC"><span class="text9"><font color="#666666">Contact fax number for the billing contact. Use auto complete button if same as business fax number.</font></span></td></tr></table>',
	'<table border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC" width="200"><tr><td bgcolor="#ECECEC"><span class="text9"><font color="#666666">Email address for the billing contact. Use auto complete button if same as business email address.</font></span></td></tr></table>',
	'<table border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC" width="200"><tr><td bgcolor="#ECECEC"><span class="text9"><font color="#666666">Postal address for the billing contact. Use auto complete button if same as business address.</font></span></td></tr></table>',
	'<table border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC" width="200"><tr><td bgcolor="#ECECEC"><span class="text9"><font color="#666666">Country of billing contact.</font></span></td></tr></table>',
	'<table border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC" width="200"><tr><td bgcolor="#ECECEC"><span class="text9"><font color="#666666">Contact Name of the person responsible for this listing.</font></span></td></tr></table>',
	'<table border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC" width="200"><tr><td bgcolor="#ECECEC"><span class="text9"><font color="#666666">Your Company Web address</font></span></td></tr></table>',
];

var myHint = new THints (HINTS_CFG, HINTS_ITEMS);

function wrap (s_, b_ques) {
	return "<table cellpadding='0' cellspacing='0' border='0' style='-moz-opacity:90%;filter:progid:DXImageTransform.Microsoft.dropShadow(Color=#777777,offX=4,offY=4)'><tr><td rowspan='2'><img src='img/1"+(b_ques?"q":"")+".gif'></td><td><img src='/img/pixel.gif' width='1' height='15'></td></tr><tr><td background='img/2.gif' height='28' nowrap>"+s_+"</td><td><img src='img/4.gif'></td></tr></table>"
}

function wrap_img (s_file, s_title) {
	return "<table cellpadding=5 bgcolor=white style='border:1px solid #777777'><tr><td><img src='img/k0"+s_file+".jpg' class='picI'></td></tr><tr><td align=center>"+s_title+"</td></tr></table>"
}

