function init() {
	external_links();
	evendivs();
}
function external_links() {
	var al = document.getElementsByTagName("a");

	for (var i = 0; i < al.length; i++) {
		if (al[i].className == 'external') {
			al[i].onclick = function () { window.open(this.href); return(false); };
			if (!al[i].title) {
				al[i].title = al[i].href;
			}	
			al[i].title += " (external link)";
		}
	}
}

function evendivs() {
	isIE4plus = (document.all) ? 1 : 0;
	isW3C = (document.getElementById && !document.all) ? 1 : 0;
	if (isIE4plus || isW3C) {
		var wk = document.getElementById('w10kcontent');
		var lb = document.getElementById('leftbar');
		var rb = document.getElementById('rightbar');
		var mb = document.getElementById('mainblock');
		var ht;
		if (isW3C) {
			ht = window.getComputedStyle(wk, null).height;
			lht = window.getComputedStyle(lb, null).height;
			rht = window.getComputedStyle(rb, null).height;
		}
		if (isIE4plus) {
			ht = wk.offsetHeight;
			lht = lb.offsetHeight;
			rht = rb.offsetHeight;
		}
		mbht = Math.max(lht,rht);
		if (ht < mbht) {
			ht = mbht;
			wk.style.height = ht;
		}
		lb.style.height = ht;
		rb.style.height = ht;
	}
}

function coursemapwindow() {
	var features = 'scrollbars,menubar,resizable,width=1172,height=412';
	var w = window.open('course_map.html','Whitstable10K2003Map', features);
	return false;
}
