// JavaScript Document

//ShowChapters function assembles the string with chapter specific info from the array and writes it to the chap_layer layer
function showChapters(chap){
	var str = '<table border="0" cellspacing="2" cellpadding="0"><tr><td width="200px" rowspan="2" valign="top"><img src="../images/';
	str += chap;
	str += '_sm.jpg" width="200" height="110" class="chapter"></td><td rowspan="2"><img src="../images/spacer.gif" width="8" height="8"></td><td';
	if (chapters[chap][7] != '' && chapters[chap][7] != undefined){
		str += ' colspan="3"';
	};
	str += ' valign="top" class="chapter">';
	str += chapters[chap][0];
	str += '<br><span class="alums">';
	str += chapters[chap][1];
	str += ' alumni</span><hr width="100%" size="1" noshade></td></tr><tr><td valign="top"><span class="pres">';
	str += chapters[chap][2];
	str += '<br></span><span class="city">';
	str += chapters[chap][3];
	str += '<br></span><span class="chaplinks">';
	str += chapters[chap][4];
	str += '</span></td>';
	if (chapters[chap][5] != '' && chapters[chap][5] != undefined){
		str += '<td valign="top"><img src="../images/spacer.gif" width="18" height="8"></td><td valign="top"><span class="pres">';
		str += chapters[chap][5];
		str += '<br></span><span class="city">';
		str += chapters[chap][6];
		str += '</span><br><span class="chaplinks">';
		str += chapters[chap][7];
		str += '</span></td>';
	};	
	str += '</tr></table>';
	document.getElementById('chap_layer').innerHTML = str;
	chapOpen();
	};

var NNtype='show';
var IEtype='visible';
var WC3type='visible';

//chapOpen function opens the chap_layer layer
function chapOpen() {
	NNtype='show';
	IEtype='visible';
	WC3type='visible';	
	if (document.getElementById) {
	    eval("document.getElementById('chap_layer').style.visibility = \"" + WC3type + "\"");
    } else {
        if (document.layers) {
			document.layers['chap_layer'].visibility = NNtype;
        } else {
            if (document.all) {
				eval("document.all.chap_layer.style.visibility = \"" + IEtype + "\"");
            }
        }
   	}
};
	
//chapClose function closes the chap_layer layer
function chapClose() {	
	NNtype='hidden';
	IEtype='hidden';
	WC3type='hidden';
	if (document.getElementById) {
	    eval("document.getElementById('chap_layer').style.visibility = \"" + WC3type + "\"");
    } else {
        if (document.layers) {
			document.layers['chap_layer'].visibility = NNtype;
        } else {
            if (document.all) {
				eval("document.all.chap_layer.style.visibility = \"" + IEtype + "\"");
            }
        }
   	}
};

//the chapters array contains chapter specific information	
chapters = new Array('portland','nor_cal','twin_cities','los_angeles','orange_county','kansas_city','san_diego','las_vegas','sedona','phoenix','old_pueblo','colorado','dallas_ftworth','austin','houston','chicago','georgia','national_capital','greater_philly','western_pa','greater_ny','new_england','seattle','white_mountain','indianapolis','yuma','special','academic');

chapters['portland'] = new Array('Portland Sun Devil Connection','3,582','Mitch Daugherty \'95','Portland, OR','mitch@morangedesign.com');

chapters['chicago'] = new Array('Chicago','5,792','Roxanna Thomas \'05','Chicago, IL','ASUChicagoAlumni@gmail.com');

chapters['new_england'] = new Array('New England - MA, CT, ME, NH, RI, VT','3,116','Jeffrey Olen \'97','Belmont, MA','jeffreyolen@asualumni.org');

chapters['greater_ny'] = new Array('Greater New York - NJ, CT','6,077','Jon Katz \'97','Elmwood Park, NJ','ny_sundevils@thesundevils.com');

chapters['greater_philly'] = new Array('Greater Philadelphia - Phila., N. DE., S. NJ','2,501','Fernando Torres \'05','Paoli, PA','fernando.j.torres@gmail.com');

chapters['national_capital'] = new Array('National Capital - Washington, D.C.','4,880','Robert Deal \'02','Washington, D.C.','robertdeal@gmail.com');

chapters['georgia'] = new Array('Georgia','2,005','Seth Deitchman  \'99','Alpharetta, GA','sethdeitchman@yahoo.com');

chapters['dallas_ftworth'] = new Array('Dallas/Fort Worth','3,312','Please contact the ASU Alumni Association at 480-965-2586',' ',' ');

chapters['houston'] = new Array('Houston','1,878','Please contact the ASU Alumni Association at 480-965-2586',' ',' ');

chapters['austin'] = new Array('Austin','2,242','Brianne W. Baird \'05','Austin, TX','austin.sundevils@gmail.com');

chapters['sedona'] = new Array('Sedona/Verde Valley','738','D. Alan Everett \'65','Sedona, AZ','aeverett01@msn.com');

chapters['old_pueblo'] = new Array('Old Pueblo','7,056','Andy Contreras \'75','Tucson, AZ','andycontreras@comcast.net');

chapters['colorado'] = new Array('Colorado','6,792','David Kem \'03','Broomfield, CO','cambodave@asualumni.org');

chapters['san_diego'] = new Array('San Diego','4,744','Andy Hanshaw \'87','San Diego, CA','sandiegochapter@asualumni.org');

chapters['orange_county'] = new Array('Orange County','4,153','Chris Bissonnette \'93','Newport Beach, CA','chrisbissonnette@aol.com');

chapters['los_angeles'] = new Array('Los Angeles','6,238','Eddie DeVall \'93','Los Angeles, CA','DeVall@aol.com');

chapters['nor_cal'] = new Array('NorCal','10,906','Sean Pate \'97','San Francisco, CA','spate@norcalsundevils.com');

chapters['las_vegas'] = new Array('Las Vegas Sun Devil Connection','2,815','Angie Villano \'99',' Las Vegas, NV',' angie.villano@gmail.com');

chapters['seattle'] = new Array('Seattle Sun Devil Connection','5,510','Sarah Warren \'02',' Seattle, WA',' sarah.l.warren@boeing.com');

chapters['western_pa'] = new Array('Western PA Club','2,239','Charles Tichy \'63, 67 M.A.','Pittsburgh, PA','Charles.tichy@sru.edu');

chapters['kansas_city'] = new Array('Kansas City Sun Devil Connection','300','Liz Karre \'02','Lenexa, KS','ASUAlumniKC@hotmail.com');

chapters['twin_cities'] = new Array('Twin Cities','2,266','Jay Watson \'06','Minneapolis, MN','twincitiesdiablodelsol@gmail.com');

chapters['indianapolis'] = new Array('Indianapolis Sun Devil Connection','1,134','Heather Kubisiak \'04',' Indianapolis, IN',' Heather.Kubisiak@asu.edu');

chapters['white_mountain'] = new Array('White Mountain','970','Ted Cesarano \'70','Pinetop, AZ','tedcesar@cableone.net');  

chapters['yuma'] = new Array('Yuma "El Diablito" Alumni Club','1,053','Luis Heredia \'98',' Gilbert, AZ',' luis.heredia@gmail.com');

chapters['special'] = new Array('Special Interests','X,XXX','Chapter President','XXXXXXXX, XX','mail@.com');

chapters['academic'] = new Array('Academic','X,XXX','Chapter President','XXXXXXXX, XX','mail@.com');