if ( document.all ) {
	var items = document.getElementById("nav").getElementsByTagName("li");
	for ( var i = 0; i < items.length; i++ ) {
		var _item = items[i];
		if ( _item.name == "top" ) {
			_item.onmouseover = function() {
				this.getElementsByTagName("ul")[0].style.left = "auto";
				this.style.background = "url(../custom/left_nav/main_top_over.png)";
			}; 
			_item.onmouseout = function() {
				this.getElementsByTagName("ul")[0].style.left = "-999";
				this.style.background = "none"; 
			};
			var subs = _item.getElementsByTagName("li");
			for ( var j = 0; j < subs.length; j++ ) {
				var li = subs[j];
				if ( li.name == "sub_top" ) {
					li.onmouseover = function() { this.style.background = "url(../custom/left_nav/sub_top_hover.png)"; };						
					li.onmouseout  = function() { this.style.background = "url(../custom/left_nav/sub_top.png)"; };
				}
				else if ( li.name == "sub_bottom" ) {
					li.onmouseover = function() { this.style.background = "url(../custom/left_nav/sub_bottom_hover.png)"; };						
					li.onmouseout  = function() { this.style.background = "url(../custom/left_nav/sub_bottom.png)"; };
				}
				else {
					li.onmouseover = function() { this.style.background = "url(../custom/left_nav/sub_middle_hover.png)"; };						
					li.onmouseout  = function() { this.style.background = "url(../custom/left_nav/sub_middle.png)"; };
				}
			}					
		}
		else if ( _item.name == "no_sub" ) {
			_item.onmouseover = function() { this.style.background = "url(../custom/left_nav/main_top_nosub_over.png)"; };						
			_item.onmouseout  = function() { this.style.background = "none"; };
		}
	}
}
