function startAnimation(){
	if(document.getElementById&&!(navigator.userAgent.indexOf("5.2")>-1) && document.getElementById("tkdots")) {
		o_tkdots = document.getElementById("tkdots")
		s_tkwait = o_tkdots.firstChild.nodeValue;
		i_tkcount = 0;
		tkanimate();
	}
}
var preloadTimekeeper = new Image();
preloadTimekeeper.src = '/assets/img/timekeeper/animation.gif';
window.onload = startAnimation;
function tkanimate()	{
	switch (i_tkcount){
		case 0:o_tkdots.firstChild.nodeValue = s_tkwait+"  ";i_tkcount++;break;
		case 1:o_tkdots.firstChild.nodeValue = s_tkwait+". ";i_tkcount++;break;
		case 2:o_tkdots.firstChild.nodeValue = s_tkwait+"..";i_tkcount++;break;
		default:i_tkcount=0;
	}
	setTimeout("tkanimate()",500);
}
function startTimekeeper() {
	flipLayers('page','timekeeper');
}
function flipLayers(layerOne,layerTwo) {
	self.scrollTo(0,0);
	var mainLayerType = getObjStyle(layerOne);
	mainLayerType.display = 'none';
	var timeLayerType = getObjStyle(layerTwo);
	timeLayerType.display = 'block';
}
function flipInlines(layerOne,layerTwo) {
	self.scrollTo(0,0);
	var mainLayerType = getObjStyle(layerOne);
	mainLayerType.display = 'none';
	var timeLayerType = getObjStyle(layerTwo);
	timeLayerType.display = 'inline';
}