NavbarItems = Array(3);
NavbarItems[0] = Array(
 Array('1',1, Array(
   Array('92',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Industry News</B></SPAN></FONT>','/news/categoryfront.php/id/92/Industry_News.html','','',0),
   Array('222',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">New Products</B></SPAN></FONT>','/news/categoryfront.php/id/222/New_Products.html','','',0),
   Array('198',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Industry Events</B></SPAN></FONT>','/news/categoryfront.php/id/198/Industry_Events.html','','',0),
   Array('201',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Association News</B></SPAN></FONT>','/news/categoryfront.php/id/201/Association_News.html','','',0),
   Array('199',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Business Monitor</B></SPAN></FONT>','/news/categoryfront.php/id/199/Business_Monitor.html','','',0),
   Array('203',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Company Profiles</B></SPAN></FONT>','/news/categoryfront.php/id/203/Company_Profiles.html','','',0),
   Array('255',1, Array(
     Array('251',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Marketing</SPAN></FONT>','/news/categoryfront.php/id/251/Marketing.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Featured Articles</B></SPAN></FONT>','/news/categoryfront.php/id/255/Featured_Articles.html','','',0),
   Array('147',1, Array(
     Array('104',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Menswear</SPAN></FONT>','/news/categoryfront.php/id/104/Menswear.html','','',0),
     Array('106',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Outerwear</SPAN></FONT>','/news/categoryfront.php/id/106/Outerwear.html','','',0),
     Array('246',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">T-Shirts</SPAN></FONT>','/news/categoryfront.php/id/246/T-Shirts.html','','',0),
     Array('267',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Underwear</SPAN></FONT>','/news/categoryfront.php/id/267/Underwear.html','','',0),
     Array('252',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Urban Lifestyle</SPAN></FONT>','/news/categoryfront.php/id/252/Urban_Lifestyle.html','','',0),
     Array('101',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Womenswear</SPAN></FONT>','/news/categoryfront.php/id/101/Womenswear.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Promotional Clothing</B></SPAN></FONT>','/news/categoryfront.php/id/147/Promotional_Clothing.html','','',0),
   Array('191',1, Array(
     Array('311',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Health & Fitness</SPAN></FONT>','/news/categoryfront.php/id/311/Health___Fitness.html','','',0),
     Array('100',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Golfwear</SPAN></FONT>','/news/categoryfront.php/id/100/Golfwear.html','','',0),
     Array('102',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Sportswear</SPAN></FONT>','/news/categoryfront.php/id/102/Sportswear.html','','',0),
     Array('316',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Teamwear</SPAN></FONT>','/news/categoryfront.php/id/316/Teamwear.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Sports Clothing</B></SPAN></FONT>','/news/categoryfront.php/id/191/Sports_Clothing.html','','',0),
   Array('190',1, Array(
     Array('239',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Corporatewear</SPAN></FONT>','/news/categoryfront.php/id/239/Corporatewear.html','','',0),
     Array('299',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Health & Hospitality Wear</SPAN></FONT>','/news/categoryfront.php/id/299/Health___Hospitality_Wear.html','','',0),
     Array('97',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Schoolwear</SPAN></FONT>','/news/categoryfront.php/id/97/Schoolwear.html','','',0),
     Array('94',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Workwear</SPAN></FONT>','/news/categoryfront.php/id/94/Workwear.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Uniforms</B></SPAN></FONT>','/news/categoryfront.php/id/190/Uniforms.html','','',0),
   Array('93',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Bespoke Clothing</B></SPAN></FONT>','/news/categoryfront.php/id/93/Bespoke_Clothing.html','','',0),
   Array('220',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Organic Clothing</B></SPAN></FONT>','/news/categoryfront.php/id/220/Organic_Clothing.html','','',0),
   Array('148',1, Array(
     Array('114',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Bags</SPAN></FONT>','/news/categoryfront.php/id/114/Bags.html','','',0),
     Array('111',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Headwear</SPAN></FONT>','/news/categoryfront.php/id/111/Headwear.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Accessories</B></SPAN></FONT>','/news/categoryfront.php/id/148/Accessories.html','','',0),
   Array('225',1, Array(
     Array('330',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Ancillary Products</SPAN></FONT>','/news/categoryfront.php/id/330/Ancillary_Products.html','','',0),
     Array('226',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Christmas Products</SPAN></FONT>','/news/categoryfront.php/id/226/Christmas_Products.html','','',0),
     Array('281',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Engraving</SPAN></FONT>','/news/categoryfront.php/id/281/Engraving.html','','',0),
     Array('232',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Promotional Products</SPAN></FONT>','/news/categoryfront.php/id/232/Promotional_Products.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Promotional Products</B></SPAN></FONT>','/news/categoryfront.php/id/225/Promotional_Products.html','','',0),
   Array('149',1, Array(
     Array('108',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Digital Technology</SPAN></FONT>','/news/categoryfront.php/id/108/Digital_Technology.html','','',0),
     Array('95',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Embroidery</SPAN></FONT>','/news/categoryfront.php/id/95/Embroidery.html','','',0),
     Array('107',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">General Software</SPAN></FONT>','/news/categoryfront.php/id/107/General_Software.html','','',0),
     Array('96',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Screen Printing Machines & Services</SPAN></FONT>','/news/categoryfront.php/id/96/Screen_Printing_Machines___Services.html','','',0),
     Array('99',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Transfer Technology</SPAN></FONT>','/news/categoryfront.php/id/99/Transfer_Technology.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Decoration Services & Software</B></SPAN></FONT>','/news/categoryfront.php/id/149/Decoration_Services___Software.html','','',0),
   Array('238',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Brochure Previews</B></SPAN></FONT>','/news/categoryfront.php/id/238/Brochure_Previews.html','','',0),
   Array('305',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">What\'s New</B></SPAN></FONT>','/news/categoryfront.php/id/305/What_s_New.html','','',0),
   Array('328',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Supplier Profiles</B></SPAN></FONT>','/news/categoryfront.php/id/328/Supplier_Profiles.html','','',0),
   Array('337',1, null,'','','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">P&P Magazine</B></SPAN></FONT>','/news/categoryfront.php/id/1/P_P_Magazine.html','','0',0),
 Array('146',1, null,'','','','',0));
NavbarItems[1] = Array(
 Array('166',1, Array(
   Array('167',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Home</B></SPAN></FONT>','http://www.printwearandpromotion.co.uk/','','',0),
   Array('168',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">About Us</B></SPAN></FONT>','/info/about_us.php','','',0),
   Array('169',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Show Registration</B></SPAN></FONT>','http://www.printwearandpromotion.co.uk/news/categoryfront.php/id/399/Registration.html','','',0),
   Array('170',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Features List 2012</B></SPAN></FONT>','http://www.printwearandpromotion.co.uk/files/PP_2012_Features_List_Copy_Deadlines.pdf','','',0),
   Array('10',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Directory</B></SPAN></FONT>','http://content.yudu.com/A1srvc/PrintwearDirect1112/','','',0),
   Array('172',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('125',1, Array(
   Array('392',1, Array(
     Array('393',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Exhibiting</B></SPAN></FONT>','/news/categoryfront.php/id/393/Exhibiting.html','','',0),
     Array('394',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Visiting</B></SPAN></FONT>','/news/categoryfront.php/id/394/Visiting.html','','',0),
     Array('395',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Fashion Show</B></SPAN></FONT>','/news/categoryfront.php/id/395/Fashion_Show.html','','',0),
     Array('396',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Seminars</B></SPAN></FONT>','/news/categoryfront.php/id/396/Seminars.html','','',0),
     Array('397',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Latest News</B></SPAN></FONT>','/news/categoryfront.php/id/397/Latest_News.html','','',0),
     Array('399',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Registration</B></SPAN></FONT>','/news/categoryfront.php/id/399/Registration.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial; color: red\">P&P LIVE 2012</B></SPAN></FONT>','/news/categoryfront.php/id/392/P_P_LIVE_2012.html','','',0),
   Array('359',1, Array(
     Array('368',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Exhibitor Manual</B></SPAN></FONT>','/news/categoryfront.php/id/368/Exhibitor_Manual.html','','',0),
     Array('373',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">How to Get There</B></SPAN></FONT>','/news/categoryfront.php/id/373/How_to_Get_There.html','','',0),
     Array('365',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Contact Us</B></SPAN></FONT>','/news/categoryfront.php/id/365/Contact_Us.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial;\">P&P LIVE 2011</B></SPAN></FONT>','/news/categoryfront.php/id/359/P_P_LIVE_2011.html','','',0),
   Array('327',1, Array(
     Array('196',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial; color: black\">Video Footage of the Show </B></SPAN></FONT>','/news/categoryfront.php/id/196/Video_Footage_of_the_Show_.html','','',0),
     Array('135',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial; color: black\">Testimonials</B></SPAN></FONT>','/news/categoryfront.php/id/135/Testimonials.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">P&P 2010</B></SPAN></FONT>','','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">The Exhibition</B></SPAN></FONT>','/news/categoryfront.php/id/125/The_Exhibition.html','','',0),
 Array('243',1, Array(
   Array('403',1, Array(
     Array('405',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">February</SPAN></FONT>','http://content.yudu.com/A1vetc/PrintwearFeb2012','','',0),
     Array('404',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">January</SPAN></FONT>','http://content.yudu.com/A1v1wu/PrintwearJan2012/','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">2012</B></SPAN></FONT>','','','',0),
   Array('374',1, Array(
     Array('402',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">December</SPAN></FONT>','http://content.yudu.com/A1upo1/PrintwearDec2011','','',0),
     Array('400',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">November</SPAN></FONT>','http://content.yudu.com/A1udiq/PrintwearNov2011','','',0),
     Array('391',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">October</SPAN></FONT>','http://content.yudu.com/A1u0vj/PrintwearOct2011','','',0),
     Array('390',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">September</SPAN></FONT>','http://content.yudu.com/A1tlkw/PrintwearSept2011','','',0),
     Array('389',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">August</SPAN></FONT>','http://content.yudu.com/A1t7ol/PrintwearAug2011/','','',0),
     Array('387',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">July</SPAN></FONT>','http://content.yudu.com/A1srfy/PrintwearJuly2011','','',0),
     Array('386',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">June</SPAN></FONT>','http://content.yudu.com/A1s9po/PrintwearJune2011','','',0),
     Array('384',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">May</SPAN></FONT>','http://content.yudu.com/A1rvsm/PrintwearMay2011','','',0),
     Array('383',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">April</SPAN></FONT>','http://content.yudu.com/A1rk7t/PrintwearApril2011','','',0),
     Array('382',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">March</SPAN></FONT>','http://content.yudu.com/A1ralz/PrintwearMar2011','','',0),
     Array('379',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">February</SPAN></FONT>','http://content.yudu.com/A1qtac/printfeb11','','',0),
     Array('375',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">January</SPAN></FONT>','http://content.yudu.com/A1qgzy/PrintwearJan2011','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">2011</B></SPAN></FONT>','','','',0),
   Array('345',1, Array(
     Array('369',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">December</SPAN></FONT>','http://content.yudu.com/A1q1qc/PrintwearDec2010','','',0),
     Array('367',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">November</SPAN></FONT>','http://content.yudu.com/A1pjej/PrintwearNov2010/','','',0),
     Array('358',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">October</SPAN></FONT>','http://content.yudu.com/A1p6qv/PrintwearOctober2010','','',0),
     Array('357',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">September</SPAN></FONT>','http://content.yudu.com/A1otuz/PrintwearSept2010/ ','','',0),
     Array('356',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">August</SPAN></FONT>','http://content.yudu.com/A1ogww/PrintwearAug2010','','',0),
     Array('355',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">July</SPAN></FONT>','http://content.yudu.com/A1o50y/PrintwearJuly10','','',0),
     Array('354',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">June</SPAN></FONT>','http://content.yudu.com/A1nsqm/PrintwearJune2010','','',0),
     Array('353',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">May</SPAN></FONT>','http://content.yudu.com/A1nif0/PrintwearMay2010/resources/index.htm?referrerUrl=','','',0),
     Array('351',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">April</SPAN></FONT>','http://content.yudu.com/A1n83s/PrintwearApril2010/resources/index.htm?referrerUrl=','','',0),
     Array('349',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">March</SPAN></FONT>','http://content.yudu.com/A1mxho/PrintwearMar10/resources/index.htm?referrerUrl=','','',0),
     Array('348',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">February</SPAN></FONT>','http://content.yudu.com/A1lq8g/PrintwearFeb2010/resources/index.htm?referrerUrl=','','',0),
     Array('346',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">January</SPAN></FONT>','http://content.yudu.com/A1k8tw/PrintwearJan2010/resources/index.htm?referrerUrl=','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">2010</B></SPAN></FONT>','','','',0),
   Array('301',1, Array(
     Array('341',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">December</SPAN></FONT>','http://content.yudu.com/A1iwan/PrintwearDec09/resources/index.htm?referrerUrl=','','',0),
     Array('340',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">November</SPAN></FONT>','http://content.yudu.com/A1hszv/PrintwearNov09/resources/index.htm?referrerUrl=','','',0),
     Array('338',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">October</SPAN></FONT>','http://content.yudu.com/A1gfkl/PrintwearOct09/resources/index.htm?referrerUrl=','','',0),
     Array('332',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">September</SPAN></FONT>','http://content.yudu.com/A1euf6/PrintwearSept09/resources/index.htm?referrerUrl=','','',0),
     Array('331',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">August</SPAN></FONT>','http://content.yudu.com/A1cefn/PrintwearAug09/resources/index.htm?referrerUrl=','','',0),
     Array('320',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">July</SPAN></FONT>','http://content.yudu.com/A19c27/PrintwearJuly09/resources/index.htm?referrerUrl=','','',0),
     Array('318',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">June</SPAN></FONT>','http://content.yudu.com/A1810r/PrintwearJune09/resources/index.htm?referrerUrl=','','',0),
     Array('314',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">May</SPAN></FONT>','http://content.yudu.com/A16w4r/PrintwearMay09/resources/index.htm?referrerUrl=','','',0),
     Array('315',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">April</SPAN></FONT>','http://content.yudu.com/A15ey8/PrintwearApr09/resources/index.htm?referrerUrl=','','',0),
     Array('309',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">March</SPAN></FONT>','http://content.yudu.com/A14cbb/PrintwearMarch09/resources/index.htm?referrerUrl=','','',0),
     Array('306',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">February</SPAN></FONT>','http://content.yudu.com/A12b08/PrintwearFeb09/resources/index.htm?referrerUrl=','','',0),
     Array('302',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">January</SPAN></FONT>','http://content.yudu.com/Az8nk/PrintwearJan09/resources/index.htm?referrerUrl=','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">2009</B></SPAN></FONT>','','','',0),
   Array('244',1, Array(
     Array('297',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">December</SPAN></FONT>','http://publishing.yudu.com/Awci2/PrintProDec08/resources/index.htm?referrerUrl=','','',0),
     Array('282',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">November</SPAN></FONT>','http://publishing.yudu.com/Atqd2/PrintwearNov08/resources/index.htm?referrerUrl=','','',0),
     Array('276',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">October</SPAN></FONT>','http://publishing.yudu.com/Aqrvm/PrintPromOct08/resources/index.htm?referrerUrl=','','',0),
     Array('271',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">September</SPAN></FONT>','http://viewer.zmags.co.uk/showmag.php?mid=hdqss#/page0/','','',0),
     Array('270',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">August</SPAN></FONT>','http://viewer.zmags.co.uk/showmag.php?mid=hqrww#/page0/','','',0),
     Array('268',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">July</SPAN></FONT>','http://viewer.zmags.co.uk/showmag.php?mid=gdrhf','','',0),
     Array('263',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">June</SPAN></FONT>','http://viewer.zmags.co.uk/showmag.php?mid=fdspd','','',0),
     Array('262',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">May</SPAN></FONT>','http://viewer.zmags.co.uk/showmag.php?mid=fwrfq','','',0),
     Array('260',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">April</SPAN></FONT>','http://viewer.zmags.co.uk/showmag.php?mid=dpgst','','',0),
     Array('254',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">March</SPAN></FONT>','http://viewer.zmags.co.uk/showmag.php?mid=stqrw#/page0/','','',0),
     Array('247',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">February</SPAN></FONT>','http://viewer.zmags.co.uk/showmag.php?mid=pfsfs&preview=1&_x=1#/page0/','','',0),
     Array('245',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">January</SPAN></FONT>','http://viewer.zmags.co.uk/showmag.php?mid=pshsq#/page0/','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">2008</B></SPAN></FONT>','','','',0),
   Array('264',1, null,'Directory 10/11','http://content.yudu.com/A1srvc/PrintwearDirect1112/','/images/decor//cat_nav_264.gif','',0)),'Digitised Issues','','','',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.printwearandpromotion.co.uk/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.printwearandpromotion.co.uk/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.printwearandpromotion.co.uk/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.printwearandpromotion.co.uk/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';

