
var figcount = 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 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>' + 
				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
);

