

function popIt(url, name, tb, sb, lo, st, mu, rs, w, h) {
  popupWin = window.open(url, name, + ',toolbar=' + tb + ',scrollbars=' + sb + ',location=' + lo + ',statusbar=' + st + ',menubar=' + mu + ',resizable=' + rs + ',width=' + w + ',height=' + h);
  if (window.focus) {
  popupWin.focus();
  }
}

function expandCollapse(ind) {
    updateImage(ind);
    collapseAll(ind);  
    s = document.getElementById("info" + ind);
    s.style.display = 'block';
    
}

function collapseAll(ind) {
    //collapse all except ind
    //loop through all
    for (var i=1; i<=5; i=i+1) {
        if (i != ind) {
        
          a = document.getElementById("info" + i);
          a.style.display = 'none';
        }
    }
}
        
function collapse(ind)
{
    s = document.getElementById("info" + ind);
    s.style.display = 'none';
}

function updateImage(ind){
    for (var i=1; i<=5; i=i+1) {
        
        if (i != ind) {
            document.getElementById( "menuButton_" + i).src = eval("menuButton_" + i + "_off_path");
        }
        else {
           document.getElementById( "menuButton_" + i).src = eval("menuButton_" + i + "_on_path");
        }
    }    
}
