if (document.images) {
// Rotating Images
//
   pic_1 = new Image();
   pic_1.src = "images/home/picture.jpg";
   pic_2 = new Image();
   pic_2.src = "images/home/bulbs.jpg";
   pic_3 = new Image();
   pic_3.src = "images/home/bulb.jpg";
   pic_4 = new Image();
   pic_4.src = "images/home/world.jpg";
//
}

// FUNCTION rotate
// Random Image
// 
function rotatepic(){

var num_ads = 4;
var base = "pic_";
var imagename1 = "rotatepic";

var now = new Date();
var sec = now.getSeconds();
var adnum = sec % num_ads;
adnum +=1;

   if (document.images) {
      document[imagename1].src = eval(base + adnum + ".src");
   }
}