dot_on = new Image (11,19);
dot_on.src = "marker_up.gif";
dot_off = new Image (11,19);
dot_off.src = "marker.gif";
sherdart_on = new Image (88,31);
sherdart_on.src = "sherdart_up.gif";
sherdart_off = new Image (88,31);
sherdart_off.src = "herdart.gif";

function dotOn(dotName) {
	document.images["dot_" + dotName].src = dot_on.src;
}

function dotOff(dotName) {
	document.images["dot_" + dotName].src = dot_off.src;
}

function picOn(graphName) {
	graph = eval(graphName + "_on.src");
	document.images[graphName].src = graph;
}
function picOff(graphName) {
	graph = eval(graphName + "_off.src");
	document.images[graphName].src = graph;
}

function getNav() {
	N = window.navigator.appName.substring(0,8);
	if(N == "Microsof") {
		return 'I';
	} else {
		return 'N';
	}
}

function getPageHeight() {
	if(getNav() == 'I') {
		h = document.body.clientHeight -3;
	}
	if(getNav() == 'N') {
		h = document.body.scrollHeight;
	}
	return(h);
}

function glueBottom() {

	pHeight = getPageHeight();
	offL = document.vMarkerLeft.offsetTop;
	offR = document.vMarkerRight.offsetTop;
	if ((offL+581) > (offR+70)) {
		max = offL+581;
		type = 1;
	} else {
		max = offR+70;
		type = 2;
	}
	if (max < pHeight) {
		offsetL = pHeight - offL - 581;
		offsetR = pHeight - offR - 70;
	} else {
		if (type == 1) {
			offsetL = 1;
			offsetR = max - offR - 70;
		}
		if (type == 2) {
			offsetL = max - offL - 581;
			offsetR = 1;
		}
	}
	document.vSpacer.height = offsetL;
	document.vMarkerRight.height = offsetR;
}

function glueBottomInt() {
	pHeight = getPageHeight();
	offL = document.vMarker.offsetTop;
	offR = document.vMarkerRight.offsetTop;
	if ((offL+208) > (offR+45)) {
		max = offL+208;
		type = 1;
	} else {
		max = offR+45;
		type = 2;
	}
	offset = 1;
	if (max < pHeight) {
		offset = pHeight - 400;
	} else {
		if (type == 2) {
			offset = max - 400;
			if (getNav() == 'I') offset += 2;
		}
	}
	document.vSpacer.height = offset;
}
