// JavaScript Document

var x = 0;

function startRotate() {
	var img = document.getElementById("header");
	x = Math.random()*6;
	x = Math.floor(x);
	img.className = "header" + x;
	setInterval('rotate()',4000)
}

function rotate() {
	var img = document.getElementById("header");
	if(x<4){
		x++;
	} else {
		x = 0;
	}
	img.className = "header" + x;
}
