window.addEvent('domready', function() {
	var dance = null;
	var visualArts = null;
	var drama = null;
	var music = null;
	
	if ($('morph-dance')) var dance = $('morph-dance');
	if($('morph-visualarts')) var visualArts = $('morph-visualarts');
	if($('morph-drama')) var drama = $('morph-drama');
	if($('morph-music')) var music = $('morph-music');

	if(dance)
	dance.addEvents({
		mouseenter: function(){
			// This morphes the opacity and backgroundColor
			this.morph('.morph-expanded');
			if(visualArts) visualArts.morph('.morph-compressed');
			if(drama) drama.morph('.morph-compressed');
			if(music) music.morph('.morph-compressed');
		},
		mouseleave: function(){
			// Morphes back to the original style
			this.morph('.morph-relaxed');
			if(visualArts) visualArts.morph('.morph-relaxed');
			if(drama) drama.morph('.morph-relaxed');
			if(music) music.morph('.morph-relaxed');
		}
	});


	if(visualArts)
	visualArts.addEvents({
		mouseenter: function(){
			// This morphes the opacity and backgroundColor
			this.morph('.morph-expanded');
			if(dance) dance.morph('.morph-compressed');
			if(drama) drama.morph('.morph-compressed');
			if(music) music.morph('.morph-compressed');
		},
		mouseleave: function(){
			// Morphes back to the original style
			this.morph('.morph-relaxed');
			if(dance) dance.morph('.morph-relaxed');
			if(drama) drama.morph('.morph-relaxed');
			if(music) music.morph('.morph-relaxed');
		}
	});


	if(drama)
	drama.addEvents({
		mouseenter: function(){
			// This morphes the opacity and backgroundColor
			this.morph('.morph-expanded');
			if(dance) dance.morph('.morph-compressed');
			if(visualArts) visualArts.morph('.morph-compressed');
			if(music) music.morph('.morph-compressed');
		},
		mouseleave: function(){
			// Morphes back to the original style
			this.morph('.morph-relaxed');
			if(dance) dance.morph('.morph-relaxed');
			if(visualArts) visualArts.morph('.morph-relaxed');
			if(music) music.morph('.morph-relaxed');
		}
	});


	if(music)
	music.addEvents({
		mouseenter: function(){
			// This morphes the opacity and backgroundColor
			this.morph('.morph-expanded');
			if(dance) dance.morph('.morph-compressed');
			if(drama) drama.morph('.morph-compressed');
			if(visualArts) visualArts.morph('.morph-compressed');
		},
		mouseleave: function(){
			// Morphes back to the original style
			this.morph('.morph-relaxed');
			if(dance) dance.morph('.morph-relaxed');
			if(drama) drama.morph('.morph-relaxed');
			if(visualArts) visualArts.morph('.morph-relaxed');
		}
	});



});

