NavbarItems = Array(3);
NavbarItems[0] = Array(
 Array('1',1, Array(
   Array('2',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Home</B></SPAN></FONT>','/','','',0),
   Array('33',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Comment</B></SPAN></FONT>','/news/categoryfront.php/id/33/Comment.html','','',0),
   Array('45',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Industry News</B></SPAN></FONT>','/news/categoryfront.php/id/45/Industry_News.html','','',0),
   Array('38',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Screen Printing</B></SPAN></FONT>','/news/categoryfront.php/id/38/Screen_Printing.html','','',0),
   Array('39',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Digital Imaging</B></SPAN></FONT>','/news/categoryfront.php/id/39/Digital_Imaging.html','','',0),
   Array('37',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Case Studies</B></SPAN></FONT>','/news/categoryfront.php/id/37/Case_Studies.html','','',0),
   Array('43',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Features</B></SPAN></FONT>','/news/categoryfront.php/id/43/Features.html','','',0),
   Array('42',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Prism News</B></SPAN></FONT>','/news/categoryfront.php/id/42/Prism_News.html','','',0),
   Array('40',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Events</B></SPAN></FONT>','/news/categoryfront.php/id/40/Events.html','','',0),
   Array('41',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">What\'s New</B></SPAN></FONT>','/news/categoryfront.php/id/41/What_s_New.html','','',0),
   Array('130',1, null,'','','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">SPDI Magazine</B></SPAN></FONT>','/news/categoryfront.php/id/1/SPDI_Magazine.html','','',0),
 Array('116',1, Array(
   Array('135',1, Array(
     Array('136',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">January</SPAN></FONT>','http://content.yudu.com/A1lro8/ScreenJan2010/resources/index.htm?referrerUrl=','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">2010</B></SPAN></FONT>','','','',0),
   Array('117',1, Array(
     Array('133',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">December</SPAN></FONT>','http://content.yudu.com/A1kvdj/Screen-Dec-09/resources/index.htm?referrerUrl=','','',0),
     Array('132',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">November</SPAN></FONT>','http://content.yudu.com/A1iq63/ScreenNov09/resources/index.htm?referrerUrl=','','',0),
     Array('129',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">October</SPAN></FONT>','http://content.yudu.com/A1hlxp/Screen-Oct-09/resources/index.htm?referrerUrl=','','',0),
     Array('127',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">September</SPAN></FONT>','http://content.yudu.com/A1gcj9/SPDIsept09/resources/index.htm?referrerUrl=','','',0),
     Array('124',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">August</SPAN></FONT>','http://content.yudu.com/A1ec09/SPDIAug09/resources/index.htm?referrerUrl=','','',0),
     Array('125',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">July</SPAN></FONT>','http://content.yudu.com/A19sbs/ScreenJuly09/resources/index.htm?referrerUrl=','','',0),
     Array('121',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">June</SPAN></FONT>','http://content.yudu.com/A17yqy/ScreenJune09/resources/index.htm?referrerUrl=','','',0),
     Array('118',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">May</SPAN></FONT>','http://content.yudu.com/A16w45/SPDIMay09/resources/index.htm?referrerUrl=','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">2009</B></SPAN></FONT>','','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Digitized Issues</B></SPAN></FONT>','','','',0),
 Array('21',1, Array(
   Array('137',1, Array(
     Array('138',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">January</SPAN></FONT>','/news/categoryfront.php/id/138/January.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">2010</B></SPAN></FONT>','/news/categoryfront.php/id/137/2010.html','','',0),
   Array('107',1, Array(
     Array('134',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">December</SPAN></FONT>','/news/categoryfront.php/id/134/December.html','','',0),
     Array('131',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">November</SPAN></FONT>','/news/categoryfront.php/id/131/November.html','','',0),
     Array('128',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">October</SPAN></FONT>','/news/categoryfront.php/id/128/October.html','','',0),
     Array('126',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">September</SPAN></FONT>','/news/categoryfront.php/id/126/September.html','','',0),
     Array('123',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">August</SPAN></FONT>','/news/categoryfront.php/id/123/August.html','','',0),
     Array('122',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">July</SPAN></FONT>','/news/categoryfront.php/id/122/July.html','','',0),
     Array('120',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">June</SPAN></FONT>','/news/categoryfront.php/id/120/June.html','','',0),
     Array('119',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">May</SPAN></FONT>','/news/categoryfront.php/id/119/May.html','','',0),
     Array('115',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">April</SPAN></FONT>','/news/categoryfront.php/id/115/April.html','','',0),
     Array('112',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">March</SPAN></FONT>','/news/categoryfront.php/id/112/March.html','','',0),
     Array('108',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">February</SPAN></FONT>','/news/categoryfront.php/id/108/February.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">2009</B></SPAN></FONT>','/news/categoryfront.php/id/107/2009.html','','',0),
   Array('66',1, Array(
     Array('106',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">December</SPAN></FONT>','/news/categoryfront.php/id/106/December.html','','',0),
     Array('105',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">November</SPAN></FONT>','/news/categoryfront.php/id/105/November.html','','',0),
     Array('104',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">October</SPAN></FONT>','/news/categoryfront.php/id/104/October.html','','',0),
     Array('102',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">September</SPAN></FONT>','/news/categoryfront.php/id/102/September.html','','',0),
     Array('101',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">August</SPAN></FONT>','/news/categoryfront.php/id/101/August.html','','',0),
     Array('100',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">July</SPAN></FONT>','/news/categoryfront.php/id/100/July.html','','',0),
     Array('97',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">June</SPAN></FONT>','/news/categoryfront.php/id/97/June.html','','',0),
     Array('96',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">May</SPAN></FONT>','/news/categoryfront.php/id/96/May.html','','',0),
     Array('70',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">April</SPAN></FONT>','/news/categoryfront.php/id/70/April.html','','',0),
     Array('69',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">March</SPAN></FONT>','/news/categoryfront.php/id/69/March.html','','',0),
     Array('68',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">February</SPAN></FONT>','/news/categoryfront.php/id/68/February.html','','',0),
     Array('67',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">January</SPAN></FONT>','/news/categoryfront.php/id/67/January.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">2008</B></SPAN></FONT>','/news/categoryfront.php/id/66/2008.html','','',0),
   Array('26',1, Array(
     Array('65',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">December</SPAN></FONT>','/news/categoryfront.php/id/65/December.html','','',0),
     Array('64',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">November</SPAN></FONT>','/news/categoryfront.php/id/64/November.html','','',0),
     Array('63',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">October</SPAN></FONT>','/news/categoryfront.php/id/63/October.html','','',0),
     Array('62',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">September</SPAN></FONT>','/news/categoryfront.php/id/62/September.html','','',0),
     Array('61',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">August</SPAN></FONT>','/news/categoryfront.php/id/61/August.html','','',0),
     Array('60',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">July</SPAN></FONT>','/news/categoryfront.php/id/60/July.html','','',0),
     Array('59',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">June</SPAN></FONT>','/news/categoryfront.php/id/59/June.html','','',0),
     Array('58',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">May</SPAN></FONT>','/news/categoryfront.php/id/58/May.html','','',0),
     Array('57',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">April</SPAN></FONT>','/news/categoryfront.php/id/57/April.html','','',0),
     Array('29',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">March</SPAN></FONT>','/news/categoryfront.php/id/29/March.html','','',0),
     Array('27',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">February</SPAN></FONT>','/news/categoryfront.php/id/27/February.html','','',0),
     Array('28',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">January</SPAN></FONT>','/news/categoryfront.php/id/28/January.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">2007</B></SPAN></FONT>','/news/categoryfront.php/id/26/2007.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Back Issues</B></SPAN></FONT>','/news/categoryfront.php/id/21/Back_Issues.html','','',0));
NavbarItems[1] = Array(
 Array('17',1, Array(
   Array('23',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Home</B></SPAN></FONT>','http://www.spdi-online.com/','','',0),
   Array('7',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">About Us</B></SPAN></FONT>','/info/about_us.php','','',0),
   Array('19',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Registration</B></SPAN></FONT>','http://www.wdis.co.uk/reg.php?dteam-sdi-eqrbmfg','','',0),
   Array('20',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Media Info</B></SPAN></FONT>','http://www.spdi-online.com/cp/3/SPDI%20Media%20Pack%202009.pdf','','',0),
   Array('8',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Contact Us</B></SPAN></FONT>','/info/contact_us.php','','',0)),'','','','',0));
NavbarItems[2] = Array(
 Array('87',1, null,'P&B','','/images/decor//cat_nav_87.gif','',0),
 Array('74',1, Array(
   Array('110',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">P&B Directory</B></SPAN></FONT>','/news/categoryfront.php/id/110/P_B_Directory.html','','',0),
   Array('83',1, Array(
     Array('75',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Comment</SPAN></FONT>','/news/categoryfront.php/id/75/Comment.html','','',0),
     Array('77',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Industry News</SPAN></FONT>','/news/categoryfront.php/id/77/Industry_News.html','','',0),
     Array('76',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Features</SPAN></FONT>','/news/categoryfront.php/id/76/Features.html','','',0),
     Array('99',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">What\'s New</SPAN></FONT>','/news/categoryfront.php/id/99/What_s_New.html','','',0),
     Array('78',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Cover Story</SPAN></FONT>','/news/categoryfront.php/id/78/Cover_Story.html','','',0),
     Array('85',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Media Pack</SPAN></FONT>','http://www.spdi-online.com/cp/3/SPDI%20Media%20Pack%202009.pdf','','',0),
     Array('109',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">HF Welding Handbook</SPAN></FONT>','/news/categoryfront.php/id/109/HF_Welding_Handbook.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Plastics & Board</B></SPAN></FONT>','/news/categoryfront.php/id/83/Plastics___Board.html','','',0),
   Array('84',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Contact Us</B></SPAN></FONT>','/news/categoryfront.php/id/84/Contact_Us.html','','',0)),'','','','',0));
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%%%%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://www.spdi-online.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://www.spdi-online.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://www.spdi-online.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://www.spdi-online.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';
