startList = function() {
	if(!document.body.currentStyle) return;
	var subs = document.getElementsByName('submenu');
	for(var i = 0; i < subs.length; i++)
	{
		var li = subs[i].parentNode;
		if(li && li.lastChild.style)
		{
			li.onmouseover = function() {
				this.lastChild.style.visibility = 'visible';
			}
			li.onmouseout = function() {
				this.lastChild.style.visibility = 'hidden';
			}
		}
	}
}
window.onload=startList;

function toggleContent(name, n)
{
	var i, t = '', el = document.getElementById(name);
	if (!el.origCont) el.origCont = el.innerHTML;
	
	for (i=0;i<n;i++) t += el.origCont;
	el.innerHTML = t;
}
