﻿// Pick a random homepage feature
var rndNum = Math.ceil(Math.random() * 4); // pick a random number
$("feat1").setStyle({display:'none'}); // clear the display style for feat1
$("navfeat1").removeClassName('on'); // clear the on class for navfeat1
$("feat"+rndNum).setStyle({display:'inline'}); // set the display style for random feature
$("navfeat"+rndNum).addClassName('on'); // set the on class for random navfeat