function show_menu(id){
	try {
		document.getElementById("child_menu_" + id).style.display = "block";
		document.getElementById("top_menu_item_" + id).className = "topmenu_item top_menu_item_over"; 
	} catch(e) {} 
}
function hide_menu(id){
	try {
		document.getElementById("child_menu_" + id).style.display = "none";
		document.getElementById("top_menu_item_" + id).className = "topmenu_item";
	} catch(e) {}
}
function show_flash (params) {
	document.write(params);
}


var hT, sT;
    
function SmoothShow(objId, x)   
{ 
   var obj = document.getElementById(objId);
   op = (obj.style.opacity)?parseFloat(obj.style.opacity):parseInt(obj.style.filter)/100; 
	     
   if(op < x)  
   { 
      clearTimeout(hT);
      op += 0.05; 
      obj.style.opacity = op; 
      obj.style.filter='alpha(opacity='+op*100+')'; 
      sT=setTimeout('SmoothShow(\''+objId+'\', '+x+')',50); 
   } 
} 
	    
function SmoothHide(objId, x)   
{ 
   var obj = document.getElementById(objId);
   op = (obj.style.opacity)?parseFloat(obj.style.opacity):parseInt(obj.style.filter)/100; 
	     
   if(op > x)  
   { 
      clearTimeout(sT);
      op -= 0.05; 
      obj.style.opacity = op; 
      obj.style.filter='alpha(opacity='+op*100+')'; 
      hT=setTimeout('SmoothHide(\''+objId+'\', '+x+')',50); 
   } 
}


var show_col = 0;
function close_col(id) {
	try {
		if (show_col) {
			document.getElementById(id).style.display = 'block';
			document.getElementById("col_red_button").innerHTML = "Скрыть";
			show_col = 0;
		} else {
			document.getElementById(id).style.display = "none";
			document.getElementById("col_red_button").innerHTML = "Раскрыть";
			show_col = 1;
		}
	} catch(e) {}
}