function ShowLinks(obj) {
if(document.getElementById(obj).style.display=="none") { document.getElementById(obj).style.display=""; } else { document.getElementById(obj).style.display="none"; }
};

function CheckSubMenu() {
if(document.getElementById("trpro").style.display=="none") {
document.getElementById("trnitka_sub_pr").style.display="none";
document.getElementById("trnitka_sub_pr_2").style.display="none";
document.getElementById("trha").style.display="none";
document.getElementById("trus").style.display="none";
};
};

function light(obj,imgname) {
img_on='./img/'+imgname+'_on.gif';
obj.src=img_on;
};

function unlight(obj,imgname) {
img='./img/'+imgname+'.gif';
obj.src=img;
};

function ShowPn() {
ShowLinks("trkropka_pn");
ShowLinks("trnitka_pn");
ShowLinks("trnitka_pn2");
ShowLinks("trca");
ShowLinks("trck");
ShowLinks("trma");
ShowLinks("trcl");
ShowLinks("trsa");
};

function ShowAu() {
ShowLinks("trkropka_au");
ShowLinks("trnitka_au");
ShowLinks("trnitka_au2");
ShowLinks("trbu");
ShowLinks("trva");
ShowLinks("trpi");
ShowLinks("trac");
ShowLinks("trba");
ShowLinks("trval");
ShowLinks("trel");
ShowLinks("trsu");
ShowLinks("trre");
ShowLinks("trvalp");
ShowLinks("trvu");
ShowLinks("trde");
ShowLinks("tras");
};

function ShowSp() {
ShowLinks("trkropka_sp");
ShowLinks("trnitka_sp");
ShowLinks("trnitka_sp2");
ShowLinks("trhy");
ShowLinks("trga");
ShowLinks("trwa");
ShowLinks("trya");
ShowLinks("trse");
};

function ShowPr() {
ShowLinks("trkropka_pr");
ShowLinks("trnitka_pr");
ShowLinks("trnitka_pr2");
ShowLinks("trhi");
ShowLinks("trmah");
ShowLinks("trjo");
};

function ShowMe() {
ShowLinks("trkropka_me");
ShowLinks("trnitka_me");
ShowLinks("trnitka_me2");
ShowLinks("trro");
ShowLinks("trne");
ShowLinks("trwarl");
ShowLinks("trwar");
ShowLinks("trto");
ShowLinks("trfp");
ShowLinks("tres");
ShowLinks("trsc");
ShowLinks("trst");
ShowLinks("trtol");
ShowLinks("trwi");
};

function ShowOf() {
ShowLinks("trnitka_of");
ShowLinks("trak");
ShowLinks("trhis");
ShowLinks("trko");
ShowLinks("trpro");
CheckSubMenu();
};

