
var figcount = 1;
var eqcount = 1;

function fig(url,caption) {
	document.write('<table align="center"><tr><td style="text-align:center">');
	document.write('<img src="' + url + '" /><br />');
	document.write('<b>Fig '+figcount+':</b> '+caption);
	document.write('</td></tr></table>');
	figcount++;
}

function eq(url,caption) {
	document.write('<table align="center"><tr><td style="text-align:center; padding:10px">');
	document.write('<img src="' + url + '" /><br /><br />');
	document.write('<b>Eq. '+eqcount+':</b> '+caption);
	document.write('</td></tr></table>');
	eqcount++;
}

function eqs(url1,url2,url3,caption) {
	document.write('<table align="center"><tr><td style="text-align:center; padding:10px">');
	document.write('<img src="' + url1 + '" /><br /><br />');
	document.write('<img src="' + url2 + '" /><br /><br />');
	document.write('<img src="' + url3 + '" /><br /><br />');
	document.write('<b>Eqs. '+eqcount+', '+(eqcount+1)+', and '+(eqcount+2)+':</b> '+caption);
	document.write('</td></tr></table>');
	eqcount+=3;
}

function figs(url1,caption1,url2,caption2) {
	document.write('<table align="center"><tr>');
	document.write('<td style="text-align:center">');
	document.write('<img src="' + url1 + '" /><br />');
	document.write('<b>Fig '+figcount+':</b> '+caption1);
	document.write('</td>');
	figcount++;
	document.write('<td style="text-align:center">');
	document.write('<img src="' + url2 + '" /><br />');
	document.write('<b>Fig '+figcount+':</b> '+caption2);
	document.write('</td>');
	document.write('</tr></table>');
	figcount++;
}

var id_list = new Array(0);
var author_list = new Array(0);
var title_list = new Array(0);
var conf_list = new Array(0);
var year_list = new Array(0);
var used_list = new Array(0);

function addref(id,author,title,conf,year) {
	id_list = id_list.concat(id);
	author_list = author_list.concat(author);
	title_list = title_list.concat(title);
	conf_list = conf_list.concat(conf);
	year_list = year_list.concat(year);
	used_list = used_list.concat(0);
}

function ref(id) {
	for (i=0; i<id_list.length; i++ ) {
		if ( id == id_list[i] ) {
			document.write('[' + id + ']');
			used_list[i] = 1;
			return;
		}
	}
	document.write('[???]');
}

function references() {
	document.write('<ol>');
	for (i=0; i<id_list.length; i++ ) {
		//if ( used_list[i] == 1 ) {
			document.write(
				'<li style="margin-bottom: 5px">' + 
				author_list[i] + '. ' +
				title_list[i] + '. ' +
				conf_list[i] + '. ' + 
				year_list[i]
			);
		//}
	}
	document.write('</ol>');
}

/*
addref(
	"Baek et al. 2001",
	"K. Baek, B. Draper, J. Beveridge and K. She",
	"PCA vs. ICA: A Comparison on the FERET Data Set",
	"International Conference on Computer Vision, Pattern Recognition and Image Processing",
	2001
);

addref(
	"Bolme et al. 2003",
	"D. Bolme, R. Beveridge, M. Teixeira and B. Draper",
	"The CSU Face Identification Evaluation System: Its Purpose, Features and Structure",
	"International Conference on Vision Systems",
	2003
);

addref(
	"Rabiner 1989",
	"L. Rabiner",
	"A Tutorial on Hidden Markov Models and Selected Applications in Speech Recognition",
	"Proceedings of the IEEE, vol 77, no 2, pp 257-287",
	1989
);

addref(
	"Rui et al. 1997",
	"Y. Rui, T. Huang, and S. Chang",
	"Image Retrieval: Past, Present, and Future",
	"International Symposium on Multimedia Information Processing",
	1997
);

addref(
	"Schneiderman 2004-1",
	"H. Schneiderman",
	"Feature-Centric Evaluation for Efficient Cascaded Object Detection",
	"IEEE Conference on Computer Vision and Pattern Recognition (CVPR)",
	2004
);

addref(
	"Schneiderman 2004-2",
	"H. Schneiderman",
	"Learning a Restricted Bayesian Network for Object Detection",
	"IEEE Conference on Computer Vision and Pattern Recognition",
	2004
);

addref(
	"Stricker and Orengo 1995",
	"M. Stricker and M. Orengo",
	"Similarity of Color Images",
	"Storage and Retrieval for Image and Video Databases (SPIE)",
	1995
);

addref(
	"Swain and Ballard 1991",
	"M. Swain and D. Ballard",
	"Color Indexing",
	"International Journal of Computer Vision, vol 7, no 1, pp 11-13",
	1991
);

addref(
	"Yang 1999",
	"Y. Yang",
	"An evaluation of statistical approaches to text categorization",
	"Journal of Information Retrieval, vol 1, no 1, pp 67-88",
	1999
);
*/

addref(
	"Almgren and Berglund 2000",
	"M. Almgren and J. Berglund",
	"Information Extraction of Seminar Information",
	"CS224N: Final Project",
	2000
);

addref(
	"Carvalho and Cohen 2004",
	"V. Carvalho and W. Cohen",
	"Learning to Extract Signature and Reply Lines from Email",
	"Proceedings of 1st Conference on Email and Anti-Spam (CEAS)",
	2004
);

addref(
	"Chu-Carrol et al. 2002",
	"J. Chu-Carrol, J. Prager, C. Welty, K Czuba, and D. Ferrucci",
	"A Multi-Strategy and Multi-Source Approach to Question Answering",
	"NIST Special Publication 500-251: The Eleventh Text REtrieval Conference (TREC)",
	2002
);

addref(
	"Minkov et al. 2004",
	"E. Minkov, R. Wang, and W. Cohen",
	"Extracting Personal Names from Emails: Applying Named Entity Recognition to Informal Text",
	"In preparation",
	2004
);

addref(
	"Hiyakumoto et al. 2005",
	"L. Hiyakumoto, L.V. Lita, and E. Nyberg",
	"Multi-Strategy Information Extraction for Question Answering",
	"Proceedings of the Florida Artificial Intelligence Research Society Conference (FLAIRS)",
	2005
);

addref(
	"Klimt and Yang 2004",
	"B. Klimt and Y. Yang",
	"The Enron Corpus: A New Dataset for Email Classification Research",
	"European Conference on Machine Learning (ECML)",
	2004
);

addref(
	"Lafferty et al. 2001",
	"J. Lafferty, A. McCallum, and F. Periera",
	"Conditional Random Fields: Probabilistic Models for Segmenting and Labeling Sequence Data",
	"Proceedings of 18th International Conference on Machine Learning",
	2001
);

addref(
	"Nyberg et al. 2002",
	"E. Nyberg, T. Mitamura, J. Carbonell, J. Callan, K. Collins-Thompson, K. Czuba, M. Duggan, L. Hiyakumoto, N. Hu, Y. Huang, J. Ko, L. Lita, S. Murtagh, V. Pedro, and D. Svoboda",
	"The JAVELIN Question-Answering System at TREC 2002",
	"Proceedings for the 11th Text REtrieval Conference (TREC)",
	2002
);

addref(
	"Pasca and Harabagiu 2001",
	"M. Pasca and S. Harabagiu",
	"High Performance Question/Answering",
	"Proceedings of the 24th ACM SIGIR",
	2001
);

addref(
	"Prager et al. 2000",
	"J. Prager, E. Brown, D. Radev, and K. Czuba",
	"One Search Engine or Two for Question Answering",
	"Proceedings of 9th Text REtrieval Conference (TREC)",
	2000
);

addref(
	"Seymore et al. 1999",
	"K. Seymore, A. McCallum, and R. Rosenfeld",
	"Learning Hidden Markov Model Structure for Information Extraction",
	"Proceedings of American Association for Artificial Intelligence (AAAI)",
	1999
);

