// JavaScript Document

var backgroundSrcs = new Array("1.jpg","2.jpg","3.jpg","4.jpg","7.jpg","8.jpg","9.jpg","11.jpg","12.jpg") 
function pickimage() 
{ 
var bgimage=backgroundSrcs[(Math.floor(Math.random()*(backgroundSrcs.length)))] 
document.write('<div><img id="backgroundright" src="images/bg/right'+bgimage+'" alt=""></div><div><img id="backgroundleft" src="images/bg/left'+bgimage+'" alt=""></div>');
} 



function swapimages(which1,what1,which2,what2,which3,what3,which4,what4,which5,what5,which6,what6,which7,what7){
document.getElementById(''+which1+'').src=''+what1+'';
document.getElementById(''+which2+'').src=''+what2+'';
document.getElementById(''+which3+'').src=''+what3+'';
document.getElementById(''+which4+'').src=''+what4+'';
document.getElementById(''+which5+'').src=''+what5+'';
document.getElementById(''+which6+'').src=''+what6+'';
document.getElementById(''+which7+'').src=''+what7+'';
}


