function ssuMenu()
{
        this.buttons = {
          'b2': false,
          'b3': false,
          'b4': false,
          'asp': false,
          'edu': false,
          'sci': false,
          'b6': false,
		  'inf': false,
		  'mus': false
        }

        this.objB = new Object();
        this.objB_ov = new Object();
        this.current = undefined;

        this.addPath = function(i)
        {
                return "i/menu/"+ i +".gif";
        }

        this.changeImg = function(objId)
        {
                this.buttons[objId] = !this.buttons[objId];
                var img  = (this.buttons[objId]) ? this.objB_ov : this.objB;
				/*****/
				if (document.getElementById(objId) == null) return;
				/*****/
                (document.getElementById(objId)).src = img[objId].src;

        }

        this.h = function(obj)
        {
				/*****/
				if (obj == null) return;
				/*****/
                if(obj.id!=this.current)
                {
                   this.changeImg(obj.id)
                   this.changeImg(this.current);
                }
        }

        this.setCurrentPage  = function(b)
        {
                this.buttons[b] = true;
				if (document.getElementById(b) == null) return;
                (document.getElementById(b)).src = this.objB_ov[b].src;
                this.current = b;
        }

        for(var obj in this.buttons)
        {
				
                this.objB[obj] = new Image();
                this.objB[obj].src = this.addPath(obj+"1");
                this.objB_ov[obj] = new Image();
                this.objB_ov[obj].src = this.addPath(obj+"2");
        }
}

var objMenu = new ssuMenu();