﻿var blnOk=true;

function komenco() {
  if(document.body.style.backgroundColor!="") { blnOk=false; }
  if(document.body.style.color!="") { blnOk=false; }
  if(document.body.style.marginTop!="") { blnOk=false; }
  if(document.getElementById) {
    with(document.getElementById("teksto").style) {
      if(position!="") { blnOk=false; }
      if(top!="") { blnOk=false; }
      if(left!="") { blnOk=false; }
      if(width!="") { blnOk=false; }
      if(height!="") { blnOk=false; }
      if(zIndex!="") { blnOk=false; }
      if(margin!="") { blnOk=false; }
      if(padding!="") { blnOk=false; }
      if(visibility!="") { blnOk=false; }
    }
  }
  else{
  blnOk=false;
  }

  if(blnOk) {
    for(i=1;i<=4;i++) {
      with(document.getElementById("bildo"+i).style) {
       visibility='visible';
       height='80px';
      }

      with(document.getElementById("menuo"+i).style) {
        position='absolute';
        top='130px';
        left='0';
        height='500px';
      }
    }
        
   kovri();
  }
}

function malkovri(id) {
  if(blnOk) {
    kovri();  
    document.getElementById(id).style.visibility='visible';
  }
}

function kovri() {
  if(blnOk) {
    for(i=1;i<=4;i++) {
      with(document.getElementById("menuo"+i).style) {
        visibility='hidden';
      }
    }
  }
}

function EmailLink(){
	window.location = "mailto:"+"?subject=Un article à voir sur http://hades-presse.com" + "&body=Cf. '"+document.title+"' à l'adresse "+window.location;
}