
// Change this for the tooptip title and content
TooltipTitle = "Amenities Legend";
TooltipContant =	'' +
					'<table id="tblFilters" align="right" border="0" cellspacing="2" cellpadding="0">' +
						'<tr>' +
							'<td class="sidebartext" width="142"><img src="http://www.selectregistry.com/img/child_yes_tan.gif" alt="Suitable for kids"' +
									'title="Suitable for kids">&nbsp;Suitable for kids</td>' +
							'<td class="sidebartext" width="142"><img src="http://www.selectregistry.com/img/child_no_tan.gif" alt="Not suitable for kids"' +
									'title="Not suitable for kids">&nbsp;Not suitable for kids</td>' +
						'</tr>' +
						'<tr>' +
							'<td class="sidebartext" width="50%"><img src="http://www.selectregistry.com/img/non_smoking_tan.gif" alt="Non-smoking Inn"' + 
									'title="Non-smoking">&nbsp;Non-smoking</td>' +
							'<td class="sidebartext" width="50%"><img src="http://www.selectregistry.com/img/handicap_tan.gif" alt="Handicap accessible"' +
									'title="Handicap accessible">&nbsp;Handicap accessible</td>' +
						'</tr>' +
						'<tr>' +
							'<td class="sidebartext" width="50%"><img src="http://www.selectregistry.com/img/credit_cards_tan.gif" alt="Credit cards accepted"' +
									'title="Credit cards accepted">&nbsp;Credit cards accepted</td>' +
							'<td class="sidebartext" width="50%"><img src="http://www.selectregistry.com/img/corporate_tan.gif" alt="Corporate rates"' +
									'title="Corporate rates">&nbsp;Corporate rates</td>' +
						'</tr>' +
						'<tr>' +
							'<td class="sidebartext" width="50%"><img src="http://www.selectregistry.com/img/conference_tan.gif" alt="Conference facilities"' +
									'title="Conference facilities">&nbsp;Conference facilities</td>' +
							'<td class="sidebartext" width="50%"><img src="http://www.selectregistry.com/img/weddings_tan.gif" alt="Wedding facilities" title="Wedding facilities">&nbsp;Wedding facilities</td>' +
						'</tr>' +
						'<tr>' +
							'<td class="sidebartext" width="50%"><img src="http://www.selectregistry.com/img/exercise_tan.gif" alt="Exercise facilities" title="Exercise facilities">&nbsp;Exercise facilities</td>' +
							'<td class="sidebartext" width="50%"><img src="http://www.selectregistry.com/img/spa_tan.gif" alt="Spa services" title="Spa services">&nbsp;Spa services</td>' +
						'</tr>' +
						'<tr>' +
							'<td class="sidebartext" width="50%"><img src="http://www.selectregistry.com/img/reservations_tan.gif" alt="Reserve by agent"' +
									'title="Reserve by agent">&nbsp;Reserve by agent</td>' +
							'<td class="sidebartext" width="50%"><img src="http://www.selectregistry.com/img/internet_tan.gif" alt="Internet access" title="Internet access">&nbsp;Internet access</td>' +
						'</tr>' +
						'<tr>' +
							'<td class="sidebartext" width="50%"><img src="http://www.selectregistry.com/img/pets_tan.gif" alt="Pets welcome" title="Pets welcome">&nbsp;Pets welcome</td>' +
							'<td class="sidebartext" width="50%"><img src="http://www.selectregistry.com/img/pool_tan.gif" alt="Pool" title="Pool">&nbsp;Pool</td>' +
						'</tr>' +
						'<tr>' +
							'<td class="sidebartext" width="50%"><img src="http://www.selectregistry.com/img/fireplace_tan.gif" alt="Fireplaces" title="Fireplaces">&nbsp;Fireplaces</td>' +
							'<td class="sidebartext" width="50%"><img src="http://www.selectregistry.com/img/whirpool_tan.gif" alt="Whirlpool tubs" title="Whirlpool tubs">&nbsp;Whirlpool tubs</td>' +
						'</tr>' +
						'<tr>' +
							'<td class="sidebartext" width="50%"><img src="http://www.selectregistry.com/img/air_conditioning_tan.gif" alt="Air-conditioning"' +
									'title="Air-conditioning">&nbsp;Air-conditioning</td>' +
							'<td class="sidebartext" width="50%"><img src="http://www.selectregistry.com/img/eco_tour_tan.gif" alt="Eco-friendly"' +
									'title="Eco-friendly">&nbsp;Eco-friendly</td>' +
						'</tr>' +
						'<tr>' +
							'<td class="sidebartext" width="50%"><img src="http://www.selectregistry.com/img/coffee_tan.gif" alt="Offers collectibles"' +
									'title="Offers collectibles">&nbsp;Offers collectibles</td>' +
							'<td class="sidebartext" width="50%"><img src="http://www.selectregistry.com/img/briefcase_tan.gif" alt="Business friendly"' +
									'title="Business friendly">&nbsp;Business friendly</td>' +
						'</tr>' +
						'<tr>' +
							'<td class="sidebartext" width="50%"><img src="http://www.selectregistry.com/img/breakfast_service_tan.gif" alt="Breakfast served"' +
									'title="Breakfast served">&nbsp;Breakfast served</td>' +
							'<td class="sidebartext" width="50%"><img src="http://www.selectregistry.com/img/lunch_tan.gif" alt="Lunch served" title="Lunch served">&nbsp;Lunch served</td>' +
						'</tr>' +
						'<tr>' +
							'<td class="sidebartext" width="50%"><img src="http://www.selectregistry.com/img/dinner_tan.gif" alt="Dinner served" title="Dinner served">&nbsp;Dinner served&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>' +
							'<td class="sidebartext" width="50%"><img src="http://www.selectregistry.com/img/cocktails_tan.gif" alt="Wine/cocktails served"' +
									'title="Wine/cocktails served">&nbsp;Wine/cocktails served</td>' +
						'</tr>' +
					'</table>';




ContentInfo = "";

topColor = "#07315b"
subColor = "#d6c7b7"








var mouse_X;
var mouse_Y;

var tip_active = 0;



function update_tip_pos(){

		document.getElementById('ToolTip').style.left = mouse_X - 305;
		document.getElementById('ToolTip').style.top  = mouse_Y;
}






var ie = document.all?true:false;
if (!ie) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;

function getMouseXY(e) {
if (ie) { // grab the x-y pos.s if browser is IE
mouse_X = event.clientX + document.body.scrollLeft;
mouse_Y = event.clientY + document.body.scrollTop;
}
else { // grab the x-y pos.s if browser is NS
mouse_X = e.pageX;
mouse_Y = e.pageY;
}
if (mouse_X < 0){mouse_X = 0;}
if (mouse_Y < 0){mouse_Y = 0;}

if(tip_active){update_tip_pos();}
}

function EnterContent(TTitle, TContent){

ContentInfo = '<table border="0" width="300" cellspacing="0" cellpadding="0">'+
'<tr><td width="100%" bgcolor="#000000">'+

'<table border="0" width="100%" cellspacing="1" cellpadding="0">'+
'<tr><td width="100%" bgcolor='+topColor+'>'+

'<table border="0" width="90%" cellspacing="0" cellpadding="0" align="center">'+
'<tr><td width="100%">'+

'<font class="tooltiptitle">&nbsp;'+TTitle+'</font>'+

'</td></tr>'+
'</table>'+

'</td></tr>'+

'<tr><td width="100%" bgcolor='+subColor+'>'+

'<table border="0" width="98%" cellpadding="0" cellspacing="1" align="center">'+

'<tr><td width="100%">'+

'<font class="tooltipcontent">'+TContent+'</font>'+

'</td></tr>'+
'</table>'+

'</td></tr>'+
'</table>'+

'</td></tr>'+
'</table>';

}

function tip_it(which, TTitle, TContent){
	if(which){
	
		// Overwrite function title, content
		TTitle = TooltipTitle;
		TContent =	TooltipContant;
	
		update_tip_pos();
	
		tip_active = 1;
		
		document.getElementById('ToolTip').style.visibility = "visible";
		
		EnterContent(TTitle, TContent);
		
		document.getElementById('ToolTip').innerHTML = ContentInfo;
	
	}else{
	
		tip_active = 0;
	
		document.getElementById('ToolTip').style.visibility = "hidden";
	}
}