function shrinkDownPx(obj,start,step,offset) {
	var div=document.getElementById(obj).style;

	var offset=parseInt(offset+step);
	var heightx=parseInt(start-offset);
	
	
	if (heightx>0)
	{
		div.height=heightx+"px";
		div.top=offset+"px";
		var u = setTimeout("shrinkDownPx('apDiv2',"+start+","+step+","+offset+")",10);
	}
	else
	{
		div.height=0;
		shrinkLeft100Pct('apDiv1',100,1);
	}
}

function shrinkLeft100Pct(obj,start,step) {
	var div=document.getElementById(obj).style;

	var widthx=parseInt(start-step);
	
	var w = widthx+"%";
	
	div.width=w;
	div.left=0;
	if (widthx>0)
	{
		var t = setTimeout("shrinkLeft100Pct('apDiv1',"+widthx+","+step+")",10);
	}
}