var theImages = new Array()

theImages[0] = '1'
theImages[1] = '2'
theImages[2] = '3'
theImages[3] = '4'
theImages[4] = '5'

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
	getDoc('emotion').style.background='url(./img/emotions/'+theImages[whichImage]+'.jpg)';
	if(theImages[whichImage]==4||theImages[whichImage]==5){
		getDoc('fadeLogo').style.display='none';
	}
}

