/*   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]="case";
bioTrans[2]="rayford";
bioTrans[3]="kiser";
bioTrans[4]="eleuterio";
bioTrans[5]="flores";
bioTrans[6]="lightfoot";
bioTrans[7]="banks";
bioTrans[8]="javellana";
bioTrans[9]="phillips";
bioTrans[10]="wallace";
bioTrans[11]="bucio";
bioTrans[12]="musto";
bioTrans[13]="franklin";

var bioTransSize = 16;

// 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
;

}
;}
