function initDotMap()
{
	/* Initializes the onclick event behavior for both the dots and 
	   the dropdown index of a dot map.
	   Note: all list items in the dropdown index must have a value attribute.
	   [example: /sites/antiquities/fullMap.htm]
	*/

	if ( document.getElementById )
	{
		var str = null;		// just a temp string
	
		var anchors = document.getElementById("dots").getElementsByTagName("a");
	
		/* Sets the onclick() event for all the <a>s in the "dots" <div>
		   to unhide the proper layer and show the proper dot
		   according the ID of <a>.
		*/
		for ( var i=0; i < anchors.length; i++ )
		{
			anchors[i].onclick = function()
			{
				/* Convert the string into number.
				   (The regular expression is necessary,
				    else all strings beginning with zero
				    would be interpreted in hex.)
				*/
				str = /[^0]\d{0,2}/.exec(this.id);
	
				showLayer("Layer"+str,"mapLayer");
				showDot(this.id);
			}; 
		}
	
		anchors = document.getElementById("index").getElementsByTagName("a");
	
		for ( var i=0; i < anchors.length; i++ )
		{
			anchors[i].onclick = function()
			{
				/* Take the value of the list item... */
				var listItem = this.parentNode;
				str = listItem.value;
	
				/* ...and convert it to a string... */
				str = str.toString();
	
				/* ...so that we can add zeros to
				      the front until it is three 
				      characters long.
				*/
				for ( var j=str.length; j < 3; j++ )
				{
					str = "0" + str;
				}
	
				/* Then fire the onclick() event of the
				   element whose ID matches the string.
				*/
				document.getElementById(str).onclick();
			};
		}
	}
}