<!--
// JavaScript Document

function swap_image(img_name, new_src){
	document.images[img_name].src = new_src;
	}

if (document.images)
	{
	img1 = new Image();
	img1.src = "http://dramashop.mit.edu/img/mit_over.gif";
}

// Obscure Email Addresses

// Note the argument ordering!!!
// address is username@hostname1.hostname2
function make_addr(hostname1,hostname2,username) {
  document.write('<a href="mail');
  document.write('to:' + username);
  document.write("@");
  document.write(hostname1);
  document.write('.' + hostname2 + '">' + username);
  document.write("@");
  document.write(hostname1);
  document.write('.' + hostname2 + '</a>');
}

function make_addr_text(hostname1,hostname2,username,text) {
  document.write('<a href="mail');
  document.write('to:' + username);
  document.write("@");
  document.write(hostname1);
  document.write('.' + hostname2 + '">' + text);
  document.write('</a>');
}

function make_addr_span(spanid,hostname1,hostname2,username) {
  addrtext = '<a href="mail';
  addrtext += 'to:' + username;
  addrtext += "@";
  addrtext += hostname1;
  addrtext += '.' + hostname2 + '">' + username;
  addrtext += "@";
  addrtext += hostname1;
  addrtext += '.' + hostname2 + '</a>';
  document.getElementById(spanid).innerHTML = addrtext;
}

function make_addr_span_text(spanid,hostname1,hostname2,username,text) {
  addrtext = '<a href="mail';
  addrtext += 'to:' + username;
  addrtext += "@";
  addrtext += hostname1;
  addrtext += '.' + hostname2 + '">' + text;
  addrtext += '</a>';
  document.getElementById(spanid).innerHTML = addrtext;
}
function getURLVar(urlVarName) {
	var urlHalves = String(document.location).split('?');
	var urlVarValue = '';
	if(urlHalves[1]){
		//load all the name/value pairs into an array
		var urlVars = urlHalves[1].split('&');
		//loop over the list, and find the specified url variable
		for(i=0; i<=(urlVars.length); i++){
			if(urlVars[i]){
			//load the name/value pair into an array
			var urlVarPair = urlVars[i].split('=');
				if (urlVarPair[0] && urlVarPair[0] == urlVarName) {
				//I found a variable that matches, load it's value into the return variable
				urlVarValue = urlVarPair[1];
				}
			}
		}
	}
	return urlVarValue;   
}
-->