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(10)
        Nover = new MakeArray(10)
        Nblurb = new MakeArray(10)

		Nstandard[1].src = "image/buttons/who0.jpg"
        Nstandard[2].src = "image/buttons/what0.jpg"
        Nstandard[3].src = "image/buttons/classes0.jpg"
		Nstandard[4].src = "image/buttons/news0.jpg"
		Nstandard[5].src = "image/buttons/calendar0.jpg"
		Nstandard[6].src = "image/buttons/contact0.jpg"
		Nstandard[7].src = "image/buttons/profiles0.jpg"
		Nstandard[8].src = "image/buttons/register0.jpg"
		Nstandard[9].src = "image/buttons/links0.jpg"
		Nstandard[10].src = "image/buttons/default0.jpg"
 
        Nover[1].src = "image/buttons/who1.jpg"
        Nover[2].src = "image/buttons/what1.jpg"
        Nover[3].src = "image/buttons/classes1.jpg"
		Nover[4].src = "image/buttons/news1.jpg"
		Nover[5].src = "image/buttons/calendar1.jpg"
		Nover[6].src = "image/buttons/contact1.jpg"
		Nover[7].src = "image/buttons/profiles1.jpg"
		Nover[8].src = "image/buttons/register1.jpg"
		Nover[9].src = "image/buttons/links1.jpg"
		Nover[10].src = "image/buttons/default1.jpg"
 
        Nblurb[1] = "Who We Are- Our Mission Statement and History"  
        Nblurb[2] = "What we offer" 
        Nblurb[3] = "Classes and Workshops"
		Nblurb[4] = "News- new offerings- special interest items"
		Nblurb[5] = "Calendar of classes and upcoming events"
		Nblurb[6] = "Contact us"
		Nblurb[7] = "Instructor Profiles"
		Nblurb[8] = "Register for courses online"
		Nblurb[9] = "Useful links"
		Nblurb[10] = "blurb10"
        }

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}
                        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}
                        }
                }
        }
		

// ************************  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();
	}
	
if (top.location != self.location) 
	{
	top.location = self.location
	}
	
window.defaultStatus="Welcome to the Palmer UU Church!";