startMenu = function() {
if (document.all&&document.getElementById) {
cssmenu = document.getElementById("csstopmenu");
for (i=0; i<cssmenu.childNodes.length; i++) {
node = cssmenu.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function(){                  
this.className=this.className.replace(" over", "")
}
}
}
}
}
function changecss(theclass,element,value) { 
	var cssRules; 
	if (document.all) { 
		cssRules = "rules"; 
	} 
	else if (document.getElementById) { 
		cssRules = "cssRules"; 
	} 
	for (var S = 0; S < document.styleSheets.length; S++){ 
		for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) { 
			if (document.styleSheets[S][cssRules][R].selectorText.toLowerCase().indexOf(theclass) == 0) { 
				document.styleSheets[S][cssRules][R].style[element] = value; 
			} 
		} 
	} 
} 

if (window.attachEvent)
	window.attachEvent("onload", startMenu)
else
	window.onload=startMenu;
