function Start(){
var NovaKalkulacka=document.createElement('div');
NovaKalkulacka.id='IdNoveKalkulacky';
NovaKalkulacka.innerHTML=''
+'<style type="text/css">'
+'@import \'styl.css\';'
+'</style>'
+'<script type="text/javascript" src="myCalc.js"></script>'
+'<script type="text/javascript" src="handle.js"></script>'
+'<script type="text/javascript" src="DraDr.js"></script>'
+'<script type="text/javascript" src="initA.js"></script>'
+'<div class="posuvny" style="display:none;">'
 +'<div class="posHeader top">MyCalc</div>'
 +'<div class="kalkulOvl">'
 +'<table cellspacing="0" cellpadding="2" class="tabulka">'
  +'<tr>'
    +'<td colspan="4" class="displey">'
      +'<span id="helpSpan"><input type="text" id="help" value="0" class="kratky" onfocus="calculator.setFocused(this.id);" /> <span id="helpSign">+</span> </span><input type="text" id="result" onchange="calculator.save();" onkeypress="calculator.checkKey(event);" onfocus="calculator.setFocused(this.id);" class="dlouhy" />'
    +'</td>'
  +'</tr>'
  +'<tr>'
    +'<td><a href="#" onclick="calculator.sin();" class="calc funkce">sin</a></td>'
    +'<td><a href="#" onclick="calculator.cos();" class="calc funkce">cos</a></td>'
    +'<td><a href="#" onclick="calculator.tg();" class="calc funkce">tan</a></td>'
    +'<td><a href="#" onclick="calculator.cotg();" class="calc funkce">cotg</a></td>'
  +'</tr>'
  +'<tr>'
    +'<td><a href="#" onclick="calculator.arcsin();" class="calc funkce">arcsin</a></td>'
    +'<td><a href="#" onclick="calculator.arccos();" class="calc funkce">arccos</a></td>'
    +'<td><a href="#" onclick="calculator.arctg();" class="calc funkce">arctan</a></td>'
    +'<td><a href="#" onclick="calculator.arccotg();" class="calc funkce">arccotg</a></td>'
  +'</tr>'
  +'<tr>'
    +'<td class="info">n</td>'
    +'<td class="info"><input type="text" id="logZaklad" onchange="calculator.setLogZaklad();" onfocus="calculator.setFocused(this.id);" /></td>'
    +'<td><a href="#" onclick="calculator.log();" class="calc funkce">log<sub>n</sub></a></td>'
    +'<td><a href="#" onclick="calculator.ln();" class="calc funkce">ln</a></td>'
  +'</tr>'
  +'<tr>'
    +'<td class="info">y</td>'
    +'<td class="info"><input type="text" id="powZaklad" onchange="calculator.setPowZaklad();" onfocus="calculator.setFocused(this.id);" /></td>'
    +'<td><a href="#" onclick="calculator.power();" class="calc funkce">x<sup>y</sup></a></td>'
    +'<td><a href="#" onclick="calculator.sqrt();" class="calc funkce">sqrt</a></td>'
  +'</tr>'
  +'<tr>'
    +'<td><a href="#" onclick="calculator.addChar(\'seven\');" class="calc cislo">7</a></td>'
    +'<td><a href="#" onclick="calculator.addChar(\'eight\');" class="calc cislo">8</a></td>'
    +'<td><a href="#" onclick="calculator.addChar(\'nine\');" class="calc cislo">9</a></td>'
    +'<td><a href="#" onclick="calculator.base(\'multiply\');" class="calc zaklad">*</a></td>'
  +'</tr>'
  +'<tr>'
    +'<td><a href="#" onclick="calculator.addChar(\'four\');" class="calc cislo">4</a></td>'
    +'<td><a href="#" onclick="calculator.addChar(\'five\');" class="calc cislo">5</a></td>'
    +'<td><a href="#" onclick="calculator.addChar(\'six\');" class="calc cislo">6</a></td>'
    +'<td><a href="#" onclick="calculator.divide();" class="calc zaklad">/</a></td>'
  +'</tr>'
  +'<tr>'
    +'<td><a href="#" onclick="calculator.addChar(\'one\');" class="calc cislo">1</a></td>'
    +'<td><a href="#" onclick="calculator.addChar(\'two\');" class="calc cislo">2</a></td>'
    +'<td><a href="#" onclick="calculator.addChar(\'three\');" class="calc cislo">3</a></td>'
    +'<td><a href="#" onclick="calculator.base(\'minus\');" class="calc zaklad">-</a></td>'
  +'</tr>'
  +'<tr>'
    +'<td><a href="#" onclick="calculator.done();" class="calc zaklad">=</a></td>'
    +'<td><a href="#" onclick="calculator.addChar(\'zero\');" class="calc cislo">0</a></td>'
    +'<td><a href="#" onclick="calculator.addChar(\'dot\');" class="calc zaklad">.</a></td>'
    +'<td><a href="#" onclick="calculator.base(\'plus\');" class="calc zaklad">+</a></td>'
  +'</tr>'
  +'<tr>'
    +'<td><a href="#" onclick="calculator.back();" class="calc const">BACK</a></td>'
    +'<td><a href="#" onclick="calculator.plusMinus();" class="calc const">+/-</a></td>'
    +'<td><a href="#" onclick="calculator.random();" class="calc const">rand</a></td>'
    +'<td><a href="#" onclick="calculator.clear();" class="calc const">C</a></td>'
    //+'<td><a href="#" onclick="say();" class="calc const">INFO</a></td>'
  +'</tr>'
  +'<tr>'
    +'<td><a href="#" onclick="calculator.rad2deg();" class="calc const">2deg</a></td>'
    +'<td><a href="#" onclick="calculator.deg2rad();" class="calc const">2rad</a></td>'
    +'<td><a href="#" onclick="calculator.setPi();" class="calc const">PI</a></td>'
    +'<td><a href="#" onclick="calculator.setE();" class="calc const">E</a></td>'
  +'</tr>'
 +'</table>'
 +'</div>'
 +'<div class="posHeader bottom"> </div>'
+'</div>';
ukazatel=document.getElementsByTagName('body');
var pridano=true;
for(i=0;i<ukazatel.length;i++)
{
  if(pridano){
    ukazatel[i].appendChild(NovaKalkulacka);
    pridano=false;
  }
}
setTimeout("set()", 0);
}

function set(){
run();
initAnchor();
init();
}

function Quit(){
var odebrano=true;
var CoDelete = document.getElementById('IdNoveKalkulacky');
ukazatel=document.getElementsByTagName('body');
for(i=0;i<ukazatel.length;i++)
{
  if(odebrano){
    ukazatel[i].removeChild(CoDelete);
    odebrano=false;
  }
}
}

