		<!-- // Start Hide
  		// ================================== // 
		// Call this functions on a page OnLoad event of the FRAME THAT LOADS THE MAP
		function initAPICheck() {
			// For Netscape browsers, check for
			// Autodesk Mapguide Viewer Plug-in
			if (navigator.appName == "Netscape") {
				// alert('Check Netscape');
				for (j=0; j < navigator.plugins.length; j ++) {
					if (navigator.plugins[ j ].name == "Autdesk Mapguide")
						return;
				}
				// If the Autodesk Mapuide Viewer Plug-in is
				// not detected, display the message ....
				displayDownloadMsg();
				return;
			}
			// ----------------------------
			// Check version
			// If the Autodesk MapGuide Viewer Plug-in is installed,
			// check the version by returning the API version
			var version = getMap().getAPIVersion();
			// If the API/Plug-in version is previous to 6.5,
			// display the message . . .
			if (version < "6.5") {
				displayDownloadMsg();
				return;
			}
		}
  		// ================================== // 
		function displayDownloadMsg() {
			// Display dialog box Dowload Message
			msg = "On November 8, 2004 the Department of Transportation is intending to upgrade MapGuide to version 6.5. to take advantage" +
					  "\nof new enhacemets and improvements to the MapGuide Software. You MUST upgrade your version of the Autodesk" +
					  "\nMapGuide Viewer to version 6.5." +
					   "\nYou do NOT have the latest version of the Autodesk MapGuide Viewer installed on your computer." +
					  "\n\nDo you want to download it now?" +
					  "\n\nClick OK to Download or Cancel to proceed with your current Autodesk MapGuide Viewer."
			// If user clicks OK, load the download page MGViewer65.cfm
			if (confirm (msg))
		// =============================== // 
				if (window.screen) { // this determines if the users browser supports the window.screen object
					var mapUserScrWidth = screen.availWidth;
					var mapUserScrHeight = screen.availHeight;
				} else {  // else set the following defaults
					var mapUserScrWidth = 640;
					var mapUserScrHeight = 480;
				}
				var mgDownloadMGViewer65WinSizeW = (mapUserScrWidth / 2);
				var mgDownloadMGViewer65WinSizeH = (mapUserScrHeight / 2);
    				var mgDownloadMGViewer65XLoc = (mapUserScrWidth / 2 ) - (mgDownloadMGViewer65WinSizeW / 2); // figure out the upper left corner
    				var mgDownloadMGViewer65YLoc = (mapUserScrHeight / 2) - (mgDownloadMGViewer65WinSizeH / 2); // so the window is centered
				var mgDownloadMGViewer65WinString = 'left=' + mgDownloadMGViewer65XLoc;
					  mgDownloadMGViewer65WinString += ',screenX=' + mgDownloadMGViewer65XLoc;
					  mgDownloadMGViewer65WinString += ',top=' + mgDownloadMGViewer65YLoc;
					  mgDownloadMGViewer65WinString += ',screenY=' + mgDownloadMGViewer65YLoc;
					  mgDownloadMGViewer65WinString += ',width=' + mgDownloadMGViewer65WinSizeW;  // window Width size
					  mgDownloadMGViewer65WinString += ',height=' + mgDownloadMGViewer65WinSizeH;  // window Height size
					  mgDownloadMGViewer65WinString += ',toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes,titlebar=yes,status=no';
		return void window.open('/MapWrapper/Download/MGViewer65.cfm','MGViewer65Download',mgDownloadMGViewer65WinString);
		}
  		// ================================== // 
		// END Hide -->

