window.addEvent('domready', function() {
	
	var url_path = window.location.pathname;
	var url_path = url_path.substring();
	var about_button = $('about_off');
	var sub_about = $('about_menu');
	var member_button = $('member_off');
	var sub_member = $('member_menu');
	var news_button = $('news_off');
	var sub_news = $('news_menu');
	var corporate_button = $('corporate_off');
	var sub_corporate = $('corporate_menu');
	var education_button = $('education_off');
	var sub_education = $('education_menu');
	
        /*
	var tooltip_button = $('tooltip_on');
	var tooltip_div = $('tooltip');
        */
	
	sub_about.set({'opacity': 0});
	sub_member.set({'opacity': 0});
	sub_news.set({'opacity': 0});
	sub_corporate.set({'opacity': 0});
	sub_education.set({'opacity': 0});
	
	/*tooltip_div.set({'opacity': 0});*/

	
	/* About Us Sub Menu */
									 
	about_button.addEvents({		
		'mouseenter': function(e){
			e.stop();
			sub_about.set('morph', {duration:100});
			sub_about.morph ({'opacity':1});
		},
		'mouseleave': function(e){
			e.stop();
			sub_about.set('morph', {duration:100});
			sub_about.morph ({'opacity':0});
		}
	});

	sub_about.addEvents({
		'mouseenter': function(e){
			e.stop();
			this.set('morph', {duration:100});
			this.morph ({'opacity':1});
		},
		'mouseleave': function(e){
			e.stop();
			this.set('morph', {duration:100});
			this.morph ({'opacity':0});
		}
	});
	
	/* Become a Member Sub Menu */
									 
	member_button.addEvents({		
		'mouseenter': function(e){
			e.stop();
			sub_member.set('morph', {duration:100});
			sub_member.morph ({'opacity':1});
		},
		'mouseleave': function(e){
			e.stop();
			sub_member.set('morph', {duration:100});
			sub_member.morph ({'opacity':0});
		}
	});

	sub_member.addEvents({
		'mouseenter': function(e){
			e.stop();
			this.set('morph', {duration:100});
			this.morph ({'opacity':1});
		},
		'mouseleave': function(e){
			e.stop();
			this.set('morph', {duration:100});
			this.morph ({'opacity':0});
		}
	});
	
	/* News & Events Sub Menu */
									 
	news_button.addEvents({		
		'mouseenter': function(e){
			e.stop();
			sub_news.set('morph', {duration:100});
			sub_news.morph ({'opacity':1});
		},
		'mouseleave': function(e){
			e.stop();
			sub_news.set('morph', {duration:100});
			sub_news.morph ({'opacity':0});
		}
	});

	sub_news.addEvents({
		'mouseenter': function(e){
			e.stop();
			this.set('morph', {duration:100});
			this.morph ({'opacity':1});
		},
		'mouseleave': function(e){
			e.stop();
			this.set('morph', {duration:100});
			this.morph ({'opacity':0});
		}
	});
	
	/* Corporate Sub Menu */
									 
	corporate_button.addEvents({		
		'mouseenter': function(e){
			e.stop();
			sub_corporate.set('morph', {duration:100});
			sub_corporate.morph ({'opacity':1});
		},
		'mouseleave': function(e){
			e.stop();
			sub_corporate.set('morph', {duration:100});
			sub_corporate.morph ({'opacity':0});
		}
	});

	sub_corporate.addEvents({
		'mouseenter': function(e){
			e.stop();
			this.set('morph', {duration:100});
			this.morph ({'opacity':1});
		},
		'mouseleave': function(e){
			e.stop();
			this.set('morph', {duration:100});
			this.morph ({'opacity':0});
		}
	});
	
	/* Education Sub Menu */
									 
	education_button.addEvents({		
		'mouseenter': function(e){
			e.stop();
			sub_education.set('morph', {duration:100});
			sub_education.morph ({'opacity':1});
		},
		'mouseleave': function(e){
			e.stop();
			sub_education.set('morph', {duration:100});
			sub_education.morph ({'opacity':0});
		}
	});

	sub_education.addEvents({
		'mouseenter': function(e){
			e.stop();
			this.set('morph', {duration:100});
			this.morph ({'opacity':1});
		},
		'mouseleave': function(e){
			e.stop();
			this.set('morph', {duration:100});
			this.morph ({'opacity':0});
		}
	});
	
	/* Tool Tip */
	/*								 
	tooltip_button.addEvents({		
		'mouseenter': function(e){
			e.stop();
			tooltip_div.set('morph', {duration:100});
			tooltip_div.morph ({'opacity':1});
		},
		'mouseleave': function(e){
			e.stop();
			tooltip_div.set('morph', {duration:100});
			tooltip_div.morph ({'opacity':0});
		}
	});

	tooltip_div.addEvents({
		'mouseenter': function(e){
			e.stop();
			this.set('morph', {duration:100});
			this.morph ({'opacity':1});
		},
		'mouseleave': function(e){
			e.stop();
			this.set('morph', {duration:100});
			this.morph ({'opacity':0});
		}
	});
        */

			
//end window.addEvent here
});