var ALERTS_CFG = {
	'top'        : 5, // a vertical offset of an alert from mouse pointer
	'left'       : 5, // a horizontal offset of an alert from mouse pointer
	'css'        : 'alertsClass', // a style class name for all alerts, TD object
	'show_delay' : 100, // a delay between object mouseover and alert appearing
	'hide_delay' : 100000, // a delay between alert appearing and alert hiding
	'wise'       : true,
	'follow'     : true,
	'z-index'    : 0 // a z-index for all alert layers
}

ALERTS_ITEMS = { 
	'TT1' :'<table width="210" border="1" cellpadding="0" cellspacing="0" bgcolor="#EDE7D8" bordercolor="#003300"><tr><td><table width="210" border="0" cellpadding="3" cellspacing="1"><tr><td width="54">&nbsp;</td><td width="141" align="center" nowrap><a href="#" onClick="myAlert.hide()" class="alertsclass">Close Window <img src="http://www.journeysendresort.com/images/close_box.gif" width="17" height="17" border="0"></a></td></tr><tr><td colspan="2"><div align="center"><br><img src="../images/cigars.jpg" width="185" height="124" border="0"></div></td></tr></table></td></tr></table>',
	'TT2' :'<table width="220" border="1" cellpadding="0" cellspacing="0" bgcolor="#EDE7D8" bordercolor="#003300"><tr><td><table width="220" border="0" cellpadding="3" cellspacing="1"><tr><td width="54">&nbsp;</td><td width="141" align="center" nowrap><a href="#" onClick="myAlert.hide()" class="alertsclass">Close Window <img src="http://www.journeysendresort.com/images/close_box.gif" width="17" height="17" border="0"></a></td></tr><tr><td colspan="2"><div align="center"><br><img src="../images/toucan-logo.gif" width="200" height="183" border="0"></div></td></tr></table></td></tr></table>',
	'TT3' :'<table width="220" border="1" cellpadding="0" cellspacing="0" bgcolor="#EDE7D8" bordercolor="#003300"><tr><td><table width="220" border="0" cellpadding="3" cellspacing="1"><tr><td width="54">&nbsp;</td><td width="141" align="center" nowrap><a href="#" onClick="myAlert.hide()" class="alertsclass">Close Window <img src="http://www.journeysendresort.com/images/close_box.gif" width="17" height="17" border="0"></a></td></tr><tr><td colspan="2"><div align="left"><a href="http://www.journeysendresort.com/weddings/index.php">Let Journey&acute;s End host your wedding</a><br><a href="http://www.journeysendresort.com/business/index.asp">Bring your group or business meeting to Journey&acute;s End</a><br></div></td></tr></table></td></tr></table>',
	'TT4' :'<table width="210" border="1" cellpadding="0" cellspacing="0" bgcolor="#EDE7D8" bordercolor="#003300"><tr><td><table width="210" border="0" cellpadding="3" cellspacing="1"><tr><td width="54">&nbsp;</td><td width="141" align="center" nowrap><a href="#" onClick="myAlert.hide()" class="alertsclass">Close Window <img src="http://www.journeysendresort.com/images/close_box.gif" width="17" height="17" border="0"></a></td></tr><tr><td colspan="2"><div align="center"><p><br><img src="../images/cigars.jpg" width="185" height="124" border="0"></p><p>La Habana, a martini-cigar bar with internet connections, features a variety of martinis, rums, cognacs, ports, and fine Cuban cigars among others.</p></div></td></tr></table></td></tr></table>'
}

// myAlert = new TAlerts (ALERTS_CFG, ALERTS_ITEMS);
var myAlert = new TAlerts (ALERTS_CFG, ALERTS_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>"
}