
///matt's window pop
function pop(url) { 
	popWindow=window.open(url, 'pop', 'width=500,height=400,scrollbars=yes,resizable=yes');
	popWindow.focus();
}

function toggle( targetId ){
  if (document.getElementById){
  		target = document.getElementById( targetId );
  			if (target.style.display == "none"){
  				target.style.display = "";
  			} else {
  				target.style.display = "none";
  			}
  	}
}

function toggle2( open, close ){
  if (document.getElementById){
	document.getElementById(open).style.display="";
	document.getElementById(close).style.display="none";
  	}
}

function toggleMiddle( targetId ){
  if (document.getElementById){
  		target = document.getElementById( targetId );
  		middleID = document.getElementById( "middle" );
  			if (target.style.display == "none"){
  				target.style.display = "";
  				middleID.style.width = "475px";
  				middleID.style.margin = "0 5px 0 0";
  			} else {
  				target.style.display = "none";
  				middleID.style.width = "770px";
  				middleID.style.margin = "0";
  			}
  		
  	}
}

/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Jeremy Keith :: http://www.adactio.com/ */

function doPopups() {
  if (!document.getElementsByTagName) return false;
  var links=document.getElementsByTagName("a");
  for (var i=0; i < links.length; i++) {
    if (links[i].className.match("popup")) {
      links[i].onclick=function() {
        // Below - to open a full-sized window, just use: window.open(this.href);
        window.open(this.href, "", "top=40,left=40,width=600,height=400,scrollbars");
        return false;
      }
    }
  }
}
//window.onload=doPopups;