window.addEventListener ? window.addEventListener('load', function() {
	ray.rand('thisCell');
}, false) : window.attachEvent('onload', function() {
	ray.rand('thisCell');
});

var ray =
{
	bgArr : [ 'url(./BigImage_WebSelection.jpg)',
			'url(./BigImage_NotesView.jpg)',
			'url(./BigImage_NotesSameTime.jpg)',
			'url(./BigImage_NotesCorrespondence.jpg)',
			'url(./BigImage_Inbox.jpg)',
			'url(./BigImage_CreatingOutgoingCorr.jpg)' ], // Background
													// show on the cell
	rand : function(el) {
		var num = Math.floor(Math.random() * this.bgArr.length);
		this.getID(el).style.background = this.bgArr[num];
	},
	getID : function(el) {
		return document.getElementById(el);
	}
}

