NavbarItems = Array(3);
NavbarItems[0] = Array(
 Array('1',1, Array(
   Array('2',1, null,'Home','/','','',0),
   Array('738',1, null,'Editorial','/news/categoryfront.php/id/738/Editorial.html','','',0),
   Array('742',1, Array(
     Array('743',1, null,'The Bee side','/news/categoryfront.php/id/743/The_Bee_side.html','','',0),
     Array('744',1, null,'Fund manager focus','/news/categoryfront.php/id/744/Fund_manager_focus.html','','',0),
     Array('958',1, null,'European spotlight','/news/categoryfront.php/id/958/European_spotlight.html','','',0),
     Array('972',1, null,'Domestic perspective','/news/categoryfront.php/id/972/Domestic_perspective.html','','',0),
     Array('747',1, null,'Investment','/news/categoryfront.php/id/747/Investment.html','','',0),
     Array('748',1, null,'Investment spotlight','/news/categoryfront.php/id/748/Investment_spotlight.html','','',0),
     Array('1118',1, null,'Pensions Bill','/news/categoryfront.php/id/1118/Pensions_Bill.html','','',0),
     Array('750',1, null,'Pensions reform','/news/categoryfront.php/id/750/Pensions_reform.html','','',0),
     Array('1002',1, null,'Retirement','/news/categoryfront.php/id/1002/Retirement.html','','',0),
     Array('751',1, null,'Sharp end','/news/categoryfront.php/id/751/Sharp_end.html','','',0),
     Array('752',1, null,'Soapbox','/news/categoryfront.php/id/752/Soapbox.html','','',0),
     Array('1114',1, null,'Technology','/news/categoryfront.php/id/1114/Technology.html','','',0),
     Array('753',1, null,'The Interview','/news/categoryfront.php/id/753/The_Interview.html','','',0),
     Array('754',1, null,'Westminster','/news/categoryfront.php/id/754/Westminster.html','','',0),
     Array('1127',1, null,'Planning','/news/categoryfront.php/id/1127/Planning.html','','',0)),'Comment','/news/categoryfront.php/id/742/Comment.html','','',0),
   Array('755',1, Array(
     Array('1033',1, null,'Sipp/SSAS','/news/categoryfront.php/id/1033/Sipp_SSAS.html','','',0),
     Array('1034',1, null,'Annuities','/news/categoryfront.php/id/1034/Annuities.html','','',0),
     Array('1035',1, null,'Drawdown','/news/categoryfront.php/id/1035/Drawdown.html','','',0),
     Array('756',1, null,'Investment','/news/categoryfront.php/id/756/Investment.html','','',0),
     Array('1046',1, null,'Products and services','/news/categoryfront.php/id/1046/Products_and_services.html','','',0),
     Array('758',1, null,'Other surveys','/news/categoryfront.php/id/758/Other_surveys.html','','',0)),'Surveys','/news/categoryfront.php/id/755/Surveys.html','','',0),
   Array('759',1, Array(
     Array('838',1, null,'Defined contribution','/news/categoryfront.php/id/838/Defined_contribution.html','','',0),
     Array('839',1, null,'Governance','/news/categoryfront.php/id/839/Governance.html','','',0),
     Array('840',1, null,'Head to head','/news/categoryfront.php/id/840/Head_to_head.html','','',0),
     Array('841',1, null,'Industry issues','/news/categoryfront.php/id/841/Industry_issues.html','','',0),
     Array('842',1, null,'Investment strategy','/news/categoryfront.php/id/842/Investment_strategy.html','','',0),
     Array('844',1, null,'Pre-retirement','/news/categoryfront.php/id/844/Pre-retirement.html','','',0),
     Array('845',1, null,'Post-retirement','/news/categoryfront.php/id/845/Post-retirement.html','','',0),
     Array('846',1, null,'Regulation','/news/categoryfront.php/id/846/Regulation.html','','',0),
     Array('847',1, null,'Retirement planning','/news/categoryfront.php/id/847/Retirement_planning.html','','',0),
     Array('849',1, null,'Tax planning','/news/categoryfront.php/id/849/Tax_planning.html','','',0)),'Feature','/news/categoryfront.php/id/759/Feature.html','','',0),
   Array('760',1, null,'Roundtables','/news/categoryfront.php/id/760/Roundtables.html','','',0),
   Array('761',1, Array(
     Array('763',1, null,'PIPA','/news/categoryfront.php/id/763/PIPA.html','','',0),
     Array('762',1, null,'TAS','/news/categoryfront.php/id/762/TAS.html','','',0)),'Awards','/news/categoryfront.php/id/761/Awards.html','','',0),
   Array('1101',1, Array(
     Array('1104',1, null,'Editor\'s welcome','/news/categoryfront.php/id/1104/Editor_s_welcome.html','','',0),
     Array('1103',1, null,'Pre-retirement','/news/categoryfront.php/id/1103/Pre-retirement.html','','',0),
     Array('1102',1, null,'Post-retirement','/news/categoryfront.php/id/1102/Post-retirement.html','','',0)),'Guide to Retirement Income 2010','/news/categoryfront.php/id/1101/Guide_to_Retirement_Income_2010.html','','',0),
   Array('975',1, Array(
     Array('993',1, null,'Editor\'s welcome','/news/categoryfront.php/id/993/Editor_s_welcome.html','','',0),
     Array('977',1, null,'Pre-retirement','/news/categoryfront.php/id/977/Pre-retirement.html','','',0),
     Array('978',1, null,'Post-retirement','/news/categoryfront.php/id/978/Post-retirement.html','','',0)),'Guide to Retirement Income 2009','/news/categoryfront.php/id/975/Guide_to_Retirement_Income_2009.html','','',0),
   Array('974',1, Array(
     Array('1166',1, null,'Variable and third way','/news/categoryfront.php/id/1166/Variable_and_third_way.html','','',0)),'Supplements','/news/categoryfront.php/id/974/Supplements.html','','',0)),'','','','',0),
 Array('766',1, Array(
   Array('767',1, Array(
     Array('768',1, null,'Equities','/news/categoryfront.php/id/768/Equities.html','','',0),
     Array('769',1, null,'Fixed income','/news/categoryfront.php/id/769/Fixed_income.html','','',0),
     Array('770',1, null,'Cash','/news/categoryfront.php/id/770/Cash.html','','',0),
     Array('772',1, null,'Alternatives','/news/categoryfront.php/id/772/Alternatives.html','','',0),
     Array('773',1, null,'Other investment issues','/news/categoryfront.php/id/773/Other_investment_issues.html','','',0)),'Investment','/news/categoryfront.php/id/767/Investment.html','','',0),
   Array('774',1, null,'Investment strategies','/news/categoryfront.php/id/774/Investment_strategies.html','','',0),
   Array('967',1, null,'Book review','/news/categoryfront.php/id/967/Book_review.html','','',0),
   Array('775',1, null,'Letters','/news/categoryfront.php/id/775/Letters.html','','',0),
   Array('776',1, null,'People','/news/categoryfront.php/id/776/People.html','','',0),
   Array('780',1, Array(
     Array('781',1, null,'DWP','/news/categoryfront.php/id/781/DWP.html','','',0),
     Array('782',1, null,'FSA','/news/categoryfront.php/id/782/FSA.html','','',0),
     Array('785',1, null,'Ombudsman','/news/categoryfront.php/id/785/Ombudsman.html','','',0),
     Array('787',1, null,'Pensions reform','/news/categoryfront.php/id/787/Pensions_reform.html','','',0),
     Array('788',1, null,'Pensions Regulator','/news/categoryfront.php/id/788/Pensions_Regulator.html','','',0),
     Array('789',1, null,'Treasury','/news/categoryfront.php/id/789/Treasury.html','','',0),
     Array('790',1, null,'Other politics/policy issues','/news/categoryfront.php/id/790/Other_politics_policy_issues.html','','',0)),'Politics/policy','/news/categoryfront.php/id/780/Politics_policy.html','','',0),
   Array('791',1, Array(
     Array('792',1, null,'Pre-retirement','/news/categoryfront.php/id/792/Pre-retirement.html','','',0),
     Array('793',1, null,'Post-retirement','/news/categoryfront.php/id/793/Post-retirement.html','','',0),
     Array('794',1, null,'Investment ','/news/categoryfront.php/id/794/Investment_.html','','',0),
     Array('795',1, null,'Financial planning ','/news/categoryfront.php/id/795/Financial_planning_.html','','',0),
     Array('796',1, null,'Tax planning','/news/categoryfront.php/id/796/Tax_planning.html','','',0)),'Products','/news/categoryfront.php/id/791/Products.html','','',0)),'News & Analysis','/news/categoryfront.php/id/766/News___Analysis.html','','',0),
 Array('29',1, Array(
   Array('1119',1, Array(
     Array('1164',1, null,'September','/news/categoryfront.php/id/1164/September.html','','',0),
     Array('1155',1, null,'July','/news/categoryfront.php/id/1155/July.html','','',0),
     Array('1151',1, null,'June','/news/categoryfront.php/id/1151/June.html','','',0),
     Array('1144',1, null,'May','/news/categoryfront.php/id/1144/May.html','','',0),
     Array('1138',1, null,'April','/news/categoryfront.php/id/1138/April.html','','',0),
     Array('1126',1, null,'March','/news/categoryfront.php/id/1126/March.html','','',0),
     Array('1120',1, null,'February','/news/categoryfront.php/id/1120/February.html','','',0)),'2011','/news/categoryfront.php/id/1119/2011.html','','',0),
   Array('1023',1, Array(
     Array('1112',1, null,'December','/news/categoryfront.php/id/1112/December.html','','',0),
     Array('1092',1, null,'November','/news/categoryfront.php/id/1092/November.html','','',0),
     Array('1084',1, null,'October','/news/categoryfront.php/id/1084/October.html','','',0),
     Array('1076',1, null,'September','/news/categoryfront.php/id/1076/September.html','','',0),
     Array('1063',1, null,'July','/news/categoryfront.php/id/1063/July.html','','',0),
     Array('1056',1, null,'June','/news/categoryfront.php/id/1056/June.html','','',0),
     Array('1053',1, null,'May','/news/categoryfront.php/id/1053/May.html','','',0),
     Array('1044',1, null,'April','/news/categoryfront.php/id/1044/April.html','','',0),
     Array('1037',1, null,'March','/news/categoryfront.php/id/1037/March.html','','',0),
     Array('1024',1, null,'February','/news/categoryfront.php/id/1024/February.html','','',0)),'2010','/news/categoryfront.php/id/1023/2010.html','','',0),
   Array('911',1, Array(
     Array('1015',1, null,'December','/news/categoryfront.php/id/1015/December.html','','',0),
     Array('1006',1, null,'November','/news/categoryfront.php/id/1006/November.html','','',0),
     Array('994',1, null,'October','/news/categoryfront.php/id/994/October.html','','',0),
     Array('973',1, null,'September','/news/categoryfront.php/id/973/September.html','','',0),
     Array('962',1, null,'July','/news/categoryfront.php/id/962/July.html','','',0),
     Array('952',1, null,'June','/news/categoryfront.php/id/952/June.html','','',0),
     Array('940',1, null,'May','/news/categoryfront.php/id/940/May.html','','',0),
     Array('930',1, null,'April','/news/categoryfront.php/id/930/April.html','','',0),
     Array('921',1, null,'March','/news/categoryfront.php/id/921/March.html','','',0),
     Array('912',1, null,'February','/news/categoryfront.php/id/912/February.html','','',0)),'2009','/news/categoryfront.php/id/911/2009.html','','',0),
   Array('694',1, Array(
     Array('891',1, null,'December','/news/categoryfront.php/id/891/December.html','','',1),
     Array('875',1, null,'November','/news/categoryfront.php/id/875/November.html','','',1),
     Array('863',1, null,'October','/news/categoryfront.php/id/863/October.html','','',1),
     Array('852',1, null,'September','/news/categoryfront.php/id/852/September.html','','',1),
     Array('808',1, null,'August','/news/categoryfront.php/id/808/August.html','','',1),
     Array('803',1, null,'July','/news/categoryfront.php/id/803/July.html','','',1),
     Array('730',1, null,'June','/news/categoryfront.php/id/730/June.html','','',1),
     Array('721',1, null,'May','/news/categoryfront.php/id/721/May.html','','',1),
     Array('713',1, null,'April','/news/categoryfront.php/id/713/April.html','','',1),
     Array('709',1, null,'March','/news/categoryfront.php/id/709/March.html','','',1),
     Array('701',1, null,'February','/news/categoryfront.php/id/701/February.html','','',1),
     Array('695',1, null,'January','/news/categoryfront.php/id/695/January.html','','',1)),'2008','/news/categoryfront.php/id/694/2008.html','','',1),
   Array('549',1, Array(
     Array('687',1, null,'December','/news/categoryfront.php/id/687/December.html','','',1),
     Array('682',1, null,'November','/news/categoryfront.php/id/682/November.html','','',1),
     Array('674',1, null,'October','/news/categoryfront.php/id/674/October.html','','',1),
     Array('673',1, null,'September','/news/categoryfront.php/id/673/September.html','','',1),
     Array('661',1, null,'August','/news/categoryfront.php/id/661/August.html','','',1),
     Array('650',1, null,'July','/news/categoryfront.php/id/650/July.html','','',1),
     Array('641',1, null,'June','/news/categoryfront.php/id/641/June.html','','',1),
     Array('632',1, null,'May','/news/categoryfront.php/id/632/May.html','','',1),
     Array('625',1, null,'April','/news/categoryfront.php/id/625/April.html','','',1),
     Array('614',1, null,'March','/news/categoryfront.php/id/614/March.html','','',1),
     Array('613',1, null,'February','/news/categoryfront.php/id/613/February.html','','',1),
     Array('550',1, null,'January','/news/categoryfront.php/id/550/January.html','','',1)),'2007','/news/categoryfront.php/id/549/2007.html','','',1),
   Array('464',1, Array(
     Array('543',1, null,'December','/news/categoryfront.php/id/543/December.html','','',1),
     Array('536',1, null,'November','/news/categoryfront.php/id/536/November.html','','',1),
     Array('531',1, null,'October','/news/categoryfront.php/id/531/October.html','','',1),
     Array('524',1, null,'September','/news/categoryfront.php/id/524/September.html','','',1),
     Array('523',1, null,'August','/news/categoryfront.php/id/523/August.html','','',1),
     Array('514',1, null,'July','/news/categoryfront.php/id/514/July.html','','',1),
     Array('511',1, null,'June','/news/categoryfront.php/id/511/June.html','','',1),
     Array('499',1, null,'May','/news/categoryfront.php/id/499/May.html','','',1),
     Array('498',1, null,'April','/news/categoryfront.php/id/498/April.html','','',1),
     Array('485',1, null,'March','/news/categoryfront.php/id/485/March.html','','',1),
     Array('482',1, null,'February','/news/categoryfront.php/id/482/February.html','','',1),
     Array('465',1, null,'January','/news/categoryfront.php/id/465/January.html','','',1)),'2006','/news/categoryfront.php/id/464/2006.html','','',1),
   Array('354',1, Array(
     Array('456',1, null,'December','/news/categoryfront.php/id/456/December.html','','',1),
     Array('447',1, null,'November','/news/categoryfront.php/id/447/November.html','','',1),
     Array('437',1, null,'October','/news/categoryfront.php/id/437/October.html','','',1),
     Array('431',1, null,'September','/news/categoryfront.php/id/431/September.html','','',1),
     Array('415',1, null,'August','/news/categoryfront.php/id/415/August.html','','',1),
     Array('406',1, null,'July','/news/categoryfront.php/id/406/July.html','','',1),
     Array('405',1, null,'June','/news/categoryfront.php/id/405/June.html','','',1),
     Array('381',1, null,'May','/news/categoryfront.php/id/381/May.html','','',1),
     Array('382',1, null,'April','/news/categoryfront.php/id/382/April.html','','',1),
     Array('365',1, null,'March','/news/categoryfront.php/id/365/March.html','','',1),
     Array('357',1, null,'February','/news/categoryfront.php/id/357/February.html','','',1),
     Array('355',1, null,'January','/news/categoryfront.php/id/355/January.html','','',1)),'2005','/news/categoryfront.php/id/354/2005.html','','',1),
   Array('30',1, Array(
     Array('281',1, null,'December','/news/categoryfront.php/id/281/December.html','','',1),
     Array('280',1, null,'November','/news/categoryfront.php/id/280/November.html','','',1),
     Array('279',1, null,'October','/news/categoryfront.php/id/279/October.html','','',1),
     Array('278',1, null,'September','/news/categoryfront.php/id/278/September.html','','',1),
     Array('206',1, null,'August','/news/categoryfront.php/id/206/August.html','','',1),
     Array('205',1, null,'July','/news/categoryfront.php/id/205/July.html','','',1),
     Array('204',1, null,'June','/news/categoryfront.php/id/204/June.html','','',1),
     Array('203',1, null,'May','/news/categoryfront.php/id/203/May.html','','',1),
     Array('202',1, null,'April','/news/categoryfront.php/id/202/April.html','','',1),
     Array('31',1, null,'March','/news/categoryfront.php/id/31/March.html','','',1),
     Array('33',1, null,'February','/news/categoryfront.php/id/33/February.html','','',1),
     Array('34',1, null,'January','/news/categoryfront.php/id/34/January.html','','',1)),'2004','/news/categoryfront.php/id/30/2004.html','','',1),
   Array('35',1, Array(
     Array('36',1, null,'December','/news/categoryfront.php/id/36/December.html','','',1),
     Array('37',1, null,'November','/news/categoryfront.php/id/37/November.html','','',1),
     Array('38',1, null,'October','/news/categoryfront.php/id/38/October.html','','',1),
     Array('39',1, null,'September','/news/categoryfront.php/id/39/September.html','','',1),
     Array('40',1, null,'August','/news/categoryfront.php/id/40/August.html','','',1),
     Array('41',1, null,'July','/news/categoryfront.php/id/41/July.html','','',1),
     Array('42',1, null,'June','/news/categoryfront.php/id/42/June.html','','',1),
     Array('43',1, null,'May','/news/categoryfront.php/id/43/May.html','','',1),
     Array('44',1, null,'April','/news/categoryfront.php/id/44/April.html','','',1),
     Array('45',1, null,'March','/news/categoryfront.php/id/45/March.html','','',1),
     Array('46',1, null,'February','/news/categoryfront.php/id/46/February.html','','',1),
     Array('47',1, null,'January','/news/categoryfront.php/id/47/January.html','','',1)),'2003','/news/categoryfront.php/id/35/2003.html','','',1)),'Back issues','/news/categoryfront.php/id/29/Back_issues.html','','',0));
NavbarItems[1] = Array(
 Array('426',1, Array(
   Array('7',1, null,'About us','/info/about_us.php','','',0),
   Array('8',1, null,'Contact us','/info/contact_us.php','','',0),
   Array('809',1, null,'Magazine','/news/categoryfront.php/id/809/Magazine.html','','',0),
   Array('559',1, null,'Events','http://www.ftglobalevents.com/eventspensions.aspx?m_pid=0&m_nid=11425 \"target=\"_blank\"','','',0),
   Array('810',1, null,'Awards','/news/categoryfront.php/id/810/Awards.html','','',0),
   Array('811',1, null,'schemeXpert.com','https://www.schemexpert.com/','','',0),
   Array('560',1, null,'Research','https://www.schemexpert.com/Research','','',0),
   Array('681',1, null,'RSS','http://www.pensions-management.co.uk/rssfeeds.php','','',0),
   Array('961',1, null,'Audio & Video','http://media.pensions-management.com','','',0),
   Array('960',1, null,'FIND AN IFA','http://ifafinder.pensions-management.co.uk','','',0)),'','','','',0));
NavbarItems[2] = Array(
);
function getPageItem(itemid) {
    if (document.getElementById) {
    	return document.getElementById(itemid);
    } else if (document.all) {
        return document.all[itemid];
    } else if (document.layers) {
    	return eval('document.'+itemid);
    }
    return null;
}

function writePageItem(itemid,html) {
    var lyr = null;
    if (document.getElementById) {
    	lyr = document.getElementById(itemid);
	lyr.innerHTML = html;
    } else if (document.all) {
        lyr = document.all[itemid];
	lyr.innerHTML = html;
    } else if (document.layers) {
    	// FIXME: ns4 compat
    }
}

function renderNavbarItem(container, level, item) {
    var html = "" + NavbarTemplates[container][level][1];

    var ihtm = NavbarTemplates[container][level][4];
    if (item[3] == '') { 
       // is empty
       ihtm = NavbarTemplates[container][level][2]; 
    } else if (item[5] != '') {  
       // has image
       ihtm = NavbarTemplates[container][level][3]; 
    }
    if (item[2] && (NavbarTemplates[container][level].length > 5)) { 
        // has children
    	if (item[1]) {  
	    // is open
      	    ihtm = NavbarTemplates[container][level][5];
    	} else {  
	    // is closed
      	    ihtm = NavbarTemplates[container][level][6];
    	}
    }

    html = html.replace(/%%ITEM%%/g, ihtm);

    html = html.replace(/%%ID%%/g, item[0]);
    html = html.replace(/%%TEXT%%/g, item[3]);
    html = html.replace(/%%LINK%%/g, item[4]);
    html = html.replace(/%%IMG_URL%%/g, item[5]);
    if (item[7] && PadlockTemplate) {
      html = html.replace(/%%PADLOCK%%/g, PadlockTemplate);
    } else {
      html = html.replace(/%%PADLOCK%%/g, '');
    }
    if (item[2] && item[1]) {  
	html = html.replace(/%%SUB%%/g, renderNavbarLevel(container, level+1, item[2]));
    } else {
	html = html.replace(/%%SUB%%/g, '');
    }
    return html;
} 

function renderNavbarLevel(container, level, items) {
    var html = NavbarTemplates[container][level][0];
    var buf = '';
    for(var i=0;i< items.length; i++) {
    	buf += renderNavbarItem(container, level, items[i]);
    }
    html = html.replace(/%%ITEMS%%/g, buf);
    return html;
}

function renderLeftNavbar() {
    return renderNavbarLevel(0,0,NavbarItems[0]);
}

function renderTopNavbar() {
    return renderNavbarLevel(1,0,NavbarItems[1]);
}

function renderRightNavbar() {
    return renderNavbarLevel(2,0,NavbarItems[2]);
}

// behavior specific

function getCategoryId() {
    var loc = "";
    loc += document.location; 
    loc = loc.replace(/^.*\/categoryfront\.php\/id\//,'');
    loc = loc.replace(/[^0-9].*$/,'');
    return loc;
}

function initNavbar() {
    var id = getCategoryId();
    for(var c=0; c< NavbarItems.length; c++) {
      for(var i=0;i< NavbarItems[c].length; i++) {
    	var items = NavbarItems[c][i][2];
    	if (items) {
    	    for(var j=0;j< items.length; j++) {
	      NavbarItems[c][i][2][j][1] = 0;
	      var jtems = items[j][2];
	      if (jtems && id!="") {
	        if (items[j][0] == id) { NavbarItems[c][i][2][j][1] = 1; }
	        else for (var k=0; k< jtems.length; k++) {
		  if (jtems[k][0] == id) { NavbarItems[c][i][2][j][1] = 1; }
		}
	      }
	    }
	}
      }
    }
}

function toggleNavbarItem(id) {
    for(var c=0; c< NavbarItems.length; c++) {
      for(var i=0;i< NavbarItems[c].length; i++) {
    	var items = NavbarItems[c][i][2];
    	if (items) {
    	    for(var j=0;j< items.length; j++) {
    	      if (items[j][0]==id) {
	    	NavbarItems[c][i][2][j][1] = 1 - items[j][1];
		var navdiv = getPageItem('navbar_'+c);
		if (navdiv) {
		    writePageItem('navbar_'+c,renderNavbarLevel(c,0,NavbarItems[c]));
		}
	      }
	    }
	}
      }
    }
    return 0;
}

function displaySWF(url,ver,w,h) {
  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+ver+'" width="'+w+'" height="'+h+'"><param name="movie" value="'+url+'"><param name="quality" value="high"><embed src="'+url+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'"></embed></object>');
}

var toid;
function toggleDiv(id) { var d = getPageItem(id); if (d) { if (d.style.visibility == 'hidden') d.style.visibility = 'visible'; else d.style.visibility = 'hidden'; } }
function showDiv(id) { var d=getPageItem(id); if (d) { d.style.visibility='visible'; } }
function hideDiv(id) { var d=getPageItem(id); if (d) { d.style.visibility='hidden'; } }

// template specific
// Array( 'main', 'item_main', 'empty_item', 'imgonly_item', 'nosub_item', 'sub_open_item', 'sub_close_item')
NavbarTemplates = Array(
 Array( 
   Array('%%ITEMS%%', 
   '%%ITEM%%<ul class="navbar">%%SUB%%</ul>',
   '',
   '<div class="header navbar visual"><a href="%%LINK%%"><img src="%%IMG_URL%%" alt="" border="0"></a></div>',
   '<div class="header navbar">%%TEXT%%</div>'),

   Array('%%ITEMS%%', 
   '%%ITEM%%%%SUB%%',
   '',
   '<li class="navbar item">%%PADLOCK%%<a class="button" href="%%LINK%%"><img src="%%IMG_URL%%" alt="" border="0"></a></li>',
   '<li class="navbar item">%%PADLOCK%%<a class="button" href="%%LINK%%">%%TEXT%%</a></li>',
   '<li class="navbar item haschild">%%PADLOCK%%<a class="button" href="%%LINK%%" onClick="toggleNavbarItem(\'%%ID%%\');return false;">%%TEXT%% &nbsp;<img src="http://www.pensions-management.co.uk/images/up.gif" hspace=0 vspace=1 border=0></a></li>',
   '<li class="navbar item haschild">%%PADLOCK%%<a class="button" href="%%LINK%%" onClick="toggleNavbarItem(\'%%ID%%\');return false;">%%TEXT%% &nbsp;<img src="http://www.pensions-management.co.uk/images/down.gif" hspace=0 vspace=1 border=0></a></li>'),

   Array('%%ITEMS%%', 
   '<li class="navbar item sub">%%PADLOCK%%%%ITEM%%</li>',
   '',
   '<a class="button" href="%%LINK%%"><img src="%%IMG_URL%%" alt="" border="0"></a>',   
   '<a class="button" href="%%LINK%%">%%TEXT%%</a>')
 ),
 Array(),
 Array( 
    Array('%%ITEMS%%', 
   '%%ITEM%%<ul class="navbar">%%SUB%%</ul>',
   '',
   '<div class="header navbar visual"><a href="%%LINK%%"><img src="%%IMG_URL%%" alt="" border="0"></a></div>',
   '<div class="header navbar">%%TEXT%%</div>'),

   Array('%%ITEMS%%', 
   '%%ITEM%%%%SUB%%',
   '',
   '<li class="navbar item">%%PADLOCK%%<a class="button" href="%%LINK%%"><img src="%%IMG_URL%%" alt="" border="0"></a></li>',
   '<li class="navbar item">%%PADLOCK%%<a class="button" href="%%LINK%%">%%TEXT%%</a></li>',
   '<li class="navbar item haschild">%%PADLOCK%%<a class="button" href="%%LINK%%" onClick="toggleNavbarItem(\'%%ID%%\');return false;">%%TEXT%%<img src="http://www.pensions-management.co.uk/pixmaps/up.gif" hspace=0 vspace=1 border=0></a></li>',
   '<li class="navbar item haschild">%%PADLOCK%%<a class="button" href="%%LINK%%" onClick="toggleNavbarItem(\'%%ID%%\');return false;">%%TEXT%%<img src="http://www.pensions-management.co.uk/pixmaps/down.gif" hspace=0 vspace=1 border=0></a></li>'),

   Array('%%ITEMS%%', 
   '<li class="navbar item sub">%%PADLOCK%%%%ITEM%%</li>',
   '',
   '<a class="button" href="%%LINK%%"><img src="%%IMG_URL%%" alt="" border="0"></a>',   
   '<a class="button" href="%%LINK%%">%%TEXT%%</a>')
 )
);

PadlockTemplate='<img src="http://www.pensions-management.co.uk/images/padlock.gif" border="0" align="right" hspace="1" vspace="1">';

