function l (p,anz,size,hori,pich) {
 return Math.sin((360*p/anz)/180*Math.PI)/2*size+hori-pich/2;
}
function t (p,anz,size,topd) {
 return (1-Math.sin((p*360/anz+90)/180*Math.PI))/2*size+topd;
}
function pos (fldid,pich,picv,anz,size,hori,topd) {
 for (i = 0; i < anz; i++) {
 document.getElementById(fldid+(i+1)).style.top = t(i,anz,size,topd);
 document.getElementById(fldid+(i+1)).style.left = l(i,anz,size,hori,pich);
}}
