<!--//--><![CDATA[//><!--

/*****************
 * Insert-a-Work *
 *****************

so you can use cool divs and css
to easily insert lots of articles and things
without typing in all the cool divs and css

only problem is browsers that don't allow scripts (boo)
so probably should include "noscript" tags

freely distributable
all rights to creator Jeremy Schwartz (2005)
please leave this section intact if copying
*/


/**************************
 * HOW TO - Insert Works *
 **************************

	Simply copy the following command:

		insert_work(" Authors ", " Year ", " WorkTitle "," AppearsIn ", " Abstract ", " Source ");

	and change the Source, WorkTitle, etc to suit your needs

	include the optional argument "source2" to change the default picture source (for duplicate photos)

*/

var worksCounter = 0;

function insert_work(auth, yr, title, mag, src, abs, loc){
	worksCounter++;

	switch(arguments.length){
		case 0:
		case 1:
		case 2:
		case 3:
		case 4:
			src = "#";
		case 5:
			abs = "N/A";
		case 6:
			loc = ""
			break;
		}
	
	document.write('',
		'<a name="L'+worksCounter+'"></a>',
		'<DT>');
	
	if (src != "#") document.write('<a class="alt" target="OUTSIDE" href="'+src+'">'+title+'</a>');
	else document.write('<span class="alt">'+title+'</span>');
	
	document.write('</DT>',
		'<DD>',
			'<div class="year">('+yr+')</div>',
			'<div class="author">'+auth+'</div>');

	if (abs != "N/A" && abs !="")
		document.write('<div><a class="abstract"><span class="mag">'+mag+'</span><div class="abstext">'+abs+'</div></a></div>');
	else
		document.write('<div><span class="mag">'+mag+'</span></div>');

	if (loc != "")
		document.write('<div class="loc">'+loc+'</div>');
	
	document.write('</DD>');
	}

function insert_report(auth, yr, title, mag, loc, abs, src){

	worksCounter++;

	switch(arguments.length){
		case 0:
		case 1:
		case 2:
		case 3:
		case 4:
		case 5: abs = "N/A";
		case 6: src = "#";
			break;
		}

	document.write('',
		'<a name="L'+worksCounter+'"></a>',
		'<DT>');
	
	if (src != "#") document.write('<a class="alt" target="OUTSIDE" href="'+src+'">'+title+'</a>');
	else document.write('<span class="alt">'+title+'</span>');
	
	document.write('</DT>',
		'<DD>',
			'<div class="year">('+yr+')</div>',
			'<div class="author">'+auth+'</div>');
	if (abs != "N/A" && abs !="")
		document.write('<div><a class="abstract"><span class="mag">'+mag+'</span><div class="abstext">'+abs+'</div></a></div>');
	else
		document.write('<div><span class="mag">'+mag+'</span></div>');

	document.write('<div class="loc">'+loc+'</div></DD>');
	}




//--><!]]>