//Copyright 2010 Gaburo Associates, All rights reserved.

function assign(category) {

	var list = [
	{cat:'attorney',  bio:'yes',  vcard:'yes', id:'sbear',      n:'Bear, Stuart C.',      	t:'Partner',       		    p:'612.339.7300', l:'Minneapolis'},
	{cat:'attorney',  bio:'yes',  vcard:'yes', id:'bbleichner', n:'Bleichner, Bryan L.',  	t:'Partner',         		p:'612.336.2924', l:'Minneapolis'},
	{cat:'other',     bio:'no',   vcard:'yes', id:'dbooth',     n:'Booth, Darlene',       	t:'Legal Assistant', 		p:'612.336.2904', l:'Minneapolis'},
	{cat:'attorney',  bio:'yes',  vcard:'yes', id:'jbores',     n:'Bores, Jeffrey D.',    	t:'Partner',        		p:'612.336.2910', l:'Minneapolis'},
	{cat:'other',     bio:'no',   vcard:'yes', id:'mbrandt',    n:'Brandt, Marti',        	t:'Legal Assistant', 		p:'612.339.7300', l:'Minneapolis'},
	{cat:'attorney',  bio:'yes',  vcard:'yes', id:'kcambronne', n:'Cambronne, Karl L.',   	t:'Partner',         		p:'612.336.2922', l:'Minneapolis'},
	{cat:'attorney',  bio:'yes',  vcard:'yes', id:'jchestnut',  n:'Chestnut, Jack L.',    	t:'Of Counsel',         	p:'612.339.7300', l:'Minneapolis'},
	{cat:'paralegal', bio:'yes',  vcard:'yes', id:'gchristen',  n:'Christen, Gail A.',    	t:'Paralegal',       		p:'612.336.2946', l:'Minneapolis'},
	{cat:'other',     bio:'no',   vcard:'yes', id:'ddaniels',   n:'Daniels, Donna',       	t:'Legal Assistant',		p:'612.336.2913', l:'Minneapolis'},	
	{cat:'paralegal', bio:'yes',  vcard:'yes', id:'cdawson',    n:'Dawson, Carol A.',     	t:'Paralegal',      		p:'612.336.2938', l:'Minneapolis'},
	{cat:'attorney',  bio:'yes',  vcard:'yes', id:'berickson',  n:'Erickson, Becky L.',   	t:'Associate',      		p:'612.339.7300', l:'Minneapolis'},	
	{cat:'other',     bio:'no',   vcard:'yes', id:'dgill',      n:'Gill, Denise',         	t:'Legal Assistant',		p:'651.291.1900', l:'St. Paul'},
	{cat:'paralegal', bio:'yes',  vcard:'yes', id:'lflaherty',  n:'Flaherty, Leah R.',    	t:'Paralegal',      		p:'612.336.2934', l:'Minneapolis'},	
	{cat:'attorney',  bio:'yes',  vcard:'yes', id:'lhenry', 	n:'Henry, Elizabeth C.',  	t:'Partner',      			p:'612.336.2944', l:'Minneapolis'},
	{cat:'other',     bio:'no',   vcard:'yes', id:'mhicks',     n:'Hicks, Maggie',        	t:'Legal Assistant',		p:'612.336.2930', l:'Minneapolis'},
	{cat:'attorney',  bio:'yes',  vcard:'yes', id:'cholten',    n:'Holten, Cort C.',      	t:'Partner',        		p:'651.291.1900', l:'St. Paul'},
	{cat:'other',     bio:'no',   vcard:'yes', id:'mhuebscher', n:'Huebscher, Molly',     	t:'Legal Assistant',		p:'612.336.2933', l:'Minneapolis'},
	{cat:'attorney',  bio:'yes',  vcard:'yes', id:'djohnson',   n:'Johnson, Dennis B.',   	t:'Partner',         		p:'612.336.2901', l:'Minneapolis'},
	{cat:'attorney',  bio:'yes',  vcard:'yes', id:'pjohnson',   n:'Johnson, Peter S.',   	t:'Associate',         		p:'612.336.2927', l:'Minneapolis'},	
	{cat:'attorney',  bio:'yes',  vcard:'yes', id:'rlafleur',   n:'LaFleur, Robert A.',   	t:'Partner',         		p:'612.336.2919', l:'Minneapolis'},
	{cat:'attorney',  bio:'yes',  vcard:'yes', id:'mlandry',    n:'Landry, Mylene A.',  	t:'Partner',         		p:'612.336.2911', l:'Minneapolis'},
	{cat:'paralegal', bio:'yes',  vcard:'yes', id:'slandry',    n:'Landry, Sheila M.',    	t:'Paralegal',       		p:'612.336.2928', l:'Minneapolis'},	
	{cat:'other',     bio:'no',   vcard:'yes', id:'blarson',    n:'Larson, Brenda',       	t:'Comptroller',     		p:'612.336.2912', l:'Minneapolis'},
	{cat:'attorney',  bio:'yes',  vcard:'yes', id:'gluloff',    n:'Luloff, Gary K.',      	t:'Associate',       		p:'612.336.2931', l:'Minneapolis'},
	{cat:'other',     bio:'no',   vcard:'yes', id:'amalarkey',  n:'Malarkey, Anita',      	t:'Receptionist',    		p:'612.336.2949', l:'Minneapolis'},
	{cat:'attorney',  bio:'yes',  vcard:'yes', id:'tmccarthy',  n:'McCarthy, Timothy P.', 	t:'Partner',         		p:'612.336.2937', l:'Minneapolis'},
	{cat:'other',     bio:'no',   vcard:'yes', id:'kpeterson',  n:'Peterson, Kathy',      	t:'Legal Assistant', 		p:'612.339.7300', l:'Minneapolis'},
	{cat:'other',     bio:'no',   vcard:'yes', id:'dproulx',    n:'Proulx, Dawn',         	t:'Legal Assistant', 		p:'612.336.2941', l:'Minneapolis'},
	{cat:'attorney',  bio:'yes',  vcard:'yes', id:'drephan',    n:'Rephan, David A.',     	t:'Partner',         		p:'612.336.2942', l:'Minneapolis'},	
	{cat:'attorney',  bio:'yes',  vcard:'yes', id:'frondoni',   n:'Rondoni, Francis J.',  	t:'Partner',         		p:'612.339.7300', l:'Minneapolis'},
	{cat:'other',     bio:'no',   vcard:'yes', id:'emschaffer', n:'Schaffer, Eva Marie',  	t:'Legal Assistant', 		p:'612.339.7300', l:'Minneapolis'},
	{cat:'attorney',  bio:'yes',  vcard:'yes', id:'mschneider', n:'Schneider, Mark J.',   	t:'Partner',         		p:'612.336.2917', l:'Minneapolis'},
	{cat:'paralegal', bio:'yes',  vcard:'yes', id:'nsilesky',   n:'Silesky, Nancy L.',    	t:'Lobbyist',        		p:'651.291.1900', l:'St. Paul'},
	{cat:'attorney',  bio:'yes',  vcard:'yes', id:'btoder',     n:'Toder, Brian N.',      	t:'Partner',         		p:'612.336.2918', l:'Minneapolis'},
	{cat:'other',     bio:'no',   vcard:'yes', id:'rzielinski', n:'Zielinski, Rebecca',  	t:'Legal Assistant', 		p:'612.336.2929', l:'Minneapolis'}	
	];

	if (category == 'attorney' || category == 'paralegal' || category == 'all') {
		var xx = "";
		var h = "";

		for (var i = 0; i < list.length; i++)
		{
			if (category == list[i].cat || category == 'all') {
			var x = '<tr>' + '<td>' + list[i].n + '</td>' + '<td>' + list[i].t + '</td>' + '<td>' + list[i].p + '</td>' + '<td>' + list[i].l + '</td>';

				if (list[i].bio == 'yes') {
					x = x + '<td class="bio">' + '<a href="bio_' + list[i].id + '.html">' + 'biography' + '</a>' + '</td>';
					}

				else	{
					x = x + '<td>' + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-' + '</td>';
					}	 		

				x = x + '<td class="email">' + '<a href="mailto:' + list[i].id + '@chestnutcambronne.com">email</a>' + '</td>' + '<td class="vcard">' + '<a href="vcard_' + list[i].id + '.vcf">vcard</a>' + '</td></tr>';

				xx += x;
			}
		}


		h = '<tr><th>Name</th><th>Position</th><th>Phone</th><th>Location</th><th>Biography</th><th>Email</th><th>vCard</th></tr>';

		xx = '<table border="0" cellspacing="0" cellpadding="0">' + h + xx + '</table>';
		return xx;
	}


	else if (category == 'other') {
		var xx = "";
		var h = "";

		for (var i = 0; i < list.length; i++)
		{
		
			if (category == list[i].cat) {
			
			var x = '<tr>' + '<td>' + list[i].n + '</td>' + '<td>' + list[i].t + '</td>' + '<td>' + list[i].p + '</td>' + '<td>' + list[i].l + '</td>' + '<td class="email">' + '<a href="mailto:' + list[i].id + '@chestnutcambronne.com">email</a>' + '</td>' + '<td class="vcard">' + '<a href="vcard_' + list[i].id + '.vcf">vcard</a>' + '</td></tr>';

			xx += x;
			
			}
		}


		h = '<tr><th>Name</th><th>Position</th><th>Phone</th><th>Location</th><th>Email</th><th>vCard</th></tr>';

		xx = '<table border="0" cellspacing="0" cellpadding="0">' + h + xx + '</table>';
		return xx;
	}

}
