var pic_width = 100;
var pic_height = 100;
var border_size = 0;
var alignment = 1;
var num_images = 10;

/* no need to edit past this point (unless you want to add more image slots) */
var cent_it = "";
var cent_it2 = "";

if (alignment == 1) {
	cent_it = "<center>";
	cent_it2 = "</center>";
}

/* define image urls */
function get_Image(id, fld, pref) {
	if (document.images) {
		if (!fld) fld = ''; else fld += '/';
		if (!pref) pref = "../";
		var pic = new Image(pic_width, pic_height);
		pic.src = pref + "images/accent_images/" + fld + "accent" + get_random(num_images) + ".jpg";

		document.getElementById(id).innerHTML = cent_it + "<img src='" + pic.src + "' width='" + pic_width + "' height='" + pic_height + "' border='" + border_size + "'>" + cent_it2;
	 }
}

function get_random(maxNum) {
	if (Math.random && Math.floor) {
		return Math.floor(Math.random() * maxNum) + 1;
	} else {
		var today = new Date();
		var hours = today.getHours();
		var mins = today.getMinutes();
		var secn = today.getSeconds();
		if (hours == 19) hours = 18;
		return (((hours + 1) * (mins + 1) * secn) % maxNum) + 1;
	}
}
