	var ocgoint=0;
	var oclast=0;
	function resize(el,d,step) {
		var l=document.getElementById(el);
		var h=l.offsetHeight;
		if( d == 0 ) h=h+step; else h=h-step;
		newv=""+h+"px";
		l.style.height=newv;
		if( d == 0 ) {
			if( h >= oclast-1 ) {
				clearInterval(ocgoint);
				ocgoint=0;
				oclast--;
				newv=""+oclast+"px";
				l.style.height=newv;
			}
		} else {
			if( h < (step+1) ) {
				clearInterval(ocgoint);
				ocgoint=0;
				l.style.display="none";
			}
		}
	}
	function divoc(el,delay,step) {
		if( ocgoint == 0 ) {
			var l=document.getElementById(el);
			var divheight=l.offsetHeight;
			if( l.currentStyle ) { // IE
				var divdisplay=l.currentStyle.display;
			} else {
				var mydivstyle=window.getComputedStyle(l, "");
				var divdisplay=mydivstyle.getPropertyValue("display");
			}
			if( divdisplay == "none" ) {
				l.style.display="";
				if( oclast == 0 ) {
					oclast=l.offsetHeight+1;
					l.style.height="0px";
				}
				ocgoint=setInterval("resize('"+el+"',0,"+step+")",delay);
			} else {
				if( oclast == 0 )
					oclast=divheight+1;
				ocgoint=setInterval("resize('"+el+"',1,"+step+")",delay);
			}
		}
	}
