NavbarItems = Array(3);
NavbarItems[0] = Array(
 Array('2',1, Array(
   Array('1',1, null,'HOME','http://www.pwmnet.com','','',0),
   Array('3',1, null,'NEWS & ANALYSIS','http://www.pwmnet.com/news/categoryfront.php/id/3/NEWS___ANALYSIS.html','','',0),
   Array('182',1, null,'FROM THE EDITOR','http://www.pwmnet.com/news/categoryfront.php/id/182/FROM_THE_EDITOR.html','','',0),
   Array('4',1, null,'FEATURES & INTERVIEWS','http://www.pwmnet.com/news/categoryfront.php/id/4/FEATURES___INTERVIEWS.html','','',0),
   Array('121',1, null,'SUB-ADVISORY','http://www.pwmnet.com/news/categoryfront.php/id/121/SUB-ADVISORY.html','','',0),
   Array('184',1, Array(
     Array('6',1, null,'PRODUCT PARADE','http://www.pwmnet.com/news/categoryfront.php/id/6/PRODUCT_PARADE.html','','',0),
     Array('185',1, null,'STRUCTURED SOLUTIONS','http://www.pwmnet.com/news/categoryfront.php/id/185/STRUCTURED_SOLUTIONS.html','','',0),
     Array('9',1, null,'ALTERNATIVES','http://www.pwmnet.com/news/categoryfront.php/id/9/ALTERNATIVES.html','','',0),
     Array('8',1, null,'FUNDS UPDATE','http://www.pwmnet.com/news/categoryfront.php/id/8/FUNDS_UPDATE.html','','',0)),'PRODUCTS','http://www.pwmnet.com/news/categoryfront.php/id/184/PRODUCTS.html','','',0),
   Array('10',1, null,'OPERATIONS AND TECHNOLOGY','http://www.pwmnet.com/news/categoryfront.php/id/10/OPERATIONS_AND_TECHNOLOGY.html','','',0),
   Array('186',1, Array(
     Array('250',1, null,'THE POWER OF BETA','http://www.pwmnet.com/news/categoryfront.php/id/250/THE_POWER_OF_BETA.html','','',0),
     Array('247',1, null,'THEMATIC INVESTING','http://www.pwmnet.com/news/categoryfront.php/id/247/THEMATIC_INVESTING.html','','',0),
     Array('223',1, null,'ALTERNATIVE ASSETS','http://www.pwmnet.com/news/categoryfront.php/id/223/ALTERNATIVE_ASSETS.html','','',0),
     Array('221',1, null,'EXCHANGE TRADED FUNDS','http://www.pwmnet.com/news/categoryfront.php/id/221/EXCHANGE_TRADED_FUNDS.html','','',0),
     Array('207',1, null,'PRIVATE BANKING','http://www.pwmnet.com/news/categoryfront.php/id/207/PRIVATE_BANKING.html','','',0),
     Array('202',1, null,'SUB-ADVISORY BUSINESS','http://www.pwmnet.com/news/categoryfront.php/id/202/SUB-ADVISORY_BUSINESS.html','','',0),
     Array('199',1, null,'ALTERNATIVE INVESTING','http://www.pwmnet.com/news/categoryfront.php/id/199/ALTERNATIVE_INVESTING.html','','',0),
     Array('132',1, null,'STRUCTURED PRODUCTS','http://www.pwmnet.com/news/categoryfront.php/id/132/STRUCTURED_PRODUCTS.html','','',0),
     Array('170',1, null,'CORE SATELLITE STRATEGIES','http://www.pwmnet.com/news/categoryfront.php/id/170/CORE_SATELLITE_STRATEGIES.html','','',0),
     Array('168',1, null,'ABSOLUTE RETURN STRATEGIES','http://www.pwmnet.com/news/categoryfront.php/id/168/ABSOLUTE_RETURN_STRATEGIES.html','','',0),
     Array('165',1, null,'MIDDLE EASTERN OPPORTUNITIES','http://www.pwmnet.com/news/categoryfront.php/id/165/MIDDLE_EASTERN_OPPORTUNITIES.html','','',0),
     Array('163',1, null,'INDEX INVESTING','http://www.pwmnet.com/news/categoryfront.php/id/163/INDEX_INVESTING.html','','',0),
     Array('255',1, null,'COUNTERPARTY RISK IN STRUCTURED PRODUCTS','http://www.pwmnet.com/news/categoryfront.php/id/255/COUNTERPARTY_RISK_IN_STRUCTURED_PRODUCTS.html','','',0),
     Array('255',1, null,'COUNTERPARTY RISK IN STRUCTURED PRODUCTS','http://www.pwmnet.com/news/categoryfront.php/id/255/COUNTERPARTY_RISK_IN_STRUCTURED_PRODUCTS.html','','',0)),'CURRENT SPECIAL REPORTS','http://www.pwmnet.com/news/categoryfront.php/id/186/CURRENT_SPECIAL_REPORTS.html','','',0),
   Array('219',1, null,'VIDEO & AUDIO','http://www.pwmnet.com/news/categoryfront.php/id/219/VIDEO___AUDIO.html','','',0),
   Array('9999',1, null,'BLOGS','http://blogs.pwmnet.com','','',0)),'','','','',0),
 Array('45',1, Array(
   Array('191',1, Array(
     Array('156',1, null,'ALTERNATIVE INVESTMENTS','http://www.pwmnet.com/news/categoryfront.php/id/156/ALTERNATIVE_INVESTMENTS.html','','',0),
     Array('150',1, null,'CORE-SATELLITE INVESTMENT','http://www.pwmnet.com/news/categoryfront.php/id/150/CORE-SATELLITE_INVESTMENT.html','','',0),
     Array('148',1, null,'SCANDINAVIAN OPPORTUNITIES','http://www.pwmnet.com/news/categoryfront.php/id/148/SCANDINAVIAN_OPPORTUNITIES.html','','',0),
     Array('146',1, null,'ASSET ALLOCATION','http://www.pwmnet.com/news/categoryfront.php/id/146/ASSET_ALLOCATION.html','','',0),
     Array('153',1, null,'ITALY','http://www.pwmnet.com/news/categoryfront.php/id/153/ITALY.html','','',0),
     Array('152',1, null,'130/30 FUNDS','http://www.pwmnet.com/news/categoryfront.php/id/152/130_30_FUNDS.html','','',0),
     Array('144',1, null,'STRUCTURED PRODUCTS','http://www.pwmnet.com/news/categoryfront.php/id/144/STRUCTURED_PRODUCTS.html','','',0),
     Array('142',1, null,'UK MARKET OPPORTUNITIES','http://www.pwmnet.com/news/categoryfront.php/id/142/UK_MARKET_OPPORTUNITIES.html','','',0),
     Array('158',1, null,'GERMAN OPPORTUNITIES','http://www.pwmnet.com/news/categoryfront.php/id/158/GERMAN_OPPORTUNITIES.html','','',0),
     Array('140',1, null,'ABSOLUTE RETURN','http://www.pwmnet.com/news/categoryfront.php/id/140/ABSOLUTE_RETURN.html','','',0)),'2007','http://www.pwmnet.com/news/categoryfront.php/id/191/2007.html','','',0),
   Array('192',1, Array(
     Array('135',1, null,'SUB-ADVISORY BUSINESS','http://www.pwmnet.com/news/categoryfront.php/id/135/SUB-ADVISORY_BUSINESS.html','','',0),
     Array('134',1, null,'ASSET ALLOCATIONS','http://www.pwmnet.com/news/categoryfront.php/id/134/ASSET_ALLOCATIONS.html','','',0),
     Array('130',1, null,'CASH ALLOCATIONS','http://www.pwmnet.com/news/categoryfront.php/id/130/CASH_ALLOCATIONS.html','','',0),
     Array('127',1, null,'ITALY','http://www.pwmnet.com/news/categoryfront.php/id/127/ITALY.html','','',0),
     Array('126',1, null,'EMERGING ASSET CLASSES','http://www.pwmnet.com/news/categoryfront.php/id/126/EMERGING_ASSET_CLASSES.html','','',0),
     Array('117',1, null,'ABSOLUTE RETURNS','http://www.pwmnet.com/news/categoryfront.php/id/117/ABSOLUTE_RETURNS.html','','',0),
     Array('119',1, null,'FRANCE','http://www.pwmnet.com/news/categoryfront.php/id/119/FRANCE.html','','',0),
     Array('124',1, null,'STRUCTURED PRODUCTS','http://www.pwmnet.com/news/categoryfront.php/id/124/STRUCTURED_PRODUCTS.html','','',0),
     Array('116',1, null,'GERMANY','http://www.pwmnet.com/news/categoryfront.php/id/116/GERMANY.html','','',0)),'2006','http://www.pwmnet.com/news/categoryfront.php/id/192/2006.html','','',0),
   Array('193',1, Array(
     Array('75',1, null,'ASSET ALLOCATION','http://www.pwmnet.com/news/categoryfront.php/id/75/ASSET_ALLOCATION.html','','',0),
     Array('111',1, null,'SUB-ADVISORY BUSINESS','http://www.pwmnet.com/news/categoryfront.php/id/111/SUB-ADVISORY_BUSINESS.html','','',0),
     Array('110',1, null,'STRUCTURED PRODUCTS','http://www.pwmnet.com/news/categoryfront.php/id/110/STRUCTURED_PRODUCTS.html','','',0),
     Array('107',1, null,'CASH MANAGEMENT','http://www.pwmnet.com/news/categoryfront.php/id/107/CASH_MANAGEMENT.html','','',0),
     Array('106',1, null,'RISK MANAGEMENT','http://www.pwmnet.com/news/categoryfront.php/id/106/RISK_MANAGEMENT.html','','',0),
     Array('102',1, null,'STRUCTURED PRODUCTS','http://www.pwmnet.com/news/categoryfront.php/id/102/STRUCTURED_PRODUCTS.html','','',0),
     Array('100',1, null,'ALTERNATIVE INVESTMENTS','http://www.pwmnet.com/news/categoryfront.php/id/100/ALTERNATIVE_INVESTMENTS.html','','',0),
     Array('99',1, null,'SUB-ADVISORY','http://www.pwmnet.com/news/categoryfront.php/id/99/SUB-ADVISORY.html','','',0),
     Array('96',1, null,'GUIDED ARCHITECTURE','http://www.pwmnet.com/news/categoryfront.php/id/96/GUIDED_ARCHITECTURE.html','','',0),
     Array('95',1, null,'HIGH ALPHA STRATEGIES','http://www.pwmnet.com/news/categoryfront.php/id/95/HIGH_ALPHA_STRATEGIES.html','','',0)),'2005','http://www.pwmnet.com/news/categoryfront.php/id/193/2005.html','','',0),
   Array('194',1, Array(
     Array('82',1, null,'HIGH YIELDING STRATEGIES','http://www.pwmnet.com/news/categoryfront.php/id/82/HIGH_YIELDING_STRATEGIES.html','','',0),
     Array('92',1, null,'RISK MANAGEMENT','http://www.pwmnet.com/news/categoryfront.php/id/92/RISK_MANAGEMENT.html','','',0),
     Array('91',1, null,'OPEN ARCHITECTURE','http://www.pwmnet.com/news/categoryfront.php/id/91/OPEN_ARCHITECTURE.html','','',0),
     Array('90',1, null,'INVESTMENT STYLES','http://www.pwmnet.com/news/categoryfront.php/id/90/INVESTMENT_STYLES.html','','',0),
     Array('85',1, null,'MANAGING EXCESS CASH','http://www.pwmnet.com/news/categoryfront.php/id/85/MANAGING_EXCESS_CASH.html','','',0),
     Array('83',1, null,'FIXED INCOME STRATEGIES','http://www.pwmnet.com/news/categoryfront.php/id/83/FIXED_INCOME_STRATEGIES.html','','',0),
     Array('78',1, null,'EXCHANGED-TRADED PRODUCTS','http://www.pwmnet.com/news/categoryfront.php/id/78/EXCHANGED-TRADED_PRODUCTS.html','','',0),
     Array('76',1, null,'EQUITY STRATEGIES','http://www.pwmnet.com/news/categoryfront.php/id/76/EQUITY_STRATEGIES.html','','',0),
     Array('74',1, null,'ALTERNATIVE INVESTMENTS','http://www.pwmnet.com/news/categoryfront.php/id/74/ALTERNATIVE_INVESTMENTS.html','','',0)),'2004','http://www.pwmnet.com/news/categoryfront.php/id/194/2004.html','','',0),
   Array('195',1, Array(
     Array('52',1, null,'EXCHANGE-TRADE PRODUCTS','http://www.pwmnet.com/news/categoryfront.php/id/52/EXCHANGE-TRADE_PRODUCTS.html','','',0),
     Array('68',1, null,'RISK MANAGEMENT','http://www.pwmnet.com/news/categoryfront.php/id/68/RISK_MANAGEMENT.html','','',0),
     Array('66',1, null,'INDICES & MANAGEMENT STYLES','http://www.pwmnet.com/news/categoryfront.php/id/66/INDICES___MANAGEMENT_STYLES.html','','',0),
     Array('65',1, null,'QUANTITATIVE STRATEGIES','http://www.pwmnet.com/news/categoryfront.php/id/65/QUANTITATIVE_STRATEGIES.html','','',0),
     Array('63',1, null,'EQUITY STRATEGIES','http://www.pwmnet.com/news/categoryfront.php/id/63/EQUITY_STRATEGIES.html','','',0),
     Array('60',1, null,'ALTERNATIVE INVESTMENTS','http://www.pwmnet.com/news/categoryfront.php/id/60/ALTERNATIVE_INVESTMENTS.html','','',0),
     Array('58',1, null,'ASSET ALLOCATION STRATEGIES','http://www.pwmnet.com/news/categoryfront.php/id/58/ASSET_ALLOCATION_STRATEGIES.html','','',0),
     Array('57',1, null,'HIGH YIELDING INVESTMENTS','http://www.pwmnet.com/news/categoryfront.php/id/57/HIGH_YIELDING_INVESTMENTS.html','','',0),
     Array('48',1, null,'FIXED INCOME PORTFOLIO','http://www.pwmnet.com/news/categoryfront.php/id/48/FIXED_INCOME_PORTFOLIO.html','','',0),
     Array('46',1, null,'CASH ALLOCATIONS','http://www.pwmnet.com/news/categoryfront.php/id/46/CASH_ALLOCATIONS.html','','',0)),'2003','http://www.pwmnet.com/news/categoryfront.php/id/195/2003.html','','',0)),'SPECIAL REPORTS ARCHIVE','http://www.pwmnet.com/news/categoryfront.php/id/45/SPECIAL_REPORTS_ARCHIVE.html','','',0),
 Array('37',1, Array(
   Array('213',1, Array(
     Array('253',1, null,'Issue 72 (July)','http://www.pwmnet.com/news/categoryfront.php/id/253/Issue_72__July_.html','','',0),
     Array('249',1, null,'Issue 71 (June)','http://www.pwmnet.com/news/categoryfront.php/id/249/Issue_71__June_.html','','',0),
     Array('246',1, null,'Issue 70 (May)','http://www.pwmnet.com/news/categoryfront.php/id/246/Issue_70__May_.html','','',0),
     Array('222',1, null,'Issue 69 (April)','http://www.pwmnet.com/news/categoryfront.php/id/222/Issue_69__April_.html','','',0),
     Array('220',1, null,'Issue 68 (March)','http://www.pwmnet.com/news/categoryfront.php/id/220/Issue_68__March_.html','','',0),
     Array('214',1, null,'Issue 67 (February)','http://www.pwmnet.com/news/categoryfront.php/id/214/Issue_67__February_.html','','',0)),'2009','http://www.pwmnet.com/news/categoryfront.php/id/213/2009.html','','',0),
   Array('160',1, Array(
     Array('212',1, null,'Issue 66 (December/January)','http://www.pwmnet.com/news/categoryfront.php/id/212/Issue_66__December_January_.html','','',0),
     Array('206',1, null,'Issue 65 (November)','http://www.pwmnet.com/news/categoryfront.php/id/206/Issue_65__November_.html','','',0),
     Array('200',1, null,'Issue 64 (October)','http://www.pwmnet.com/news/categoryfront.php/id/200/Issue_64__October_.html','','',0),
     Array('198',1, null,'Issue 63 (September)','http://www.pwmnet.com/news/categoryfront.php/id/198/Issue_63__September_.html','','',0),
     Array('169',1, null,'Issue 62 (July/August)','http://www.pwmnet.com/news/categoryfront.php/id/169/Issue_62__July_August_.html','','',0),
     Array('167',1, null,'Issue 61 (June)','http://www.pwmnet.com/news/categoryfront.php/id/167/Issue_61__June_.html','','',0),
     Array('166',1, null,'Issue 60 (May)','http://www.pwmnet.com/news/categoryfront.php/id/166/Issue_60__May_.html','','',0),
     Array('164',1, null,'Issue 59 (April)','http://www.pwmnet.com/news/categoryfront.php/id/164/Issue_59__April_.html','','',0),
     Array('162',1, null,'Issue 58 (March)','http://www.pwmnet.com/news/categoryfront.php/id/162/Issue_58__March_.html','','',0),
     Array('161',1, null,'Issue 57 (February)','http://www.pwmnet.com/news/categoryfront.php/id/161/Issue_57__February_.html','','',0)),'2008','http://www.pwmnet.com/news/categoryfront.php/id/160/2008.html','','',0),
   Array('138',1, Array(
     Array('157',1, null,'Issue 56 (December/January)','http://www.pwmnet.com/news/categoryfront.php/id/157/Issue_56__December_January_.html','','',0),
     Array('155',1, null,'Issue 55 (November)','http://www.pwmnet.com/news/categoryfront.php/id/155/Issue_55__November_.html','','',0),
     Array('154',1, null,'Issue 54 (October)','http://www.pwmnet.com/news/categoryfront.php/id/154/Issue_54__October_.html','','',0),
     Array('151',1, null,'Issue 53 (September)','http://www.pwmnet.com/news/categoryfront.php/id/151/Issue_53__September_.html','','',0),
     Array('149',1, null,'Issue 52 (July/August)','http://www.pwmnet.com/news/categoryfront.php/id/149/Issue_52__July_August_.html','','',0),
     Array('147',1, null,'Issue 51 (June)','http://www.pwmnet.com/news/categoryfront.php/id/147/Issue_51__June_.html','','',0),
     Array('145',1, null,'Issue 50 (May)','http://www.pwmnet.com/news/categoryfront.php/id/145/Issue_50__May_.html','','',0),
     Array('143',1, null,'Issue 49 (April)','http://www.pwmnet.com/news/categoryfront.php/id/143/Issue_49__April_.html','','',0),
     Array('141',1, null,'Issue 48 (March)','http://www.pwmnet.com/news/categoryfront.php/id/141/Issue_48__March_.html','','',0),
     Array('139',1, null,'Issue 47 (February)','http://www.pwmnet.com/news/categoryfront.php/id/139/Issue_47__February_.html','','',0)),'2007','http://www.pwmnet.com/news/categoryfront.php/id/138/2007.html','','',0),
   Array('114',1, Array(
     Array('136',1, null,'Issue 46 (December/January)','http://www.pwmnet.com/news/categoryfront.php/id/136/Issue_46__December_January_.html','','',0),
     Array('133',1, null,'Issue 45 (November)','http://www.pwmnet.com/news/categoryfront.php/id/133/Issue_45__November_.html','','',0),
     Array('131',1, null,'Issue 44 (October)','http://www.pwmnet.com/news/categoryfront.php/id/131/Issue_44__October_.html','','',0),
     Array('129',1, null,'Issue 43 (September)','http://www.pwmnet.com/news/categoryfront.php/id/129/Issue_43__September_.html','','',0),
     Array('128',1, null,'Issue 42 (July/August)','http://www.pwmnet.com/news/categoryfront.php/id/128/Issue_42__July_August_.html','','',0),
     Array('125',1, null,'Issue 41 (June)','http://www.pwmnet.com/news/categoryfront.php/id/125/Issue_41__June_.html','','',0),
     Array('122',1, null,'Issue 40 (May)','http://www.pwmnet.com/news/categoryfront.php/id/122/Issue_40__May_.html','','',0),
     Array('120',1, null,'Issue 39 (April)','http://www.pwmnet.com/news/categoryfront.php/id/120/Issue_39__April_.html','','',0),
     Array('118',1, null,'Issue 38 (March)','http://www.pwmnet.com/news/categoryfront.php/id/118/Issue_38__March_.html','','',0),
     Array('115',1, null,'Issue 37 (February)','http://www.pwmnet.com/news/categoryfront.php/id/115/Issue_37__February_.html','','',0)),'2006','http://www.pwmnet.com/news/categoryfront.php/id/114/2006.html','','',0),
   Array('93',1, Array(
     Array('113',1, null,'Issue 36 (December/January)','http://www.pwmnet.com/news/categoryfront.php/id/113/Issue_36__December_January_.html','','',0),
     Array('112',1, null,'Issue 35 (November)','http://www.pwmnet.com/news/categoryfront.php/id/112/Issue_35__November_.html','','',0),
     Array('109',1, null,'Issue 34 (October)','http://www.pwmnet.com/news/categoryfront.php/id/109/Issue_34__October_.html','','',0),
     Array('108',1, null,'Issue 33 (September)','http://www.pwmnet.com/news/categoryfront.php/id/108/Issue_33__September_.html','','',0),
     Array('104',1, null,'Issue 32 (July/August)','http://www.pwmnet.com/news/categoryfront.php/id/104/Issue_32__July_August_.html','','',0),
     Array('103',1, null,'Issue 31 (June)','http://www.pwmnet.com/news/categoryfront.php/id/103/Issue_31__June_.html','','',0),
     Array('101',1, null,'Issue 30 (May)','http://www.pwmnet.com/news/categoryfront.php/id/101/Issue_30__May_.html','','',0),
     Array('98',1, null,'Issue 29 (April)','http://www.pwmnet.com/news/categoryfront.php/id/98/Issue_29__April_.html','','',0),
     Array('97',1, null,'Issue 28 (March)','http://www.pwmnet.com/news/categoryfront.php/id/97/Issue_28__March_.html','','',0),
     Array('94',1, null,'Issue 27 (February)','http://www.pwmnet.com/news/categoryfront.php/id/94/Issue_27__February_.html','','',0)),'2005','http://www.pwmnet.com/news/categoryfront.php/id/93/2005.html','','',0),
   Array('70',1, Array(
     Array('89',1, null,'Issue 26 (December)','http://www.pwmnet.com/news/categoryfront.php/id/89/Issue_26__December_.html','','',0),
     Array('88',1, null,'Issue 25 (November)','http://www.pwmnet.com/news/categoryfront.php/id/88/Issue_25__November_.html','','',0),
     Array('87',1, null,'Issue 24 (October)','http://www.pwmnet.com/news/categoryfront.php/id/87/Issue_24__October_.html','','',0),
     Array('86',1, null,'Issue 23 (September)','http://www.pwmnet.com/news/categoryfront.php/id/86/Issue_23__September_.html','','',0),
     Array('84',1, null,'Issue 22 (July/August)','http://www.pwmnet.com/news/categoryfront.php/id/84/Issue_22__July_August_.html','','',0),
     Array('81',1, null,'Issue 21 (June)','http://www.pwmnet.com/news/categoryfront.php/id/81/Issue_21__June_.html','','',0),
     Array('77',1, null,'Issue 20 (May)','http://www.pwmnet.com/news/categoryfront.php/id/77/Issue_20__May_.html','','',0),
     Array('73',1, null,'Issue 19 (April)','http://www.pwmnet.com/news/categoryfront.php/id/73/Issue_19__April_.html','','',0),
     Array('72',1, null,'Issue 18 (March)','http://www.pwmnet.com/news/categoryfront.php/id/72/Issue_18__March_.html','','',0),
     Array('71',1, null,'Issue 17 (February)','http://www.pwmnet.com/news/categoryfront.php/id/71/Issue_17__February_.html','','',0)),'2004','http://www.pwmnet.com/news/categoryfront.php/id/70/2004.html','','',0),
   Array('38',1, Array(
     Array('69',1, null,'Issue 16 (December)','http://www.pwmnet.com/news/categoryfront.php/id/69/Issue_16__December_.html','','',0),
     Array('67',1, null,'Issue 15 (November)','http://www.pwmnet.com/news/categoryfront.php/id/67/Issue_15__November_.html','','',0),
     Array('64',1, null,'Issue 14 (October)','http://www.pwmnet.com/news/categoryfront.php/id/64/Issue_14__October_.html','','',0),
     Array('62',1, null,'Issue 13 (September)','http://www.pwmnet.com/news/categoryfront.php/id/62/Issue_13__September_.html','','',0),
     Array('61',1, null,'Issue 12 (July/August)','http://www.pwmnet.com/news/categoryfront.php/id/61/Issue_12__July_August_.html','','',0),
     Array('56',1, null,'Issue 11 (June)','http://www.pwmnet.com/news/categoryfront.php/id/56/Issue_11__June_.html','','',0),
     Array('55',1, null,'Issue 10 (May)','http://www.pwmnet.com/news/categoryfront.php/id/55/Issue_10__May_.html','','',0),
     Array('51',1, null,'Issue 9 (April)','http://www.pwmnet.com/news/categoryfront.php/id/51/Issue_9__April_.html','','',0),
     Array('47',1, null,'Issue 8 (March)','http://www.pwmnet.com/news/categoryfront.php/id/47/Issue_8__March_.html','','',0),
     Array('40',1, null,'Issue 7 (February)','http://www.pwmnet.com/news/categoryfront.php/id/40/Issue_7__February_.html','','',0)),'2003','http://www.pwmnet.com/news/categoryfront.php/id/38/2003.html','','',0),
   Array('39',1, Array(
     Array('42',1, null,'Issue 6  (Dec.)','http://www.pwmnet.com/news/categoryfront.php/id/42/Issue_6___Dec._.html','','',0),
     Array('43',1, null,'Issue 5 (Nov.)','http://www.pwmnet.com/news/categoryfront.php/id/43/Issue_5__Nov._.html','','',0),
     Array('44',1, null,'Issue 4 (Oct.)','http://www.pwmnet.com/news/categoryfront.php/id/44/Issue_4__Oct._.html','','',0),
     Array('49',1, null,'Issue 3 (July)','http://www.pwmnet.com/news/categoryfront.php/id/49/Issue_3__July_.html','','',0),
     Array('50',1, null,'Issue 2 (April)','http://www.pwmnet.com/news/categoryfront.php/id/50/Issue_2__April_.html','','',0)),'2002','http://www.pwmnet.com/news/categoryfront.php/id/39/2002.html','','',0),
   Array('53',1, Array(
     Array('54',1, null,'Issue 1 (Dec.)','http://www.pwmnet.com/news/categoryfront.php/id/54/Issue_1__Dec._.html','','',0)),'2001','http://www.pwmnet.com/news/categoryfront.php/id/53/2001.html','','',0)),'Archives','http://www.pwmnet.com/news/categoryfront.php/id/37/Archives.html','','',0),
 Array('232',1, Array(
   Array('233',1, Array(
     Array('234',1, null,'March','http://www.pwmnet.com/news/categoryfront.php/id/234/March.html','','',0)),'2009','http://www.pwmnet.com/news/categoryfront.php/id/233/2009.html','','',0),
   Array('235',1, Array(
     Array('236',1, null,'October','http://www.pwmnet.com/news/categoryfront.php/id/236/October.html','','',0)),'2008','http://www.pwmnet.com/news/categoryfront.php/id/235/2008.html','','',0)),'PWM Asia Archives','http://www.pwmnet.com/news/categoryfront.php/id/232/PWM_Asia_Archives.html','','',0));
NavbarItems[1] = Array(
 Array('31',1, Array(
   Array('187',1, null,'ABOUT US','/info/about_us.php','','',0),
   Array('188',1, null,'MAGAZINE','http://www.pwmnet.com/news/fullstory.php/aid/2337/Magazine.html','','',0),
   Array('137',1, null,'EVENTS','http://www.ftbusinessevents.com/ \"target=\"_blank\"','','',0),
   Array('33',1, null,'CONTACT US','/info/contact_us.php','','',0),
   Array('32',1, null,'ADVERTISING','http://www.pwmnet.com/news/fullstory.php/aid/957/','','',0),
   Array('237',1, Array(
     Array('238',1, null,'News & Analysis','http://www.pwmnet.com/news/categoryfront.php/id/238/News___Analysis.html','','',0),
     Array('240',1, null,'Features &Interviews','http://www.pwmnet.com/news/categoryfront.php/id/240/Features__Interviews.html','','',0),
     Array('242',1, null,'Products','http://www.pwmnet.com/news/categoryfront.php/id/242/Products.html','','',0),
     Array('243',1, null,'Operations & Technology','http://www.pwmnet.com/news/categoryfront.php/id/243/Operations___Technology.html','','',0)),'PWM ASIA','http://www.pwmnet.com/news/categoryfront.php/id/237/PWM_ASIA.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 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>');
}

// 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%%<img src="http://www.pwmnet.com/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%%<img src="http://www.pwmnet.com/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.pwmnet.com/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%%<img src="http://www.pwmnet.com/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>')
 )
);

PadlockTemplate='<img src="http://www.pwmnet.com/pixmaps/padlock.gif" border="0" align="right" hspace="1" vspace="1">';
