// JavaScript Document

// This code is written by nilson soluton india on 27th sept 2007 - http://www.nilson-solution.com

// cant be alter without their permission, if done then can resulted in negative result

var ic = 7; // Number of alternative images 
var xoxo = new Array(ic); 
// Array to hold filenames 
xoxo[0] = "images/home-images/1.jpg"; 
xoxo[1] = "images/home-images/2.jpg"; 
xoxo[2] = "images/home-images/3.jpg"; 
xoxo[3] = "images/home-images/4.jpg"; 
xoxo[4] = "images/home-images/5.jpg"; 
xoxo[5] = "images/home-images/6.jpg"; 
xoxo[6] = "images/home-images/7.jpg"; 


function pickRandom(range) 
{ 
if (Math.random) 
return Math.round(Math.random() * (range-1)); 
else 
{ 
var now = new Date(); 
return (now.getTime() / 1000) % range; 
} 
} // Write out an IMG tag, using a randomly-chosen image name. 
var choice = pickRandom(ic); 
// --> 

