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">Full name of the venue.</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">Physical (street) address of the venue.</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</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</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 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">Description or other information about the venue.<br>ie: Open hours, type of music etc.</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">Venue where the event is to be held.<br>If your venue does not appear in this list you can add your venue information by selecting the last option in this list (--I need to add my venue--).<br>Once your venue information has been added you will be able to select it from this drop down list.</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">Name of the event that is on.</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">Date event is occuring.<br> This is the date the event will be displayed in the 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">Check if this event is continuing weekly from the date specified above.<br>ie: If the Event Date you have input is a Monday. Checking this box will cause this event to appear in the gig guide every Monday from now on.</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">Date that their event finishes.<br>This is only relevant if it is a weekly event. Setting this date means the event will appear weekly on the specified day until this expiry date lapses.</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">Description of event.<br>Include all times, costs, age restrictions etc.</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>"
}

