  var images = new Array();
  images[0] = "kit.png" ;
  images[1] = "g4-porfig1_small.jpg";
  images[2] = "c-kit structure surface with electrostatic potentials_small.jpg";  
  images[3] = "G4 porphyrin in crystal_small.jpg" 
  images[4] = "figure1c.png";
  images[5] = "figure_fourfold.png";
  images[6] = "first_contact_3.jpg";
var imageNumber=Math.floor(Math.random()*images.length)
var topImage="topWhite.gif";
var bottomImage="bottomWhite.gif";
var sideFade="sideWhite.gif";



if (imageNumber<2)
	{
	topImage="topBlack.gif";
	bottomImage="bottomBlack.gif";
	sideFade="sideBlack.gif";
	}	
/*alert(imageNumber);*/
  document.getElementById("rightimage").style.backgroundImage = 'url("/images/background_pics/' +images[imageNumber] +'")' ;
  document.getElementById("topend").style.backgroundImage = 'url("/images/' +topImage +'")' ;
  document.getElementById("bottomend").style.backgroundImage = 'url("/images/' +bottomImage +'")' ;
  document.getElementById("sidefade").style.backgroundImage = 'url("/images/' +sideFade +'")' ;
