// from http://www.ewoodruff.us/ImageMapWebCS/Default.aspx#
// Demo function for the area controls.  Highlight the area that the
// mouse is over and unhighlight it when the mouse is not over it.
function IM_Highlight(nImage)
{
   	img0 = new Image();
	img0.src = "/parts/structureGraphics/world.gif";
	img1 = new Image();
	img1.src = "/parts/structureGraphics/world_northamerica.gif";
	img2 = new Image();
	img2.src = "/parts/structureGraphics/world_southamerica.gif";
	img3 = new Image();
	img3.src = "/parts/structureGraphics/world_africa.gif";
	img4 = new Image();
	img4.src = "/parts/structureGraphics/world_europe.gif";
	img5 = new Image();
	img5.src = "/parts/structureGraphics/world_australia.gif";
	img6 = new Image();
	img6.src = "/parts/structureGraphics/world_asia.gif";

	var img;
    img = document.getElementById("imClickMap");

    switch(nImage)
    {
	    case 0:
            img.src = img0.src;
            break;
			
        case 1:
            img.src = img1.src;
            break;

        case 2:
            img.src = img2.src;
            break;

        case 3:
            img.src = img3.src;
            break;

        case 4:
            img.src = img4.src;
            break;

        case 5:
            img.src = img5.src;
            break;
		
	    case 6:
           img.src = img6.src;
           break;
    }
}

// from http://www.ewoodruff.us/ImageMapWebCS/Default.aspx#
// Demo function for the area controls.  Highlight the area that the
// mouse is over and unhighlight it when the mouse is not over it.
function IM_Highlight2(nImage)
{
    var img;

    img = document.getElementById("imClickMap");

    switch(nImage)
    {
        case 0:
            img.src = "/parts/structureGraphics/na_map.gif";
            break;

        case 1: // canada_east
            img.src = "/parts/structureGraphics/6.gif";
            break;

        case 2: // canada_west
            img.src = "/parts/structureGraphics/7.gif";
            break;

        case 3: // us_west
            img.src = "/parts/structureGraphics/5.gif";
            break;

        case 4: // us_midwest
            img.src = "/parts/structureGraphics/4.gif";
            break;
		
	    case 5: // us_central
           img.src = "/parts/structureGraphics/3.gif";
           break;
			
		case 6: // us_southeast
            img.src = "/parts/structureGraphics/2.gif";
            break;
			
		case 7: // us_northeast
            img.src = "/parts/structureGraphics/1.gif";
            break;
			
		case 8: // mexico
            img.src = "/parts/structureGraphics/8.gif";
            break;
    }
}
