function sidepics()
{
  to = document.getElementById("leftpic").style.posTop;
  wb=document.body.clientWidth;
  hb=document.body.clientHeight;
  ws = (wb - 784) / 2;
  w=ws-20;
  if (w<50) w=0;
  if (w>170) w=170;
  dx=0.5*(ws-w);
  h = 600 * w / 170; 
  t=0.5*(hb-h); if (t<to) t=to;
  with (document.getElementById("leftpic").style)
  {
	width=w+"px";
	left = dx+"px";	
	top=t;
  }
  document.getElementById("leftpic").style.width=w+"px";
  with (document.getElementById("rightpic").style)
  {
    width=w+"px";
    left=(ws+784+dx)+"px"
    top=t;
  }
}
