

var numOfBars= 8;
function SetNavLeft(V_on_name)
 { 

var vimgnum;
var top_directory="/"

baseArray = new Array(numOfBars) ;// create global baseArray to store images
baseArray[0]="who";
baseArray[1]="peopleon";
baseArray[2]="alumni";
baseArray[3]="computing";
baseArray[4]="publications";
baseArray[5]="related";
baseArray[6]="cobi";
baseArray[7]="contact";

// Alt tags

altArray = new Array(numOfBars) ;// create global barArray to store alt tags
altArray[0]="Who we are";
altArray[1]="People";
altArray[2]="Alumni";
altArray[3]="Computing Resources";
altArray[4]="Publications";
altArray[5]="Related WIS Activities";
altArray[6]="COBI/INN";
altArray[7]="Contact Us";
 
 for(i=0; i<=baseArray.length-1; i++){
if (baseArray[i]==V_on_name) {
vimgnum=i;
break;
}
}

barArray = new Array(baseArray.length);
for(j=0; j<=baseArray.length-1; j++){
if(j!= vimgnum)
barArray[j] ='"'+ imgV_path + baseArray[j]+"1"+ imgExt +'"'+'alt='+ '"'+ altArray[j] +'"' +' border="0"';
else
barArray[j] ='"'+ imgV_path + baseArray[j]+"3"+ imgExt +'"'+'alt='+ '"'+ altArray[j] +'"' +' border="0"';
} 

//  var buff; for(j=0; j<=baseArray.length-1; j++){ buff = buff + "\n" + barArray[j]; } alert(buff);

	 //ref
 refArray = new Array(numOfBars) ;// create global barArray to store images


refArray[0]=top_directory + "about/who.html";
refArray[1]=top_directory + "about/people.html";
refArray[2]=top_directory + "about/alumni.html";
refArray[3]=top_directory + "about/computing.html";
refArray[4]=top_directory + "about/publications.html";
refArray[5]=top_directory + "about/related.html";
refArray[6]=top_directory + "about/cobi.html";
refArray[7]=top_directory + "about/contact.html";
 }	


 

