function MakeArray(nom) {

        this.length = nom
        for (var c = 1; c<=nom; c++)
                {
                this[c] = new Image()
                }
        return this
        }

if ((navigator.userAgent.substring(0,9) == "Mozilla/3") ||
    (navigator.userAgent.substring(0,9) == "Mozilla/4") ||
	(navigator.userAgent.substring(0,9) == "Mozilla/5") ||
	(navigator.userAgent.substring(0,9) == "Mozilla/6"))

        {
        Nstandard = new MakeArray(20)
        Nover = new MakeArray(20)
        Nblurb = new MakeArray(20)

		Nstandard[1].src = "image/buttons/home0.gif"
        Nstandard[2].src = "image/buttons/about0.gif"
        Nstandard[3].src = "image/buttons/menus0.gif"
		Nstandard[4].src = "image/buttons/gallery0.gif"
		Nstandard[5].src = "image/buttons/events0.gif"
		Nstandard[6].src = "image/buttons/trains0.gif"
		Nstandard[7].src = "image/buttons/contact0.gif"
		Nstandard[8].src = "image/buttons/GiftCert0.gif"
		Nstandard[9].src = "image/buttons/news0.gif"
		Nstandard[10].src = "image/buttons/steamshop0.gif"
 		Nstandard[11].src = "image/buttons/directions0.gif"
 		Nstandard[12].src = "image/buttons/attractions0.gif"
 		Nstandard[13].src = "image/buttons/coaches0.gif"
 		
        Nover[1].src = "image/buttons/home1.gif"
        Nover[2].src = "image/buttons/about1.gif"
        Nover[3].src = "image/buttons/menus1.gif"
		Nover[4].src = "image/buttons/gallery1.gif"
		Nover[5].src = "image/buttons/events1.gif"
		Nover[6].src = "image/buttons/trains1.gif"
		Nover[7].src = "image/buttons/contact1.gif"
		Nover[8].src = "image/buttons/GiftCert1.gif"
		Nover[9].src = "image/buttons/news1.gif"
		Nover[10].src = "image/buttons/steamshop1.gif"
 		Nover[11].src = "image/buttons/directions1.gif"
 		Nover[12].src = "image/buttons/attractions1.gif"
 		Nover[13].src = "image/buttons/coaches1.gif"
 		
        Nblurb[1] = "Home"  
        Nblurb[2] = "About Us" 
        Nblurb[3] = "Menus"
		Nblurb[4] = "Gallery"
		Nblurb[5] = "Event Calendar"
		Nblurb[6] = "Approximate Train Schedules"
		Nblurb[7] = "Contact Us"
		Nblurb[8] = "Gift Cards make a great gift for food loving railroad enthusiasts!"
		Nblurb[9] = "What's New at the Steaming Tender?"
		Nblurb[10] = "Get cool Steaming Tender Logo apparel and merchandise at CafePress.com!"
        Nblurb[11] = "Get directions or links to your favorite direction/map sites to make getting here easy!"
        Nblurb[12] = "Area Attractions - there's a LOT of stuff in the area!"
        Nblurb[13] = "Motor Coaches - the Steaming Tender is among the finest of Destination Restaurants, and we can serve busloads!"
        }

function nameover(num)
        {
        if ((navigator.userAgent.substring(0,9) == "Mozilla/3") ||
            (navigator.userAgent.substring(0,9) == "Mozilla/4") ||
			(navigator.userAgent.substring(0,9) == "Mozilla/5") ||
			(navigator.userAgent.substring(0,9) == "Mozilla/6"))
                {
                if (Nover[num].src != "")
                        {
						if (num == 1) {document.wanji.src = Nover[num].src}
						if (num == 2) {document.nunpa.src = Nover[num].src}
						if (num == 3) {document.yamni.src = Nover[num].src}
						if (num == 4) {document.topa.src = Nover[num].src}
						if (num == 5) {document.zaptan.src = Nover[num].src}
						if (num == 6) {document.shakpe.src = Nover[num].src}
						if (num == 7) {document.shakowin.src = Nover[num].src}
						if (num == 8) {document.shaglogon.src = Nover[num].src}
						if (num == 9) {document.napciunka.src = Nover[num].src}
						if (num == 10) {document.wickcemna.src = Nover[num].src}
                        if (num == 11) {document.akewanji.src = Nover[num].src}
                        if (num == 12) {document.akenunpa.src = Nover[num].src}
                        if (num == 13) {document.akeyamni.src = Nover[num].src}
                        window.status = Nblurb[num]
                       }
                }
        }


function nameout(num)
        {
        if ((navigator.userAgent.substring(0,9) == "Mozilla/3") ||
            (navigator.userAgent.substring(0,9) == "Mozilla/4") ||
			(navigator.userAgent.substring(0,9) == "Mozilla/5") ||
			(navigator.userAgent.substring(0,9) == "Mozilla/6"))
                {   
                if (Nstandard[num].src != "")
                        {
                        if (num == 1) {document.wanji.src = Nstandard[num].src}
						if (num == 2) {document.nunpa.src = Nstandard[num].src}
						if (num == 3) {document.yamni.src = Nstandard[num].src}
						if (num == 4) {document.topa.src = Nstandard[num].src}
						if (num == 5) {document.zaptan.src = Nstandard[num].src}
						if (num == 6) {document.shakpe.src = Nstandard[num].src}
						if (num == 7) {document.shakowin.src = Nstandard[num].src}
						if (num == 8) {document.shaglogon.src = Nstandard[num].src}
						if (num == 9) {document.napciunka.src = Nstandard[num].src}
						if (num == 10) {document.wickcemna.src = Nstandard[num].src}
                        if (num == 11) {document.akewanji.src = Nstandard[num].src}
                        if (num == 12) {document.akenunpa.src = Nstandard[num].src}
                        if (num == 13) {document.akeyamni.src = Nstandard[num].src}
                        }
                }
        }

// ************************  Miscellaneous site specific scripts ***************************** //

function XanaWin(which, w, h) {
	popupWin = window.open(which, 'XanaWin', 'scrollbars,width='+w+',height='+h);
	popupWin.focus();
	}
	
function XanaWin2(which, w, h) {
	popupWin = window.open(which, 'XanaWin', 'width='+w+',height='+h);
	popupWin.focus();
	}
	
function writemail(user,domain)
	{
		location.href = "mailto:"+user+"@"+domain;
	}
	
if (top.location != self.location) 
	{
	top.location = self.location
	}
	
window.defaultStatus="Welcome!";