	function hideDiv(div){
		if(document.layers){ 
	         div.visibility = "hidden";
	    }else{ 	
	         div.style.visibility = "hidden";
	         div.style.display="none";
	    }
	}
	
	function showDiv(div){
		if(document.layers){ 
	         div.visibility = "show"; 
	    }else{ 
	         div.style.visibility = "visible"; 
	         div.style.display="block";                
	    }
	}
	
	function isDivVisible(div){
	    if (div==null){
	    	return false;
	    }
		var retorno = false;
		if(document.layers){ 
	         retorno = (div.visibility == "show");
	          
	    }else{
	    	 retorno = (div.style.visibility == "visible") && 
	         	       (div.style.display=="block");
	    }
	    return retorno;
	}
	

	
	
	function manageDiv(div,img){
		var isVisible = isDivVisible(div);
		if (div!=null){
			if (!isVisible){
				showDiv(div);
				//showArrow(img);
			}else{
				hideDiv(div);
				//hideArrow(img);
			}
		}
	}

	
	
	function hideArrow(img){
		var imagem = document.images[img];
		imagem.src = "images/showarrow.gif"
	}
	
	function showArrow(img){
		var imagem = document.images[img];	
		imagem.src = "images/hidearrow.gif"
	}
	
	
