<!-- Web Site:  http://www.iinet.net.au/~biab -->
<!-- Begin -->
var item = new Array();

/* Here is where all the magic happens.
    Just enter as many additional pages that
    that you want to search, then fill in the
    additional listings for each page.
*/

// "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"

c=0; item[c]=new Array("index.htm","http://www.sacredheartsbradford.org/SchoolHome/","Home Page","index,main,start,news,home,front,landing,welcome, main page news","Sacred Hearts School home page.");
c++; item[c]=new Array("Aboutus.htm","http://www.sacredheartsbradford.org/SchoolHome/ourschool/","About SHS","about,promo,board,information,accredidation,contact,policy,phiosophy,email,who,mission statement,alumni,Athletics,events","Contact details and general information about the school and what its all about.");
c++; item[c]=new Array("bulletin.htm","http://www.sacredheartsbradford.org/SchoolHome/bulletin/","News & Events","calendar,fund rais,news letter,notice,new updates","Links to news and school information.");
c++; item[c]=new Array("fund.htm","http://www.sacredheartsbradford.org/SchoolHome/bulletin/","Fund","fund rais,scrip,good,search","Funding school information.");
c++; item[c]=new Array("parents.htm","http://www.sacredheartsbradford.org/SchoolHome/parents/","Parents","Parents page,parents,PTO,uniforms,handbook,info","The main page for Parents to get info.");
c++; item[c]=new Array("pto.htm","http://www.sacredheartsbradford.org/SchoolHome/parents/","PTO","Parents page,parents,PTO,laws","The main PTO page.");
c++; item[c]=new Array("students.htm","http://www.sacredheartsbradford.org/SchoolHome/students/","Students","Students page,students","The main page for Students to get info.");
c++; item[c]=new Array("Summer.htm","http://www.sacredheartsbradford.org/SchoolHome/students/","Summer page","Students page,summer,list,lists,supply,reading","The main page for Summer info.");
c++; item[c]=new Array("admissions.htm","http://www.sacredheartsbradford.org/SchoolHome/admiss/","Admissions","Admission,fact,enroll,information,school,application,cori,classroom recommend,kindergarten,forms,form,internet,covenant_of_support,tuition","Page shows all forms and details related to Admissions.");
c++; item[c]=new Array("calendar.htm","http://www.sacredheartsbradford.org/SchoolHome/bulletin/","calendar","calendar,dates,events,vacation,closed,resume,open","Calendar page.");
c++; item[c]=new Array("Events.htm","http://www.sacredheartsbradford.org/SchoolHome/ourschool/","calendar","holidays, halloween,parade,dates,events,veterans,santa","School Events Gallery.");
c++; item[c]=new Array("Endowment.htm","http://www.sacredheartsbradford.org/SchoolHome/ourschool/","Endowment","Fund raiser, cook book,parade","Endowment page.");
c++; item[c]=new Array("admissions.htm","http://www.sacredheartsbradford.org/SchoolHome/admiss/","Admissions","Admission, entry, enrollment,forms","Admissions page.");
c++; item[c]=new Array("SHtech.htm","http://www.sacredheartsbradford.org/","Intro","Parents, volunteer, technology","Tech Page.");

page="<html><head><title>Search Results</title></head><body bgcolor='white' text=\"#000000\" vlink=\"#FF0033\" alink=\"#0000FF\" topmargin=\"0\"><table width=\"75%\" border=\"0\"><tr><td>&nbsp;</td><td><H1 align=\"center\"><font color=\"#CC3333\">Sacred Hearts search Results</font></H1></td></tr></table><table border=0 cellspacing=10 width=80% align=\"center\">";


function search(frm) {
win = window.open("","","scrollbars");
win.document.write(page);
txt = frm.srchval.value.split(" ");
fnd = new Array(); total=0;
for (i = 0; i < item.length; i++) {
fnd[i] = 0; order = new Array(0, 4, 2, 3);
for (j = 0; j < order.length; j++)
for (k = 0; k < txt.length; k++)
if (item[i][order[j]].toLowerCase().indexOf(txt[k]) > -1 && txt[k] != "")
fnd[i] += (j+1);
}
for (i = 0; i < fnd.length; i++) {
n = 0; w = -1;
for (j = 0;j < fnd.length; j++)
if (fnd[j] > n) { n = fnd[j]; w = j; };
if (w > -1) total += show(w, win, n);
fnd[w] = 0;
}
win.document.write("</td></table><br>Total found: "+total+"<br></body></html>");
win.document.close();
}
function show(which,wind,num) {
link = item[which][1] + item[which][0];
line = "<tr><td><a href='"+link+"'>"+item[which][2]+"</a> Hits: "+num+"<br>";
line += item[which][4] + "<br>"+link+"</td></tr>";
wind.document.write(line);
return 1;
}
//  End -->

//SuckerTree Horizontal Menu (Sept 14th, 06)
//By Dynamic Drive: http://www.dynamicdrive.com/style/

var menuids=["treemenu1"] //Enter id(s) of SuckerTree UL menus, separated by commas

function buildsubmenus_horizontal(){
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
		if (ultags[t].parentNode.parentNode.id==menuids[i]){ //if this is a first level submenu
			ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px" //dynamically position first level submenus to be height of main menu item
			ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon"
		}
		else{ //else if this is a sub level menu (ul)
		  ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
    	ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon"
		}
    ultags[t].parentNode.onmouseover=function(){
    this.getElementsByTagName("ul")[0].style.visibility="visible"
    }
    ultags[t].parentNode.onmouseout=function(){
    this.getElementsByTagName("ul")[0].style.visibility="hidden"
    }
    }
  }
}

if (window.addEventListener)
window.addEventListener("load", buildsubmenus_horizontal, false)
else if (window.attachEvent)
window.attachEvent("onload", buildsubmenus_horizontal)