         
         /*Function for changing image on mouseover and mouseout event.*/
         function changeimage(object,mouseover)
         {
         	var imgId = parseInt(object.id.substr(6,object.id.length));
			/*Check if the calling event came from a mouseover event*/
            if (mouseover)
            {
			   /* mouseover argument equal to true */
               /* Find the divider image before the navimage then change the image source to  divider image on */
               document.getElementById("TopNav" + (imgId - 1)).src=nav_divider_on;  
               
               /* Change the image source of the calling Image to nav image on */
               object.src=nav_image_on[imgId];
               
               /*Find the divider image after the navimage then change the image source to divider image on */
               document.getElementById("TopNav" + (imgId + 1)).src=nav_divider_on;
            }
            else
            {
			   /* mouseover argument equal to false */	
               /* Find the divider image before the navimage then change the image source to  divider image off */
               /* EDIT 2010-4-8 to accommodate removal of divider lines before "Home" and after "Tour" */
               if (imgId == 2)
               {
                 document.getElementById("TopNav" + (imgId - 1)).src=nav_divider_clear;
               } else {
                 document.getElementById("TopNav" + (imgId - 1)).src=nav_divider_off;  
               }
               
               /* Change the image source of the calling Image to nav image off */
               object.src=nav_image_off[imgId];
               
               /*Find the divider image after the navimage then change the image source to divider image off */
               /* EDIT 2010-4-8 to accommodate removal of divider lines before "Home" and after "Tour" */
               if (imgId == 10)
               {
                 document.getElementById("TopNav" + (imgId + 1)).src=nav_divider_clear;
               } else {
                 document.getElementById("TopNav" + (imgId + 1)).src=nav_divider_off;
               }
            }
            try
            {
				setActiveImage(ActiveImageID) 
			}
			catch(err)
			{
			}
         }

		function setActiveImage(objectid) 
		{
			   try
			   {
			   var object = document.getElementById(objectid)
			   
			   if (object==null) return;
			   
			   /* mouseover argument equal to true */
               /* Find the divider image before the navimage then change the image source to  divider image on */
               document.getElementById("TopNav" + (parseInt(objectid.substr(6,objectid.length)) - 1)).src=nav_divider_on;  
               
               /* Change the image source of the calling Image to nav image on */
               object.src=nav_image_on[parseInt(objectid.substr(6,objectid.length))];
               
               /*Find the divider image after the navimage then change the image source to divider image on */
               document.getElementById("TopNav" + (parseInt(objectid.substr(6,objectid.length)) + 1)).src=nav_divider_on;
               }
               catch(err)
               {
               }
		}