if (document.layers) {
	firstBit='document.layers["';
	secondBit='"]';
	styleRef='';
	leftVar='.left';
	topVar='.top';
	heightVar='.clip.height';
	widthVar='.clip.width';
	function checksize() {
				if (maxheadroom != window.innerHeight || wideload != window.innerWidth) {
					document.location=document.location;
					}
				}
	var maxheadroom = window.innerHeight;
	var wideload = window.innerWidth;
	window.captureEvents(Event.RESIZE);
	window.onresize = checksize;
} else if (document.all) {
	firstBit='document.all["';
	secondBit='"]';
	styleRef='.style';
	leftVar='.posLeft';
	topVar='.posTop';
	heightVar='.clientHeight';
	widthVar='.clientWidth';
} else if (document.getElementById) {
	firstBit='document.getElementById("';
	secondBit='")';
	styleRef='.style';
	leftVar='.left';
	topVar='.top';
	heightVar='.offsetHeight';
	widthVar='.offsetWidth';
}

function showLayer(layerName){
	if ( eval(firstBit+layerName+secondBit) ) {
		eval(firstBit+layerName+secondBit+styleRef+'.visibility="visible"');
	}
}

function hideLayer(layerName){
	if ( eval(firstBit+layerName+secondBit) ) {
		eval(firstBit+layerName+secondBit+styleRef+'.visibility="hidden"');
	}
}

function getXpos(layerName) {
	return eval(firstBit+layerName+secondBit+styleRef+leftVar);
}

function getYpos(layerName) {
	return eval(firstBit+layerName+secondBit+styleRef+topVar);
}

function getHeight(layerName) {
//alert(eval(firstBit+layerName+secondBit+heightVar));
	return eval(firstBit+layerName+secondBit+heightVar);
 }
 
 function getWidth(layerName) {
	return eval(firstBit+layerName+secondBit+widthVar);
 }
	
function moveLayer(layerName,whereToX,whereToY) {
	eval(firstBit+layerName+secondBit+styleRef+leftVar+'='+whereToX);
	eval(firstBit+layerName+secondBit+styleRef+topVar+'='+whereToY);
}

function scrollTextDown(layerName,upArrow,downArrow,topStop,inc) {

	if (parseInt(getYpos(layerName)) < topStop) {
		moveLayer(layerName,parseInt(getXpos(layerName)),parseInt(getYpos(layerName))+inc);
		showLayer(downArrow);
		scrolling=setTimeout('scrollTextDown("'+layerName+'","'+upArrow+'","'+downArrow+'",'+topStop+','+inc+')',10);
	} else {
		hideLayer(upArrow);
	}
}

function scrollTextUp(layerName,upArrow,downArrow,bottomStop,inc) {
<!--	alert(getYpos(layerName));-->
	if (parseInt(getYpos(layerName))>bottomStop-parseInt(getHeight(layerName))) {
		moveLayer(layerName,parseInt(getXpos(layerName)),parseInt(getYpos(layerName))-inc);
		showLayer(upArrow);
		scrolling=setTimeout('scrollTextUp("'+layerName+'","'+upArrow+'","'+downArrow+'",'+bottomStop+','+inc+')',10);
	} else {
		hideLayer(downArrow);
	}
}

scrolling = null;

function stopScrolling() {
	clearTimeout(scrolling);
}

function showScroller(layerName,downArrow,minSize) {
	if (parseInt(getHeight(layerName))>minSize) {
		showLayer(downArrow);
	} else {
		hideLayer(downArrow);
	}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
