//
// Javascript compatibility library
//

function get_element_by_ID() {
	id = arguments[0];
	doc = arguments[1];
	if (doc == null) doc = document;
	if (doc.all) return doc.all[id];
	if (doc.getElementById) return doc.getElementById(id);
	return null;
}

function min3(a, b, c) {
	x = a;
	if (x > b) x = b;
	if (x > c) x = c;
	return x;
}

function max3(a, b, c) {
	x = a;
	if (x < b) x = b;
	if (x < c) x = c;
	return x;
}

var browser;
if(navigator.appName=="Netscape") {browser='ns';}
if(navigator.appName=="Microsoft Internet Explorer") {browser = 'ie';}
if(navigator.appName=="Opera") {browser='ns';}

function get_top(browser){
	if(browser=='ie') return document.documentElement && document.documentElement.scrollTop;
	if(browser=='ns') return window.pageYOffset;
}

