var dd=function(){
	var s,t,st,sl; s=7; t=15; st=-1; sl=1;
	return{
		init:function(){
			var t,i,l; t=document.getElementsByTagName('dt'); i=0; l=t.length;
			for(i;i<l;i++){
				var c,e; c=t[i]; e=c.id;
				if(e.indexOf('-head')!=-1){
					var n,s,p; n=e.replace('-head',''); s=document.getElementById(n+'-cont');
					p=(c.parentNode.className=='dd')?true:false; this.tv(c,s,n,p);
		}}},
		tv:function(c,s,n,p){c.onmouseover=function(){dd.sl(n,1,p)}; s.onmouseover=function(){dd.cn(n)}; c.onmouseout=s.onmouseout=function(){dd.sl(n,-1)}},
		sl:function(i,d,p){
			var h,c; h=document.getElementById(i+'-head'); c=document.getElementById(i+'-cont');
			z=h;
			clearInterval(c.timer);
			if(d==1){
				clearTimeout(h.timer);
				if(!c.maxh){c.style.display='block'; c.style.height='auto'; c.maxh=c.offsetHeight; c.style.height='0px'}
				if(!p){
					var m=c.parentNode.parentNode.parentNode.parentNode; c.style.left=(h.offsetWidth+sl)+'px'; c.style.top=(0+st)+'px';
					m.style.width='auto'; m.style.width=(m.offsetWidth+c.offsetWidth)+'px'; m.style.height=(m.maxh+c.maxh)+'px'
				}
				c.timer=setInterval(function(){dd.mv(c,1)},t)
			}else{h.timer=setTimeout(function(){dd.cl(c)},25)}
		},
		cl:function(c){c.timer=setInterval(function(){dd.mv(c,-1)},t)},
		cn:function(i){
			var h,c; h=document.getElementById(i+'-head'); c=document.getElementById(i+'-cont');
			clearTimeout(h.timer);
			clearInterval(c.timer);
			if(parseInt(c.style.height)<c.maxh){c.timer=setInterval(function(){dd.mv(c,1)},t)}
		},
		mv:function(c,d){
			var m,h,f,n; m=c.maxh; h=c.offsetHeight; f=(d==1)?Math.round((m-h)/s):Math.round(h/s); if(f<1){f=1}
			n=h+(f*d); c.style.height=Math.abs(n)+'px'; c.style.opacity=n/m; c.style.filter='alpha(opacity='+(n*100/m)+')';
			if((h==0&&d!=1)||(h==m&&d==1)){clearInterval(c.timer)}
}};}();
