//General
var membership=[109,101,109,98,101,114,115,104,105,112,64,97,108,97,110,101,116,46,111,114,103];    
var infocentral = [105,110,102,111,99,101,110,116,114,97,108,64,97,108,97,110,101,116,46,111,114,103];
var webmaster = [119,101,98,109,97,115,116,101,114,64,97,108,97,110,101,116,46,111,114,103];	            
var profdev = [112,114,111,102,100,101,118,64,97,108,97,110,101,116,46,111,114,103];
var exhibits = [101,120,104,105,98,105,116,115,64,97,108,97,110,101,116,46,111,114,103];			
var webvendors = [119,101,98,118,101,110,100,111,114,115,64,97,108,97,110,101,116,46,111,114,103]; 
var plmw = [112,108,109,119,64,97,108,97,110,101,116,46,111,114,103];
var onlinereg = [111,110,108,105,110,101,114,101,103,64,97,108,97,110,101,116,46,111,114,103];
var onlinereceipts = [111,110,108,105,110,101,114,101,99,101,105,112,116,115,64,97,108,97,110,101,116,46,111,114,103];
var onlineorders = [111,110,108,105,110,101,111,114,100,101,114,115,64,97,108,97,110,101,116,46,111,114,103];
var onlinedues = [111,110,108,105,110,101,100,117,101,115,64,97,108,97,110,101,116,46,111,114,103];
var onlineapps = [111,110,108,105,110,101,97,112,112,115,64,97,108,97,110,101,116,46,111,114,103];
var currents = [99,117,114,114,101,110,116,115,64,97,108,97,110,101,116,46,111,114,103];
var jobs = [106,111,98,115,64,97,108,97,110,101,116,46,111,114,103];
var marketing = [109,97,114,107,101,116,105,110,103,64,97,108,97,110,101,116,46,111,114,103];
var media = [109,101,100,105,97,64,97,108,97,110,101,116,46,111,114,103];
var memberservices = [109,101,109,98,101,114,115,101,114,118,105,99,101,115,64,97,108,97,110,101,116,46,111,114,103];
var publications = [97,100,118,111,114,97,107,64,97,108,97,110,101,116,46,111,114,103]; //goes to Amy
var publication = [97,100,118,111,114,97,107,64,97,108,97,110,101,116,46,111,114,103]; //goes to Amy
var registration = [114,101,103,105,115,116,114,97,116,105,111,110,64,97,108,97,110,101,116,46,111,114,103];
var editor = [101,100,105,116,111,114,64,97,108,97,110,101,116,46,111,114,103];

//Staff
var mail1360 = [108,115,109,105,116,104,64,97,108,97,110,101,116,46,111,114,103]; 		//Larry Smith
var mail1377 = [98,97,98,114,97,109,115,111,110,64,97,108,97,110,101,116,46,111,114,103];	//Bob Abramson
var mail1388 = [100,99,117,114,116,105,115,64,97,108,97,110,101,116,46,111,114,103]; 		//Debbie Curtis
var mail1365 = [114,109,97,104,111,118,115,107,121,64,97,108,97,110,101,116,46,111,114,103];	//Renee Mahovsky
var mail1372 = [112,111,108,101,106,110,105,107,64,97,108,97,110,101,116,46,111,114,103];	//Patty Olejnik
var mail1391 = [112,115,116,111,110,103,64,97,108,97,110,101,116,46,111,114,103];		//Pam Stong
var mail1362 = [100,116,104,111,114,109,97,115,64,97,108,97,110,101,116,46,111,114,103];	//Debbie Thormas
var mail1381 = [106,119,97,117,103,104,64,97,108,97,110,101,116,46,111,114,103];		//Jan Waugh
var mail1375 = [106,109,117,110,100,101,108,108,64,97,108,97,110,101,116,46,111,114,103];	//Jane Mundell
var mail1376 = [115,98,105,100,119,101,108,108,64,97,108,97,110,101,116,46,111,114,103];	//Susan Bidwell
var mail0 = [97,98,117,115,111,118,97,64,97,108,97,110,101,116,46,111,114,103];		//Andrea Busova
var mail1378 = [115,99,97,114,97,115,115,111,64,97,108,97,110,101,116,46,111,114,103];	//Steve Carasso
var mail1379 = [114,108,101,105,103,104,116,111,110,64,97,108,97,110,101,116,46,111,114,103];	//Robert Leighton
var mail1371 = [107,114,117,99,104,116,105,64,97,108,97,110,101,116,46,111,114,103]; 	//Kimberly Ruchti
var mail1392 = [106,100,101,108,97,118,97,110,64,97,108,97,110,101,116,46,111,114,103];	//John Delavan
var mail1393 = [97,100,118,111,114,97,107,64,97,108,97,110,101,116,46,111,114,103];		//Amy Dvorak
var mail1367 = [109,102,114,101,101,109,97,110,64,97,108,97,110,101,116,46,111,114,103];	//Murray Freeman
var mail1364 = [109,103,97,114,99,105,97,64,97,108,97,110,101,116,46,111,114,103];		//Maria Garcia
var mail1387 = [106,103,111,110,122,97,108,101,115,64,97,108,97,110,101,116,46,111,114,103];	//Joanne Gonzales
var mail1386 = [110,103,114,111,110,108,117,110,100,64,97,108,97,110,101,116,46,111,114,103];//Nancy Gronlund
var mail1396 = [107,105,111,115,101,108,108,111,64,97,108,97,110,101,116,46,111,114,103];    //Kelly Iosello
var mail1389 = [104,106,111,110,101,115,64,97,108,97,110,101,116,46,111,114,103];		 //Hope Jones
var mail1397 = [108,107,97,110,101,64,97,108,97,110,101,116,46,111,114,103];			// Lisa Kane
var mail1398 = [97,109,97,116,104,117,114,64,97,108,97,110,101,116,46,111,114,103];		//Ashita Mathur
var mail1370 = [107,107,114,101,122,101,108,64,97,108,97,110,101,116,46,111,114,103];	// Kelli-Ann Krezel
var mail1361 = [110,108,97,114,115,111,110,64,97,108,97,110,101,116,46,111,114,103];		// Nicole Larson

var mail1399 = [118,109,97,117,114,101,114,64,97,108,97,110,101,116,46,111,114,103];		// Vic Maurer
var mail1373 = [108,109,105,107,105,116,97,64,97,108,97,110,101,116,46,111,114,103];		// Lisa Mikita
var mail1390 = [112,109,111,111,114,101,64,97,108,97,110,101,116,46,111,114,103];		// Patti Moore
var mail1363 = [110,110,101,108,115,111,110,64,97,108,97,110,101,116,46,111,114,103];	// Neal Nelson
var mail1383 = [109,111,112,105,111,108,97,64,97,108,97,110,101,116,46,111,114,103];		// Mark Opiola
var mail1369 = [115,104,101,114,98,111,110,64,97,108,97,110,101,116,46,111,114,103];//Steve Herbon
var mail1394 = [115,112,111,119,101,114,115,64,97,108,97,110,101,116,46,111,114,103];	// Sue Powers
var mail1374 = [106,115,116,97,115,99,104,64,97,108,97,110,101,116,46,111,114,103];		// Jackie Stasch
var mail1380 = [109,99,111,114,116,101,122,64,97,108,97,110,101,116,46,111,114,103];	// Matt Cortez
var mail1395 = [114,115,104,105,101,108,115,64,97,108,97,110,101,116,46,111,114,103];	// Rosemary Shiels
var mail1382 = [109,114,111,98,98,105,110,115,64,97,108,97,110,101,116,46,111,114,103];	// Mary Robbins
var mail1385 = [115,117,109,98,100,101,110,115,116,111,99,107,64,97,108,97,110,101,116,46,111,114,103];//Sue Umbdenstock
var mail1392 = [108,119,101,108,98,101,114,115,64,97,108,97,110,101,116,46,111,114,103];//Lindsay Welbers
var mail1368 = [100,119,114,105,103,104,116,64,97,108,97,110,101,116,46,111,114,103];	//Don Wright
var mailWendyRice=[119,114,105,99,101,105,115,97,97,99,115,64,118,111,114,121,115,46,99,111,109]; //Wendy Rice-Isaacs
var mailSusanKoran=[115,107,111,114,97,110,64,102,101,108,108,101,114,115,115,110,105,100,101,114,46,99,111,109];   //Susan Koran
var mailRitaAlli=[114,109,97,108,108,105,64,115,116,111,101,108,46,99,111,109]; //Rita Alli
var mail1370 =[76,66,111,119,108,101,115,64,97,108,97,110,101,116,46,111,114,103,32]; //Leslie Bowles 
var mail1367 =[108,107,114,111,111,107,64,97,108,97,110,101,116,46,111,114,103];//Laurie Krook

function targetWin(url){
   window.open(url,'ala');
}


function getEmail(mailstring, subject){
   var encryptedmail=""; 
   var mailsubject = "";
   if(subject == "")
      mailsubject = ""; 
   else
      mailsubject = "?subject=" + subject;
   for (var i=0; i< mailstring.length; i++)
       encryptedmail += String.fromCharCode(mailstring[i]);
    
  document.location.href="mailto:" + encryptedmail + mailsubject;
}




//Displays Chapter Map - bypasses EULA security
function displayMap(){
    var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'width="400" height="375" '
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="http://redesign.alanet.org/chapters/ChapterMap/mapgadget.swf" />'
    + '<param name="quality" value="high" />'
    + '<param name="wmode" value="transparent" />'
    + '<embed src="http://redesign.alanet.org/chapters/ChapterMap/mapgadget.swf" quality="high" '
    + 'width="400" height="375" wmode="transparent" '
    + 'type="application/x-shockwave-flash"'
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
    + '<\/embed>'
    + '<\/object>';
    document.write(oeTags);   // embed the flash movie
}

/***Factoids for Career Resources***/
var Factoid=new Array(); // do not change this!

Factoid[0] = '<div id="subheader">LEGAL PROFESSIONALS UP FOR A CHALLENGE</div><b>Forty-two percent</b> of attorneys polled say challenging assignments provide the greatest job satisfaction. Compensation packages ranked second, receiving <b>22 percent</b> of the response.';
Factoid[1] =  '<div id="subheader">THE VERDICT IS IN</div>The best strategy for lawyers who want to get ahead in their field ' +
	      'is to make a good impression on clients say attorneys recently surveyed by Robert Half Legal.  <b>Forty-three percent</b> of those ' +
	      'polled said focusing on client service is the area most critical to success.  Becoming more specialized within a ' +
                    'practice area and networking to market one&#146;s services followed, each receiving <b>21 percent</b> of the response.';
Factoid[2] =  'Business is healthy for many law firms, a new survey by Robert Half Legal shows. <b>Sixty-nine percent</b> of lawyers polled said their firms are handling more projects and cases compared to one year ago; just <b>6 percent</b> said their current workloads have decreased.';
Factoid[3] =  'Law firms and corporate legal departments will be adding to their teams in the year ahead, a new survey by Robert Half Legal ' +
	      'shows. <b>Forty-seven percent</b> of attorneys polled said they plan to hire personnel in the next 12 months; just <b>2 percent</b> ' +
	      'of respondents anticipate staff reductions. Litigation, corporate governance and intellectual property were identified as the areas ' +
	      'of law expected to experience the most growth.';
Factoid[4] =  'Despite a down economy and layoffs in the legal field, one-quarter (<b>25 percent</b>) of lawyers interviewed recently by Robert Half Legal said their organizations would be adding personnel in the next 12 months. The majority (<b>65 percent</b>) of survey respondents forecast no change in staffing levels while one in 10 attorneys said their firms and corporations would be reducing the size of their teams in the coming year. The two practice areas anticipated to experience the most growth are bankruptcy and litigation.';

var f = Factoid.length;
var whichFactoid=Math.round(Math.random()*(f-1));

function showFactoid(){document.write(Factoid[whichFactoid]);}
/***Handles show & hide of large lists of files (FALA Financials)***/
function toggleVisibility(id,display){
      var e = document.getElementById(id);
      e.style.display = display;
  }

/***handles career poll form validation on Career Resources Page***/
function getCheckedVote(){
  var n = -1;
  for(var i = 0; i < document.pollform.u_input.length; i++){
        if(document.pollform.u_input[i].checked){
                n = i;
        }
  }
  return n;
}

/***handles career poll form validation on Career Resources Page***/
function validateVote(){
   var cv = getCheckedVote();

   if(cv == -1)
       return (false);
return true;
}

/***handles career poll form validation on Career Resources Page***/
function unCheck(){
   for(var i = 0; i < document.pollform.u_input.length; i++)
        document.pollform.u_input[i].checked = false;
}

/***handles career advice window on Career Resources Page***/
function openAdviceWindow(){
   x = (640 - 500)/2;
   y = (480 - 550)/2;
   if(screen){
      y = (screen.AvailHeight - 550)/2;
      x = (screen.AvailWidth - 500)/2;
   }
   dispWin = window.open('about:blank','advicetarget','width=500,height=550,scrollbars=yes,screenX='+x+',screenY='+y+',top='+y+',left='+x + "'");
}

/***handles career poll on Career Resources Page***/
function openPollWindow2(){
   x = (640 - 205)/2;
   y = (480 - 300)/2;
   if(screen){
      y = (screen.AvailHeight - 300)/2;
      x = (screen.AvailWidth - 205)/2;
   }
   dispWin = window.open('about:blank','formtarget','width=205,height=300,screenX='+x+',screenY='+y+',top='+y+',left='+x);
}
//Handles Reference Desk Research Study drop down list options
function openDir( form ) { 
	var newIndex = form.fieldname.selectedIndex; 
	if ( newIndex == 0 ) { 
		null
	} else { 
		cururl = form.fieldname.options[ newIndex ].value; 
		window.location.assign( cururl ); 
	} 
} 
//handles the sub page navigation
 function createPageNav(arrayname,classname){
   if(arrayname.length > 0){

	document.write('<ul style="list-style-type:none;margin:0px;padding:0px;">');

	for(i=0; i < arrayname.length; i++){
		document.write('<li class=' + classname + '>' + arrayname[i] + '</li>');
	}
	document.write('</ul>');
    }
 }
//Handles quick menu target links
function SelectmenuFunction(id){ 
  var selectmenu=document.getElementById(id);
  var chosenoption=selectmenu.options[selectmenu.selectedIndex];
 	if (chosenoption.value!="nothing"){
  		window.open(chosenoption.value, "", "") //open target site
 	}
}

//handles enter in textbox
function clickButton(e, buttonid){     
	var evt = e ? e : window.event;     
	var bt = document.getElementById(buttonid);     
	if (bt){         
		if (evt.keyCode == 13){             
			bt.click();             
			return false;         
		}     
	} 
} 
