﻿

//左侧导航
function m1(){
var left_bot = new Fx.Tween($('left_bot'));
if($('p1').getStyle('height')=='620px')
{

$('menu1').set('class','');

var myhg = new Fx.Tween($('p1'));
       myhg.start('height', '620','0');
	   left_bot.start('height', '0','620');
}
else
{
$$('#p5,#p2,#p3,#p4,#p6').setStyle('height','0');
$$('#menu5,#menu2,#menu3,#menu4,#menu6').set('class','');
       $('menu1').set('class','title');
       var myhg = new Fx.Tween($('p1'));
       myhg.start('height', '0','620');
	   left_bot.start('height', '620','0');
	   

}

}

function m2(){
var left_bot = new Fx.Tween($('left_bot'));
if($('p2').getStyle('height')=='620px')
{

$('menu2').set('class','');

var myhg = new Fx.Tween($('p2'));
       myhg.start('height', '620','0');
	   left_bot.start('height', '0','620');
}
else
{

$$('#p1,#p5,#p3,#p4,#p6').setStyle('height','0');
$$('#menu1,#menu5,#menu3,#menu4,#menu6').set('class','');

       $('menu2').set('class','title');
       var myhg = new Fx.Tween($('p2'));
       myhg.start('height', '0','620');
	   left_bot.start('height', '620','0');
	   

}

}



function m3(){
var left_bot = new Fx.Tween($('left_bot'));
if($('p3').getStyle('height')=='620px')
{

$('menu3').set('class','');

var myhg = new Fx.Tween($('p3'));
       myhg.start('height', '620','0');
	   left_bot.start('height', '0','620');
}
else
{
$$('#p1,#p2,#p5,#p4,#p6').setStyle('height','0');
$$('#menu1,#menu2,#menu5,#menu4,#menu6').set('class','');
$('menu3').set('class','title');
var myhg = new Fx.Tween($('p3'));
       myhg.start('height', '0','620');
	   left_bot.start('height', '620','0');

}

}



function m4(){
var left_bot = new Fx.Tween($('left_bot'));
if($('p4').getStyle('height')=='620px')
{

$('menu4').set('class','');

var myhg = new Fx.Tween($('p4'));
       myhg.start('height', '620','0');
	   left_bot.start('height', '0','620');
}
else
{
$$('#p1,#p2,#p3,#p5,#p6').setStyle('height','0');
$$('#menu1,#menu2,#menu3,#menu5,#menu6').set('class','');
$('menu4').set('class','title');
var myhg = new Fx.Tween($('p4'));
       myhg.start('height', '0','620');
	   left_bot.start('height', '620','0');

}

}


function m5(){
var left_bot = new Fx.Tween($('left_bot'));
if($('p5').getStyle('height')=='620px')
{

$('menu5').set('class','');

var myhg = new Fx.Tween($('p5'));
       myhg.start('height', '620','0');
	   left_bot.start('height', '0','620');
}
else
{
$$('#p1,#p2,#p3,#p4,#p6').setStyle('height','0');
$$('#menu1,#menu2,#menu3,#menu4,#menu6').set('class','');
$('menu5').set('class','title');
var myhg = new Fx.Tween($('p5'));
       myhg.start('height', '0','620');
	   left_bot.start('height', '620','0');

}

}

function m6(){
var left_bot = new Fx.Tween($('left_bot'));
if($('p6').getStyle('height')=='620px')
{

$('menu6').set('class','');

var myhg = new Fx.Tween($('p6'));
       myhg.start('height', '620','0');
	   left_bot.start('height', '0','620');
}
else
{
$$('#p1,#p2,#p3,#p4,#p5').setStyle('height','0');
$$('#menu1,#menu2,#menu3,#menu4,#menu5').set('class','');
$('menu6').set('class','title');
var myhg = new Fx.Tween($('p6'));
       myhg.start('height', '0','620');
	   left_bot.start('height', '620','0');

}

}