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/team0.gif"
        Nstandard[3].src = "image/buttons/predictive0.gif"
		Nstandard[4].src = "image/buttons/outpatient0.gif"
		Nstandard[5].src = "image/buttons/diagnostics0.gif"
		Nstandard[6].src = "image/buttons/chiro0.gif"
		Nstandard[7].src = "image/buttons/services0.gif"
		Nstandard[8].src = "image/buttons/tour0.gif"
		Nstandard[9].src = "image/buttons/testimonials0.gif"
		Nstandard[10].src = "image/buttons/info0.gif"
		Nstandard[11].src = "image/buttons/contact0.gif"
		Nstandard[12].src = "image/buttons/directions0.gif"
		Nstandard[13].src = "image/buttons/patientforms0.gif"
		Nstandard[14].src = "image/buttons/links0.gif"
		Nstandard[15].src = "image/buttons/homeo0.gif"
		Nstandard[16].src = "image/buttons/ASYRA0.gif"
		
        Nover[1].src = "image/buttons/home1.gif"
        Nover[2].src = "image/buttons/team1.gif"
        Nover[3].src = "image/buttons/predictive1.gif"
		Nover[4].src = "image/buttons/outpatient1.gif"
		Nover[5].src = "image/buttons/diagnostics1.gif"
		Nover[6].src = "image/buttons/chiro1.gif"
		Nover[7].src = "image/buttons/services1.gif"
		Nover[8].src = "image/buttons/tour1.gif"
		Nover[9].src = "image/buttons/testimonials1.gif"
		Nover[10].src = "image/buttons/info1.gif"
		Nover[11].src = "image/buttons/contact1.gif"
		Nover[12].src = "image/buttons/directions1.gif"
		Nover[13].src = "image/buttons/patientforms1.gif"
 		Nover[14].src = "image/buttons/links1.gif"
 		Nover[15].src = "image/buttons/homeo1.gif"
 		Nover[16].src = "image/buttons/ASYRA1.gif"
 
        Nblurb[1] = "Return to the Elan Vital Home Page"  
        Nblurb[2] = "Meet the team that will work for your success" 
        Nblurb[3] = "Predictive Genomics"
		Nblurb[4] = "Outpatient Services"
		Nblurb[5] = "Advanced Diagnostics"
		Nblurb[6] = "Chiropractic Services"
		Nblurb[7] = "Services and Fees"
		Nblurb[8] = "Take a Virtual Tour"
		Nblurb[9] = "Client Testimonials"
		Nblurb[10] = "Policies and General Information"
		Nblurb[11] = "Contact Elan Vital"
		Nblurb[12] = "Directions to our offices in Worcester"
        Nblurb[13] = "Download Patient Intake forms and other materials"
		Nblurb[14] = "Links of Interest"
		Nblurb[15] = "Homeopathy"
		Nblurb[16] = "ASYRA Diagnostic Services"
		}

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}
                        if (num == 14) {document.aketopa.src = Nover[num].src}
                        if (num == 15) {document.akezaptan.src = Nover[num].src}
                        if (num == 16) {document.akeshakpe.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}
                        if (num == 14) {document.aketopa.src = Nstandard[num].src}
                        if (num == 15) {document.akezaptan.src = Nstandard[num].src}
                        if (num == 16) {document.akeshakpe.src = Nstandard[num].src}
                        }
                }
        }
		
// ************************  Top Left Rotator ***************************** //	
	
topImages = new Array("image/changer1.jpg","image/changer2.jpg","image/changer3.jpg")

thisPic = 0

imgCt = topImages.length

function cambio() {
	if (document.images) {
		thisPic++
		if (thisPic == imgCt) {
			thisPic = 0
		}
		document.changer.src = topImages[thisPic]
		setTimeout("cambio()",4000)
	}
}

// ************************  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="";
