
//------- PopUp --------
		
			var MenuTimer = null;
			var MenuItem = null;
			var part_id = null;
			function ClearMenuTimeout() {
				if(MenuTimer) clearTimeout(MenuTimer);
				MenuTimer = null;
			}
			function hardhide()	{
				if (MenuItem!=null)	{
					MenuItem.style.visibility = 'hidden';
					MenuItem = null;
					if (part_id) document.getElementById('td_'+part_id).className="menu-top-item";
				}
				ClearMenuTimeout();
			}
			function StartMenuTimeout(timeout) {
				if (timeout){} else timeout=700;
				if(MenuTimer) clearTimeout(MenuTimer);
				MenuTimer = setTimeout("hardhide()", timeout);
			}
			function hide()	{
				StartMenuTimeout();	
			}

			
			function moveXbySlicePos (x, img) { 
				if (!document.layers) {
					var onWindows = navigator.platform ? navigator.platform == "Win32" : false;
					var macIE45 = document.all && navigator.platform.indexOf('Mac') > 0 && navigator.appName == 'Microsoft Internet Explorer';
					var par = img;
					var lastOffset = 0;
					while (par){
						if (par.leftMargin && ! onWindows) x += parseInt(par.leftMargin);
						if ((par.offsetLeft != lastOffset) && par.offsetLeft) x += parseInt(par.offsetLeft);
						if (par.offsetLeft != 0) lastOffset = par.offsetLeft;
						par = macIE45 ? par.parentElement : par.offsetParent;
					}
				} else if (img.x) x += img.x;
				return parseInt(x);
			}

			function moveYbySlicePos (y, img) {
				if (!document.layers) {
					var onWindows = navigator.platform ? navigator.platform == "Win32" : false;
					var macIE45 = document.all && navigator.platform.indexOf('Mac') > 0 && navigator.appName == 'Microsoft Internet Explorer';
					var par = img;
					var lastOffset = 0;
					while (par){
						if (par.topMargin && !onWindows) y += parseInt(par.topMargin);
						if ((par.offsetTop != lastOffset) && par.offsetTop) y += parseInt(par.offsetTop);
						if (par.offsetTop != 0) lastOffset = par.offsetTop;
						par = macIE45 ? par.parentElement : par.offsetParent;
					}
				} else if (img.y >= 0) y += img.y;
				return parseInt(y);
			}

			function show_popup(id)	{
				hardhide();
				part_id = id;
				MenuItem = div = document.getElementById('popup_'+id);
				var img = document.getElementById('img_'+id);
				div.style.top = moveYbySlicePos(21, img);
				div.style.left= moveXbySlicePos(2, img);//-div.offsetWidth;;
				div.style.visibility='visible';
				document.getElementById('td_'+id).className="menu-top-item-sel";
				StartMenuTimeout(2000);
			}
	

