scrollPos = 0;
intInterval = 0;

function moveNews(direction) {
	if (direction == "down") { intInterval = setInterval ("moveDown()", 5 ) };
	if (direction == "up") { intInterval = setInterval ("moveUp()", 5 ) };
	if (direction == "stop") { mouseAction='up'; clearInterval (intInterval) };
}

function moveDown() {
	if (mouseAction == "down" && scrollPos > (300 - document.getElementById("newsContent").offsetHeight)) {
		scrollPos -=2;
		document.getElementById('newsContent').style.top = scrollPos;
	}
	if (mouseAction == "up") { clearInterval (intInterval) };
}
function moveUp() {

	if (mouseAction == "down" && scrollPos < 0) {
		scrollPos +=2;
		document.getElementById('newsContent').style.top = scrollPos;
	}
	if (mouseAction == "up") { clearInterval (intInterval) };
}

function rollOverOut(idName,imgRef) {
	document.getElementById(idName).src = imgRef;
}

function virtualTourLoad(vtURL) {
	document.getElementById('virtualTour').src = vtURL;
}

function mysmallwindow(mypagename,mywindowname,mywidth,myheight) {
	window.open(mypagename,mywindowname,"scrollbars=yes,resizable=yes,width=" + mywidth + ",height=" + myheight )
}

function pictures(mypagename,mywindowname,mywidth,myheight) {
	window.open(mypagename,mywindowname,"status=no, scrollbars=no, toolbar=no, menubar=no, location=no, width=" + mywidth + ",height=" + myheight )
} 
