	function sl_zl_enter(id,from,to,imgurl) {
		obj = document.getElementById(id);
		if (!obj) return;

		var data = obj.data;
		if (!data) data = "";
		var a=data.split(";");
		if (!a[0]) a[0]=0;
		if (!a[1]) a[1]=from;
		a[2] = imgurl;

		
		if (a[2] && a[2]!="undefined") obj.src = a[2];

		a[0]++;		// increase handler-num
		a[1]++;		// increase step

		size = a[1];
		//obj.style.width = obj.style.height = size+"px";
                obj.style.height = obj.style.height = size+"px";
		obj.data = a[0]+";"+a[1]+";"+a[2];

		window.setTimeout("__sl_zl_zoom('"+id+"','"+a[0]+"','"+to+"')",10);

	}


	function sl_zl_leave(id,from,to,imgurl) {
		obj = document.getElementById(id);
		if (!obj) return;

		var data = obj.data;
		if (!data) data = "";
		var a=data.split(";");
		if (!a[0]) a[0]=0;
		if (!a[1]) a[1]=from;
		a[2] = imgurl;


		a[0]++;		// increase handler-num
		a[1]--;		// decrease step

		size = a[1];
		//obj.style.width = obj.style.height = size+"px";
                                obj.style.height = obj.style.height = size+"px";
		obj.data = a[0]+";"+a[1]+";"+a[2];

		window.setTimeout("__sl_zl_zoom('"+id+"','"+a[0]+"','"+to+"')",10);
	}

	function __sl_zl_zoom(id,num,to) {
		obj = document.getElementById(id);
		if (!obj) return;

		var data = obj.data;
		if (!data) data = "";
		var a=data.split(";");

		// a[0] = handler-num
		// a[1] = step
		// a[2] = alternate finish imgurl

		
		if (!a[0] || !a[1] || !a[2]) return;
		
		if (a[0]!=num) return;

		var finish = false;
		to = parseInt(to);
		i = parseInt(a[1]);
		speed = 5;
		if (i < to) {
			i+=10;
			finish = i>=to;
			speed = 1;
                        
		} else {
			i-=10;
			finish = i<=to;
			speed = 1;
                        
		}

		if (finish) i=to;

		size = i;
		//obj.style.width = obj.style.height = size+"px";
                obj.style.height = obj.style.height = size+"px";
		obj.data = a[0]+";"+i+";"+a[2];
//		defaultStatus = data;

		if (finish) {
			if (a[2] && a[2]!="undefined") obj.src = a[2];
			return;
		}
		window.setTimeout("__sl_zl_zoom('"+id+"','"+num+"','"+to+"')",speed);
	}
