// TURNER & ROULSTONE
// JAVASCRIPT: BIOS
// 05.10.07

// DECLARE VARIABLES

var aSelectedAtt;

/* Array */

var aPracticeCode = new Array();

var aPractices    = new Array();

var aBioCode      = new Array();

var aAttCode      = new Array();
var aAttorney     = new Array();
var aTitle        = new Array();
var aLocation     = new Array();
var aTel          = new Array();
var aFax          = new Array();
var aMobile       = new Array();
var aEmail        = new Array();
var aBio          = new Array();
var aImage        = new Array();

/* String */
var sAttorney = new String('');
var sTitle    = new String('');
var sLocation = new String('');
var sTel      = new String('');
var sFax      = new String('');
var sMobile   = new String('');
var sEmail    = new String('');
var sBio      = new String('');
var sImage    = new String('');

var sHeading  = new String('???');

var sEmailExt = new String('@tandr.ky');

// POPULATE ARRAYS

aPracticeCode['id'] = null;

aPractices[0] = 'af'
aPractices[1] = 'cb'
aPractices[2] = 'fc'
aPractices[3] = 'in'
aPractices[4] = 'li'
aPractices[5] = 'sf'
aPractices[6] = 'tr'

aBioCode['id'] = null;

aAttCode[0] = 'at';
aAttCode[1] = 'sr';
aAttCode[2] = 'ac';
aAttCode[3] = 'as';
aAttCode[4] = 'ad';
//aAttCode[5] = 'kp';
aAttCode[6] = 'sw';
aAttCode[7] = 'jh';
aAttCode[8] = 'rl';
aAttCode[9] = 'ja';
aAttCode[10] = 'kw';
aAttCode[11] = 'cl';
aAttCode[12] = '';
aAttCode[13] = 'gl';
aAttCode[14] = 'sw2';
aAttCode[15] = 'dm';
aAttCode[16] = 'mg';
aAttCode[17] = 'gb';

aAttorney[0] = 'Alan Turner';
aAttorney[1] = 'Sharon Roulstone';
aAttorney[2] = 'Alan Craig';
aAttorney[3] = 'Anita Sharma';
aAttorney[4] = 'Andrea Dunsby';
// aAttorney[5] = 'Keith Parnell';
aAttorney[6] = 'Steven Walker';
aAttorney[7] = 'Jodi Hansell';
aAttorney[8] = 'Rowena Lawrence';
aAttorney[9] = '';
aAttorney[10] = 'Karen Watton';
aAttorney[11] = 'Carla Lopez';
aAttorney[12] = '';
aAttorney[13] = 'Gavin Lowe';
aAttorney[14] = 'Simon Wetherell';
aAttorney[15] = 'Daniel Le Maistre';
aAttorney[16] = 'Mark Goodman';
aAttorney[17] = 'Gary Butler';

aTitle[0] = 'Managing Partner';
aTitle[1] = 'Partner';
aTitle[2] = 'Head Of Corporate';
aTitle[3] = '';
aTitle[4] = 'Associate';
aTitle[5] = '';
aTitle[6] = 'Consultant';
aTitle[7] = 'Paralegal';
aTitle[8] = 'Senior Associate';

aLocation[0] = 'Cayman Islands';
aLocation[1] = 'London';

aTel[0] = '(345) 814 0700';
aTel[1] = '(345) 814 0701';
aTel[2] = '(345) 814 0706';
aTel[3] = '(345) 814 0712';
aTel[4] = '(345) 814 0713';
aTel[5] = '(345) 943 5555';
aTel[6] = '(345) 814 0722';
aTel[7] = '(345) 814 0714';
aTel[8] = '(345) 814 0715';
aTel[9] = '';
aTel[10] = '(345) 814 0718';
aTel[11] = '(345) 814 0717';
aTel[12] = '';
aTel[13] = '(345) 814 0712';
aTel[14] = '(345) 814 0710';
aTel[15] = '(345) 814 0714';
aTel[16] = '(345) 814 0722';
aTel[17] = '(345) 814 0710';

aFax[0] = '(345) 943 9999';
aFax[1] = '+44 (0) 203 008 5331';

aMobile[0] = '(345) 926 1449';

aEmail[0] = 'alan.turner';
aEmail[1] = 'sharon.roulstone';
aEmail[2] = 'alan.craig';
aEmail[3] = 'anita.sharma';
aEmail[4] = 'andrea.dunsby';
aEmail[5] = 'kmp';
aEmail[6] = 'steven.walker';
aEmail[7] = 'jodi.hansell';
aEmail[8] = 'rowena.lawrence';
aEmail[9] = '';
aEmail[10] = 'karen.watton';
aEmail[11] = 'carla.lopez';
aEmail[12] = '';
aEmail[13] = 'gavin.lowe';
aEmail[14] = 'simon.wetherell';
aEmail[15] = 'danny.lemaistre';
aEmail[16] = 'mark.goodman';
aEmail[17] = 'gary.butler';

/* Alan Turner */
aBio[0]   = '<p>\nAlan, who is an honours law graduate of Glasgow University, Scotland and a Scottish Solicitor (not practising), was admitted to practice as an attorney in the Cayman Islands in April 1988. For 8 years until April 2001 he was a senior partner with Walkers in the Cayman Islands. Alan is also a member of the International Bar Association.\n</p>\n';
aBio[0]  += '<p>\nAs the managing partner of the firm Alan is responsible for all aspects of the firm\'s administration and development. He and the firm are committed to providing high levels of client service and advice. His approach and that of the firm is to recruit high quality lawyers with excellent experience and ability who are also committed to these same goals.\n</p>\n';
aBio[0]  += '<p>\nAlan is an experienced commercial litigation and bankruptcy/restructuring lawyer. He has appeared frequently before the Grand (High) Court of the Cayman Islands, the Cayman Islands Court of Appeal and the Privy Council in London.\n</p>\n';
aBio[0]  += '<p>\nAlan has been involved in a number of complex bankruptcy/restructuring matters and is recognised as a leading insolvency/restructuring lawyer in the Cayman Islands. Alan has also been involved in numerous commercial proceedings including the enforcement of foreign judgments, tracing claims, banking litigation, claims in conversion, injunctions including mareva injunctions, contractual disputes, shareholder disputes, professional negligence claims, and judicial review proceedings (i.e. proceedings involving the review of government or administrative decisions).\n</p>\n';

/* Sharon Roulstone */
aBio[1]  = '<p>\nSharon, who is an honours law graduate of the Cayman Islands Law School which is affiliated to the University of Liverpool in England, was admitted to practice as an attorney in Cayman in 1996. She was an associate with Walkers until April 2003.\n</p>\n';
aBio[1] += '<p>\nSharon is a well known and successful Cayman Islands businesswoman. Sharon has been appointed by the Governor in Cabinet to serve on a number of Cayman Islands Government entities to include her current following roles:\<br /><br />\
&#149; Chairperson, Work Permit Board, Cayman Islands Department of Immigration\<br />\
&#149; Chairperson, Maritime Authority of the Cayman Islands (MACI), \<br />\&nbsp;&nbsp;Cayman Islands Shipping Registry\<br />\
&#149; Deputy Chairperson, Public Service Appeals Commission\n</p>\n';
aBio[1] += '<p>\nIn addition, she serves as a Director to a number of Cayman Islands private sector companies. Sharon leads the firm\'s Cayman Business Group which deals with all aspects of local business in the Cayman Islands including licencing and immigration issues, employment law, probate and estate planning.\n</p>\n';
aBio[1] += '<p>\nIn addition to the foregoing Sharon also advises on all issues relating to Cayman Islands private client and commercial trusts.\n</p>\n';

/* Alan Craig */
aBio[2]  = '<p>\nAlan received his law degree in 1991 from the University of Glasgow, Scotland (with honours) and completed a post-graduate Diploma in Legal Practice in 1992.';
aBio[2] += '<p>\n After undertaking his training with the leading corporate law practice in Scotland, Alan was admitted as a Solicitor in Scotland in 1994 (not practising). He was subsequently admitted as an Attorney in the State of New York in 1995 (not practising) and England and Wales in 1997 (not practising).\n</p>\n';
aBio[2] += '<p>\nAlan worked with the Donaldson Lufkin & Jenrette in London prior to relocating to the Cayman Islands in 1999 at which time he was admitted to the Cayman Islands bar.\n</p>\n';
aBio[2] += '<p>\nFrom August 1999 to January 2004 Alan practiced with the firm of Walkers in the Cayman Islands during which time he was responsible for advising a large number of international financial institutions and corporate clients. Alan has experience in a range of capital markets and securitisation transactions including CDO products, as well of bespoke financing structures. He has also advised a number of US listed Cayman entities and Cayman subsidiaries of major multinationals on the areas of Cayman Islands law applicable to them.\n</p>\n';
aBio[2] += '<p>\nAlan has extensive experience in relation to investment fund products, including both hedge funds and private equity investment vehicles, as well as the licensing of financial institutions and investment advisors. Alan is also recognised as having specialist experience in the structuring and licensing of Cayman Islands insurance entities.\n</p>\n';
aBio[2] += '<p>\nAlan heads our Corporate and Funds Group.\n</p>\n';

/* Anita Sharma */
aBio[3]  = '<p>\nAnita Sharma was admitted as a English solicitor in 2003.  She trained with Ashursts in London before joining Clifford Chance\'s Paris office where she worked on a variety of capital markets and structured finance transactions, including securitizations and CDOs.  Anita also practiced within the derivatives and structured finance group of Allen & Overy gaining a wide range of experience of working within the legal departments of numerous investment banks in London specialising in derivatives and capital markets business.\n</p>\n';


/* Andrea Dunsby */
aBio[4]  = '<p>\nAndrea obtained a 1st class honours law degree from Nottingham Trent University. She was admitted as a solicitor in England in March 2000 (no longer practices as an English solicitor). She trained with and remained as an associate of Denton Wilde Sapte in London, England specialising in all aspects of UK liquidations, restructurings, voluntary arrangements and receiverships.\n</p>\n';
aBio[4] += '<p>\nAfter her time at Denton Wilde Sapte, she moved to Freehills in Melbourne, Australia where she again specialised in all aspects of contentious insolvency matters and restructurings. A substantial amount of her time at Freehills was spent working on the HIH Insurance insolvency.\n</p>\n';
aBio[4] += '<p>\nAndrea was admitted to practice as an attorney in the Cayman Islands in August 2003 when she joined Turner & Roulstone.  She has since been involved in many substantial insolvencies in the Cayman Islands, complex trust litigation and various other commercial litigation matters.\n</p>\n';
aBio[4] += '<p>\nAndrea also has an extensive trust practice. She advises a number of leading Cayman Islands trust companies in a range of transactions, including structured finance transactions.\n</p>';
aBio[4] += '<p>\nAndrea is a senior associate in our Commercial Litigation Group and our Trust Group.\n</p>\n';

/* Keith Parnell */
aBio[5]  = '<p>\nKeith received his law degree in 1994 having attended both the University of British Columbia and the University of California, Hastings College of the Law under an LL.B./J.D. exchange programme. He also holds a B.A. (great distinction) in Industrial Relations from McGill University.\n</p>\n';
aBio[5] += '<p>\nKeith served as the law clerk to the Honorable James A. Jerome, Associate Chief Justice of the Federal Court of Canada in 1995 prior to being admitted as an attorney in the State of New York in that same year and then called to the Ontario Bar in 1996. Keith was subsequently admitted as a Solicitor in England & Wales in 1999.\n</p>\n';
aBio[5] += '<p>\nKeith practiced law in Canada with one of the premiere Canadian firms, Blake, Cassels & Graydon LLP where he advised leading banks, trust companies and finance companies on loan and security documentation, credit facilities, debt restructuring and bankruptcy and insolvency matters. In 1997 he joined Clifford Chance LLP in London, where he advised clients on a broad range of capital markets and structured finance transactions. Keith also worked in the legal department of Tokyo-Mitsubishi International plc in London, where he supervised the work of the transaction management lawyers and advised the trading floor on a broad range of capital markets transactions including securitizations, Eurobond issues, ECP programmes, EMTN programmes and derivatives.\n</p>\n';
aBio[5] += '<p>\nKeith joined Maples Finance Limited in the Cayman Islands in October 2000 and he was responsible for the management of the company and supervision of transaction staff. During that time, Keith gained extensive experience on CDOs, securitizations, derivatives, structured finance and investment fund transactions.\n</p>\n';
aBio[5] += '<p>\nKeith heads the firm\'s Capital Markets and Structured Finance Group. Since joining the firm Keith has been involved in a number of complex securitizations and other complex structured finance transactions.\n</p>\n';

/* Steven Walker */
aBio[6]  = '<p>\nSteven obtained his honours law degree from the University of Aberdeen in 1996 and his post-graduate Diploma in Legal Practice in 1997. Following his legal traineeship and pupillage he called to the Scottish Bar as an Advocate (Barrister) in 1999 and was admitted to practise as an Advocate before the Courts of Scotland. He had a sabbatical year from the Bar in 2001 and worked as a litigation Associate with Allen & Overy. He returned to practice at the Scottish Bar before calling to the Cayman Islands Bar as an Attorney at Law in 2007.\n</p>\n';
aBio[6] += '<p>\nSteven has provided expert legal advice in a wide variety of contentious and non-contentious commercial and corporate matters and specialises in the preparation and presentation of cases before any Court in Scotland, including the Supreme Courts (the High Court of Justiciary, the Court of Criminal Appeal and the Court of Session); the Judicial Committees of the House of Lords and the Privy Council; the European Court of Human Rights and the Court of Justice of the European Communities.\n</p>\n';
aBio[6] += '<p>\nSteven is highly experienced in the detailed preparation, drafting and oral presentation of both claims and defences as well as other such pleadings. He was involved in raising the first ICSID arbitration proceedings under the Energy Charter Treaty. He has extensive practice and experience in ICC, LCIA, AAA and ICSID arbitrations as well as numerous other institutional arbitrations and ad hoc arbitrations in the UK and worldwide.\n</p>\n';
aBio[6] += '<p>\nThe head of the Scottish Criminal Prosecution Service, the Lord Advocate, has also appointed Steven to the post of Ad Hoc Advocate Depute (Senior Crown Counsel), one of the youngest such public appointments.\n</p>\n';
aBio[6] += '<p>\nSteven is an Associate of the Chartered Institute of Arbitrators, and a visiting lecturer on the LL.M programme in International Commercial Arbitration and Dispute Resolution at the Universities of Edinburgh and Dundee, Centre for Energy, Petroleum, Mineral Law and Policy. He is also a visiting lecturer in law at Glasgow Caledonian University. \n</p>\n';
aBio[6] += '<p>\nSteven was part of the drafting team on the Scottish Council for International Arbitration which drafted the New Scottish Arbitration Bill working alongside the Hon. Lord Dervaird QC. He is a recognised expert in International Arbitration & Dispute Resolution by the United Kingdom\'s Department for International Development and Trade and Industry and has acted for the United Kingdom Government in United Nations International Treaty negotiations before the United Nations, Vienna. Steven is also an accredited mediator and currently a Senior Associate within our litigation group.\n</p>\n';

/* Jodi Hansell */
aBio[7]  = '<p>\nJodi received her J.D. from Seattle University School of Law in 1996.  She received her B.A. in Economics from the University of Manitoba in 1992.  Jodi is a member of the Washington and New York Bars.\n</p>\n';
aBio[7] += '<p>\nPrior to joining Turner & Roulstone, Jodi worked in New York with GE Asset Management and with a well known investment fund boutique.  Jodi also worked with Arthur Andersen in the London office in the international corporation taxation group and was an adjunct law professor at Seattle University School of Law.\n</p>\n';
aBio[7] += '<p>\nJodi specialises in the structuring of alternative investment vehicles. ';
aBio[7] += 'She has counseled funds with a variety of different trading strategies and is familiar with all aspects relevant to new and existing funds, including formation and entity and jurisdiction choices. ';
aBio[7] += 'Jodi also has experience with venture capital and emerging companies. ';
aBio[7] += 'In addition to advising a number of prestigious hedge and private equity funds, Jodi\'s former clients include companies such as Starbucks and AT&amp;T Wireless.\n</p>\n';

/* Rowena Lawrence */
aBio[8]  = '<p>\nRowena obtained an honours degree in Philosophy from Cardiff University. She then completed her Post Graduate Diploma in Law and her Legal Practice Course at Guildford College of Law. She was admitted as a solicitor in England and Wales in March 2002 (not practising). She paralegalled at Lovells, then trained with and remained at Hammonds in London before joining Turner & Roulstone in January 2006 and being admitted as a Cayman attorney in 2006.\n</p>\n';
aBio[8] += '<p>\nRowena has a a whole range of experience in commercial litigation and insolvency. Her work includes complex fraud cases, property  and trust litigation, directorship and shareholder disputes, international asset tracing and contentious insolvency matters.\n</p>\n';
aBio[8] += '<p>\nRowena is a senior associate of the firm.';

/* Julie Abraham */
aBio[9]  = '<p>\nJulie obtained a joint common law and civil law degree with honours in 1999 at the University of Ottawa, Canada. She also obtained a bachelor of commerce with honours at the University of Ottawa. She was called to the Ontario Bar in 2001 and was admitted as an attorney in the Cayman Islands in 2006.\n</p>\n';
aBio[9] += '<p>\nJulie articled and practiced with a leading local business law firm in Ottawa where her practice included general corporate and commercial matters. She went on to practice with one of the leading Canadian business law firms, Blake, Cassels & Graydon LLP where her practice included acquisitions, reorganizations, financings and corporate governance. She practices in English and French and can communicate with clients in Arabic. \n</p>\n';
aBio[9] += '<p>\nJulie is an associate in our Corporate/Funds Group and our Capital Markets and Structured Finance Group.';

/* Karen Watton */
aBio[10]  = '<p>\nKaren Watton graduated with an honours degree in law from King\'s College, University of London in 1989. She qualified as an English barrister the following year, specialising in trusts and tax-planning from the outset.\n</p>\n';
aBio[10] += '<p>\nFollowing pupillage at 7 New Square, Lincoln\'s Inn and Pump Court Tax Chambers, she worked as in-house Counsel for Sun Life Assurance, part of the Axa financial services group. She then commenced her career in international private and commercial trusts working for Stephenson Harwood & Lo in Hong Kong; Rothschild Trust Guernsey Limited in the Channel Islands; and Walkers and Maples & Calder, both Cayman Islands law firms, having been called to the Cayman Bar in 1999.\n</p>\n';
aBio[10] += '<p>\nKaren\'s clients have included trust companies and high net worth individuals worldwide, and her work spanned the whole range of personal and corporate trust matters, including charitable and non-charitable purpose trusts (STAR trusts). She has been a speaker at international trust conferences and published articles on trust issues.';

/* Carla Lopez */
aBio[11]  = '<p>\nCarla is a University of Liverpool honours law graduate, having completed her studies at the Cayman Islands Law School which is an affiliate of the University of Liverpool of England in 1999.\n</p>\n';
aBio[11] += '<p>\nCarla is a well known young Caymanian. She brings to the firm over 15 years of legal experience, having begun her legal career with the law firm of Maples and Calder and was recently with Walkers SPV.\n</p>\n';
aBio[11] += '<p>\nCarla is a paralegal with the firm\'s Cayman Business Group which deals with all aspects of local business in the Cayman Islands including Licencing, Immigration and Employment issues and Property/Real Estate transactions.  The Cayman Business Group also advises on Probate and Administration of Estate matters as well as Cayman Islands private client and commercial trusts.';


/* Mark Adams */
aBio[12]  = '<p>\n\n</p>\n';



/* Gavin Lowe */
aBio[13]  = '<p>\nGavin graduated from the University of Edinburgh with a masters degree in Philosophy, and from the University of Sussex with a B.A. (Hons) in Philosphy, and completed his legal studies at the College of Law.  He was admitted as a solicitor in England and Wales in 1992 (does not practice as an English solicitor), as an attorney-at-law in the Cayman Islands in 2001 and as a legal practitioner of the Supreme Court of New South Wales, Australia in 2007 (does not practice as a solicitor or barrister in Australia).\n</p>\n';
aBio[13] += '<p>\nGavin trained with Cameron McKenna and practised in the banking group of DLA Piper and the corporate department at Simmons and Simmons.  He worked for Maples and Calder in the Cayman Islands and London from 2000 to 2005 and for Ogier in Jersey and London from 2005 to 2007.  Gavin has taught corporate law at Nottingham law school, and was a Visiting Fellow at the University of New South Wales.\n</p>\n';
aBio[13] += '<p>\nGavin specialises in funds (investment funds and private equity), and structured finance and capital market transactions.';


/* Simon Wetherell */
aBio[14]  = '<p>\nSimon graduated from Bond University, Australia with an LLB (Hons) and a Dip. Legal Ed. in 1998/99. He was admitted as a legal practitioner of the Supreme Court of New South Wales and the high Court of Australia in 1999 (not practising) and was admitted as a solicitor in England and Wales in 2002 (not practising). He completed his MBA in 2004.\n</p>\n';
aBio[14] += '<p>\nSimon first worked for the Sydney firm Clayton Utz, before moving to the Securitisation Group at Clifford Chance, London in 2001. While at Clifford Chance Simon was seconded to Deutsche Bank, London where he moved in 2003 and remained there until 2005 as a Vice President in the Trust & Securities Services Team doing Transaction Management. Simon relocated to Deutsche Bank Cayman in 2005 and headed up the Capital Markets Client Services Team while also continuing with Transaction Management and acting as Company Director on numerous SPV\'s, until he left in 2008.';
aBio[14] += '<p>\nSimon joined Turner & Roulstone in October 2008 and is admitted as an attorney-at-law in the Cayman Islands. Simon has broad experience in Securitisation, Structured Finance, Capital Markets and Funds (both Investment and Private Equity).';

/* Daniel Le Maistre */
aBio[15]  = '<p>\nHaving studied Law and Politics, Danny completed his Bar Vocational Course at Nottingham Law School and was called to the Bar of England and Wales in October 2001. One month prior to that date he joined the commercial litigation department of Bailhache Labesse in Jersey (a predecessor firm of Appleby). Danny re-qualified in Jersey and, having passed his local qualifying examinations, was called to the Jersey Bar as a Jersey Advocate in July 2004.\n</p>\n';
aBio[15] += '<p>\nDuring his time at Appleby Danny undertook a broad range of commercial and civil litigation work including trust litigation, contractual disputes, professional negligence and judicial review, advising both professional and individual clients. He was involved and appeared in some of the most complex and high profile cases before the Jersey Courts in recent years.\n</p>\n';
aBio[15] += '<p>\nDanny is a member of the Honourable Society of Lincoln\'s Inn and the Jersey Law Society.\n</p>\n';
aBio[15] += '<p>\nDanny joined Turner & Roulstone in January 2008 and has been admitted as a Cayman Attorney. He works in our commercial litigation group and is a senior associate of the firm.';


/* Mark Goodman */
aBio[16]  = '<p>\nAfter completing a Bachelor of Law Degree followed by a Diploma in Legal Practice at DeMontfort University, Leicester, England.  Mark trained with Russell, Jones & Walker a leading national firm in the UK.  He was admitted as a Solicitor in England and Wales in Sept 2004 (not practising), before moving to Picton Howell LLP a specialist litigation firm based in London to specialize in commercial litigation.\n</p>\n';
aBio[16] += '<p>\nMark has a wide range of experience advising in disputes affecting companies, including contractual and tort claims, internal disputes between directors and unfair prejudice proceedings, with experience of contentious insolvency matters, including directors disqualification proceedings.\n</p>\n';
aBio[16] += '<p>\nMark joined Turner & Roulstone in January 2008 and has been admitted as a Cayman Attorney and is a senior associate of the firm.';


/* Gary Butler */
aBio[17]  = '<p>\nGary Butler was admitted as a Scottish Solicitor in 2001 and as an English solicitor in 2004. He trained in Aberdeen, Scotland where he had a mixed practice before qualifying in England, following which his workload consisted of a mixture of general corporate and banking matters. Latterly Gary worked with Ogier in Jersey, Channel Islands gaining wide experience in the fields of both offshore corporate and trust related matters, where his clients comprised private banking organisations, professional trust companies and high net worth individuals.  In particular, his workload has included advising upon general corporate matters, acquisitions and disposals, re-structuring, joint ventures, limited partnerships, banking and security interests and also drafting and advising upon all types of trust documentation, including developing precedent documentation.\n</p>\n';




aImage[0] = 'Alanturn';
aImage[1] = 'Sharonro';
aImage[2] = 'alacra';
aImage[3] = 'Anita';
aImage[4] = 'anddun';
aImage[5] = 'keipar';
aImage[6] = 'no_image_default';
aImage[7] = 'DSC_0062_HS_WEB';
aImage[8] = 'ROWENA';
aImage[9] = '';
aImage[10] = '1351';
aImage[11] = 'CarlaLopez';
aImage[12] = '';
aImage[13] = 'Gavin';
aImage[14] = 'SimonWetherell';
aImage[15] = 'DanielLeMaistre';
aImage[16] = 'MarkGoodman';
aImage[17] = 'GaryButler';

// DEFINE FUNCTIONS

function fnQuery_Practice() {
var query = window.location.search.substring(1);
var parms = query.split('&');
for (i = 0; i < parms.length; i++) {
   var pos = parms[i].indexOf('=');
   if (pos > 0) {
      var key = parms[i].substring(0,pos);
      var val = parms[i].substring(pos+1);
      aPracticeCode[key] = val;
      }
   }
}

function fnQuery_Bio() {
var query = window.location.search.substring(1);
var parms = query.split('&');
for (i = 0; i < parms.length; i++) {
   var pos = parms[i].indexOf('=');
   if (pos > 0) {
      var key = parms[i].substring(0,pos);
      var val = parms[i].substring(pos+1);
      aBioCode[key] = val;
      }
   }
}

function fnReadQuery_Practice(x) {
  switch(x) {
    case 'af':
    aSelectedAtt = new Array('');
    sHeading = 'Asset Finance';
    break;
    
    case 'cb':
    aSelectedAtt = new Array('sr', 'cl');
    sHeading = 'Cayman Business';
    break;
    
    case 'fc':
    aSelectedAtt = new Array('ac','ad', 'gl', 'as');
    sHeading = 'Funds / Corporate';
    break;
    
    case 'in':
    aSelectedAtt = new Array('ac');
    sHeading = 'Insurance';
    break;
    
    case 'li':
    aSelectedAtt = new Array('at','ad', 'rl', 'dm', 'mg');
    sHeading = 'Litigation / Insolvency';
    break;
    
    case 'sf':
    aSelectedAtt = new Array('ac', 'as', 'gb');
    sHeading = 'Structured Finance';
    break;
    
    case 'tr':
    aSelectedAtt = new Array('kw','ad','ac','sr', 'as');
    sHeading = 'Trusts';
    break;
  }
}

function fnReadQuery_Bio(x) {
  switch (x) {
    case 'at':
    sAttorney = aAttorney[0];
    sTitle    = aTitle[0];
	sLocation = aLocation[0];
    sTel      = aTel[0];
    sFax      = aFax[0];
    sMobile   = '';
    sEmail    = aEmail[0];
    sBio      = aBio[0];
    sImage    = aImage[0];
    break;
    
    case 'sr':
    sAttorney = aAttorney[1];
    sTitle    = aTitle[1];
	sLocation = aLocation[0];
    sTel      = aTel[1];
    sFax      = aFax[0];
    sMobile   = '';
    sEmail    = aEmail[1];
    sBio      = aBio[1];
    sImage    = aImage[1];
    break;
    
    case 'ac':
    sAttorney = aAttorney[2];
    sTitle    = aTitle[2];
	sLocation = aLocation[0];
    sTel      = aTel[2];
    sFax      = aFax[0];
    sMobile   = '';
    sEmail    = aEmail[2];
    sBio      = aBio[2];
    sImage    = aImage[2];
    break;
	
	case 'as':
    sAttorney = aAttorney[3];
    sTitle    = aTitle[4];
	sLocation = aLocation[0];
    sTel      = aTel[3];
    sFax      = aFax[0];
    sMobile   = '';
    sEmail    = aEmail[3];
    sBio      = aBio[3];
    sImage    = aImage[3];
    break;
    
        
    case 'ad':
    sAttorney = aAttorney[4];
    sTitle    = aTitle[8];
	sLocation = aLocation[0];
    sTel      = aTel[4];
    sFax      = aFax[0];
    sMobile   = '';
    sEmail    = aEmail[4];
    sBio      = aBio[4];
    sImage    = aImage[4];
    break;
    
    case 'kp':
    sAttorney = aAttorney[5];
    sTitle    = aTitle[1];
	sLocation = aLocation[0];
    sTel      = aTel[5];
    sFax      = aFax[0];
    sMobile   = '';
    sEmail    = aEmail[5];
    sBio      = aBio[5];
    sImage    = aImage[5];
    break;
    
    case 'sw':
    sAttorney = aAttorney[6];
    sTitle    = aTitle[6];
	sLocation = aLocation[0];
    sTel      = aTel[6];
    sFax      = aFax[0];
    sMobile   = '';
    sEmail    = aEmail[6];
    sBio      = aBio[6];
    sImage    = aImage[6];
    break;
    
    case 'jh':
    sAttorney = aAttorney[7];
    sTitle    = aTitle[4];
	sLocation = aLocation[0];
    sTel      = aTel[7];
    sFax      = aFax[0];
    sMobile   = '';
    sEmail    = aEmail[7];
    sBio      = aBio[7];
    sImage    = aImage[7];
    break;
	
    case 'rl':
    sAttorney = aAttorney[8];
    sTitle    = aTitle[8];
	sLocation = aLocation[0];
    sTel      = aTel[8];
    sFax      = aFax[0];
    sMobile   = '';
    sEmail    = aEmail[8];
    sBio      = aBio[8];
    sImage    = aImage[8];
    break;

	
	
	case 'kw':
    sAttorney = aAttorney[10];
    sTitle    = aTitle[6];
	sLocation = aLocation[0];
    sTel      = aTel[10];
    sFax      = aFax[0];
    sMobile   = '';
    sEmail    = aEmail[10];
    sBio      = aBio[10];
    sImage    = aImage[10];
    break;
	
	case 'cl':
    sAttorney = aAttorney[11];
    sTitle    = aTitle[7];
	sLocation = aLocation[0];
    sTel      = aTel[11];
    sFax      = aFax[0];
    sMobile   = '';
    sEmail    = aEmail[11];
    sBio      = aBio[11];
    sImage    = aImage[11];
    break;
	
	
	
	case 'gl':
    sAttorney = aAttorney[13];
    sTitle    = aTitle[1];
	sLocation = aLocation[0];
    sTel      = aTel[13];
    sFax      = aFax[0];
    sMobile   = '';
    sEmail    = aEmail[13];
    sBio      = aBio[13];
    sImage    = aImage[13];
    break;
	
	
	case 'dm':
    sAttorney = aAttorney[15];
    sTitle    = aTitle[8];
	sLocation = aLocation[0];
    sTel      = aTel[15];
    sFax      = aFax[0];
    sMobile   = '';
    sEmail    = aEmail[15];
    sBio      = aBio[15];
    sImage    = aImage[15];
    break;
	
	case 'mg':
    sAttorney = aAttorney[16];
    sTitle    = aTitle[8];
	sLocation = aLocation[0];
    sTel      = aTel[16];
    sFax      = aFax[0];
    sMobile   = '';
    sEmail    = aEmail[16];
    sBio      = aBio[16];
    sImage    = aImage[16];
    break;
	
	case 'gb':
    sAttorney = aAttorney[17];
    sTitle    = aTitle[4];
	sLocation = aLocation[0];
    sTel      = aTel[17];
    sFax      = aFax[0];
    sMobile   = '';
    sEmail    = aEmail[17];
    sBio      = aBio[17];
    sImage    = aImage[17];
    break;
	
	case 'sw2':
    sAttorney = aAttorney[14];
    sTitle    = aTitle[8];
	sLocation = aLocation[0];
    sTel      = aTel[14];
    sFax      = aFax[0];
    sMobile   = '';
    sEmail    = aEmail[14];
    sBio      = aBio[14];
    sImage    = aImage[14];
    break;
  }
}

function fnPractices(x) {
  fnReadQuery_Practice(x);
  if (aPracticeCode['id'] != null) {
    document.write('<h1>\n');
    document.write(sHeading + '\n');
    document.write('</h1>\n');
    document.write('<ul>\n');
    for (i = 0; i < aSelectedAtt.length; i++) {
      fnReadQuery_Bio(aSelectedAtt[i]);
      document.write('<li>');
      document.write('<a href="bios.htm?id=' + aSelectedAtt[i] + '" target="_top" title="View ' + sAttorney + '\'s Biography">' + sAttorney + '</a>\n');
      document.write('</li>\n');
    }
    document.write('</ul>\n');
  }
  else {
    document.write('<h1>\n');
    document.write('Lawyers');
    document.write('</h1>\n');
    document.write('\n');
    document.write('<span><b>Turner &amp; Roulstone\'s </b>areas of practice are as follows:-</span>\n');
    document.write('<ul>\n');
    document.write('<li><a href="careers.htm?id=cb" target="_top" title="Cayman Business / Real Estate - Licencing - Immigration"     class="nav" id="go_business2"  >Cayman Business</a></li>\n');
    document.write('<li><a href="careers.htm?id=fc" target="_top" title="Corporate / Investment Funds"                                class="nav" id="go_corporate2" >Funds / Corporate</a></li>\n');
    document.write('<li><a href="careers.htm?id=in" target="_top" title="Insurance"                                                   class="nav" id="go_insurance2" >Insurance</a></li>\n');
    document.write('<li><a href="careers.htm?&id=li" target="_top" title="Commercial Litigation / Insolvency and Restructuring"        class="nav" id="go_litigation2">Litigation / Insolvency</a></li>\n');
    document.write('<li><a href="careers.htm?id=sf" target="_top" title="Capital Markets / Structured Finance"                        class="nav" id="go_capital2"   >Structured Finance</a></li>\n');
    document.write('<li><a href="careers.htm?id=tr" target="_top" title="Cayman Trusts / Commercial Trusts and Private Client Trusts" class="nav" id="go_trusts2"    >Trusts</a></li>\n');
    document.write('</ul>\n');
    document.write('<span>Please click on any of the above practice areas to obtain a list of lawyers practising in that area.</span>\n');
  }
}

function fnBios(x) {
  fnReadQuery_Bio(x);
  if (aBioCode['id'] != null) {
    document.write('<table class="bio">\n');
    /*
    document.write('<caption>\n');
    document.write('<b>' + sAttorney + '</b> &brvbar; ' + sTitle);
    document.write('</caption>\n');
    */
    document.write('<tr>\n');
    document.write('<td class="bio_image" rowspan="2">\n');
    document.write('<img src="../images/' + sImage + '.jpg" alt="' + sAttorney + '" title="' + sAttorney + '" class="bio" />');
    document.write('</td>\n');
    document.write('<td class="bio_title">\n');
    document.write('<b>' + sAttorney + '</b>');
    if (sTitle != aTitle[3] && sTitle != '') {
       document.write('&nbsp;|&nbsp;' + sTitle);
    }
	document.write('&nbsp;|&nbsp;' + sLocation);
    document.write('</td>\n');
    document.write('</tr>\n');
    document.write('<tr>\n');
    document.write('<td class="bio_info">\n');
    document.write('Telephone ' + sTel  + '\n<br />\n');
    document.write('Telefax ' + sFax  + '\n<br />\n');
    if (sMobile != '') {
      document.write('Mobile '  + sMobile + '\n<br />\n');
    }
    document.write('Email <a href="mailto:' + sEmail + sEmailExt + '">' + sEmail + sEmailExt + '</a>\n<br />\n');
    document.write('</td>\n');
    document.write('</tr>\n');
    document.write('</table>\n');
    document.write(sBio);
  }
  else {
    document.write('<span>\n');
    document.write('Please click the links below to view our biographies:-');
    document.write('</span>\n');
    document.write('<br /\n');
    document.write('<ul>\n');
    for (i = 0; i < aAttorney.length; i++) {
      fnReadQuery(aAttCode[i]);
      if (aAttorney[i] != undefined) {
        document.write('<li><a href="bios.htm?id=' + aAttCode[i] + '" target="_top" title="View ' + sAttorney + '\'s Biography">' + sAttorney + '</a></li>\n');
      }
    }
    document.write('</ul>\n');
  }
}

function fnContact(x) {
  fnReadQuery_Bio(x);
  document.write(sAttorney    + '\n<br />\n');
  document.write('Telephone ' + sTel    + '\n<br />\n');
  document.write('Telefax '   + sFax    + '\n<br />\n');
  if (sMobile != '') {
    document.write('Mobile '    + sMobile + '\n<br />\n');
  }
  document.write('Email <a href="mailto:' + sEmail + sEmailExt + '">' + sEmail + sEmailExt + '</a>\n<br />\n');
  document.write('<a href="bios.htm?id=' + x + '" target="_top" title="View ' + sAttorney + '\'s Biography">(Attorney Bio)' + '</a>\n');
}

function fnContact2(x) {
  fnReadQuery_Bio(x);
  document.write(sAttorney    + '\n<br />\n');
  document.write('Telephone ' + sTel    + '\n<br />\n');
  document.write('Telefax '   + sFax    + '\n<br />\n');
  if (sMobile != '') {
    document.write('Mobile '    + sMobile + '\n<br />\n');
  }
  document.write('Email <a href="mailto:' + sEmail + sEmailExt + '">' + sEmail + sEmailExt + '</a>\n<br />\n');
  document.write('<a href="bios.htm?id=' + x + '" target="_top" title="View ' + sAttorney + '\'s Biography">(Paralegal Bio)' + '</a>\n');
}


function fnContactNM(x) {
  fnReadQuery_Bio(x);
  document.write('<a href="bios.htm?id=' + x + '" target="_top" title="View ' + sAttorney + '\'s Biography">' + sAttorney + '</a>\n');
  
  
}

// CALL FUNCTIONS

