		function viewable(objName,maxSize){

			if(maxSize==null) maxSize=130;

			obj = document.getElementById(objName); 
			if(obj.style.height==0 || obj.style.height=="0px" ||  (document.all && obj.style.height=="1px")) {
				if(document.all) initial = 1; else initial = 0;
				show(objName,initial,maxSize);				
			 }				 
			 else hide(objName,maxSize);
		 }

		 var internal_f; /* we need only one thread running */ 
		 function show(objName,height,maxSize){			 
			 if(height < maxSize){
				 obj = document.getElementById(objName);
				 obj.style.height = height;
			
				 /* set opacity for IE and Firefox */ 
				 if(document.all) obj.style.filter = "alpha(opacity:"+height/2+")";
				 else obj.style.opacity = obj.style.opacity + 0.1;

				 height = height + 25;
				 clearInterval(internal_f);
				 internal_f = setInterval("show('" + objName + "'," + height +"," + maxSize + ")",20);
			 }else{
				 /* set default values when show is completed*/ 
				 clearInterval(internal_f);
				 
				 if(document.all) obj.style.filter = "alpha(opacity:100)";
				 else obj.style.opacity = 1;
				 
				 obj.style.height= maxSize + "px";
			 }
		 }

		 function hide(objName,height){
			 if(height > 0){
				 obj = document.getElementById(objName);
				 obj.style.height  = height;
				 
				 if(document.all) obj.style.filter = "alpha(opacity:"+ height/2 +")";
				 else obj.style.opacity = obj.style.opacity - 0.1;
				 
				 height = height - 25;
				 clearInterval(internal_f);
				 internal_f = setInterval("hide('" + objName + "'," + height +")",20);
			 }else {
				 clearInterval(internal_f);
				 
				 if(document.all) {
					obj.style.height="1px";
					obj.style.filter = "alpha(opacity:0)";
				  }else { 
					obj.style.height="0px";
					obj.style.opacity = 0;
				 }
			 }
		 }	
		
		/* FOR SUB-MENU!!! */ 
		var t;	 		 
		function showOptions(parent_id){
			clearTimeout(t);
			document.getElementById('NOR').style.visibility="hidden";
			document.getElementById('ASOC').style.visibility="hidden";
			
			clearTimeout(t);		
			obj = document.getElementById(parent_id);
			obj.style.visibility="visible";
		} 
	
		function hideOptions(parent_id){
			obj = document.getElementById(parent_id);
			t = setTimeout("obj.style.visibility='hidden'",500); 
		}
	
		function onSubMenu(){
			 clearTimeout(t);		
		}