﻿if(typeof LOC == 'undefined') {
	var LOC = {};
}
LOC.initPhases = function(){
	var phases_arr = document.getElementById("pushes").getElementsByTagName("a");
	for(var i=0; i<phases_arr.length; i++){
		var text = document.getElementById("anchorphase" + i);
		text.style.position = "absolute";
		text.style.display = "none";
		var pushPhase = document.getElementById("push" + i);
		pushPhase.i = i;
		pushPhase.onmouseover = function(){
			LOC.cache(this.i);
			var text = document.getElementById("anchorphase" + this.i);
			text.style.display = "block";
			this.className = "push phase_on";
			this.style.color = "#CB111C";
			return false;
		}
		pushPhase.onfocus = pushPhase.onmouseover;
	}
	LOC.cache = function(n){
		for(var i=0; i<phases_arr.length; i++){
			var text = document.getElementById("anchorphase" + i);
			if(i != n) text.style.display = "none";
			var pushPhase = document.getElementById("push" + i);
			pushPhase.className = "push";
			pushPhase.style.color = "#FFFFFF";
		}
	}
}
//OnDOMLoad(LOC.initPhases, window);
addEvent(window, "load", LOC.initPhases);
