function colorMenu() {
	if(!document.getElementById) return false;
	if(!document.getElementsByTagName) return false;
	if(!document.getElementById("mainMenu")) return false;
	// set bulletColors Array
	var bulletColors = Array("mainBullet_blue", "mainBullet_blue_2", "mainBullet_brown", "mainBullet_green", "mainBullet_grey", "mainBullet_pink", "mainBullet_pink2", "mainBullet_yellow", "mainBullet_avocado");
	var bulletColors2 = bulletColors.slice();
// get the required elements
	var menu = document.getElementById("mainMenu");
	var menuItems = menu.getElementsByTagName("li");
	// loop trhough the items
	for(x=0; x< menuItems.length; x++) {
		var curentParrentNode = menuItems[x].parentNode;
		var parrentId = curentParrentNode.getAttribute("id");
		if(parrentId == "mainMenu") {
			// decide which color
			var whichColor = bulletColors2.length - 1;
			menuItems[x].className = bulletColors2[whichColor];
			bulletColors2.splice(whichColor, 1);
			// reset array if it's emptied (more then 9 menu items)
			if(bulletColors2.length == 0) {
				bulletColors2 = bulletColors.slice();
			}
		}
	}
}

addLoadEvent(colorMenu);