var hvezda = {};

function Hvezda(souhvezdi,typ,spektralniTyp,velikost) {
    this.souhvezdi = souhvezdi;
    this.typ = typ;
    this.spektralniTyp = spektralniTyp;
    this.velikost = velikost;
}

hvezda["Polaris"] = new Hvezda("Ursa Minor","Double/Cepheid","F7",2.0);
hvezda["Mizar"] = new Hvezda("Ursa Major","Spectroscopic Binary","A1 V",2.3);
hvezda["Aldebaran"] = new Hvezda("Taurus","Irregular Variable","K5 III",0.85);
hvezda["Rigel"] = new Hvezda("Orion","Supergiant with Companion","B8 Ia",0.12);
hvezda["Castor"] = new Hvezda("Gemini","Multiple/Spectroscopic","A1 V",1.58);
hvezda["Albireo"] = new Hvezda("Cygnus","Double","K3 II",3.1);
hvezda["Acrux"] = new Hvezda("Crux","Double","B1 IV",0.8);
hvezda["Gemma"] = new Hvezda("Corona Borealis","Eclipsing Binary","A0 V",2.23);
hvezda["Procyon"] = new Hvezda("Canis Minor","Double","F5 IV",0.38);
hvezda["Sirius"] = new Hvezda("Canis Major","Double","A1 V",-1.46);
hvezda["Rigil Kentaurus"] = new Hvezda("Centaurus","Double","G2 V",-0.01);
hvezda["Deneb"] = new Hvezda("Cygnus","Supergiant","A2 Ia",1.25);
hvezda["Vega"] = new Hvezda("Lyra","White Dwarf","A0 V",0.03);
hvezda["Altair"] = new Hvezda("Aquila","White Dwarf","A7 V",0.77);
