/* --  rolling --  */
var a = new Array()
var b = new Array()

a[1] = new Image(); b[1] = new Image();
a[1].src = 'images/b_home_off.gif';
b[1].src = 'images/b_home_on.gif';

a[2] = new Image(); b[2] = new Image();
a[2].src = 'images/b_contact_off.gif';
b[2].src = 'images/b_contact_on.gif';

a[8] = new Image(); b[8] = new Image();
a[8].src = 'images/b_reset_off.gif';
b[8].src = 'images/b_reset_on.gif';

a[9] = new Image(); b[9] = new Image();
a[9].src = 'images/b_submit_off.gif';
b[9].src = 'images/b_submit_on.gif';


function roll(name,idx) {	document.images[name].src = b[idx].src; }
function unroll(name,idx) {	document.images[name].src = a[idx].src; }

/* -- randomize the image on the home page -- */
myPix = new Array("/images/risk_smart_solutions_foundation.gif","/images/risk_smart_solutions_formula.gif","/images/risk_smart_solutions_risk_comes.gif","/images/risk_smart_solutions_always_right.gif")
imgCt = myPix.length

function choosePic() {
  if (document.images) {
    randomNum = Math.floor((Math.random() * imgCt))
    document.myPicture.src = myPix[randomNum]
  }
}
