// Set of functions to control induction_101 page
function ind101_highlite(el)
{
	if (el.className == 'ind101_link_inactive') { el.className = 'ind101_link_highlite'; }
}
function ind101_restore(el)
{
	if (el.className == 'ind101_link_highlite') { el.className = 'ind101_link_inactive'; }
}

function ind101_switch(el)
{
	var ctrl = document.getElementsByTagName('div');
	for (var i = 0; i < ctrl.length; i++)
	{
		if (ctrl[i].id == 'ind101_link' && ctrl[i].className == 'ind101_link') {
			ctrl[i].className = 'ind101_link_inactive';
			document.getElementById('ind101_descr' + ctrl[i].getAttribute('enum')).className = 'ind101_hidden';
		}
	}
	el.className = 'ind101_link';
	document.getElementById('ind101_image').innerHTML = '<img src="pics/misc/induction_101_'+ el.getAttribute('enum') +'.jpg" class="noborder">';
	document.getElementById('ind101_descr' + el.getAttribute('enum')).className = 'ind101_description';
}

/*
function StatusBar_Update() {
	if (this.loc < this.width) 	{
		window.status = this.spaces.substring(0,this.width-this.loc)+this.text.substring(0,this.loc);
	} else {
		var len = (this.loc-this.width > this.text.length) ? (this.loc-this.width - this.text.length) : this.width;
		window.status = this.text.substr(this.loc-this.width,len);
	}
	this.loc++;
	if (this.loc > this.text.length+this.width) this.loc = 0;
}

function StatusBar_Start() {
	for (var i=0;i<this.width;i++) this.spaces +=" ";
	setInterval("sBar.Update()",this.speed);
}

function StatusBar() {
	this.width = 100;
	this.text = "";
	this.speed = 100;
	
	this.loc = 0;
	this.spaces = "";

	this.Update = StatusBar_Update;
	this.Start = StatusBar_Start;
}
*/