// JavaScript Document

/*
Random Image Link Script
*/

function random_imglink(){
  var myimages=new Array()
  //specify random images below.
  myimages[1]="http://www.proagentsolutions.com/v2/images/stock1.gif"
  myimages[2]="http://www.proagentsolutions.com/v2/images/stock2.gif"
  myimages[3]="http://www.proagentsolutions.com/v2/images/stock3.gif"
  myimages[4]="http://www.proagentsolutions.com/v2/images/stock5.gif"
  myimages[5]="http://www.proagentsolutions.com/v2/images/stock6.gif"
  myimages[6]="http://www.proagentsolutions.com/v2/images/stock7.gif"
  myimages[7]="http://www.proagentsolutions.com/v2/images/stock9.gif"

  //specify corresponding links below
  var imagelinks=new Array()
  imagelinks[1]="http://www.proagentsolutions.com/v2/solutions/default.asp"
  imagelinks[2]="http://www.proagentsolutions.com/v2/solutions/default.asp"
  imagelinks[3]="http://www.proagentsolutions.com/v2/solutions/default.asp"
  imagelinks[4]="http://www.proagentsolutions.com/v2/solutions/default.asp"
  imagelinks[5]="http://www.proagentsolutions.com/v2/solutions/default.asp"
  imagelinks[6]="http://www.proagentsolutions.com/v2/solutions/default.asp"
  imagelinks[7]="http://www.proagentsolutions.com/v2/solutions/default.asp"
  
  //specify corresponding Alt Text
  var alttext=new Array()
  alttext[1]="Real Solutions for Real Estate Professionals. Our Automated Showing/Feedback Solution imports showings from Supra, SentriLock and Risco Lockbox and emails all parties involved."
  alttext[2]="Real Solutions for Real Estate Professionals. Our Automated Showing/Feedback Solution imports showings from Supra, SentriLock and Risco Lockbox and emails all parties involved."
  alttext[3]="Real Solutions for Real Estate Professionals. Our Automated Showing/Feedback Solution imports showings from Supra, SentriLock and Risco Lockbox and emails all parties involved."
  alttext[4]="Real Solutions for Real Estate Professionals. Our Automated Showing/Feedback Solution imports showings from Supra, SentriLock and Risco Lockbox and emails all parties involved."
  alttext[5]="Real Solutions for Real Estate Professionals. Our Automated Showing/Feedback Solution imports showings from Supra, SentriLock and Risco Lockbox and emails all parties involved."
  alttext[6]="Real Solutions for Real Estate Professionals. Our Automated Showing/Feedback Solution imports showings from Supra, SentriLock and Risco Lockbox and emails all parties involved."
  alttext[7]="Real Solutions for Real Estate Professionals. Our Automated Showing/Feedback Solution imports showings from Supra, SentriLock and Risco Lockbox and emails all parties involved."

  var ry=Math.floor(Math.random()*myimages.length)

  if (ry==0)
     ry=1
	 document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" width="536" height="200" border="0" alt="'+alttext[ry]+'"></a>')    
}

  random_imglink()