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/company0.gif"
        	Nstandard[2].src = "image/buttons/cladding0.gif"
        	Nstandard[3].src = "image/buttons/interior0.gif"
		Nstandard[4].src = "image/buttons/news0.gif"
		Nstandard[5].src = "image/buttons/jobs0.gif"
		Nstandard[6].src = "image/buttons/contact0.gif"
		Nstandard[7].src = "image/buttons/driving0.gif"
		Nstandard[8].src = "image/buttons/links0.gif"
		Nstandard[9].src = "image/buttons/home0.gif"
		Nstandard[10].src = "image/buttons/employeelinks0.gif"
	
		
        	Nover[1].src = "image/buttons/company1.gif"
        	Nover[2].src = "image/buttons/cladding1.gif"
        	Nover[3].src = "image/buttons/interior1.gif"
		Nover[4].src = "image/buttons/news1.gif"
		Nover[5].src = "image/buttons/jobs1.gif"
		Nover[6].src = "image/buttons/contact1.gif"
		Nover[7].src = "image/buttons/driving1.gif"
		Nover[8].src = "image/buttons/links1.gif"
		Nover[9].src = "image/buttons/home1.gif"
		Nover[10].src = "image/buttons/employeelinks1.gif"
		
        Nblurb[1] = "About Permasteelisa USA"  
        Nblurb[2] = "Exterior Curtainwall/cladding division" 
        Nblurb[3] = "Interiors Division"
		Nblurb[4] = "News and Announcements about Permasteelisa USA"
		Nblurb[5] = "Career Opportunities | Help build the Future"
		Nblurb[6] = "Contact us, forms, phone numbers, addresses"
		Nblurb[7] = "Comprehensive driving directions and maps"
		Nblurb[8] = "Links to our overseas operations and other sites of interest"
		Nblurb[9] = "Return to the Permasteelisa USA Home Page"
		Nblurb[10] = "Links for company employees"
        }

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) {
	w=w+20
	h=h+20
	popupWin = window.open(which, 'XanaWin', 'scrollbars, width='+w+', height='+h);
	popupWin.focus();
	}
	
function XanaWin2(which, w, h) {
	w=w+20
	h=h+20
	popupWin = window.open(which, 'XanaWin', 'width='+w+', height='+h);
	popupWin.focus();
	}
	
window.defaultStatus="PERMASTEELISA USA | CURTAIN WALL AND CLADDING TECHNOLOGIES";
