
function on_load()
{
	var el = document.getElementById('download_links');
	if(el != null)
	{
		el = el.getElementsByTagName('span');
		if(el != 'null')
			for(var i = 0; i < el.length; i++)
			{
				el[i].onmouseover = function() { this.style.backgroundPosition = '-40px 0px'; }
				el[i].onmouseout = function() { this.style.backgroundPosition = '0px 0px'; }
			}
	}
	
	var el = document.getElementById('main_table');
	if(el != null)
	{
		if(window.innerHeight != undefined) var height = window.innerHeight;
			else var height = document.body.clientHeight;
		
		var offset = (height - 620) / 2;
		
		if(offset > 0) el.style.marginTop = offset + 'px';
	}
}

if (window.attachEvent) window.attachEvent("onload", on_load); else window.onload = on_load;
