//this is for the random news image on the homepage.

function random_imglink(){
var myimages=new Array()
//add new image links here. make sure to increment the new images (7,8,9, etc.)
//make sure the images are no more than 240px wide.
myimages[1]="images/news/image1.jpg"
myimages[2]="images/news/image2.jpg"
myimages[3]="images/news/image3.jpg"
//myimages[4]="images/news/image4.jpg"

var caption=new Array()
//add image captions here. again, make sure to increment them in pair with their photo.
caption[1]="Austin CPAs on the softball diamond."
caption[2]="CPAs around the world!"
caption[3]="The Austin chapter took a swim!"
//caption[4]="Your caption here"

var pagelink=new Array()
//add the pagelink here, and make sure to increment it in pair with the other two elements.
pagelink[1]="news_and_events/index.html"
pagelink[2]="news_and_events/index.html"
pagelink[3]="news_and_events/index.html"
//pagelink[4]="news_and_events/index.html"
 
 
 
//don't worry about anything below here. 
var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.write('<a href="'+pagelink[ry]+'"><img src="'+myimages[ry]+'" border=0 alt="'+caption[ry]+'"></a>')
document.write('<br> '+caption[ry]+' ')
}
random_imglink()
