NavbarItems = Array(3);
NavbarItems[0] = Array(
 Array('2',1, Array(
   Array('1123',1, null,'Public-Private Partnerships ','/news/categoryfront.php/id/1123/Public-Private_Partnerships_.html','','',0),
   Array('1117',1, null,'Creative Industries: An Engine for Growth','/news/categoryfront.php/id/1117/Creative_Industries:_An_Engine_for_Growth.html','','',0),
   Array('1118',1, null,'Creative Business','/news/categoryfront.php/id/1118/Creative_Business.html','','',0),
   Array('1082',1, null,'Aid for Trade: Investing in People','/news/categoryfront.php/id/1082/Aid_for_Trade:_Investing_in_People.html','','',0),
   Array('1084',1, null,'Trading Stories','/news/categoryfront.php/id/1084/Trading_Stories.html','','',0),
   Array('1083',1, null,'Understanding the Global Financial Crisis','/news/categoryfront.php/id/1083/Understanding_the_Global_Financial_Crisis.html','','',0),
   Array('833',1, null,'','','','',0)),'LATEST ONLINE EDITIONS','/news/categoryfront.php/id/2/LATEST_ONLINE_EDITIONS.html','','',0),
 Array('432',1, Array(
   Array('563',1, Array(
     Array('677',1, null,'Overview','/news/categoryfront.php/id/677/Overview.html','','',0),
     Array('851',1, null,'Poor communities in trade','/news/categoryfront.php/id/851/Poor_communities_in_trade.html','','',0),
     Array('650',1, null,'Sectors with potential','/news/categoryfront.php/id/650/Sectors_with_potential.html','','',0),
     Array('853',1, null,'South-South trade','/news/categoryfront.php/id/853/South-South_trade.html','','',0),
     Array('821',1, null,'Ethical Trade','/news/categoryfront.php/id/821/Ethical_Trade.html','','',0)),'Reducing Poverty','/news/categoryfront.php/id/563/Reducing_Poverty.html','','',0),
   Array('869',1, Array(
     Array('952',1, null,'Aid for Trade','/news/categoryfront.php/id/952/Aid_for_Trade.html','','',0)),'Aid for Trade','/news/categoryfront.php/id/869/Aid_for_Trade.html','','',0),
   Array('475',1, Array(
     Array('671',1, null,'Overview','/news/categoryfront.php/id/671/Overview.html','','',0),
     Array('630',1, null,'Development Potential','/news/categoryfront.php/id/630/Development_Potential.html','','',0),
     Array('629',1, null,'A Role for Business','/news/categoryfront.php/id/629/A_Role_for_Business.html','','',0),
     Array('628',1, null,'Impact on Sectors','/news/categoryfront.php/id/628/Impact_on_Sectors.html','','',0),
     Array('627',1, null,'Trade Barriers','/news/categoryfront.php/id/627/Trade_Barriers.html','','',0)),'Trade Talks','/news/categoryfront.php/id/475/Trade_Talks.html','','',0),
   Array('686',1, Array(
     Array('710',1, null,'Overview','/news/categoryfront.php/id/710/Overview.html','','',0),
     Array('855',1, null,'From policy to practice','/news/categoryfront.php/id/855/From_policy_to_practice.html','','',0),
     Array('856',1, null,'New perspectives','/news/categoryfront.php/id/856/New_perspectives.html','','',0)),'Trade in Services','/news/categoryfront.php/id/686/Trade_in_Services.html','','',0),
   Array('517',1, Array(
     Array('676',1, null,'Overview','/news/categoryfront.php/id/676/Overview.html','','',0),
     Array('648',1, null,'Integrating Women','/news/categoryfront.php/id/648/Integrating_Women.html','','',0),
     Array('858',1, null,'Business cases','/news/categoryfront.php/id/858/Business_cases.html','','',0)),'Women in the Economy','/news/categoryfront.php/id/517/Women_in_the_Economy.html','','',0),
   Array('492',1, Array(
     Array('674',1, null,'Overview','/news/categoryfront.php/id/674/Overview.html','','',0),
     Array('642',1, null,'Market Opportunities','/news/categoryfront.php/id/642/Market_Opportunities.html','','',0),
     Array('641',1, null,'National Strategies','/news/categoryfront.php/id/641/National_Strategies.html','','',0),
     Array('860',1, null,'Using ICTs in business','/news/categoryfront.php/id/860/Using_ICTs_in_business.html','','',0),
     Array('638',1, null,'Information Resources','/news/categoryfront.php/id/638/Information_Resources.html','','',0)),'E-trade','/news/categoryfront.php/id/492/E-trade.html','','',0),
   Array('463',1, Array(
     Array('672',1, null,'Overview','/news/categoryfront.php/id/672/Overview.html','','',0),
     Array('633',1, null,'Model Contracts','/news/categoryfront.php/id/633/Model_Contracts.html','','',0),
     Array('634',1, null,'Changing Environment','/news/categoryfront.php/id/634/Changing_Environment.html','','',0),
     Array('632',1, null,'Dispute management','/news/categoryfront.php/id/632/Dispute_management.html','','',0),
     Array('631',1, null,'Information Resources','/news/categoryfront.php/id/631/Information_Resources.html','','',0)),'Trade Law','/news/categoryfront.php/id/463/Trade_Law.html','','',0),
   Array('848',1, Array(
     Array('870',1, null,'Public awareness','/news/categoryfront.php/id/870/Public_awareness.html','','',0),
     Array('871',1, null,'Branding','/news/categoryfront.php/id/871/Branding.html','','',0),
     Array('872',1, null,'Business role','/news/categoryfront.php/id/872/Business_role.html','','',0),
     Array('891',1, null,'Business Environment','/news/categoryfront.php/id/891/Business_Environment.html','','',0)),'Advocacy for trade','/news/categoryfront.php/id/848/Advocacy_for_trade.html','','',0),
   Array('849',1, Array(
     Array('863',1, null,'Working with NGOs','/news/categoryfront.php/id/863/Working_with_NGOs.html','','',0),
     Array('864',1, null,'Voices in trade policy','/news/categoryfront.php/id/864/Voices_in_trade_policy.html','','',0),
     Array('865',1, null,'Community development','/news/categoryfront.php/id/865/Community_development.html','','',0)),'NGOs','/news/categoryfront.php/id/849/NGOs.html','','',0),
   Array('438',1, Array(
     Array('675',1, null,'Overview','/news/categoryfront.php/id/675/Overview.html','','',0),
     Array('645',1, null,'Market Opportunities','/news/categoryfront.php/id/645/Market_Opportunities.html','','',0),
     Array('866',1, null,'Business cases','/news/categoryfront.php/id/866/Business_cases.html','','',0),
     Array('644',1, null,'Export Requirements','/news/categoryfront.php/id/644/Export_Requirements.html','','',0)),'Trade and Environment','/news/categoryfront.php/id/438/Trade_and_Environment.html','','',0),
   Array('850',1, Array(
     Array('867',1, null,'Managing competitiveness','/news/categoryfront.php/id/867/Managing_competitiveness.html','','',0),
     Array('868',1, null,'Trade promotion responses','/news/categoryfront.php/id/868/Trade_promotion_responses.html','','',0)),'Trade support','/news/categoryfront.php/id/850/Trade_support.html','','',0)),'Themes','/news/categoryfront.php/id/432/Themes.html','','',0),
 Array('40',1, Array(
   Array('41',1, Array(
     Array('667',1, null,'Overview','/news/categoryfront.php/id/667/Overview.html','','',0),
     Array('42',1, null,'Agro-based Products','/news/categoryfront.php/id/42/Agro-based_Products.html','','',0),
     Array('43',1, null,'Aid Supplies','/news/categoryfront.php/id/43/Aid_Supplies.html','','',0),
     Array('44',1, null,'Animals, By-products','/news/categoryfront.php/id/44/Animals,_By-products.html','','',0),
     Array('46',1, null,'Chemical/Pharmaceutical','/news/categoryfront.php/id/46/Chemical_Pharmaceutical.html','','',0),
     Array('45',1, null,'Creative Industries','/news/categoryfront.php/id/45/Creative_Industries.html','','',0),
     Array('47',1, null,'IT Products','/news/categoryfront.php/id/47/IT_Products.html','','',0),
     Array('478',1, null,'Leather','/news/categoryfront.php/id/478/Leather.html','','',0),
     Array('48',1, null,'Packaging','/news/categoryfront.php/id/48/Packaging.html','','',0),
     Array('50',1, null,'Textiles and Clothing','/news/categoryfront.php/id/50/Textiles_and_Clothing.html','','',0),
     Array('51',1, null,'Wood','/news/categoryfront.php/id/51/Wood.html','','',0),
     Array('847',1, null,'Coffee','/news/categoryfront.php/id/847/Coffee.html','','',0)),'Products','/news/categoryfront.php/id/41/Products.html','','',0),
   Array('52',1, Array(
     Array('668',1, null,'Overview','/news/categoryfront.php/id/668/Overview.html','','',0),
     Array('53',1, null,'Back Office Services','/news/categoryfront.php/id/53/Back_Office_Services.html','','',0),
     Array('54',1, null,'Tourism','/news/categoryfront.php/id/54/Tourism.html','','',0)),'Services','/news/categoryfront.php/id/52/Services.html','','',0),
   Array('69',1, Array(
     Array('669',1, null,'Overview','/news/categoryfront.php/id/669/Overview.html','','',0),
     Array('580',1, null,'Africa','/news/categoryfront.php/id/580/Africa.html','','',0),
     Array('79',1, null,'Australia','/news/categoryfront.php/id/79/Australia.html','','',0),
     Array('81',1, null,'Bangladesh','/news/categoryfront.php/id/81/Bangladesh.html','','',0),
     Array('82',1, null,'Barbados','/news/categoryfront.php/id/82/Barbados.html','','',0),
     Array('83',1, null,'Benin','/news/categoryfront.php/id/83/Benin.html','','',0),
     Array('84',1, null,'Bolivia','/news/categoryfront.php/id/84/Bolivia.html','','',0),
     Array('764',1, null,'Botswana','/news/categoryfront.php/id/764/Botswana.html','','',0),
     Array('85',1, null,'Brazil','/news/categoryfront.php/id/85/Brazil.html','','',0),
     Array('86',1, null,'Burkina Faso','/news/categoryfront.php/id/86/Burkina_Faso.html','','',0),
     Array('87',1, null,'Burundi','/news/categoryfront.php/id/87/Burundi.html','','',0),
     Array('817',1, null,'Cambodia','/news/categoryfront.php/id/817/Cambodia.html','','',0),
     Array('89',1, null,'Canada','/news/categoryfront.php/id/89/Canada.html','','',0),
     Array('90',1, null,'China','/news/categoryfront.php/id/90/China.html','','',0),
     Array('91',1, null,'Colombia','/news/categoryfront.php/id/91/Colombia.html','','',0),
     Array('836',1, null,'Côte d\'Ivoire','/news/categoryfront.php/id/836/C_F4te_d_Ivoire.html','','',0),
     Array('92',1, null,'Cuba','/news/categoryfront.php/id/92/Cuba.html','','',0),
     Array('94',1, null,'Ethiopia','/news/categoryfront.php/id/94/Ethiopia.html','','',0),
     Array('95',1, null,'European Union','/news/categoryfront.php/id/95/European_Union.html','','',0),
     Array('96',1, null,'Gambia','/news/categoryfront.php/id/96/Gambia.html','','',0),
     Array('98',1, null,'Guinea','/news/categoryfront.php/id/98/Guinea.html','','',0),
     Array('99',1, null,'Haiti','/news/categoryfront.php/id/99/Haiti.html','','',0),
     Array('100',1, null,'Hong Kong','/news/categoryfront.php/id/100/Hong_Kong.html','','',0),
     Array('102',1, null,'India','/news/categoryfront.php/id/102/India.html','','',0),
     Array('941',1, null,'Jamaica','/news/categoryfront.php/id/941/Jamaica.html','','',0),
     Array('103',1, null,'Japan','/news/categoryfront.php/id/103/Japan.html','','',0),
     Array('105',1, null,'Kenya','/news/categoryfront.php/id/105/Kenya.html','','',0),
     Array('106',1, null,'Korea','/news/categoryfront.php/id/106/Korea.html','','',0),
     Array('108',1, null,'LDCs','/news/categoryfront.php/id/108/LDCs.html','','',0),
     Array('940',1, null,'Liberia','/news/categoryfront.php/id/940/Liberia.html','','',0),
     Array('109',1, null,'Lithuania','/news/categoryfront.php/id/109/Lithuania.html','','',0),
     Array('110',1, null,'Madagascar','/news/categoryfront.php/id/110/Madagascar.html','','',0),
     Array('762',1, null,'Malaysia','/news/categoryfront.php/id/762/Malaysia.html','','',0),
     Array('111',1, null,'Mali','/news/categoryfront.php/id/111/Mali.html','','',0),
     Array('112',1, null,'Mauritania','/news/categoryfront.php/id/112/Mauritania.html','','',0),
     Array('582',1, null,'Mexico','/news/categoryfront.php/id/582/Mexico.html','','',0),
     Array('583',1, null,'Mongolia','/news/categoryfront.php/id/583/Mongolia.html','','',0),
     Array('113',1, null,'Morocco','/news/categoryfront.php/id/113/Morocco.html','','',0),
     Array('835',1, null,'Mozambique','/news/categoryfront.php/id/835/Mozambique.html','','',0),
     Array('115',1, null,'Nepal','/news/categoryfront.php/id/115/Nepal.html','','',0),
     Array('116',1, null,'Netherlands','/news/categoryfront.php/id/116/Netherlands.html','','',0),
     Array('117',1, null,'Oman','/news/categoryfront.php/id/117/Oman.html','','',0),
     Array('759',1, null,'Pakistan ','/news/categoryfront.php/id/759/Pakistan_.html','','',0),
     Array('118',1, null,'Peru','/news/categoryfront.php/id/118/Peru.html','','',0),
     Array('119',1, null,'Philippines','/news/categoryfront.php/id/119/Philippines.html','','',0),
     Array('120',1, null,'Portugal','/news/categoryfront.php/id/120/Portugal.html','','',0),
     Array('121',1, null,'Romania','/news/categoryfront.php/id/121/Romania.html','','',0),
     Array('622',1, null,'Rwanda','/news/categoryfront.php/id/622/Rwanda.html','','',0),
     Array('122',1, null,'Samoa','/news/categoryfront.php/id/122/Samoa.html','','',0),
     Array('123',1, null,'Senegal','/news/categoryfront.php/id/123/Senegal.html','','',0),
     Array('893',1, null,'Sierra Leone','/news/categoryfront.php/id/893/Sierra_Leone.html','','',0),
     Array('124',1, null,'Singapore','/news/categoryfront.php/id/124/Singapore.html','','',0),
     Array('126',1, null,'Slovenia','/news/categoryfront.php/id/126/Slovenia.html','','',0),
     Array('127',1, null,'South Africa','/news/categoryfront.php/id/127/South_Africa.html','','',0),
     Array('581',1, null,'Sri Lanka','/news/categoryfront.php/id/581/Sri_Lanka.html','','',0),
     Array('942',1, null,'Swaziland','/news/categoryfront.php/id/942/Swaziland.html','','',0),
     Array('128',1, null,'Tanzania','/news/categoryfront.php/id/128/Tanzania.html','','',0),
     Array('129',1, null,'Togo','/news/categoryfront.php/id/129/Togo.html','','',0),
     Array('130',1, null,'Trinidad & Tobago','/news/categoryfront.php/id/130/Trinidad___Tobago.html','','',0),
     Array('892',1, null,'Tunisia','/news/categoryfront.php/id/892/Tunisia.html','','',0),
     Array('552',1, null,'Turkey','/news/categoryfront.php/id/552/Turkey.html','','',0),
     Array('131',1, null,'Uganda','/news/categoryfront.php/id/131/Uganda.html','','',0),
     Array('763',1, null,'United Arab Emirates','/news/categoryfront.php/id/763/United_Arab_Emirates.html','','',0),
     Array('132',1, null,'United States','/news/categoryfront.php/id/132/United_States.html','','',0),
     Array('134',1, null,'Viet Nam','/news/categoryfront.php/id/134/Viet_Nam.html','','',0),
     Array('135',1, null,'Zambia','/news/categoryfront.php/id/135/Zambia.html','','',0),
     Array('136',1, null,'Zimbabwe','/news/categoryfront.php/id/136/Zimbabwe.html','','',0)),'Country/Region','/news/categoryfront.php/id/69/Country_Region.html','','',0)),'Sectors/Countries','/news/categoryfront.php/id/40/Sectors_Countries.html','','',0),
 Array('486',1, Array(
   Array('487',1, null,'ITC Overview','http://www.intracen.org/menus/itc.htm','','',0),
   Array('606',1, null,'Trade Development Cases','/news/categoryfront.php/id/579/4_2004.html','','',0),
   Array('71',1, null,'Services & Products','/news/categoryfront.php/id/71/Services___Products.html','','',0),
   Array('72',1, null,'Publications','/news/categoryfront.php/id/72/Publications.html','','',0),
   Array('488',1, null,'E-Shop','http://www.intracen.org/eshop/welcome.asp','','',0)),'About ITC','/news/categoryfront.php/id/486/About_ITC.html','','',0),
 Array('427',1, Array(
   Array('429',1, null,'Reprint Guidelines','/news/fullstory.php/aid/291.html#link','','',0),
   Array('428',1, null,'Info/Contact','/info/about_us.php','','',0),
   Array('430',1, null,'Print Subscriptions','subscription.php','','',0),
   Array('943',1, null,'Meet Our Readers','/news/categoryfront.php/id/943/Meet_Our_Readers.html','','',0),
   Array('950',1, null,'<i><b>Trade Forum </i></b>collections','/news/categoryfront.php/id/950/Trade_Forum_collections.html','','',0)),'About <i>Trade Forum</i>','/news/categoryfront.php/id/427/About_Trade_Forum.html','','',0),
 Array('659',1, Array(
   Array('1066',1, null,'2009','/news/categoryfront.php/id/1066/2009.html','','',0),
   Array('1013',1, null,'2008','/news/categoryfront.php/id/1013/2008.html','','',0),
   Array('888',1, null,'2007','/news/categoryfront.php/id/888/2007.html','','',0),
   Array('783',1, null,'2006','/news/categoryfront.php/id/783/2006.html','','',0),
   Array('666',1, null,'2005','/news/categoryfront.php/id/666/2005.html','','',0),
   Array('665',1, null,'2004','/news/categoryfront.php/id/665/2004.html','','',0),
   Array('664',1, null,'2003','/news/categoryfront.php/id/664/2003.html','','',0),
   Array('663',1, null,'2002','/news/categoryfront.php/id/663/2002.html','','',0),
   Array('662',1, null,'2001','/news/categoryfront.php/id/662/2001.html','','',0),
   Array('661',1, null,'2000','/news/categoryfront.php/id/661/2000.html','','',0),
   Array('660',1, null,'1999','/news/categoryfront.php/id/660/1999.html','','',0)),'Back Issues','/news/categoryfront.php/id/659/Back_Issues.html','','',0));
NavbarItems[1] = Array(
);
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 item_%%ID%%">%%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;"><img src="http://www.tradeforum.org/themes/itc2/bullet-open.gif" hspace=0 vspace=1 border=0>%%TEXT%%</a></li>',
   '<li class="navbar item haschild">%%PADLOCK%%<a class="button" href="%%LINK%%" onClick="toggleNavbarItem(\'%%ID%%\');return false;"><img src="http://www.tradeforum.org/themes/itc2/bullet-close.gif" hspace=0 vspace=1 border=0>%%TEXT%%</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;"><img src="http://www.tradeforum.org/themes/itc2/bullet-open.gif" hspace=0 vspace=1 border=0>%%TEXT%%</a></li>',
   '<li class="navbar item haschild">%%PADLOCK%%<a class="button" href="%%LINK%%" onClick="toggleNavbarItem(\'%%ID%%\');return false;"><img src="http://www.tradeforum.org/themes/itc2/bullet-close.gif" hspace=0 vspace=1 border=0>%%TEXT%%</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.tradeforum.org/pixmaps/padlock.gif" border="0" align="right" hspace="1" vspace="1">';
