i1_off = new Image();
i1_off.src = "images/menu_bar_home.jpg";
i1_on = new Image();
i1_on.src = "images/menu_bar_home2.jpg";
i2_off = new Image();
i2_off.src = "images/menu_bar_our_facility.jpg";
i2_on = new Image();
i2_on.src = "images/menu_bar_our_facility2.jpg";
i3_off = new Image();
i3_off.src = "images/menu_bar_our_staff.jpg";
i3_on = new Image();
i3_on.src = "images/menu_bar_our_staff2.jpg";
i4_off = new Image();
i4_off.src = "images/menu_bar_comm.jpg";
i4_on = new Image();
i4_on.src = "images/menu_bar_comm2.jpg";
i5_off = new Image();
i5_off.src = "images/menu_bar_tuition.jpg";
i5_on = new Image();
i5_on.src = "images/menu_bar_tuition2.jpg";
i6_off = new Image();
i6_off.src = "images/menu_bar_org.jpg";
i6_on = new Image();
i6_on.src = "images/menu_bar_org2.jpg";
i7_off = new Image();
i7_off.src = "images/menu_bar_ptf.jpg";
i7_on = new Image();
i7_on.src = "images/menu_bar_ptf2.jpg";
i8_off = new Image();
i8_off.src = "images/menu_bar_aff.jpg";
i8_on = new Image();
i8_on.src = "images/menu_bar_aff2.jpg";
i9_off = new Image();
i9_off.src = "images/menu_bar_dir.jpg";
i9_on = new Image();
i9_on.src = "images/menu_bar_dir2.jpg";
i10_off = new Image();
i10_off.src = "images/menu_bar_contact.jpg";
i10_on = new Image();
i10_on.src = "images/menu_bar_contact2.jpg";
i11_off = new Image();
i11_off.src = "images/menu_bar_activities.jpg";
i11_on = new Image();
i11_on.src = "images/menu_bar_activities2.jpg";
i12_off = new Image();
i12_off.src = "images/menu_bar_preschool.jpg";
i12_on = new Image();
i12_on.src = "images/menu_bar_preschool2.jpg";
i13_off = new Image();
i13_off.src = "images/menu_bar_summercare.jpg";
i13_on = new Image();
i13_on.src = "images/menu_bar_summercare2.jpg";

var lastactive;


//      highlights an image
function Activate(imageName) {
        //      test to see if the browser supports the document.images object
        if (document.images) {
        		if (lastactive != undefined)
					Deactivate(lastactive)

                //      do it
                document[imageName].src = eval(imageName + "_on.src");
                lastactive = imageName;
        }
        else {
                //return;
        }
}

//      turns and image off
function Deactivate(imageName){
        //      test to see if the browser supports the document.images object
        if (document.images)  {
                //      do it
                document[imageName].src = eval(imageName + "_off.src");
        }
        else {
                return;
        }
}



var l1 =   0; // left of ticker in pixel, or 0 to position relative
var t1 =   0; // top of ticker in pixel, or 0 to position relative
var w1 = 700; // width of ticker in pixel
var ie = document.all ? true : false;
var first = true;
var l2 = l1 + w1;

var l3 = l1 - l2;
var l = l2;

function tickinit() {
if (ie) {
if (l1 == 0 && t1 == 0) {
pos = document.all['tickpos'];
l1 = getLeft(pos);
t1 = getTop(pos);
}
ticktext.style.posTop = t1;
}
else {
if (l1 == 0 && t1 == 0) {
pos = document.anchors['tickpos'];
l1 = pos.x;
t1 = pos.y;
}
document.ticktext.pageY = t1;
}
l2 = l1 + w1;
l3 = l1 - l2;
l = l2;
setInterval('tick()', 10);
}


function getLeft(ll) {
if (ll.offsetParent)
return (ll.offsetLeft + getLeft(ll.offsetParent));
else 
return (ll.offsetLeft);
}

function getTop(ll) {
if (ll.offsetParent)
return (ll.offsetTop + getTop(ll.offsetParent));
else
return (ll.offsetTop);
}


function tick() {
l = l - 0.5;
if (l < l3+250) l = l2;
cl = l1 - l;
cr = l2 - l;
if (ie) {
ticktext.style.posLeft = l;
ticktext.style.posTop = t1;
ticktext.style.clip = "rect(auto "+cr+"px auto "+cl+"px)";
if (first) ticktext.style.visibility = "visible";
}
else {
document.ticktext.pageX = l;
document.ticktext.clip.left = cl;
document.ticktext.clip.right = cr;
if (first) document.ticktext.visibility = "show";
}
first = false;
}






