NavbarItems = Array(3);
NavbarItems[0] = Array(
 Array('11',1, Array(
   Array('13',1, null,'First Words','/news/categoryfront.php/id/13/First_Words.html','','',0),
   Array('14',1, null,'Latest News','/news/categoryfront.php/id/14/Latest_News.html','','',0),
   Array('311',1, null,'Launch Pad','/news/categoryfront.php/id/311/Launch_Pad.html','','',0),
   Array('145',1, null,'View from the Industry','/news/categoryfront.php/id/145/View_from_the_Industry.html','','',0),
   Array('18',1, null,'Head to Head','/news/categoryfront.php/id/18/Head_to_Head.html','','',0),
   Array('348',1, null,'Field Report','/news/categoryfront.php/id/348/Field_Report.html','','',0),
   Array('104',1, Array(
     Array('147',1, null,'Brands','/news/categoryfront.php/id/147/Brands.html','','',0),
     Array('277',1, null,'Custom Fitting & Technology','/news/categoryfront.php/id/277/Custom_Fitting___Technology.html','','',0),
     Array('151',1, null,'Drivers','/news/categoryfront.php/id/151/Drivers.html','','',0),
     Array('176',1, null,'Footwear','/news/categoryfront.php/id/176/Footwear.html','','',0),
     Array('395',1, null,'Exhibitions','/news/categoryfront.php/id/395/Exhibitions.html','','',0),
     Array('153',1, null,'Gloves','/news/categoryfront.php/id/153/Gloves.html','','',0),
     Array('322',1, null,'Golf Accessories','/news/categoryfront.php/id/322/Golf_Accessories.html','','',0),
     Array('183',1, null,'Golf Apparel','/news/categoryfront.php/id/183/Golf_Apparel.html','','',0),
     Array('180',1, null,'Golf Balls','/news/categoryfront.php/id/180/Golf_Balls.html','','',0),
     Array('201',1, null,'Golf Shoes','/news/categoryfront.php/id/201/Golf_Shoes.html','','',0),
     Array('179',1, null,'Grips & Shafts','/news/categoryfront.php/id/179/Grips___Shafts.html','','',0),
     Array('268',1, null,'Hybrids','/news/categoryfront.php/id/268/Hybrids.html','','',0),
     Array('200',1, null,'Irons','/news/categoryfront.php/id/200/Irons.html','','',0),
     Array('250',1, null,'Autumn/Winter Apparel','/news/categoryfront.php/id/250/Autumn_Winter_Apparel.html','','',0),
     Array('154',1, null,'Putters','/news/categoryfront.php/id/154/Putters.html','','',0),
     Array('181',1, null,'Rangefinders','/news/categoryfront.php/id/181/Rangefinders.html','','',0),
     Array('230',1, null,'Starter/Junior Sets','/news/categoryfront.php/id/230/Starter_Junior_Sets.html','','',0),
     Array('146',1, null,'Trolleys','/news/categoryfront.php/id/146/Trolleys.html','','',0),
     Array('149',1, null,'Waterproofs','/news/categoryfront.php/id/149/Waterproofs.html','','',0),
     Array('150',1, null,'Wedges','/news/categoryfront.php/id/150/Wedges.html','','',0)),'Showcase','/news/categoryfront.php/id/104/Showcase.html','','',0),
   Array('347',1, null,'Out of Bounds','/news/categoryfront.php/id/347/Out_of_Bounds.html','','',0),
   Array('353',1, null,'Front of Shop','/news/categoryfront.php/id/353/Front_of_Shop.html','','',0),
   Array('354',1, null,'Trading Intelligence','/news/categoryfront.php/id/354/Trading_Intelligence.html','','',0),
   Array('196',1, null,'Custom-fit Workshop','/news/categoryfront.php/id/196/Custom-fit_Workshop.html','','',0),
   Array('355',1, null,'Cover Story','/news/categoryfront.php/id/355/Cover_Story.html','','',0),
   Array('356',1, null,'Country Code','/news/categoryfront.php/id/356/Country_Code.html','','',0),
   Array('357',1, Array(
     Array('358',1, null,'Apparel','/news/categoryfront.php/id/358/Apparel.html','','',0),
     Array('359',1, null,'Balls','/news/categoryfront.php/id/359/Balls.html','','',0),
     Array('360',1, null,'Clubs','/news/categoryfront.php/id/360/Clubs.html','','',0),
     Array('361',1, null,'Footwear & Accessories','/news/categoryfront.php/id/361/Footwear___Accessories.html','','',0),
     Array('362',1, null,'Technology','/news/categoryfront.php/id/362/Technology.html','','',0)),'PGA Show','/news/categoryfront.php/id/357/PGA_Show.html','','',0)),'','','','',0),
 Array('242',1, Array(
   Array('402',1, null,'Apple iOS','http://www.sgbgolf.co.uk/news/fullstory.php/aid/4383/SGB_Golf_now_available_to_read_on_Apple_iOS_devices_.html','','',0),
   Array('400',1, Array(
     Array('401',1, null,'January','http://content.yudu.com/A1vckp/SGBGolfJan2012','','',0)),'2012','http://content.yudu.com/A1vckp/SGBGolfJan2012','','',0),
   Array('376',1, Array(
     Array('398',1, null,'Nov/Dec','http://content.yudu.com/A1uvs8/SGBGolfNovDec2011/','','',0),
     Array('396',1, null,'October','http://content.yudu.com/A1ucw5/SGBGolfOct2011','','',0),
     Array('393',1, null,'September','http://content.yudu.com/A1tzqm/SGBGolfSept2011/','','',0),
     Array('391',1, null,'August','http://content.yudu.com/A1tk56/SGBGolfAug2011','','',0),
     Array('389',1, null,'July','http://content.yudu.com/A1t6nt/SGBGolfJuly2011','','',0),
     Array('387',1, null,'June','http://content.yudu.com/A1smbf/SGBGolfJune11','','',0),
     Array('386',1, null,'May','http://content.yudu.com/A1s7o8/SGBGolfMay2011','','',0),
     Array('384',1, null,'April','http://content.yudu.com/A1rtuz/SGBGolfApril2011','','',0),
     Array('382',1, null,'March','http://content.yudu.com/A1rgiy/SGBGolfMar2011','','',0),
     Array('380',1, null,'February','http://content.yudu.com/A1r30h/SGBGolfFEB2011','','',0),
     Array('377',1, null,'January','http://content.yudu.com/A1qoug/sgbgolfjan11/','','',0)),'2011','','','',0),
   Array('349',1, Array(
     Array('375',1, null,'Nov/Dec','http://content.yudu.com/A1q0r2/SGBgolfNovDec2010','','',0),
     Array('374',1, null,'October','http://content.yudu.com/A1p67q/SGBGolfOct2010/','','',0),
     Array('373',1, null,'September','http://content.yudu.com/A1p2zz/SGBGolfSept10','','',0),
     Array('371',1, null,'August','http://content.yudu.com/A1oty1/SGBGolfAug2010','','',0),
     Array('369',1, null,'July','http://content.yudu.com/A1oiqe/SGBGolfjuly2010','','',0),
     Array('367',1, null,'June','http://content.yudu.com/A1o7x0/SGBGolfJune10','','',0),
     Array('366',1, null,'May','http://content.yudu.com/A1nspp/SGBGolfMay2010','','',0),
     Array('365',1, null,'April','http://content.yudu.com/A1ne47/SGBGolfApril2010','','',0),
     Array('363',1, null,'March','http://content.yudu.com/A1n6je/SGBGolfMar2010/resources/index.htm?referrerUrl=','','',0),
     Array('350',1, null,'February','http://content.yudu.com/A1mwq1/SGBgolfFeb2010/resources/index.htm?referrerUrl=','','',0)),'2010','','','',0),
   Array('305',1, Array(
     Array('345',1, null,'Dec/Jan','http://content.yudu.com/A1jiob/SGBGolfDec09jan10/resources/index.htm?referrerUrl=','','',0),
     Array('339',1, null,'October','http://content.yudu.com/A1gcek/SGBgolfOct09/resources/index.htm?referrerUrl=','','',0),
     Array('334',1, null,'September','http://content.yudu.com/A1fn2w/SGBGolfsept09/resources/index.htm?referrerUrl=','','',0),
     Array('336',1, null,'August','http://content.yudu.com/A1eb42/SGBGolfAug09/resources/index.htm?referrerUrl','','',0),
     Array('337',1, null,'July','http://content.yudu.com/A19w4t/SGBsportsJuly09/resources/index.htm?referrerUrl','','',0),
     Array('324',1, null,'June','http://content.yudu.com/A18ea2/SGBgolfJune09/resources/index.htm?referrerUrl=','','',0),
     Array('320',1, null,'May','http://content.yudu.com/A17lop/SGBGolfMay09/resources/index.htm?referrerUrl=','','',0),
     Array('309',1, null,'March','http://content.yudu.com/A14tcg/SGBGolfMar09/resources/index.htm?referrerUrl=','','',0),
     Array('306',1, null,'February','http://publishing.yudu.com/A12ovf/SGBGolfFeb09/resources/index.htm?referrerUrl=','','',0)),'2009','','','',0),
   Array('247',1, Array(
     Array('293',1, null,'Dec/Jan','http://publishing.yudu.com/Axpvr/SGBGolf-DecJan09/resources/index.htm?referrerUrl=','','',0),
     Array('284',1, null,'October','http://publishing.yudu.com/Ar4zw/sgbGolfOct08/resources/index.htm?referrerUrl=','','',0),
     Array('280',1, null,'September','http://publishing.yudu.com/Aojlr/sgbGolfSept08/resources/index.htm?referrerUrl=','','',0),
     Array('276',1, null,'August','http://publishing.yudu.com/Algho/SGBGolfAug2008/resources/index.htm?referrerUrl=','','',0),
     Array('267',1, null,'July','http://publishing.yudu.com/Ahja0/sgbgolfjuly08/resources/index.htm?referrerUrl=','','',0),
     Array('263',1, null,'June','http://viewer.zmags.co.uk/showmag.php?mid=fgwsq','','',0),
     Array('258',1, null,'May','http://viewer.zmags.co.uk/showmag.php?mid=fqfrg&preview=1&_x=1','','',0),
     Array('257',1, null,'April','http://viewer.zmags.co.uk/showmag.php?mid=dprtg&preview=1&_x=1#/page2/','','',0),
     Array('252',1, null,'March','http://viewer.zmags.co.uk/showmag.php?mid=sddhp','','',0),
     Array('249',1, null,'February','http://viewer.zmags.co.uk/showmag.php?mid=swtfs#','','',0),
     Array('248',1, null,'January','http://viewer.zmags.co.uk/showmag.php?mid=ppqrw&preview=1&_x=1','','',0)),'2008','','','',0),
   Array('243',1, Array(
     Array('246',1, null,'Nov/Dec','http://viewer.zmags.co.uk/showmag.php?mid=thpgt','','',0),
     Array('245',1, null,'October','http://viewer.zmags.co.uk/showmag.php?mid=tpphs','','',0),
     Array('244',1, null,'September','http://viewer.zmags.co.uk/showmag.php?mid=twpqp','','',0)),'2007','','','',0)),'Digital Issues','','','',0),
 Array('122',1, Array(
   Array('403',1, Array(
     Array('404',1, null,'January','/news/categoryfront.php/id/404/January.html','','',0)),'2012','/news/categoryfront.php/id/403/2012.html','','',0),
   Array('378',1, Array(
     Array('399',1, null,'Nov/Dec','/news/categoryfront.php/id/399/Nov_Dec.html','','',0),
     Array('397',1, null,'October','/news/categoryfront.php/id/397/October.html','','',0),
     Array('394',1, null,'September','/news/categoryfront.php/id/394/September.html','','',0),
     Array('392',1, null,'August','/news/categoryfront.php/id/392/August.html','','',0),
     Array('390',1, null,'July','/news/categoryfront.php/id/390/July.html','','',0),
     Array('388',1, null,'June','/news/categoryfront.php/id/388/June.html','','',0),
     Array('385',1, null,'April','/news/categoryfront.php/id/385/April.html','','',0),
     Array('383',1, null,'March','/news/categoryfront.php/id/383/March.html','','',0),
     Array('381',1, null,'February','/news/categoryfront.php/id/381/February.html','','',0),
     Array('379',1, null,'January','/news/categoryfront.php/id/379/January.html','','',0)),'2011','/news/categoryfront.php/id/378/2011.html','','',0),
   Array('351',1, Array(
     Array('372',1, null,'August','/news/categoryfront.php/id/372/August.html','','',0),
     Array('370',1, null,'July','/news/categoryfront.php/id/370/July.html','','',0),
     Array('368',1, null,'June','/news/categoryfront.php/id/368/June.html','','',0),
     Array('364',1, null,'March','/news/categoryfront.php/id/364/March.html','','',0),
     Array('352',1, null,'February','/news/categoryfront.php/id/352/February.html','','',0)),'2010','/news/categoryfront.php/id/351/2010.html','','',0),
   Array('303',1, Array(
     Array('346',1, null,'Dec/Jan','/news/categoryfront.php/id/346/Dec_Jan.html','','',0),
     Array('342',1, null,'October','/news/categoryfront.php/id/342/October.html','','',0),
     Array('340',1, null,'September','/news/categoryfront.php/id/340/September.html','','',0),
     Array('332',1, null,'August','/news/categoryfront.php/id/332/August.html','','',0),
     Array('330',1, null,'July','/news/categoryfront.php/id/330/July.html','','',0),
     Array('325',1, null,'June','/news/categoryfront.php/id/325/June.html','','',0),
     Array('321',1, null,'May','/news/categoryfront.php/id/321/May.html','','',0),
     Array('318',1, null,'April','/news/categoryfront.php/id/318/April.html','','',0),
     Array('310',1, null,'March','/news/categoryfront.php/id/310/March.html','','',0),
     Array('304',1, null,'February','/news/categoryfront.php/id/304/February.html','','',0)),'2009','/news/categoryfront.php/id/303/2009.html','','',0),
   Array('218',1, Array(
     Array('292',1, null,'Dec/Jan','/news/categoryfront.php/id/292/Dec_Jan.html','','',0),
     Array('287',1, null,'October','/news/categoryfront.php/id/287/October.html','','',0),
     Array('282',1, null,'September','/news/categoryfront.php/id/282/September.html','','',0),
     Array('275',1, null,'August','/news/categoryfront.php/id/275/August.html','','',0),
     Array('269',1, null,'July','/news/categoryfront.php/id/269/July.html','','',0),
     Array('264',1, null,'June','/news/categoryfront.php/id/264/June.html','','',0),
     Array('199',1, null,'May','/news/categoryfront.php/id/199/May.html','','',0),
     Array('223',1, null,'April','/news/categoryfront.php/id/223/April.html','','',0),
     Array('224',1, null,'March','/news/categoryfront.php/id/224/March.html','','',0),
     Array('225',1, null,'February','/news/categoryfront.php/id/225/February.html','','',0),
     Array('226',1, null,'January','/news/categoryfront.php/id/226/January.html','','',0)),'2008','/news/categoryfront.php/id/218/2008.html','','',0),
   Array('123',1, Array(
     Array('214',1, null,'Nov/Dec','/news/categoryfront.php/id/214/Nov_Dec.html','','',0),
     Array('213',1, null,'October','/news/categoryfront.php/id/213/October.html','','',0),
     Array('202',1, null,'September','/news/categoryfront.php/id/202/September.html','','',0),
     Array('132',1, null,'August','/news/categoryfront.php/id/132/August.html','','',0),
     Array('131',1, null,'July','/news/categoryfront.php/id/131/July.html','','',0),
     Array('130',1, null,'June','/news/categoryfront.php/id/130/June.html','','',0),
     Array('129',1, null,'May','/news/categoryfront.php/id/129/May.html','','',0),
     Array('128',1, null,'April','/news/categoryfront.php/id/128/April.html','','',0),
     Array('127',1, null,'March','/news/categoryfront.php/id/127/March.html','','',0),
     Array('126',1, null,'February','/news/categoryfront.php/id/126/February.html','','',0),
     Array('125',1, null,'January','/news/categoryfront.php/id/125/January.html','','',0)),'2007','/news/categoryfront.php/id/123/2007.html','','',0),
   Array('124',1, Array(
     Array('135',1, null,'October','/news/categoryfront.php/id/135/October.html','','',0),
     Array('136',1, null,'September','/news/categoryfront.php/id/136/September.html','','',0),
     Array('137',1, null,'August','/news/categoryfront.php/id/137/August.html','','',0),
     Array('138',1, null,'July','/news/categoryfront.php/id/138/July.html','','',0),
     Array('139',1, null,'June','/news/categoryfront.php/id/139/June.html','','',0),
     Array('140',1, null,'May','/news/categoryfront.php/id/140/May.html','','',0),
     Array('141',1, null,'April','/news/categoryfront.php/id/141/April.html','','',0),
     Array('142',1, null,'March','/news/categoryfront.php/id/142/March.html','','',0),
     Array('143',1, null,'February','/news/categoryfront.php/id/143/February.html','','',0),
     Array('144',1, null,'January','/news/categoryfront.php/id/144/January.html','','',0)),'2006','/news/categoryfront.php/id/124/2006.html','','',0)),'Back Issues','/news/categoryfront.php/id/122/Back_Issues.html','','',0));
NavbarItems[1] = Array(
 Array('6',1, Array(
   Array('109',1, null,'Home','http://www.sgbgolf.co.uk/','','',0),
   Array('7',1, null,'About Us','/info/about_us.php','','',0),
   Array('110',1, null,'Registration','http://www.connectingindustry.com/datateamcirculation.html','','',0),
   Array('113',1, null,'Online Rates','http://sgbgolf.pressflex.com/cp/15/Golf%20Online%20Rate%20Card.pdf','','',0),
   Array('8',1, null,'Contact Us','/info/contact_us.php','','',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>');
}

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.sgbgolf.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.sgbgolf.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.sgbgolf.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.sgbgolf.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';

