function imgtiles(alignment) {
	group = Math.ceil(Math.random() * 5);
	switch(group) {
		case 1:
			document.write('<div class="img" style="float: ' + alignment + '; height: 230px; margin-' + alignment + ': 20px; position: relative; width: 300px;">');
			document.write('	<div class="ib4" style="left: 0; top: 85px;">');
			img = Math.ceil(Math.random() * 43);
			if(img < 10) img = '0' + img;
			document.write('		<div style="background-image: url(./imgs/pic' + img + '.png);"></div>');
			document.write('	</div>');
			document.write('	<div class="ib4" style="left: 100px; top: 25px;">');
			img = Math.ceil(Math.random() * 43);
			if(img < 10) img = '0' + img;
			document.write('		<div style="background-image: url(./imgs/pic' + img + '.png);"></div>');
			document.write('	</div>');
			document.write('	<div class="ib2" style="left: 15px; top: 0;">');
			img = Math.ceil(Math.random() * 43);
			if(img < 10) img = '0' + img;
			document.write('		<div style="background-image: url(./imgs/pic' + img + '.png);"></div>');
			document.write('	</div>');
			document.write('	<div class="ib3" style="left: 195px; top: 125px;">');
			img = Math.ceil(Math.random() * 43);
			if(img < 10) img = '0' + img;
			document.write('		<div style="background-image: url(./imgs/pic' + img + '.png);"></div>');
			document.write('	</div>');
			document.write('</div>');
		break;
		case 2:
			document.write('<div class="img" style="float: ' + alignment + '; height: 200px; margin-' + alignment + ': 20px; position: relative; width: 280px;">');
			document.write('	<div class="ib1" style="left: 80px; top: 0;">');
			img = Math.ceil(Math.random() * 43);
			if(img < 10) img = '0' + img;
			document.write('		<div style="background-image: url(./imgs/pic' + img + '.png);"></div>');
			document.write('	</div>');
			document.write('	<div class="ib1" style="left: 0; top: 75px;">');
			img = Math.ceil(Math.random() * 43);
			if(img < 10) img = '0' + img;
			document.write('		<div style="background-image: url(./imgs/pic' + img + '.png);"></div>');
			document.write('	</div>');
			document.write('</div>');
		break;
		case 3:
			document.write('<div class="img" style="float: ' + alignment + '; height: 200px; margin-' + alignment + ': 20px; position: relative; width: 300px;">');
			document.write('	<div class="ib1" style="left: 50px; top: 75px;">');
			img = Math.ceil(Math.random() * 43);
			if(img < 10) img = '0' + img;
			document.write('		<div style="background-image: url(./imgs/pic' + img + '.png);"></div>');
			document.write('	</div>');
			document.write('	<div class="ib5" style="left: 155px; top: 0;">');
			img = Math.ceil(Math.random() * 43);
			if(img < 10) img = '0' + img;
			document.write('		<div style="background-image: url(./imgs/pic' + img + '.png);"></div>');
			document.write('	</div>');
			document.write('	<div class="ib3" style="left: 0; top: 15px;">');
			img = Math.ceil(Math.random() * 43);
			if(img < 10) img = '0' + img;
			document.write('		<div style="background-image: url(./imgs/pic' + img + '.png);"></div>');
			document.write('	</div>');
			document.write('</div>');
		break;
		case 4:
			document.write('<div class="img" style="float: ' + alignment + '; height: 145px; margin-' + alignment + ': 20px; position: relative; width: 250px;">');
			document.write('	<div class="ib2" style="left: 0; top: 0;">');
			img = Math.ceil(Math.random() * 43);
			if(img < 10) img = '0' + img;
			document.write('		<div style="background-image: url(./imgs/pic' + img + '.png);"></div>');
			document.write('	</div>');
			document.write('	<div class="ib2" style="left: 25px; top: 40px;">');
			img = Math.ceil(Math.random() * 43);
			if(img < 10) img = '0' + img;
			document.write('		<div style="background-image: url(./imgs/pic' + img + '.png);"></div>');
			document.write('	</div>');
			document.write('	<div class="ib2" style="left: 50px; top: 80px;">');
			img = Math.ceil(Math.random() * 43);
			if(img < 10) img = '0' + img;
			document.write('		<div style="background-image: url(./imgs/pic' + img + '.png);"></div>');
			document.write('	</div>');
			document.write('</div>');
		break;
		case 5:
			document.write('<div class="img" style="float: ' + alignment + '; height: 300px; margin-' + alignment + ': 20px; position: relative; width: 220px;">');
			document.write('	<div class="ib4" style="left: 55px; top: 0;">');
			img = Math.ceil(Math.random() * 43);
			if(img < 10) img = '0' + img;
			document.write('		<div style="background-image: url(./imgs/pic' + img + '.png);"></div>');
			document.write('	</div>');
			document.write('	<div class="ib3" style="left: 115px; top: 195px;">');
			img = Math.ceil(Math.random() * 43);
			if(img < 10) img = '0' + img;
			document.write('		<div style="background-image: url(./imgs/pic' + img + '.png);"></div>');
			document.write('	</div>');
			document.write('	<div class="ib1" style="left: 0; top: 95px;">');
			img = Math.ceil(Math.random() * 43);
			if(img < 10) img = '0' + img;
			document.write('		<div style="background-image: url(./imgs/pic' + img + '.png);"></div>');
			document.write('	</div>');
			document.write('</div>');
		break;
	}
}
