function gallerypopup(src, width, height, caption) {
	var image = '<img src="images/gallery/' + src + '" width="' + width + '" height="' + height + '" border="0" hspace="0"/>';
	var output = '<html><head><title>TCC Image Gallery</title></head>\n<link rel="stylesheet" href="includes/styles.css" type="text/css"/>\n<body class="gallery">\n';
	output += '<div align="center"><img src="images/gallery/logo.gif" width="136" height="32" border="0" alt="toronto congress centre" id="header" />\n';
	output += '<div id="shadow" style="width: ' + (width + 10) + 'px;"><div class="left"><div class="right">\n';
	output += '<img src="images/gallery/topleft.gif" width="5" height="5" border="0" hspace="0" style="float: left;" /><img src="images/gallery/topright.gif" width="5" height="5" border="0" hspace="0" style="float: right;" /><a href="Javascript: window.close();">' + image + '</a>';
	output += '</div></div><div class="bottom"><img src="images/gallery/bottomleft.gif" width="10" height="8" border="0" hspace="0" style="float: left;" /><img src="images/gallery/bottomright.gif" width="10" height="8" border="0" hspace="0" style="float: right;" /></div></div>';
	output += '<p id="caption">' + caption + '</p>\n';
	output += '</div></body>\n</html>';

	// var date = new Date();
	// var id = date.getTime();
	if (window['galWin'] != null) {
		window['galWin'].close();
		window['galWin'] = null;
	}
	window['galWin'] = window.open('', 'tccwin', 'toolbar=0, statusbar=0, menubar=0, resizeable=0, width=' + (width + 84) + ', height=' + (height + 110));
	window['galWin'].document.write(output);
	window['galWin'].focus();
}


function openMap() {
	w = 700;
	h = 465;
	l=screen.width/2-w/2;
	t=screen.height/2-h/2;	


	var win = window.open('directions.html', 'tccmap', 'top=' + t + ',left=' + l + ', toolbar=0, statusbar=0, menubar=0, resizeable=0, width='+w+', height='+h);
}