function initLG()
{
	var _drop = document.getElementById("drop-down");
	if (_drop) {
		if (window.attachEvent) {
			_drop.onmouseover = function()
			{
				this.className += " hover";
			}
			_drop.onmouseout = function()
			{
				this.className = this.className.replace(" hover", "");
			}
		}
		
		var _div = _drop.getElementsByTagName('div')[0];
		var _li = _drop.getElementsByTagName('li');
		
		for (var i=0; i<_li.length; i++) {
			_li[i].getElementsByTagName('a')[0].onclick = function(){
				removeActive();
				_div.innerHTML = this.parentNode.innerHTML;
				this.parentNode.className += ' active';
			}
			if (window.attachEvent) {
				_li[i].onmouseover = function()
				{
					this.className += " hover";
				}
				_li[i].onmouseout = function()
				{
					this.className = this.className.replace(" hover", "");
				}
			}
		}
		
		function removeActive(){
			for (var i=0; i<_li.length; i++) {
				_li[i].className = _li[i].className.replace('active','');
			}
		}
	}
}

if (window.addEventListener)
	window.addEventListener("load", initLG, false);
else if (window.attachEvent)
	window.attachEvent("onload", initLG);