var $j = jQuery;
$j(function(){
 $j("#mainnavi").each(function(){

//最初は表示させない子メニューの指定					   
$(".sublist").hide();



  $j("a.open", this).each(function(index){
								   
   var $this = $j(this);
   if(index > 0) $this.next().hide();
   
   //メニュー開閉条件
   $this.click(function(){
    var params = {height:"toggle"};
    $j(this).next().animate(params).parent().siblings()
         .children("ul:visible").animate(params);
    return false;
   });
  });
 });
});




