/*   flipBio2.js                       Written by ^^ron Seg^l for The Neighborhood Writing Alliance                        -- April 2008 --         */
	 
	 var bioTrans = new Array(); // create your global bios array bioTrans = "Biography Transform" Include all div names to be included

bioTrans[0]="spitler";
bioTrans[1]="reischer";
bioTrans[2]="eleuterio";
bioTrans[3]="flores";
bioTrans[4]="lightfoot";
bioTrans[5]="banks";
bioTrans[6]="javellana";
bioTrans[7]="phillips";
bioTrans[8]="wallace";
bioTrans[9]="bucio";
bioTrans[10]="musto";
bioTrans[11]="franklin";
bioTrans[12]="jankowski";
bioTrans[13]="hudak";
bioTrans[14]="moore";
bioTrans[15]="champion";
bioTrans[16]="poirier";


var bioTransSize = 17;

// Shows one selected div tag by id name(d)
function ShowBio(d) { 
document.getElementById(d).style.display = "block";

}

// hides one given div tag by id name(d)

function HideBio(d) {
document.getElementById(d).style.display = "none";

}



function flipBio(d) { //final function to apply to href tag closes all and opens specified
// if the bio is already open close it.......
if(document.getElementById(d).style.display == "block") { document.getElementById(d).style.display = "none"; }

else { 

for(n=0; n<bioTrans.length; n++) // as long as there are div ids(n) in array --- close divs (d)

{

HideBio(bioTrans[n]); //hides all ("n"= div names inside Array "bioTrans")

}

ShowBio(d) // shows specified div as defined before
;

}
;}

