today=new Date();
jran=today.getTime();
var number = 10;
var random_number="";
var image="";
var text_color="";
ia=9301;
ic=49297;
im=233280;
jran = (jran*ia+ic) % im;
random_number = Math.ceil( (jran/(im*1.0)) *number);
// Loads the appropriate image and text color based on random number.
if (random_number==1) {
text_color="#D97E52";
image="/images/topmast1.jpg";
}
if (random_number==2) {
text_color="#C0A355";
image="/images/topmast2.jpg";
}
if (random_number==3) {
text_color="#4E6987";
image="/images/topmast3.jpg";
}
if (random_number==4) {
text_color="#BDCFD9";
image="/images/topmast4.jpg";
}
if (random_number==5) {
text_color="#EEE7B0";
image="/images/topmast5.jpg";
}3
if (random_number==6) {
text_color="#94418C";
image="/images/topmast6.jpg";
}
if (random_number==7) {
text_color="#7CA1E7";
image="/images/topmast7.jpg";
}
if (random_number==8) {
text_color="#A8A8C2";
image="/images/topmast8.jpg";
}
if (random_number==9) {
text_color="#BBC2CA";
image="/images/topmast9.jpg";
}
if (random_number==10) {
text_color="#BBC2CA";
image="/images/topmast10.jpg";
}