<!--
/*
Code by Aliasghar Pendashteh <alipendashteh@gmail.com>
Removing the Copyright is not allowed.
*/
var el, hh, t1, t2;
var h = 0;
var action = new Array();
var init_height = 15;
var init_time = 1;
function scroll(x,h2) {
	hh = h2;
	if ( el != document.getElementById(x)) {
		diff = true;
	}
	el = document.getElementById(x);
	el.style.overflow = 'hidden';
	if ( action[x] != 'close' ) {
		clearTimeout(t2);
		action[x] = 'close';
		if (diff) {
			h = 0;
		}
		openIt();
	} else {
		clearTimeout(t1);
		action[x] = 'open';
		if (diff) {
			h = hh;
		}
		closeIt();
	}
}
function openIt() {
	t1 = window.setTimeout("openIt()", init_time);
	if (h < hh) {
		el.style.height = h + 'px';
		el.style.display = '';
		h += init_height;
	} else {
		el.style.height = hh + 'px';
		clearTimeout(t1);
	}
}
function closeIt() {
	t2 = window.setTimeout("closeIt()", init_time);
	if (h > 0) {
		el.style.height = h + 'px';
		h -= init_height;
	} else {
		el.style.height = '0px';
		el.style.display = 'none';
		clearTimeout(t2);
	}
}
// -->