// JavaScript Document
	var  v=2;
	var  TimerID;
	var  timed;
	var  act_item;
	var  act_cells_top="cell_top_01";
	var  sm_typer='';
		
	function showLayer_top (id_list_top, id_cells_top, id)
		{	
		if ((act_item!="" ) && (id_cells_top!="" ) )
				{					
					check_open_top(act_item, act_cells_top);
					clearTimer_top(id_list_top);
					visibleSelect(true,act_item);
				}			
		if (document.getElementById(id_list_top)!= null)
			{			
				act_item = id_list_top;	
				act_cells_top= id_cells_top;
				var  x = document.getElementById(id_cells_top).offsetLeft;
				var  y = document.getElementById(id_cells_top).offsetTop;
				var  z = document.getElementById(id).offsetTop;				
				obj = document.getElementById(id_list_top);
				obj.style.display = 'block';				
				obj.style.left = 300+x + "px";
				obj.style.top = y + z +102 + "px";				
				visibleSelect(false,id_list_top);	
			}			
		}		
	function check_open_top (id_list_top, id_cells_top)
		{			
			if (document.getElementById(id_list_top)!=null)
				{
					document.getElementById(id_list_top).style.display = 'none';
				}				
		}	 
	function showMenu_top (id_list_top, id_cells_top)
		{ 
			clearTimeout(TimerID);
			document.getElementById(id_list_top).style.display = 'block';			
			visibleSelect(false,id_list_top);			 
		}		
	function hiddenMenu_top (id_list_top, id_cells_top)
		{
			if (document.getElementById(id_list_top)!=null)
			{			
				document.getElementById(id_list_top).style.display = 'none';			
				visibleSelect(true);			
			}			
		}		
	function check_c_top (id_list_top, id_cells_top)
		{			
			 		document.getElementById(id_list_top).style.display = 'none';					
					visibleSelect(true,id_list_top);
		}			
	function hiddenLayer_top (id_list_top, id_cells_top)
		{		
			if (document.getElementById(id_list_top)!=null)
				{					
					TimerID = setTimeout('check_c_top("'+id_list_top+'","'+id_cells_top+'")', 1000);
					timed = timerID;					  
				}			
			else
				{					
					visibleSelect(true,id_list_top);
				}				
				act_cells_top= id_cells_top;
		} 
		
		
	function clearTimer_top()
		{
		 timerID = timed;
		 clearTimeout(TimerID);
		}			
	function visibleSelect(state, givedata){

		var obj;
		var ok=false;
		
		if (typeof(givedata)=='string')
			{
				obj=document.getElementById(givedata);			
				if ((typeof(obj)=='object') && (obj!=null)) 
					ok=true;
			}
		else
			{
				if ((typeof(givedata)=='object') && (givedata!=null))
					{
						obj=givedata;
						ok=true;
					}
			}
		
		if (ok)
			{
				var tmp=obj.offsetParent;
				moveX=0;
				moveY=0;
				while((typeof(tmp)=='object') && (tmp!=null) && (tmp!=window))
					{
						//alert(typeof(tmp));
						moveX+=tmp.offsetLeft;
						moveY+=tmp.offsetTop;
						tmp=tmp.offsetParent;
					}
				x1b=moveX+obj.offsetLeft;
				y1b=moveY+obj.offsetTop;
				x1e=x1b+obj.offsetWidth;
				y1e=y1b+obj.offsetHeight;				
				//alert(x1b+', '+y1b+', '+x1e+', '+y1e);
				var n=document.forms.length;
				for(var i=0;i<n;i++)
					{
						var k=document.forms[i].elements.length;
						for(var j=0;j<k;j++)
							{
								if ((document.forms[i].elements[j].type=='select-one') ||
		(document.forms[i].elements[j].type=='select-multiple'))
									{	
										var tmp=document.forms[i].elements[j].offsetParent;
										moveX=0;
										moveY=0;
										while((typeof(tmp)=='object') && (tmp!=null) && (tmp!=window))
											{
												//alert(typeof(tmp));
												moveX+=tmp.offsetLeft;
												moveY+=tmp.offsetTop;
												tmp=tmp.offsetParent;
											}
										x2b=moveX+document.forms[i].elements[j].offsetLeft;
										y2b=moveY+document.forms[i].elements[j].offsetTop;
										x2e=x2b+document.forms[i].elements[j].offsetWidth;
										y2e=y2b+document.forms[i].elements[j].offsetHeight;		
										//alert(x1b+', '+y1b+', '+x1e+', '+y1e);
										//alert(x2b+', '+y2b+', '+x2e+', '+y2e);
										if (((((x1b>=x2b) && (x1b<=x2e)) || ((x1e>=x2b) && (x1e<=x2e))) &&
										(((y1b>=y2b) && (y1b<=y2e)) || ((y1e>=y2b) && (y1e<=y2e)))) ||
										((((x2b>=x1b) && (x2b<=x1e)) || ((x2e>=x1b) && (x2e<=x1e))) &&
										(((y2b>=y1b) && (y2b<=y1e)) || ((y2e>=y1b) && (y2e<=y1e)))))
											{
												if (state)
													{
														document.forms[i].elements[j].style.visibility="visible";
													}
												else
													{
														document.forms[i].elements[j].style.visibility="hidden";
													}
											}//if
		
									}//if
							}//for
					}//for
			}
		
		
		else
		{//if
		//alert('I cannot understand you.');
		}//if
		}
		
		 