// JavaScript Document

var image1="";
var image2="";
var image3="";
function random_imglink(inter){
  var myimages=new Array()
  //specify random images below. You can have as many as you wish
	myimages[1]="/images/feature_102207_1"
	myimages[2]="/images/feature_102207_2"
	myimages[3]="/images/feature_102207_3"
	myimages[4]="/images/spotlight/spotlight_commercial_stamp_1"
	myimages[5]="/images/spotlight/spotlight_lot29_1"
	myimages[6]="/images/spotlight/spotlight_nestle_1"
	myimages[7]="/images/spotlight/spotlight_residential_stamp_1"
	myimages[8]="/images/spotlight/spotlight_residential_stamp_4"

  //specify corresponding links below
  //var imagelinks=new Array()
 // imagelinks[1]="http://www.wsabstract.com"
  //imagelinks[2]="http://www.dynamicdrive.com"
 // imagelinks[3]="http://www.java-scripts.net"

  var ry=Math.floor(Math.random()*myimages.length)
  if (ry==0)
   ry=1
  if (inter == 1){
  	image1 = ry;
     document.write('<a href='+'"'+myimages[ry]+'_Big.gif"'+' rel="lightbox"><img src="'+myimages[ry]+'.gif" border=0 height="64"></a>')
  }
  else if (inter ==2){
  	image2 = ry;
	  if (ry==image1){
	  random_imglink(2);
	  }
	  else {
	  
     document.write('<a href='+'"'+myimages[ry]+'_Big.gif"'+' rel="lightbox"><img src="'+myimages[ry]+'.gif" border=0 height="64"></a>')
	 }
  }
  else if (inter==3){
  	image3 = ry;
  	if (ry==image1||ry==image2){
	  random_imglink(3);
	  }
	  else {
     document.write('<a href='+'"'+myimages[ry]+'_Big.gif"'+' rel="lightbox"><img src="'+myimages[ry]+'.gif" border=0 height="64"></a>')
	 }
  }
  
}
function random_spotlight(){
  var myimages=new Array()
  //specify random images below. You can have as many as you wish
	myimages[1]=new Array("commercial_stamp","Commercial","The inviting texture of the surface provides a relaxing environment for your employees.")
	myimages[2]=new Array("lot29","Lot 29","Building erected with overlapping tilt-up panels designed for exterior appeal.")
	myimages[3]=new Array("nestle","Nestle Waters","Fast track, Tilt-up constructed building with occupancy in less than 9 months.")
	myimages[4]=new Array("residential_stamp","Residential","Stamped concrete, a beautiful compliment to your home. Enhancing the value of your property.")


	var ry=Math.floor(Math.random()*myimages.length)
	if (ry==0)
	ry=1
	//document.write('<a href='+'"'+myimages[ry]+'_Big.gif"'+' rel="lightbox"><img src="'+myimages[ry]+'.gif" border=0 height="54"></a>')
		document.write('<div class="spotlightBox"><a href="/images/spotlight/spotlight_'+myimages[ry][0]+'_1_Big.gif" rel="lightbox"><img src="/images/spotlight/spotlight_'+myimages[ry][0]+'_1.gif" border="0" align="left"/></a>')
		document.write('<h2>Project Spotlight: &nbsp;<span>'+myimages[ry][1]+'</span></h2>'+myimages[ry][2]+'<br /> <Table width="500" cellpadding="0" cellspacing="0" style="padding-top:30px;">')
		document.write('<tr><td ><a href="/images/spotlight/spotlight_'+myimages[ry][0]+'_2_Big.gif" rel="lightbox"><img src="/images/spotlight/spotlight_'+myimages[ry][0]+'_2.gif" border="0" align="right"/></a></td>')
		document.write('<td ><a href="/images/spotlight/spotlight_'+myimages[ry][0]+'_3_Big.gif" rel="lightbox"><img src="/images/spotlight/spotlight_'+myimages[ry][0]+'_3.gif" border="0"  align="right"/></a></td>')
		document.write('<td ><a href="/images/spotlight/spotlight_'+myimages[ry][0]+'_4_Big.gif" rel="lightbox"><img src="/images/spotlight/spotlight_'+myimages[ry][0]+'_4.gif" border="0"  align="right"/></a></td></tr></Table></div>')
}