var arrLMState = new Array();
for (i=0; i<=11; i++) {
    arrLMState[i] = 0; //0: Close; 1: Expand
}

var arrLMName = new Array();
arrLMName[0] = "AddressLabels";
arrLMName[1] = "AddressStamps";
arrLMName[2] = "ChristmasProducts";
arrLMName[3] = "Checks";
arrLMName[4] = "PetProducts";
arrLMName[5] = "HomeOffice";
arrLMName[6] = "Clearance";
arrLMName[7] = "NewProducts";
arrLMName[8] = "Gifts";
arrLMName[9] = "Stationery";
arrLMName[10] = "Other";

function swapImage(MenuName) {
    var id;
    var name;
    var i = -1;
    for (i=0; i<arrLMName.length; i++) {
        if (arrLMName[i] == MenuName) {
            id = i;
            break;
        }    
    }

    if (i>-1) {    
	    image = document.getElementById("imgLM" + MenuName);
	    image.ID="imgLM" + MenuName;
	    switch (arrLMState[id]) {
		    case 1:		       
		       image.src="images/HD-" + MenuName + ".gif";
		       arrLMState[id]=0;
		       return(false);
		    case 0:
			    image.src="images/HD-" + MenuName + "2.gif";
			    arrLMState[id]=1;
		        return(false);
	    }
	}    
}

function toggleMenu(objID) {
if (!document.getElementById) return;
var ob = document.getElementById(objID).style;
ob.display = (ob.display == 'block')?'none': 'block';
}