
function adArray() {
	for (i=0; i*2<adArray.arguments.length; i++) {
		this[i] = new Object();
		this[i].src = adArray.arguments[i*2];
		this[i].href = adArray.arguments[i*2+1];
	}
	this.length = i;
}
function getAdNum() {
	dat = new Date();
	dat = (dat.getTime()+"").charAt(10);
	if (dat.length == 1)
		//number below is one less than the number of images in the array
		ad_num =  Math.round(Math.random()*10);
	else
		ad_num = 0;
	return ad_num;
}

var ads = new adArray(
"images/lawyers/david_white.jpg","david_white.aspx",
"images/lawyers/charles_reasor_jr.jpg","charles_reasorjr.aspx",
"images/lawyers/john_baird.jpg","john_baird.aspx",
"images/lawyers/robert_pope.jpg","robert_pope.aspx",
"images/lawyers/naill_falls.jpg","naill_falls.aspx",
"images/lawyers/charles_reasor_iii.jpg","charles_reasorIII.aspx",
"images/lawyers/charles_mcelroy.jpg","charles_mcelroy.aspx",
"images/lawyers/dudley_west.jpg","dudley_west.aspx",
"images/lawyers/james_mccarten.jpg","james_mccarten.aspx",
"images/lawyers/john_stone.jpg","john_stone.aspx",
"images/lawyers/van_east.jpg","van_east.aspx",
"images/lawyers/steven_west.jpg","steven_west.aspx");
var ad_num = getAdNum(); 
document.write('<a href="'+ads[ad_num].href+'" id="bnrAnchor">');
document.write('<img src="'+ads[ad_num].src+'" '+'width="180" height="230" border="0" name="banner">');
document.write('</a>');
link_num = document.links.length-1;
function rotateSponsor() {
	if (document.images) {
		//number below is one less than the number of images in the array
		ad_num += 1 // Math.round(Math.random()*9);
		if (ad_num >= ads.length)
			ad_num = 0;
		document.banner.src = ads[ad_num].src;
		document.getElementById('bnrAnchor').href = ads[ad_num].href;
		setTimeout("rotateSponsor()",8000);
	}
}
setTimeout("rotateSponsor()",8000);
