

function doPopup(URL, title) {
		var panel;
		//displayProps( screen );
		var left, top;
		left = parseInt( (( screen.width - 790 ) / 2 ) - 6 );
		top = parseInt( (( screen.height - 558 ) / 2) - 30 );
		
		panel = window.open( URL, title, 'toolbar=no,scrollbars=no,resizable=no,width=790,height=558' );
		
		if( panel ) {
			//displayProps( panel );
			panel.moveTo( left, top );
			panel.focus();
		} else {
			alert( "This site requires you to allow popup windows.\nPlease ensure popups are enabled, and then reload this page" );
		}
	}
	
	
// functions related to scrolling area

var direction = 'up';
var status = 'off';
var top = 0;
setTimeout("UpdateRoll()", 30);

function getStyleObject(objectId) 
{
// checkW3C DOM, then MSIE 4, then NN 4.
//
	if(document.getElementById && document.getElementById(objectId))
		return document.getElementById(objectId).style;
	else if (document.all && document.all(objectId))
		return document.all(objectId).style;
	else if (document.layers && document.layers[objectId])
		return document.layers[objectId];
	else
		return false;
}

function move(a)
{
	var height = -(document.getElementById('scrollingdiv').offsetHeight - document.getElementById('scrollclipper').offsetHeight);
	
	top += a;
	if(top<height && top<0)
		top=height;
	if(top>0)
		top=0;
	document.getElementById('scrollingdiv').style.top = top + 'px';
}

function beginRollUp()
{
	direction = 'up';
	status = 'on';
}

function beginRollDown()
{
	direction = 'down';
	status = 'on';
}

function endRoll()
{
	status = 'off';
}

function UpdateRoll()
{
	if(status=='on')
		if(direction=='up')
			move(10);
		else
			move(-10);
	setTimeout("UpdateRoll()", 70);
}

//functions for hiding and showing stuff


function show(obj) {
	style = getStyleObject(obj);
	style.display = 'block';
	style.visibility= 'visible';

}
function clearIt(obj) {
	style = getStyleObject(obj);
	style.display = 'none';
	style.visibility= 'hidden';
}








