this.name="PBSparentwindow";

function openWindow(url, name) {
  var l = openWindow.arguments.length;
  var w = "";
  var h = "";
  var features = "";

  for (i=2; i<l; i++) {
    var param = openWindow.arguments[i];
    if ( (parseInt(param) == 0) ||
      (isNaN(parseInt(param))) ) {
      features += param + ',';
    } else {
      (w == "") ? w = "width=" + param + "," :
       h = "height=" + param;
    }
  }

  features += w + h;
  var code = "popupWin = window.open(url, name";
  if (l > 2) code += ", '" + features;
  code += "')";
  eval(code);
  }
  
   // drop down menu
function gotosite(site) {            
        if (site != "") {                    
                self.location=site; 
        }
}  

// email this page
var fileName = document.URL;
var escapedFileName = escape(fileName);
function emailfriend()
{
var popurl="/wnet/supremecourt/email_friend/email.html?"+escapedFileName;
winpops=window.open(popurl,"","width=493,height=401,status,scrollbars");
}  

// glossary
function glossary() {openWindow('/wnet/supremecourt/pop_glossary/index.html','glossary', 493, 401, 'status', 'scrollbars');}

// glossary individual word
function word(TermDefined) {openWindow('/wnet/supremecourt/pop_glossary/'+TermDefined+'.html','glossary', 493, 401, 'status', 'scrollbars');}

// bios
function bios() {openWindow('/wnet/supremecourt/pop_biographies/index.html','bios', 493, 401, 'status', 'scrollbars');}

// landmark cases
function landmark() {openWindow('/wnet/supremecourt/pop_landmark_cases/index.html','bios', 493, 401, 'status', 'scrollbars');}


//dhtml
function HideContent(d) {
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
document.getElementById(d).style.display = "block";
}
function ReverseContentDisplay(d) {
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}