        // imageCheck.js - checks for error in image load, shuts off image, and alerts user.
        // browser support: Netscape6+, IE5+, Gecko Engined browsers (Mozilla, Safari, etc)
        
        // 26 Oct 2004  BPike       created

        // ***** THIS SCRIPT REQUIRES browser_DOM.js - include prior to this script *****
        // ***** if unavailable, uncomment the following code ***************************
        /*
        var isNav,isIE,isDOM;
        var coll = "";
        var styleObj = "";
    	
        //test for DHTML capable browser
        if (document.getElementById || document.all || document.layers) 
        {
	        // test for NN/Gecko Layer API browser
	        if(document.layers) 
	        {
		        //set object string variables - use defaults
		        isNav=true;
	        }
	        else    //test for IE DOM browser 
	        {
		        if(document.all)
		        {
			        //set object string variables
			        isIE=true;
			        coll="all.";
			        styleObj=".style";
		        }
		        else   // assume W3C DOM browser
		        {
			        //set object string variables
			        isDOM=true;
			        coll="getElementById('";
			        styleObj="').style";
		        }
	        }
        }
        ******************************************************************************** */
        
        // in the map, radar, or sat image include an id attribute and the following event handler:  onerror="imgLoadError('whatever you name the image in the ID attribute')
        
        function imgLoadError(imgID)
        {
            //use the following line if simply replacing image with another image
            var imgObj = document.getElementById(imgID);
            imgObj.src="/adc2004/common/images/mapnotavailable.gif";
            //use the following line if adjusting any style property of image
            //var imgobj = eval("document." + coll + imgID + styleObj);
            //imgobj.visibility = "hidden";
        }
            

