function init()
{
var y= document.getElementById('razina1').offsetWidth;
var z = document.getElementById('razina1').offsetWidth;

z=z+1;
y = y / 9;

x=26;
document.getElementById('h1').style.marginRight = '0px';
document.getElementById('razina2').style.marginTop = x +'px';
document.getElementById('razina2').style.marginLeft = -1 + 'px';
if(document.all) {
    var br1, br2;
    br1 = z * -1;
    br1 = br1 - 54;

document.getElementById('razina2').style.marginLeft = br1 + 'px';
sirina('a2');
sirina('b2');
sirina('e2');
sirina('g2');
sirina('f2');
document.getElementById('razina2').style.marginTop = x + 'px';

}

document.getElementById('a2').style.marginLeft = 0 + 'px';
document.getElementById('i2').style.marginLeft = y + 'px';
document.getElementById('b2').style.marginLeft=y*2 + 'px';
document.getElementById('e2').style.marginLeft=y*5 + 'px';
document.getElementById('f2').style.marginLeft=y*6 + 'px';
document.getElementById('g2').style.marginLeft=y*7 + 'px';
document.getElementById('h1').style.width = "112px";


}


function pokazi(id)
{

document.getElementById(id).style.display = "block";

}

function sakrij(id)
{
document.getElementById(id).style.display = "none";
}


function sirina(id)
{
var c;
var podlinkovi=document.getElementById(id).childNodes;
     for(var c=0; c < podlinkovi.length; c++) {
      if(podlinkovi[c].style) {
       podlinkovi[c].style.width = '110px';
      }
     }
}
