nn4 = (document.layers)? true:false
ie4 = (document.all) && !(document.getElementById)? true:false
ie5 = (document.getElementById) && (document.all)? true:false
nn6 = (document.getElementById) && !(document.all)? true:false

function moveTo(ident,x,y) {
                if(nn4) {
                        document.layers[ident].left = x;
                        document.layers[ident].top = y;
                } else if(ie4) {
                        document.all[ident].style.left = x;
                        document.all[ident].style.top = y;
                } else if(ie5 || nn6) {
                        document.getElementById(ident).style.left = x;
                        document.getElementById(ident).style.top = y;
                }
}

function show(ident) {
    if(nn4) {document.layers[ident].visibility = "show";}
    else if(ie4) {document.all[ident].style.visibility = "visible";}
    else if(ie5 || nn6) {document.getElementById(ident).style.visibility = "visible";}
}

function hide(ident) {
    if(nn4) {document.layers[ident].visibility = "hide";}
    else if(ie4) {document.all[ident].style.visibility = "hidden";}
    else if(ie5 || nn6) {document.getElementById(ident).style.visibility = "hidden";}
}

function ukryj(m) {
 moveTo('kasuj',0,-500);
 moveTo('dzielnica',10,-300);
 moveTo('kategoria',10,-300);
 if (m=='w' || m=='z' || m == 'f' || m == 'e' || m == 't') {moveTo('wiek',10,-300); show_menuwiek();}
 if (m=='w' || m == 'f' || m == 'e' || m == 't') {moveTo('dzien',10,-300); show_menudzien();}
}

function noSpam(user,domain) { 
locationstring = "mailto:" + user + "@" + domain; 
window.location = locationstring;
}

function show_kasuj() {moveTo('kasuj',0,0);}
function show_kasuj2() {moveTo('kasuj',140,0);}
function show_dzielnica() {moveTo('dzielnica',10,148);}
function show_kategoria() {moveTo('kategoria',10,218);}
function show_wiek() {moveTo('wiek',10,308);}
function show_dzien() {moveTo('dzien',135,335);}
function show_menudziel() {moveTo('menudziel',10,125);}
function show_menukat() {moveTo('menukat',10,195);}
function show_menuwiek() {moveTo('menuwiek',10,265); moveTo('menuwiek2',10,265);}
function show_menudzien() {moveTo('menudzien',10,335); moveTo('menudzien2',10,335);}
function ukryj_menuwiek() {moveTo('menuwiek',10,-300); moveTo('menuwiek2',10,-300);}
function ukryj_menudzien() {moveTo('menudzien',10,-300); moveTo('menudzien2',10,-300);}

