function TimerMenu(Index,Name,Interval){
	this.TIMEhndl= new Array();
	this.II=0;
	this.ShowMenu=function(N){
		if (N){
			if(document.getElementById(Index+N)){
				clearTimeout(this.TIMEhndl[N]);
				this.TIMEhndl[N]=-100;
				document.getElementById(Index+N).style.display="block";
			}	
		};
	}
	this.OutMenu=function(N){
			//alert('Before '+this.TIMEhndl[N]);
		if (this.TIMEhndl[N] && this.TIMEhndl[N]<-99){
			//alert(this.TIMEhndl[N]);
		this.TIMEhndl[N]=setTimeout(Name+'.HideMenu('+N+')',Interval);
		}
	}
	this.HideMenu=function(N){
		if (N){
			if(document.getElementById(Index+N)){
				document.getElementById(Index+N).style.display="none";
			}	
		};
	}
}