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/button-home0.gif"
        Nstandard[2].src = "image/button-courses0.gif"
        Nstandard[3].src = "image/button-schedule0.gif"
		Nstandard[4].src = "image/button-about0.gif"
		Nstandard[5].src = "image/button-departments0.gif"
		Nstandard[6].src = "image/button-contact0.gif"
		Nstandard[7].src = "image/button-gallery0.gif"
		Nstandard[8].src = "image/button-vendor0.gif"
		Nstandard[9].src = "image/button-links0.gif"
		Nstandard[10].src = "image/button-store0.gif"
 
        Nover[1].src = "image/button-home1.gif"
        Nover[2].src = "image/button-courses1.gif"
        Nover[3].src = "image/button-schedule1.gif"
		Nover[4].src = "image/button-about1.gif"
		Nover[5].src = "image/button-departments1.gif"
		Nover[6].src = "image/button-contact1.gif"
		Nover[7].src = "image/button-gallery1.gif"
		Nover[8].src = "image/button-vendor1.gif"
		Nover[9].src = "image/button-links1.gif"
		Nover[10].src = "image/button-store1.gif"
 
        Nblurb[1] = "Home Page"  
        Nblurb[2] = "Courses Offered" 
        Nblurb[3] = "Schedule of Courses"
		Nblurb[4] = "About STS Consulting"
		Nblurb[5] = "Departments and Agencies Trained"
		Nblurb[6] = "Contact STS Consulting"
		Nblurb[7] = "Photo Gallery of Trainings and Events"
		Nblurb[8] = "Vendor List"
		Nblurb[9] = "Useful Links"
		Nblurb[10] = "T-Shirts and STS Merchandise"
        }

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 writemail(user,domain)
	{
		location.href = "mailto:"+user+"@"+domain;
	}
	
if (top.location != self.location) 
	{
	top.location = self.location
	}
	
window.defaultStatus="Welcome to STS Consulting - Tactical EMS Training";
