if (brauser) init();
var pics; // array with picturedata
var desc;
var months=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
var days= new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun");
today=new Date();

function init() { 
  pics = new Array();
  for (i = 1; i <= maxpic; i++) {
    pics[i] = new Array(4);
	pics[i][3] = new String("m" + i);
    pics[i][0] = new Image();
    pics[i][0].src = "layout/" + pics[i][3] + ".gif"; // normal state
    pics[i][1] = new Image();
    pics[i][1].src = "layout/" + pics[i][3] + "_f2.gif"; // active state (red)
    pics[i][2] = new Image();
    pics[i][2].src = "layout/" + pics[i][3] + "d.gif"; // description
  }
  desc = new Image();
  desc.src = "layout/des.gif";
}

function swon(nr) { // switch on
  if (brauser) {
    window.document[pics[nr][3]].src = pics[nr][1].src;
	window.document.des.src = pics[nr][2].src;
  };
}

function swof(nr) { // switch off
  if (brauser) {
    window.document[pics[nr][3]].src = pics[nr][0].src; 
	window.document.des.src = desc.src;
  };
}

function showdate() {						
  document.write(days[today.getDay()]+",&nbsp;"+months[today.getMonth()]+"&nbsp;"+today.getDate()+",&nbsp;"+today.getYear());
}
