
function rollon(imgName) {

        imgOn = eval(imgName + "on.src");
        document[imgName].src = imgOn;
        
}
function rolloff(imgName) {

        document[imgName].src = eval(imgName + "off.src");
		
}

// functions for the sidebar

function imgover(imgname){
imgname.src = "images/ARROW.GIF"
}
function imgout(imgname){
imgname.src = "images/blank.gif"
}

function errorrpt()  {
newwin1=window.open("popup_StMargaretsErrorRpt.htm","ErrorReportWindow","scrollbars,width=625,height=420,left=50,top=10");
}

function stmargarets()  {
newwin1=window.open("popup_stmargarets.htm","StMargaret","scrollbars,width=765,height=420,left=50,top=10");
}

// Original:  Dion (yobo42@hotmail.com) -->
// Web Site:  http://www.iinet.net.au/~biab/ -->
// Small note script on St. Margaret home page

// change this to where you store the blank.gif image
var blank = "http://www.your-web-site-address-here.com/blank.gif";

topedge = 830;  // location of news box from top of page
leftedge = 500;  // location of news box from left edge
boxheight = 150;  // height of news box
boxwidth = 210;  // width of news box
scrollheight = 240; // total height of all data to be scrolled

function scrollnews(cliptop) {
if (document.layers) {
newsDiv = document.news;
newsDiv.clip.top = cliptop;
newsDiv.clip.bottom = cliptop + boxheight;
newsDiv.clip.left = 0;
newsDiv.clip.right = boxwidth + leftedge;
newsDiv.left = leftedge;
newsDiv.top = topedge - cliptop;
}
else {
newsDiv = news.style;
newsDiv.clip = "rect(" + cliptop + "px " + (boxwidth + leftedge) + "px " + (cliptop + boxheight) + "px 0px)";
newsDiv.pixelLeft = leftedge;
newsDiv.pixelTop = topedge - cliptop;
}
cliptop = (cliptop + 1) % (scrollheight + boxheight);
newsDiv.visibility='visible';
setTimeout("scrollnews(" + cliptop + ")", 150);
}



function priesthood()  {
newwin1=window.open("popup_priesthood.htm","Priesthood","scrollbars,top=10,left=50,width=525,height=490");
}