function isTop()
{
	if (this.location != top.location)
	{
		top.location = this.location;
	}
}
isTop();

function writeYear()
{
	var startYear = 2005;
	var curYear = (new Date()).getFullYear();
	document.write(startYear == curYear ? startYear : startYear + "-" + curYear);
}

function switchOn(elemid)
{
	elem = document.getElementById(elemid);
	if (elem)
		elem.src = elem.src.replace('.png','_on.png');
}

function switchOff(elemid)
{
	elem = document.getElementById(elemid);
	if (elem)
		elem.src = elem.src.replace('_on.png','.png');
}
