//Do not take or copy this code it is illegal, delete it. If you need very low priced rotators
//that rotate like this, go to http://www.mooonbaby.com/scripts/absoluterotators.html/
//Copyright Mooonbaby.com. All rights reserved.


back = new Array(
["http://mexico-restaurant.com/newsite/art/rotatingPix/1.jpg"],
["http://mexico-restaurant.com/newsite/art/rotatingPix/2.jpg"],
["http://mexico-restaurant.com/newsite/art/rotatingPix/3.jpg"],
["http://mexico-restaurant.com/newsite/art/rotatingPix/4.jpg"],
["http://mexico-restaurant.com/newsite/art/rotatingPix/5.jpg"],
["http://mexico-restaurant.com/newsite/art/rotatingPix/6.jpg"],
["http://mexico-restaurant.com/newsite/art/rotatingPix/7.jpg"],
["http://mexico-restaurant.com/newsite/art/rotatingPix/8.jpg"],
["http://mexico-restaurant.com/newsite/art/rotatingPix/9.jpg"],
["http://mexico-restaurant.com/newsite/art/rotatingPix/10.jpg"],
["http://mexico-restaurant.com/newsite/art/rotatingPix/11.jpg"],
["http://mexico-restaurant.com/newsite/art/rotatingPix/12.jpg"]// no comma at the end of last index 
);

var lasturl="0"; 
function backgroundimg(){   var randNum = getRand();
document.getElementById("back").style.background = 'black url('+ back[randNum] +') no-repeat'; 
setTimeout('backgroundimg()',36000000);  }  
function getRand () {   var rnum;   
var id=Math.round(Math.random()*(back.length-1));  
 rnum = id;   if (rnum==lasturl) { rnum = getRand(); }   
lasturl=rnum;   return rnum;  } 
