		var add;
		var fti;
		var mens = 0;
		
		function showel(id) {
			var el = document.getElementById(id);
			
			if ((el.nodeName == "UL") && (parseInt(el.parentNode.offsetLeft,10) > 750)) {
				el.style.marginLeft = -245+"px";
			}
			document.getElementById(id).style.display="block";
		}
		
		function hideel(id) {
			document.getElementById(id).style.display="none";
		}
		
		function activateitem(el,im,sm,t,l) {
			if (mens == 0 && el.className == 'lev0') {
				mens = 1;
				fti = setTimeout (function () {
					hideel(im);
					showel(im+'o');
					if (sm) { showel(sm,t,l);}
				}, 500);
			} else {
				clearTimeout(fti);
				hideel(im);
				showel(im+'o');
				if (sm) { showel(sm,t,l);}
			}
				el.onmouseout = function (e) {
				
					if (!e) var e = window.event;
					e.cancelBubble = true;
					if (e.stopPropagation) e.stopPropagation();
				
					clearTimeout(fti);
					hideel(im+'o');
					showel(im);
					if (sm) { hideel(sm) }; 
					if (el.className == 'lev0') {
						fti = setTimeout(function () {mens = 0;}, 300);
					}
				}
		}

		function activateitem2(el,im) {
			hideel(im);
			showel(im+'o');
			el.onmouseout = function () {
					hideel(im+'o');
					showel(im);
			}
		}


