
var homeTxt = "Home: Introducing Jon Marc ...";
var familyTxt = "Family: Remembering Jon\'s parents; links to Nathan and Krysta\'s sites ...";
var photoTxt = "Photos: Explore Jon's Photo Album ...";
var cyclingTxt = "Cycling: Bicycle tours with Nathan and Mary Carol ...";
var christmasTxt = "Christmas: Family letters from 1993 ...";
var puffinTxt = "Pious Puffin: In search of our missing yacht ...";

function mo(el, msg) {
    setNavDesc(msg);
    el.onmouseout=function() {
        setNavDesc(defTxt());
    }
}

function load() {
    setNavDesc(defTxt());
    document.getElementById("navImg").src="MainPics/NavBar"+rand(18)+".jpg";
}

function setNavDesc(txt) 
{
    colon = txt.indexOf(":") + 1;
    document.getElementById("navText").firstChild.nodeValue=txt.substring(colon);
    document.getElementById("navName").firstChild.nodeValue=txt.substring(0,colon);
}

function go(page) {
    if (page == "index")
        window.location=page+".html";
    else if (page == "piouspuffin")
        window.location=page+".php";
    else
        window.location=page+".htm";
}

rnd.today=new Date();
rnd.seed=rnd.today.getTime();
function rnd() {
    rnd.seed = (rnd.seed*9301+49297) % 233280;
    return rnd.seed/(233280.0);
}
function rand(number) {
    return Math.ceil(rnd()*number);
}


