function structure(image_src, heading_src, text, hyperlink)
{
	this.image_src = image_src;
	this.heading_src = heading_src;
	this.text = text;
	this.hyperlink = hyperlink;
}
function rotator()
{
	list = new Array();
	/* image path, heading path, text, link */
	list[0] = "/wp-content/themes/scc/images/topimage-bg.png";
	list[1] = "/wp-content/themes/scc/images/topimage-bg1.png";
	list[2] = "/wp-content/themes/scc/images/topimage-bg2.png";
	
	_class = new Array();
	_class[0] = 'top1';
	_class[1] = 'top2';
	_class[2] = 'top3';
	
	var number_of_image = list.length;
	var my_random = Math.floor(Math.random() * number_of_image);
	var html_img = document.getElementById("random_image");
	if(html_img){
		html_img.src = list[my_random];
		html_img.className = _class[my_random];
		html_img.width = 923;
		html_img.height = 205;
	}	

	if (document.all && !window.opera)
		fixTrans();
}

if (window.addEventListener)
	window.addEventListener("load", rotator, false);
else if (window.attachEvent)
	window.attachEvent("onload", rotator);
