window.addEvents({domready: function(){
    $$('#allMenus div.items').addEvents({
        mouseenter: function(){
            this.morph({'background-color': '#6b143f'});
        },
        mouseleave: function(){
            this.morph({'background-color': '#ffffff'});
        }
    });
    $('allMenus').addEvents({
        mouseenter: function(){
            $('menuContent').morph({'height': 228});
        },
        mouseleave: function(){
	    $('menuContent').morph({'height': 38});
        }
    });
    $('subMenuHome').addEvents({
        mouseenter: function(){
            this.morph({'height': 76, 'width': 125});
        },
        mouseleave: function(){
	    this.morph({'height': 0, 'width': 0});
        }
    });
    $('subMenuAbout').addEvents({
        mouseenter: function(){
            this.morph({'height': 114, 'width': 175});
        },
        mouseleave: function(){
	    this.morph({'height': 0, 'width': 0});
        }
    });
    $('subMenuClasses').addEvents({
        mouseenter: function(){
            this.morph({'height': 266, 'width': 320});
        },
        mouseleave: function(){
	    this.morph({'height': 0, 'width': 0});
        }
    });
    $('subMenuMedia').addEvents({
        mouseenter: function(){
            this.morph({'height': 190, 'width': 190});
        },
        mouseleave: function(){
	    this.morph({'height': 0, 'width': 0});
        }
    });
    $('itemHome').addEvents({
        mouseenter: function(){
            this.morph({'background-color': '#6b143f'});
            $('subMenuHome').morph({'height': 76, 'width': 125});
        },
        mouseleave: function(){
            this.morph({'background-color': '#ffffff'});
            $('subMenuHome').morph({'height': 0, 'width': 0});
        }
    });
    $('itemAbout').addEvents({
        mouseenter: function(){
            this.morph({'background-color': '#6b143f'});
            $('subMenuAbout').morph({'height': 114, 'width': 175});
        },
        mouseleave: function(){
            this.morph({'background-color': '#ffffff'});
            $('subMenuAbout').morph({'height': 0, 'width': 0});
        }
    });
    $('itemClass').addEvents({
        mouseenter: function(){
            this.morph({'background-color': '#6b143f'});
            $('subMenuClasses').morph({'height': 266, 'width': 320});
        },
        mouseleave: function(){
            this.morph({'background-color': '#ffffff'});
            $('subMenuClasses').morph({'height': 0, 'width': 0});
        }
    });
    $('itemMedia').addEvents({
        mouseenter: function(){
            this.morph({'background-color': '#6b143f'});
            $('subMenuMedia').morph({'height': 190, 'width': 190});
        },
        mouseleave: function(){
            this.morph({'background-color': '#ffffff'});
            $('subMenuMedia').morph({'height': 0, 'width': 0});
        }
    });
    $('itemCommunity').addEvents({
        mouseenter: function(){
            this.morph({'background-color': '#6b143f'});
        },
        mouseleave: function(){
            this.morph({'background-color': '#ffffff'});
        }
    });
}
});
