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(11)
        Nover = new MakeArray(11)
        Nblurb = new MakeArray(11)

		Nstandard[1].src = "image/buttons/home0.jpg"
        Nstandard[2].src = "image/buttons/about0.jpg"
        Nstandard[3].src = "image/buttons/join0.jpg"
		Nstandard[4].src = "image/buttons/members0.jpg"
		Nstandard[5].src = "image/buttons/convention0.jpg"
		Nstandard[6].src = "image/buttons/news0.jpg"
		Nstandard[7].src = "image/buttons/shop0.jpg"
		Nstandard[8].src = "image/buttons/programs0.jpg"
		Nstandard[9].src = "image/buttons/contact0.jpg"
		Nstandard[10].src = "image/buttons/MUM0.jpg"
 		Nstandard[11].src = "image/buttons/SYM0.jpg"
 
        Nover[1].src = "image/buttons/home1.jpg"
        Nover[2].src = "image/buttons/about1.jpg"
        Nover[3].src = "image/buttons/join1.jpg"
		Nover[4].src = "image/buttons/members1.jpg"
		Nover[5].src = "image/buttons/convention1.jpg"
		Nover[6].src = "image/buttons/news1.jpg"
		Nover[7].src = "image/buttons/shop1.jpg"
		Nover[8].src = "image/buttons/programs1.jpg"
		Nover[9].src = "image/buttons/contact1.jpg"
		Nover[10].src = "image/buttons/MUM1.jpg"
 		Nover[11].src = "image/buttons/SYM1.jpg"
 
        Nblurb[1] = "S.A.M. Home Page"  
        Nblurb[2] = "About the S.A.M. " 
        Nblurb[3] = "How to Join The S.A.M. "
		Nblurb[4] = "For S.A.M. Members Only"
		Nblurb[5] = "Annual S.A.M. Convention News and Information"
		Nblurb[6] = "S.A.M. News and Events"
		Nblurb[7] = "S.A.M. Merchandise and ONLINE DUES PAYMENT!"
		Nblurb[8] = "Special S.A.M. Programs"
		Nblurb[9] = "Many ways to Contact the S.A.M. "
		Nblurb[10] = "M.U.M. Magazine"
        Nblurb[11] = "The Society of Young Magicians"
        }

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}
                        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}
                        }
                }
        }
		

// ************************  Miscellaneous site specific scripts ***************************** //

function moreinfo() {
newwin=window.open('needmoreinfo.html','amwin','width=480,height=240,resizable=1,scrollbars');
 }

//menu choices assembly finder

function getChoice() {
var nX;
nX = (document.choice.choiceMenu.selectedIndex);
 {
newwin1=window.open((document.choice.choiceMenu.options[nX].value),'samwin1','width=380,height=320,resizable=1,scrollbars');
 }
}

//end menu choice


//menu choices rvp

function getVP() {
var vX;
vX = (document.vp.vpMenu.selectedIndex);
 {
newwin2=window.open((document.vp.vpMenu.options[vX].value),'samwin2','width=380,height=200,resizable=1,scrollbars');
 }
}

//end choice menu


 function video(url)

{

        var popwin;
        var popurl = "magicvisionsam/" + url + ".html";
        var opts = "width=372,height=224,top=50,left=25,toolbar=no,status=no,location=no,menubar=no,resizable=no";
        popwin = window.open(popurl, "mv", opts);
        popwin.focus();
        // popwin.location = "magicvision/" + url + ".html";

}

function warn(msg) {
	alert(msg);
	}
	
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!";
