function addLoadEvent(func){
var oldonload = window.onload;
if (typeof window.onload != 'function'){window.onload = func;}
else{window.onload = function(){oldonload();func();};}
}

if (document.all && document.getElementById && document.createTextNode && window.attachEvent){
	addLoadEvent(function(){
		var nodes = document.getElementById("drop").getElementsByTagName("li");
		for (var i=0; i<nodes.length; ++i){
			nodes[i].onmouseover = function(){
				this.className += " menu-over";
			}
			nodes[i].onmouseout = function(){
				this.className = this.className.replace(new RegExp(" menu-over\\b"), "");
			}
		}
	});
}

if (document.getElementById && document.createTextNode) {
	addLoadEvent(function() {
		var node = document.getElementById("q");
		node.onfocus = function() {
			this.className += " textboxon";
		}
		node.onblur = function() {
			this.className = this.className.replace(new RegExp(" textboxon\\b"), "");
		}
	});
}
