// JavaScript Document

function loadimages(){
	var myimages=new Array()
  //specify random images below. You can have as many as you wish
  myimages[1]="images/images_jscript/home_01.jpg"
  myimages[2]="images/images_jscript/home_02.jpg"
  myimages[3]="images/images_jscript/home_03.jpg"
  myimages[4]="images/images_jscript/home_04.jpg"
  myimages[5]="images/images_jscript/home_05.jpg"
  myimages[6]="images/images_jscript/home_06.gif"
  myimages[7]="images/images_jscript/home_07.gif"
  myimages[8]="images/images_jscript/home_11.gif"
  
 //specify corresponding links below
  var imagelinks=new Array()
  imagelinks[0]="http://www.recyclenow.org/recycling/recycling_guide.asp"
  imagelinks[1]="http://www.recyclenow.org/recycling/recycling_guide.asp" 
  imagelinks[2]="http://www.recyclenow.org/recycling/recycling_guide.asp"
  imagelinks[3]="http://www.recyclenow.org/recycling/recycling_guide.asp"
  imagelinks[4]="http://www.recyclenow.org/recycling/recycling_guide.asp"
  imagelinks[5]="http://www.recyclenow.org/recycling/recycling_guide.asp"
  imagelinks[6]="http://www.recyclenow.org/recycling/recycling_guide.asp"
  imagelinks[7]="http://www.recyclenow.org/recycling/recycling_guide.asp"

  var i=Math.floor(Math.random()*myimages.length)

 /* if (i==0)
     i=1
     document.write('<img src="'+myimages[i]+'" border=0 alt="recycle image">')*/
	 
	 //replace the top if function with the following if the images are to contain links
	 
	 if (i==0)
     i=1
     document.write('<a href='+'"'+imagelinks[i]+'"'+'><img src="'+myimages[i]+'" border=0 alt="Recycling Guide"></a>')
}

  loadimages()
