/*Random_Image_Link.js
*/



function random_imglink(){
var myimages=new Array()
//specify random images below. You can have as many as you wish
myimages[1]="img/bios/alexasch/02-07_housed-fth.jpg"
myimages[2]="img/bios/caitlinperriman/rabbit-fth.jpg"
myimages[3]="img/bios/jennylawrence/jennyLawrence4-fth.jpg"
myimages[4]="img/bios/markkobal/bank-fth.jpg"

//specify corresponding links below
var biolinks=new Array()
biolinks[1]="artist_profile.php?id=44"
biolinks[2]="artist_profile.php?id=31"
biolinks[3]="artist_profile.php?id=54"
biolinks[4]="artist_profile.php?id=22"


//Title text
var imagetext=new Array()
imagetext[1]="in the green house she beat on one of gods good men <br><br>Alex Asch<br>"
imagetext[2]="Untitled, diptych left panel <br><br>Caitlin Perriman<br>"
imagetext[3]="perfect future <br><br>Jenny Lawrence<br>"
imagetext[4]="government social security <br><br>Mark Kobal<br>"


//Title text
var image_x=new Array()
image_x[1]="159"
image_x[2]="176"
image_x[3]="300"
image_x[4]="299"


//Title text
var image_y=new Array()
image_y[1]="250"
image_y[2]="250"
image_y[3]="193"
image_y[4]="250"


var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.write('<a href="'+biolinks[ry]+'"><img src="'+myimages[ry]+'" width='+image_x[ry]+' height='+image_y[ry]+' border=0></a><H6><A HREF='+biolinks[ry]+'>'+imagetext[ry]+'</A></H6>')
}


random_imglink()
