﻿window.addEvent('domready', function() {
	var status = {
		'true': 'open',
		'false': 'close'
	};
	$('corporate_menu').style.height='0px';
	$('products_menu').style.height='0px';
	$('about_menu').style.height='0px';
	$('XXX_menu').style.height='0px';
	$('YYY_menu').style.height='0px';
var finished=false;	
	//-vertical

   $('mnu_corporate').addEvent('mouseenter', function(e){
        $('corporate_menu').set('tween', {
				duration: 300
			}).tween('height', '257px');
        });
 	
    $('mnu_corporate').addEvent('mouseleave', function(e){
        $('corporate_menu').set('tween', {
				duration: 300
			}).tween('height', '0px');
        });
	
	
 	    //==========================
 	    
    $('mnu_products').addEvent('mouseenter', function(e){
        $('products_menu').set('tween', {
				duration: 300
			}).tween('height', '257px');
        });
		
 	
    $('mnu_products').addEvent('mouseleave', function(e){
        $('products_menu').set('tween', {
				duration: 300
			}).tween('height', '0px');
        });
	//==========================
 	    
    $('mnu_about').addEvent('mouseenter', function(e){
        $('about_menu').set('tween', {
				duration: 300
			}).tween('height', '257px');
        });
		
 	
    $('mnu_about').addEvent('mouseleave', function(e){
        $('about_menu').set('tween', {
				duration: 300
			}).tween('height', '0px');
        });
	
	//==========================
 	    
    $('mnu_XXX').addEvent('mouseenter', function(e){
        $('XXX_menu').set('tween', {
				duration: 300
			}).tween('height', '257px');
        });
		
 	
    $('mnu_XXX').addEvent('mouseleave', function(e){
        $('XXX_menu').set('tween', {
				duration: 300
			}).tween('height', '0px');
        });
        
    //==========================
 	    
    $('mnu_YYY').addEvent('mouseenter', function(e){
        $('YYY_menu').set('tween', {
				duration: 300
			}).tween('height', '257px');
        });
		
 	
    $('mnu_YYY').addEvent('mouseleave', function(e){
        $('YYY_menu').set('tween', {
				duration: 300
			}).tween('height', '0px');
        });
});
