function openWindow(obr) {
myWindow = window.open("/img/aktualnosci/"+obr, "MyWindow", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=560, height=820  ");
}
function openPicture(obr) {
myWindow = window.open("/img/aktualnosci/inauguracja2006/max/"+obr, "MyWindow", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=720, height=540  ");
}

function toggle(id) {
    if(document.getElementById(id).style.display != "block") show(id);
    else hide(id);
}

function hide(id) {
    document.getElementById(id).style.display = "none";
}

function show(id) {
    document.getElementById(id).style.display = "block";
}

function menu_on(id) {
    document.getElementById(id).style.backgroundColor = "white";
}

function menu_off(id) {
    document.getElementById(id).style.backgroundColor = "rgb(243,242,240)";
}

function roll(id) {
    root = document.getElementById("m");
    for(var i=0; i<root.childNodes.length; i++){
        if(root.childNodes.item(i).nodeName.toLowerCase() == "div" && root.childNodes.item(i).className.toLowerCase() == "podpanel") {
        
 
            if(root.childNodes.item(i).id == id){
                if(root.childNodes.item(i).style.display == "block")  {
                   root.childNodes.item(i).style.display = "none";
                } else {
                  root.childNodes.item(i).style.display = "block";
                }
            } else  {
               root.childNodes.item(i).style.display = "none";
            }
      }
  }
}


