function wml(s) { var z="@";  var a=s+z+"repetitor.ru";  document.write("<a href='mailto:"+a+"'>"+a+"</a>"); } 
xh=364;

function SwMTB(p,v) {
  var o=document.getElementById(p);
  var ao=document.getElementById("a"+p);
  var h0=0;
  if(!o || !ao)return false;
  h0=o.clientHeight || o.offsetHeight;
  
  if(h0>0 && h0<xh) { o.style.overflow="visible";  o.style.height="auto";  ao.innerHTML=""; }
  else if(o.style.overflow=="visible" || v) { o.style.overflow="hidden";  o.style.height=xh;  ao.style.borderTop="dotted 1px #aaa";  ao.innerHTML="&darr; Развернуть текст &darr;"; }
  else { o.style.overflow="visible";  o.style.height="auto";  ao.style.borderTop="none 0px #fff";  ao.innerHTML="&uarr; Свернуть текст &uarr;"; }
  
  return true;
} 
function PreMTB(p) {
  var mn=document.getElementById("MainTD");  if(!mn)return false;
  var al=mn.getElementsByTagName("DIV");
  var ot;
  for(var i1=0; i1<al.length; i1++) {
    o=al[i1];  if(o.className!="mhd")continue;
    SwMTB(o.id, 1);
  }
}
