	var isDisplaying = false;

	function handleMouseMove(e)
	{
		if(!isDisplaying || !document.getElementById)
			return;

		var x, y;

		if(!e && window.event)
		{
			e = window.event;
			x = e.clientX + (document.body && (document.body.scrollLeft || !document.documentElement) ? document.body.scrollLeft : document.documentElement.scrollLeft);
			y = e.clientY + (document.body && (document.body.scrollTop || !document.documentElement) ? document.body.scrollTop : document.documentElement.scrollTop);
		}
		else
		{
			x = e.pageX;
			y = e.pageY;
		}
		
		if(e && x && y)
		{
			var tt = gTT();
			
			if(tt)
			{
				var windowX = (window.innerWidth ? window.innerWidth : (document.body.offsetWidth ? document.body.offsetWidth : 1200));

				if(x + 192 + 40 > windowX)
					x -= 204;

				tt.style.left = (x + 12) + "px";
				tt.style.top = (y + 15) + "px";

				tt.style.display = "block";
			}
		}
	}
	
	function gTT()
	{
		if(document.getElementById)
			return document.getElementById("tooltip");
		
		return null;
	}

	function min(section, free, zone)
	{
		var tt = gTT();
		
		if(tt)
		{
			var html = "<b>Section&nbsp;" + section + "</b><br/>";

			var color = null;
			var text = null;

			switch(zone)
			{
				case "e11":
					color = "#1b5793";
					text = "Zone 1: $3,000/seat";	
				break;
				
				case "e12":
					color = "#be0a37";
					text = "Zone 2: $2,250/seat";	
				break;
				
				case "e13":
					color = "#197b30";
					text = "Zone 3: $1,500/seat";	
				break;
				
				case "e20":
					color = "#f5c815";
					text = "Indoor: $4,000/seat";	
				break;
				
				case "e21":
					color = "#1b5793";
					text = "Zone 1: $3,000/seat";	
				break;
				
				case "e22":
					color = "#be0a37";
					text = "Zone 2: $2,250/seat";	
				break;
				
				case "e23":
					color = "#197b30";
					text = "Zone 3: $1,500/seat";	
				break;
				
				case "wc1":
					color = "#f5c815";
					text = "Zone 1: $2,000/seat";	
				break;
				
				case "wc2":
					color = "#1b5793";
					text = "Zone 2: $1,250/seat";
				break;
				
				case "wc12":
					color = null;
					text = null;
				break;
			}

			if(color != null && text != null)
			{
				html += "<div style='width: 13px; height: 13px; background: " + color + "; font-size: 11px; float: left; border: 1px solid #000; margin-left: 10px; margin-top: 1px;'>&nbsp;</div>" + text + "<br/>";
			}
			
			if(zone == "wc12")
			{
				html += "<div style='width: 13px; height: 13px; background: #f5c815; font-size: 11px; float: left; border: 1px solid #000; margin-left: 10px; margin-top: 1px;'>&nbsp;</div>Zone 1: $2,000/seat<br/><div style='width: 13px; height: 13px; background: #1b5793; font-size: 11px; float: left; border: 1px solid #000; margin-left: 10px; margin-top: 1px;'>&nbsp;</div>Zone 2: $1,250/seat<br/>";
			}

			if(free < 1)
				html += "<em>Sold out</em>";
			else
				html += "<em>" + free + " Seat" + (free != 1 ? "s" : "") + " remaining</em>";
				
			tt.innerHTML = html;
			isDisplaying = true;
		}
	}

	function mout()
	{
		var tt = gTT();
		
		if(tt)
		{
			tt.style.display = "none";
			isDisplaying = false;
		}
	}


	if(document.getElementById)
	{
		if (window.captureEvents)
		{
			window.captureEvents(Event.MOUSEMOVE);
			window.onmousemove = handleMouseMove;
		}
		else
		{
			document.body.onmousemove = handleMouseMove;
		}
	}
