
		var position = 0;
		var position2 = 0;
		var pas = 0;
		var obiect = '';
		var goingUp = 1; // rescrisa de slide();
		function obj(id) {return document.getElementById(id)}

		function slide(id) {
			obiect = obj(id);
			var height = parseInt(obiect.style.height);
			pas = 20/100;
			position = parseInt(obiect.style.top);
			position2 = height - 20;
			if (goingUp == 1) {goingUp = 0;} else {goingUp = 1;}
			do_slide();
		}

		function do_slide() { //alert(obiect.style.height);
			if (goingUp == 1) { //alert('goingUp & position = '+position);
				var h18 = -(parseInt(obiect.style.height)-18);
				if(position > (-(parseInt(obiect.style.height)-22))) { // alert('goingUp si position['+position+'] > height-18['+h18+']');
					var pos2 = position - (parseInt(obiect.style.height) + position)*pas; 
					obiect.style.top = parseInt(pos2)+'px';
					position = pos2;// alert(position);
					setTimeout('do_slide()', 100);
				}
				else { 
					obiect.style.top = - (parseInt(obiect.style.height)-20)+'px';
					position = parseInt(obiect.style.top);
				}
			}
			else { // going down ;)
				var h2 = parseInt(obiect.style.height) - 1;
				if(position < -2) { 
					var pos2 = position*(1-pas); 
					obiect.style.top = parseInt(pos2)+'px';
					position = pos2;// alert(position);
					setTimeout('do_slide()', 100);
				}
				else {
					obiect.style.top = '0px';
					position = 0;
				}
			}
		}
