NavbarItems = Array(3);
NavbarItems[0] = Array(
 Array('3',1, Array(
   Array('138',1, null,'HOME','/news/categoryfront.php/id/138/HOME.html','','',0),
   Array('11',1, null,'BREAKING NEWS','/news/categoryfront.php/id/11/BREAKING_NEWS.html','','',0),
   Array('206',1, null,'Special Report','/news/categoryfront.php/id/206/Special_Report.html','','',0),
   Array('26',1, null,'EDITORIAL COMMENT','/news/categoryfront.php/id/26/EDITORIAL_COMMENT.html','','',0),
   Array('27',1, Array(
     Array('28',1, null,'MDF','/news/categoryfront.php/id/28/MDF.html','','',0),
     Array('29',1, null,'PARTICLEBOARD','/news/categoryfront.php/id/29/PARTICLEBOARD.html','','',0),
     Array('30',1, null,'OSB','/news/categoryfront.php/id/30/OSB.html','','',0)),'PANEL INDUSTRY SURVEYS','/news/categoryfront.php/id/27/PANEL_INDUSTRY_SURVEYS.html','','',0),
   Array('19',1, Array(
     Array('20',1, null,'THAILAND','/news/categoryfront.php/id/20/THAILAND.html','','',0),
     Array('21',1, null,'INDONESIA','/news/categoryfront.php/id/21/INDONESIA.html','','',0),
     Array('22',1, null,'MALAYSIA','/news/categoryfront.php/id/22/MALAYSIA.html','','',0),
     Array('31',1, null,'CHINA','/news/categoryfront.php/id/31/CHINA.html','','',0),
     Array('32',1, null,'BRAZIL','/news/categoryfront.php/id/32/BRAZIL.html','','',0),
     Array('33',1, null,'CHILE','/news/categoryfront.php/id/33/CHILE.html','','',0),
     Array('35',1, null,'OTHER LATIN AMERICA','/news/categoryfront.php/id/35/OTHER_LATIN_AMERICA.html','','',0),
     Array('36',1, null,'GERMANY','/news/categoryfront.php/id/36/GERMANY.html','','',0),
     Array('37',1, null,'ITALY','/news/categoryfront.php/id/37/ITALY.html','','',0),
     Array('38',1, null,'SCANDINAVIA','/news/categoryfront.php/id/38/SCANDINAVIA.html','','',0),
     Array('39',1, null,'OTHER EUROPE','/news/categoryfront.php/id/39/OTHER_EUROPE.html','','',0),
     Array('111',1, null,'NORTH AMERICA','/news/categoryfront.php/id/111/NORTH_AMERICA.html','','',0),
     Array('152',1, null,'EUROPE','/news/categoryfront.php/id/152/EUROPE.html','','',0),
     Array('156',1, null,'LATVIA','/news/categoryfront.php/id/156/LATVIA.html','','',0),
     Array('160',1, null,'IRAN','/news/categoryfront.php/id/160/IRAN.html','','',0),
     Array('161',1, null,'SWITZERLAND','/news/categoryfront.php/id/161/SWITZERLAND.html','','',0),
     Array('171',1, null,'LATIN AMERICA','/news/categoryfront.php/id/171/LATIN_AMERICA.html','','',0),
     Array('170',1, null,'AUSTRIA','/news/categoryfront.php/id/170/AUSTRIA.html','','',0),
     Array('172',1, null,'AUSTRIA','/news/categoryfront.php/id/172/AUSTRIA.html','','',0),
     Array('173',1, null,'GERMAN SPEAKING COUNTRIES','/news/categoryfront.php/id/173/GERMAN_SPEAKING_COUNTRIES.html','','',0),
     Array('187',1, null,'SPAIN','/news/categoryfront.php/id/187/SPAIN.html','','',0),
     Array('188',1, null,'RUSSIA','/news/categoryfront.php/id/188/RUSSIA.html','','',0),
     Array('196',1, null,'UNITED KINGDOM','/news/categoryfront.php/id/196/UNITED_KINGDOM.html','','',0)),'COUNTRY FOCUS','/news/categoryfront.php/id/19/COUNTRY_FOCUS.html','','',0),
   Array('40',1, Array(
     Array('41',1, null,'EPF AGM','/news/categoryfront.php/id/41/EPF_AGM.html','','',0),
     Array('42',1, null,'IPPS','/news/categoryfront.php/id/42/IPPS.html','','',0),
     Array('43',1, null,'FPS','/news/categoryfront.php/id/43/FPS.html','','',0),
     Array('44',1, null,'EUROPEAN SYMPOSIUM (EPF/WKI)','/news/categoryfront.php/id/44/EUROPEAN_SYMPOSIUM__EPF_WKI_.html','','',0),
     Array('45',1, null,'APA','/news/categoryfront.php/id/45/APA.html','','',0),
     Array('47',1, null,'IWCS, SEATTLE','/news/categoryfront.php/id/47/IWCS,_SEATTLE.html','','',0),
     Array('48',1, null,'OTHER','/news/categoryfront.php/id/48/OTHER.html','','',0),
     Array('157',1, null,'SYMPOSIUM REPORT','/news/categoryfront.php/id/157/SYMPOSIUM_REPORT.html','','',0)),'CONFERENCE REPORTS','/news/categoryfront.php/id/40/CONFERENCE_REPORTS.html','','',0),
   Array('189',1, Array(
     Array('190',1, null,'WoodMac China','/news/categoryfront.php/id/190/WoodMac_China.html','','',0),
     Array('191',1, null,'INTERZUM Germany','/news/categoryfront.php/id/191/INTERZUM_Germany.html','','',0),
     Array('192',1, null,'LIGNA Germany','/news/categoryfront.php/id/192/LIGNA_Germany.html','','',0)),'EXHIBITION PREVIEWS','/news/categoryfront.php/id/189/EXHIBITION_PREVIEWS.html','','',0),
   Array('55',1, Array(
     Array('56',1, null,'WMF BEIJING','/news/categoryfront.php/id/56/WMF_BEIJING.html','','',0),
     Array('57',1, null,'LIGNA, HANNOVER','/news/categoryfront.php/id/57/LIGNA,_HANNOVER.html','','',0),
     Array('58',1, null,'ZOW','/news/categoryfront.php/id/58/ZOW.html','','',0),
     Array('59',1, null,'XYLEXPO, MILAN','/news/categoryfront.php/id/59/XYLEXPO,_MILAN.html','','',0),
     Array('60',1, null,'IWF, ATLANTA','/news/categoryfront.php/id/60/IWF,_ATLANTA.html','','',0),
     Array('193',1, null,'WoodMac China','/news/categoryfront.php/id/193/WoodMac_China.html','','',0),
     Array('195',1, null,'LIGNA','/news/categoryfront.php/id/195/LIGNA.html','','',0),
     Array('198',1, null,'INTERZUM Germany','/news/categoryfront.php/id/198/INTERZUM_Germany.html','','',0)),'EXHIBITION REVIEWS','/news/categoryfront.php/id/55/EXHIBITION_REVIEWS.html','','',0),
   Array('62',1, null,'PANEL PERSPECTIVES','/news/categoryfront.php/id/62/PANEL_PERSPECTIVES.html','','',0),
   Array('64',1, null,'TECHNICALLY SPEAKING','/news/categoryfront.php/id/64/TECHNICALLY_SPEAKING.html','','',0),
   Array('97',1, null,'FEATURES','/news/categoryfront.php/id/97/FEATURES.html','','',0),
   Array('106',1, null,'SURFACING','/news/categoryfront.php/id/106/SURFACING.html','','',0),
   Array('128',1, null,'BUYERS GUIDE','http://wbpi.wood-based-panels-buyers-guide.com/BuyersGuide','','',0),
   Array('183',1, Array(
     Array('184',1, null,'MEDIA PACK','http://www.wbpionline.com/files/WBPiMedia2011.pdf','','',0),
     Array('186',1, null,'EDITORIAL PROGRAMME','http://www.wbpionline.com/files/WBPiEd2011.pdf','','',0)),'MEDIA INFORMATION','','','',0),
   Array('194',1, null,'SURFACES, DESIGN & TECHNOLOGY','/news/categoryfront.php/id/194/SURFACES,_DESIGN___TECHNOLOGY.html','','',0)),'Sections','/news/categoryfront.php/id/3/Sections.html','','',0),
 Array('104',1, Array(
   Array('85',1, Array(
     Array('87',1, null,'August to September 2000','/news/categoryfront.php/id/87/August_to_September_2000.html','','',0),
     Array('88',1, null,'December 2000 to January 2001','/news/categoryfront.php/id/88/December_2000_to_January_2001.html','','',0)),'2000','/news/categoryfront.php/id/85/2000.html','','',0),
   Array('84',1, Array(
     Array('89',1, null,'April to May 2001','/news/categoryfront.php/id/89/April_to_May_2001.html','','',0),
     Array('90',1, null,'August to September 2001','/news/categoryfront.php/id/90/August_to_September_2001.html','','',0),
     Array('91',1, null,'December 2001 to January 2002','/news/categoryfront.php/id/91/December_2001_to_January_2002.html','','',0)),'2001','/news/categoryfront.php/id/84/2001.html','','',0),
   Array('83',1, Array(
     Array('92',1, null,'August to September 2002','/news/categoryfront.php/id/92/August_to_September_2002.html','','',0),
     Array('139',1, null,'October to November 2002','/news/categoryfront.php/id/139/October_to_November_2002.html','','',0),
     Array('93',1, null,'December to January 2003','/news/categoryfront.php/id/93/December_to_January_2003.html','','',0)),'2002','/news/categoryfront.php/id/83/2002.html','','',0),
   Array('82',1, Array(
     Array('144',1, null,'October to November 2003','/news/categoryfront.php/id/144/October_to_November_2003.html','','',0),
     Array('142',1, null,'December to January 2004','/news/categoryfront.php/id/142/December_to_January_2004.html','','',0)),'2003','/news/categoryfront.php/id/82/2003.html','','',0),
   Array('81',1, Array(
     Array('143',1, null,'February to March 2004','/news/categoryfront.php/id/143/February_to_March_2004.html','','',0),
     Array('140',1, null,'April to May 2004','/news/categoryfront.php/id/140/April_to_May_2004.html','','',0),
     Array('147',1, null,'August to September 2004','/news/categoryfront.php/id/147/August_to_September_2004.html','','',0),
     Array('148',1, null,'October to November 2004','/news/categoryfront.php/id/148/October_to_November_2004.html','','',0),
     Array('149',1, null,'December2004 to January 2005','/news/categoryfront.php/id/149/December2004_to_January_2005.html','','',0)),'2004','/news/categoryfront.php/id/81/2004.html','','',0),
   Array('80',1, Array(
     Array('150',1, null,'Feb/ March 05','/news/categoryfront.php/id/150/Feb__March_05.html','','',0),
     Array('151',1, null,'April/May 05','/news/categoryfront.php/id/151/April_May_05.html','','',0),
     Array('153',1, null,'June/July 05','/news/categoryfront.php/id/153/June_July_05.html','','',0),
     Array('154',1, null,'Aug/Sept 05','/news/categoryfront.php/id/154/Aug_Sept_05.html','','',0),
     Array('155',1, null,'Oct/Nov 05','/news/categoryfront.php/id/155/Oct_Nov_05.html','','',0),
     Array('158',1, null,'Dec/Jan 06','/news/categoryfront.php/id/158/Dec_Jan_06.html','','',0)),'2005','/news/categoryfront.php/id/80/2005.html','','',0),
   Array('79',1, Array(
     Array('94',1, null,'Feb/March 06','/news/categoryfront.php/id/94/Feb_March_06.html','','',0),
     Array('95',1, null,'June/July 2006','/news/categoryfront.php/id/95/June_July_2006.html','','',0),
     Array('96',1, null,'Aug/Sept 2006','/news/categoryfront.php/id/96/Aug_Sept_2006.html','','',0)),'2006','/news/categoryfront.php/id/79/2006.html','','',0),
   Array('78',1, Array(
     Array('98',1, null,'Feb/Mar 07','/news/categoryfront.php/id/98/Feb_Mar_07.html','','',0),
     Array('99',1, null,'April/May 07','/news/categoryfront.php/id/99/April_May_07.html','','',0),
     Array('100',1, null,'June/July 07','/news/categoryfront.php/id/100/June_July_07.html','','',0),
     Array('101',1, null,'Aug/Sept 07','/news/categoryfront.php/id/101/Aug_Sept_07.html','','',0),
     Array('102',1, null,'Oct/Nov 07','/news/categoryfront.php/id/102/Oct_Nov_07.html','','',0),
     Array('103',1, null,'Dec/Jan 08','/news/categoryfront.php/id/103/Dec_Jan_08.html','','',0)),'2007','/news/categoryfront.php/id/78/2007.html','','',0),
   Array('71',1, Array(
     Array('72',1, null,'ISSUE 1 Feb/March','/news/categoryfront.php/id/72/ISSUE_1_Feb_March.html','','',0),
     Array('73',1, null,'ISSUE 2 April/May','/news/categoryfront.php/id/73/ISSUE_2_April_May.html','','',0),
     Array('74',1, null,'ISSUE 3 June/July','/news/categoryfront.php/id/74/ISSUE_3_June_July.html','','',0),
     Array('75',1, null,'ISSUE 4 Aug/Sept','/news/categoryfront.php/id/75/ISSUE_4_Aug_Sept.html','','',0),
     Array('76',1, null,'ISSUE 5 Oct/Nov','/news/categoryfront.php/id/76/ISSUE_5_Oct_Nov.html','','',0),
     Array('77',1, null,'ISSUE 6 Dec08/Jan 09','/news/categoryfront.php/id/77/ISSUE_6_Dec08_Jan_09.html','','',0)),'2008','/news/categoryfront.php/id/71/2008.html','','',0),
   Array('112',1, Array(
     Array('113',1, null,'Feb/March 09','/news/categoryfront.php/id/113/Feb_March_09.html','','',0),
     Array('114',1, null,'April/May 09','/news/categoryfront.php/id/114/April_May_09.html','','',0),
     Array('115',1, null,'June/July 09','/news/categoryfront.php/id/115/June_July_09.html','','',0),
     Array('116',1, null,'Aug/Sept 09','/news/categoryfront.php/id/116/Aug_Sept_09.html','','',0),
     Array('117',1, null,'Oct/Nov 09','/news/categoryfront.php/id/117/Oct_Nov_09.html','','',0),
     Array('118',1, null,'Dec/Jan 2010','/news/categoryfront.php/id/118/Dec_Jan_2010.html','','',0)),'2009','/news/categoryfront.php/id/112/2009.html','','',0),
   Array('129',1, Array(
     Array('130',1, null,'Feb/March 10','/news/categoryfront.php/id/130/Feb_March_10.html','','',0),
     Array('131',1, null,'April/May 10','/news/categoryfront.php/id/131/April_May_10.html','','',0),
     Array('132',1, null,'June/July 10','/news/categoryfront.php/id/132/June_July_10.html','','',0),
     Array('133',1, null,'Aug/Sept 10','/news/categoryfront.php/id/133/Aug_Sept_10.html','','',0),
     Array('134',1, null,'Oct/Nov 10','/news/categoryfront.php/id/134/Oct_Nov_10.html','','',0),
     Array('135',1, null,'Dec/Jan 2011','/news/categoryfront.php/id/135/Dec_Jan_2011.html','','',0)),'2010','/news/categoryfront.php/id/129/2010.html','','',0),
   Array('163',1, Array(
     Array('164',1, null,'Feb/March 2011','/news/categoryfront.php/id/164/Feb_March_2011.html','','',0),
     Array('165',1, null,'April/May 2011','/news/categoryfront.php/id/165/April_May_2011.html','','',0),
     Array('166',1, null,'June/July 2011','/news/categoryfront.php/id/166/June_July_2011.html','','',0),
     Array('167',1, null,'Aug/Sept 2011','/news/categoryfront.php/id/167/Aug_Sept_2011.html','','',0),
     Array('168',1, null,'Oct/Nov 2011','/news/categoryfront.php/id/168/Oct_Nov_2011.html','','',0),
     Array('169',1, null,'Dec/Jan 2012','/news/categoryfront.php/id/169/Dec_Jan_2012.html','','',0)),'2011','/news/categoryfront.php/id/163/2011.html','','',0),
   Array('199',1, Array(
     Array('200',1, null,'Feb/March 12','/news/categoryfront.php/id/200/Feb_March_12.html','','',0),
     Array('201',1, null,'April/May 12','/news/categoryfront.php/id/201/April_May_12.html','','',0)),'2012','/news/categoryfront.php/id/199/2012.html','','',0)),'Archives','/news/categoryfront.php/id/104/Archives.html','','',0));
NavbarItems[1] = Array(
 Array('6',1, Array(
   Array('7',1, null,'About us','/info/about_us.php','','',0),
   Array('137',1, null,'Digital Edition','http://www.getthatmag.com/digital/wbpi/index.html','','',0),
   Array('8',1, null,'Contact us','/info/contact_us.php','','',0),
   Array('125',1, null,'Buyers Guide','http://wbpi.wood-based-panels-buyers-guide.com/BuyersGuide','','',0),
   Array('9',1, null,'Subscribe to printed issues','https://secure.getthatmag.com/index.php?wpgc=WBP-SUBS','','',0),
   Array('10',1, null,'Links','/company_index/','','',0),
   Array('61',1, Array(
     Array('121',1, null,'Promotional Opportunities','http://www.wbpionline.com/news/fullstory.php/aid/7/Promotional_Opportunities.html','','',0)),'Advertising','/news/fullstory.php/aid/7/Promotional_Opportunities.html','','',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 catloc = "";
    catloc = document.location.href;
    catloc = catloc.replace(/^.*\/categoryfront\.php\/id\//,'');
    catloc = catloc.replace(/[^0-9].*$/,'');
    return catloc;
}

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 subitem=0;subitem<jtems.length;subitem++) {
//			if (jtems[subitem]!=undefined && jtems[subitem][0]!=undefined && jtems[subitem][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%%%%SUB%%',
   '',
   '<div class="header navbar visual"><a href="%%LINK%%"><img src="%%IMG_URL%%" alt="" border="0"/></a></div>',
   '<div class="header navbar">%%TEXT%%</div>'),

   Array('<ul class="navbar">%%ITEMS%%</ul>', 
   '<li class="navbar item%%PADLOCK%%">%%ITEM%%</li>%%SUB%%',
   '',
   '<a class="button" href="%%LINK%%"><img src="%%IMG_URL%%" alt="" border="0"/></a>',
   '<a class="button" href="%%LINK%%">%%TEXT%%</a>',
   '<a class="button" href="javascript:void(0);" onclick="toggleNavbarItem(\'%%ID%%\');return false;">%%TEXT%%<img src="http://wbpionline.com/pixmaps/up.gif" hspace="0" vspace="1" border="0"/></a>',
   '<a class="button" href="javascript:void(0);" onclick="toggleNavbarItem(\'%%ID%%\');return false;">%%TEXT%%<img src="http://wbpionline.com/pixmaps/down.gif" hspace="0" vspace="1" border="0"/></a>'),

   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%%%%SUB%%',
   '',
   '<div class="header navbar visual"><a href="%%LINK%%"><img src="%%IMG_URL%%" alt="" border="0"/></a></div>',
   '<div class="header navbar">%%TEXT%%</div>'),

   Array('<ul class="navbar">%%ITEMS%%</ul>', 
   '<li class="navbar item%%PADLOCK%%">%%ITEM%%</li>%%SUB%%',
   '',
   '<a class="button" href="%%LINK%%"><img src="%%IMG_URL%%" alt="" border="0"/></a>',
   '<a class="button" href="%%LINK%%">%%TEXT%%</a>',
   '<a class="button" href="javascript:void(0);" onclick="toggleNavbarItem(\'%%ID%%\');return false;">%%TEXT%%<img src="http://wbpionline.com/pixmaps/up.gif" hspace="0" vspace="1" border="0"/></a>',
   '<a class="button" href="javascript:void(0);" onclick="toggleNavbarItem(\'%%ID%%\');return false;">%%TEXT%%<img src="http://wbpionline.com/pixmaps/down.gif" hspace="0" vspace="1" border="0"/></a>'),

   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=' padlock';

