/* <![CDATA[ */
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-17965500-2']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
  
function setlayout() {
  cw = document.body.clientWidth;
  if (cw < 1000) { w = cw - 444; pw = cw; hrw = cw - 220; }
  else { w = 556; pw = 1000; hrw = 780;}
  if (cw < 650) { w = 210; pw = 650; hrw = 430; }
  document.getElementById('content').style.width = w+"px";
  document.getElementById('page').style.width = pw+"px";
  document.getElementById('header').style.width = pw+"px";
  document.getElementById('truecolor_line').style.width = pw+"px";
  document.getElementById('h_right').style.width = hrw+"px";
}


function open_hiding_par(n){
  el_par = 'hiding_par'+n;
  el_btn_open = 'hiding_btn_open'+n;
  el_btn_close = 'hiding_btn_close'+n;
  if (document.getElementById(el_par)) {
    document.getElementById(el_par).style.display = "block";
    document.getElementById(el_btn_open).style.display = "none";
    document.getElementById(el_btn_close).style.display = "block";
  }
}

function close_hiding_par(n){
  el_par = 'hiding_par'+n;
  el_btn_open = 'hiding_btn_open'+n;
  el_btn_close = 'hiding_btn_close'+n;
  if (document.getElementById(el_par)) {
    document.getElementById(el_par).style.display = "none";
    document.getElementById(el_btn_open).style.display = "block";
    document.getElementById(el_btn_close).style.display = "none";
  }
}

function emadr_code(el,user,server){
  code = "<a href='mai"+"lto"+":"+user+"@"+server+"'>"+user+"@"+server+"</a>";
  document.getElementById(el).innerHTML = code;
}
/* ]]> */
