var w=213;
function get(a){
	return document.getElementById(a);
}
function init(a){
	var m=n=b0=b1=b2=b3=0;
	for(var i=0;i<sizes.length;i++){
		n=i%a;
		eval("m=b"+n);
		eval("s"+i+".position='absolute'; s"+i+".left='"+((n+1)*w)+"px'; s"+i+".top='"+m+"px';b"+n+"+="+(sizes[i]+53+1)+";");
	}
}

function ors(){
	var cw=document.body.clientWidth;
	if(cw>5*w){
		init(4);	
	}else if(cw<5*w && cw>4*w){
		init(3);
	}else if(cw<4*w && cw>3*w){
		init(2);
	}else if(cw<3*w && cw>2*w){
		init(1);
	}else if(cw<2*w){
		init(-1);
	}
}