<style type="text/css">
ul,li{font-size:12px;font-family:arial;padding:0;margin:0;}
ul{width:300px;line-height:24px;font-weight:bold;background-color:#C1C2C1;border-bottom:1px solid #fff;text-indent:10px;}
li{list-style:none;font-weight:normal;background-color:#e1e1e1;}
</style>
</head>
<body>
<ul>Title1
<li>11111</li>
</ul>
<ul>Title2
<li>22222</li>
</ul>
<ul>Title3
<li>33333</li>
</ul>
<ul>Title4
<li>44444</li>
</ul>
<script type='text/javascript'>
var Acc=new Class({
Implements:[Options,Events],
options:{
$Boxtit:false
},
initialize:function(options){//Initialize the constructor
(options);//Set options
if(!.$Boxtit){return false;}
();
},
Core:function(){
$Boxtit=.$Boxtit;
$Boxmsg=$('li');
$("display","none");
$(function($I,i1){
$=function(){
//i2=$(this);(i1+'|'+i2);//The i1 and i2 here are actually index values
$("display","none");
('li').setStyle("display","");
};
})
}
});
new Acc({$Boxtit:$$('ul')});
</script>