// JavaScript Document

function swapPic()
     {
     if(document.getElementById)
                 {
                 var thePicture=document.getElementById("splashimage");
                 var picPath="images/splash/pic"+rnd(6)+".jpg";  /*path is relative to html page I think*/
                 thePicture.style.background="url("+picPath+")";
                 }
     }
     
function rnd(n)
     {
     return Math.floor(Math.random() * n) + 1;
     }
     

