var pic=new Array(34);
pic[0]="";
pic[1]="miner1";
pic[2]="miner2";
pic[3]="miner3";
pic[4]="miner4";
pic[5]="miner5";
pic[6]="miner6";
pic[7]="miner7";
pic[8]="miner8";
pic[9]="miner9";
pic[10]="miner10";
pic[11]="miner11";
pic[12]="miner12";
pic[13]="miner13";
pic[14]="miner14";
pic[15]="miner15";
pic[16]="miner16";
pic[17]="miner17";
pic[18]="miner18";
pic[19]="miner19";
pic[20]="miner21";
pic[21]="miner20";
pic[22]="miner22";
pic[23]="miner23";
pic[24]="miner24";
pic[25]="miner25";
pic[26]="miner26";
pic[27]="miner27";
pic[28]="miner28";
pic[29]="miner29";
pic[30]="miner30";
pic[31]="miner31";
pic[32]="miner32";
pic[33]="miner33";

var pic2=new Array(5);
pic2[0]="";
pic2[1]="collage_left_stopping1";
pic2[2]="collage_left_haultruck1";
pic2[3]="collage_left_dragline1";
pic2[4]="collage_left_portal1";

var pic2alt=new Array(5);
pic2alt[0]="";
pic2alt[1]="Miner building a concrete block stopping";
pic2alt[2]="Haulage truck at a surface mine";
pic2alt[3]="Dragline at a surface mine";
pic2alt[4]="Entrance to a low seam coal mine";

var pic3=new Array(5);
pic3[0]="";
pic3[1]="collage_right_bolter1";
pic3[2]="collage_right_bucket1";
pic3[3]="collage_right_rockfall1";
pic3[4]="collage_right_scaling1";

var pic3alt=new Array(5);
pic3alt[0]="";
pic3alt[1]="Dual boom roof bolter";
pic3alt[2]="Miners standing in a large shovel bucket";
pic3alt[3]="Rock fall at a surface mine";
pic3alt[4]="Scaling at a hard rock mine";

var dt = new Date();
var whichPic = dt.getDate();

if (whichPic < 9) {whichRightPic = 1;}
if (whichPic >= 9 && whichPic < 16) {whichRightPic = 4;}
if (whichPic >= 16 && whichPic < 23) {whichRightPic = 3;}
if (whichPic >= 23) {whichRightPic = 2;}

if (whichPic < 4 || whichPic > 27) {whichLeftPic = 1;}
if (whichPic >= 4 && whichPic < 11) {whichLeftPic = 2;}
if (whichPic >= 11 && whichPic < 19) {whichLeftPic = 3;}
if (whichPic >= 19 && whichPic <= 27) {whichLeftPic = 4;}

function getMinerPic(picnumber) {
	if (picnumber < 1 || picnumber > 3) {picnumber = 1;}
	return pic[whichPic + (picnumber - 1)];
}

function getLeftPic() {
	return pic2[whichLeftPic];
}

function getLeftPicAlt() {
	return pic2alt[whichLeftPic];
}

function getRightPic() {
	return pic3[whichRightPic];
}

function getRightPicAlt() {
	return pic3alt[whichRightPic];
}

