	divNotification = null;
	
	function showNotification( showNum )
	{
		setTimeout( "timedNotification(" + showNum + ");", 750 );
	}
	
	function timedNotification( showNum )
	{
	
		if ( currentLoc == showNum )
			getPopupShowInfo( showNum );

	}
	
	function testNotification()
	{
		if ( document.all )
			clearNotification2();
		else
			setTimeout( clearNotification, 10 );
	}
	
	function clearNotification()
	{
		var top = eval(divNotification.style.top.substring(0,divNotification.style.top.length - 2));
		var bottom = top + divNotification.clientHeight;
		var left = eval(divNotification.style.left.substring(0,divNotification.style.left.length - 2));
		var right = left + divNotification.clientWidth;
		if ( tempY < top || tempY > bottom || tempX < left || tempX > right )
		{
			divNotification.style.display = "none";
		}
		else
		{
			divNotification.onmouseout = clearNotification2;
		}
	}
	
	function clearNotification2()
	{
	
		if ( divNotification != null )
			divNotification.style.display = "none";
	
	}
	
	var IE = document.all?true:false;
	if (!IE) document.captureEvents(Event.MOUSEMOVE)
	document.onmousemove = getMouseXY;
	var tempX = 0;
	var tempY = 0;
	var currentLoc = "";
	var locSnapshot = "";
	
	function getMouseXY(e) {
		if (IE) { // grab the x-y pos.s if browser is IE
			tempX = event.clientX + document.body.scrollLeft;
			tempY = event.clientY + document.body.scrollTop;
		}
		else {  // grab the x-y pos.s if browser is NS
			tempX = e.pageX;
			tempY = e.pageY;
		}  
		if (tempX < 0){tempX = 0;}
		if (tempY < 0){tempY = 0;} 
		return true;
	}
	
	// send the data for a form to a cgi script using ajax technique
	function getPopupShowInfo( showNum )
	{
	
		// XMLHttpRequest object
		var oXmlHttp = createXMLHttp();

		// open method for XMLHttpRequest object
		oXmlHttp.open( "POST", "script/showDescrip.asp", true );
		
		// Request header for POST data
		oXmlHttp.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded" );
		
		// onreadystatechange listener, for response from server
		oXmlHttp.onreadystatechange = function() 
		{	
			// if the response is received
			if ( oXmlHttp.readyState == 4 ) 
			{
				// if the response is 'OK'
				if ( oXmlHttp.status == 200 )
				{

							
					var response = oXmlHttp.responseText;	// response text
					var event = response.split( "||" );
					eventName = event[0];
					eventDescrip = event[1];
					
					if ( eventDescrip.length > 200 )
						eventDescrip = eventDescrip.substring( 0, 200 ) + "...";
						
					if ( divNotification != null )
					{
						divNotification.style.display = "none";
						divNotification = null;
					}

					if ( !divNotification )
					{
					
						if ( !document.all )
						{
							divNotification = document.createElement( "div" );
							divNotification.className = "p-shadow";
							var innerDiv = document.createElement( "div" );
							var innerHeading = document.createElement( "h1" );
							innerHeading.innerHTML = eventName;
							var innerBody = document.createElement( "p" );
							innerBody.innerHTML = eventDescrip;
							innerDiv.appendChild( innerHeading );
							innerDiv.appendChild( innerBody );
							divNotification.appendChild( innerDiv );
							document.body.appendChild( divNotification );
							divNotification.onmouseout = clearNotification;
							divNotification.style.top = (tempY - divNotification.offsetHeight/2) + 'px';
						}
						else
						{
		
							divNotification = document.createElement( "div" );
							divNotification.className = "notification";
							var innerHeading = document.createElement( "h1" );
							innerHeading.innerHTML = eventName;
							var innerBody = document.createElement( "p" );
							innerBody.innerHTML = eventDescrip;
							divNotification.appendChild( innerHeading );
							divNotification.appendChild( innerBody );
							document.body.appendChild( divNotification );
							divNotification.onmouseout = clearNotification2;
							divNotification.style.top = (tempY - 30) + 'px';
						}
					
						
						divNotification.style.left = (tempX + 20) + 'px';
						divNotification.style.display = "block";
					}

				}
				else // the response is not 'OK'
				{
					//alert( "Error getting show info");
				}
			}
		}; // end onreadystatechange listener
		
		// send the data to the server
		oXmlHttp.send( "showNum=" + showNum );
		
	} // end sendRequest function