NavbarItems = Array(3);
NavbarItems[0] = Array(
 Array('3',1, Array(
   Array('13',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Comment</B></SPAN></FONT>','/news/categoryfront.php/id/13/Comment.html','','',0),
   Array('104',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Finance</B></SPAN></FONT>','/news/categoryfront.php/id/104/Finance.html','','',0),
   Array('21',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Industry News</B></SPAN></FONT>','/news/categoryfront.php/id/21/Industry_News.html','','',0),
   Array('100',1, Array(
     Array('71',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Education Show</SPAN></FONT>','/news/categoryfront.php/id/71/Education_Show.html','','',0),
     Array('115',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Interbuild</SPAN></FONT>','/news/categoryfront.php/id/115/Interbuild.html','','',0),
     Array('25',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Industry Events</SPAN></FONT>','/news/categoryfront.php/id/25/Industry_Events.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Industry Events</B></SPAN></FONT>','/news/categoryfront.php/id/100/Industry_Events.html','','',0),
   Array('75',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Product News</B></SPAN></FONT>','/news/categoryfront.php/id/75/Product_News.html','','',0),
   Array('22',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Talking Teachers</B></SPAN></FONT>','/news/categoryfront.php/id/22/Talking_Teachers.html','','',0),
   Array('56',1, Array(
     Array('39',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Audio, Visual & Presentation</SPAN></FONT>','/news/categoryfront.php/id/39/Audio,_Visual___Presentation.html','','',0),
     Array('43',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Behaviour & Special Needs</SPAN></FONT>','/news/categoryfront.php/id/43/Behaviour___Special_Needs.html','','',0),
     Array('31',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Buildings & Maintenance</SPAN></FONT>','/news/categoryfront.php/id/31/Buildings___Maintenance.html','','',0),
     Array('36',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Catering & Nutrition</SPAN></FONT>','/news/categoryfront.php/id/36/Catering___Nutrition.html','','',0),
     Array('41',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Cleaning & Hygiene</SPAN></FONT>','/news/categoryfront.php/id/41/Cleaning___Hygiene.html','','',0),
     Array('38',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Design & Build</SPAN></FONT>','/news/categoryfront.php/id/38/Design___Build.html','','',0),
     Array('59',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Environmental Focus</SPAN></FONT>','/news/categoryfront.php/id/59/Environmental_Focus.html','','',0),
     Array('35',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Furniture & Storage</SPAN></FONT>','/news/categoryfront.php/id/35/Furniture___Storage.html','','',0),
     Array('57',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Health, Hygiene & Safety</SPAN></FONT>','/news/categoryfront.php/id/57/Health,_Hygiene___Safety.html','','',0),
     Array('32',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">ICT</SPAN></FONT>','/news/categoryfront.php/id/32/ICT.html','','',0),
     Array('79',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Professional Development</SPAN></FONT>','/news/categoryfront.php/id/79/Professional_Development.html','','',0),
     Array('37',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Security</SPAN></FONT>','/news/categoryfront.php/id/37/Security.html','','',0),
     Array('40',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">School Trips</SPAN></FONT>','/news/categoryfront.php/id/40/School_Trips.html','','',0),
     Array('97',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">Other Features</SPAN></FONT>','/news/categoryfront.php/id/97/Other_Features.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Features</B></SPAN></FONT>','/news/categoryfront.php/id/56/Features.html','','',0),
   Array('27',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Showcase</B></SPAN></FONT>','/news/categoryfront.php/id/27/Showcase.html','','',0),
   Array('45',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Latest Publications</B></SPAN></FONT>','/news/categoryfront.php/id/45/Latest_Publications.html','','',0),
   Array('109',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Competition</B></SPAN></FONT>','/news/categoryfront.php/id/109/Competition.html','','',0),
   Array('110',1, null,'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Stop Press Archives</B></SPAN></FONT>','/news/categoryfront.php/id/110/Stop_Press_Archives.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Contents</B></SPAN></FONT>','/news/categoryfront.php/id/3/Contents.html','','',0),
 Array('80',1, Array(
   Array('122',1, Array(
     Array('133',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">July</SPAN></FONT>','http://content.yudu.com/A1o93r/ETJuly10','','',0),
     Array('132',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">June</SPAN></FONT>','http://content.yudu.com/A1o0q2/EducationJune10','','',0),
     Array('131',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">May</SPAN></FONT>','http://content.yudu.com/A1nqom/EducationMay2010','','',0),
     Array('129',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">April</SPAN></FONT>','http://content.yudu.com/A1nf5d/etapr2010/resources/index.htm?referrerUrl=','','',0),
     Array('128',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">March</SPAN></FONT>','http://content.yudu.com/A1n0oe/EducationMar2010/resources/index.htm?referrerUrl=','','',0),
     Array('125',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">February</SPAN></FONT>','http://content.yudu.com/A1m3b2/etfeb2010/resources/index.htm?referrerUrl=','','',0),
     Array('123',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">January</SPAN></FONT>','http://content.yudu.com/A1kwtw/ETJan2010/resources/index.htm?referrerUrl=','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">2010</B></SPAN></FONT>','','','',0),
   Array('82',1, Array(
     Array('119',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">December</SPAN></FONT>','http://content.yudu.com/A1jl2v/ETDec09/resources/index.htm?referrerUrl=','','',0),
     Array('116',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">November</SPAN></FONT>','http://content.yudu.com/A1i63d/ETNov09/resources/index.htm?referrerUrl=','','',0),
     Array('114',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">October</SPAN></FONT>','http://content.yudu.com/A1h16r/ETOct09/resources/index.htm?referrerUrl=','','',0),
     Array('112',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">September</SPAN></FONT>','http://content.yudu.com/A1ffd5/EducationSept09/resources/index.htm?referrerUrl=http%3A%2F%2Fwww.google.co.uk%2Fig%2Fgmailmax%3Fmid%3D88%26th%3D123848547e8dd272','','',0),
     Array('102',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">July</SPAN></FONT>','http://content.yudu.com/A1a6xz/EducationJuly09/resources/index.htm?referrerUrl=','','',0),
     Array('103',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">June</SPAN></FONT>','http://content.yudu.com/A193px/EducationJune09/resources/index.htm?referrerUrl=','','',0),
     Array('86',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">May</SPAN></FONT>','http://content.yudu.com/A17rsc/EducationMay09/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\">Digitised Issues</B></SPAN></FONT>','','','',0),
 Array('48',1, Array(
   Array('120',1, Array(
     Array('127',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">March</SPAN></FONT>','/news/categoryfront.php/id/127/March.html','','',0),
     Array('126',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">February</SPAN></FONT>','/news/categoryfront.php/id/126/February.html','','',0),
     Array('121',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">January</SPAN></FONT>','/news/categoryfront.php/id/121/January.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">2010</B></SPAN></FONT>','/news/categoryfront.php/id/120/2010.html','','',0),
   Array('91',1, Array(
     Array('118',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">December</SPAN></FONT>','/news/categoryfront.php/id/118/December.html','','',0),
     Array('117',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">November</SPAN></FONT>','/news/categoryfront.php/id/117/November.html','','',0),
     Array('113',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">October</SPAN></FONT>','/news/categoryfront.php/id/113/October.html','','',0),
     Array('111',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">September</SPAN></FONT>','/news/categoryfront.php/id/111/September.html','','',0),
     Array('107',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">July</SPAN></FONT>','/news/categoryfront.php/id/107/July.html','','',0),
     Array('101',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">June</SPAN></FONT>','/news/categoryfront.php/id/101/June.html','','',0),
     Array('99',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">May</SPAN></FONT>','/news/categoryfront.php/id/99/May.html','','',0),
     Array('98',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">April</SPAN></FONT>','/news/categoryfront.php/id/98/April.html','','',0),
     Array('96',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">March</SPAN></FONT>','/news/categoryfront.php/id/96/March.html','','',0),
     Array('93',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">February</SPAN></FONT>','/news/categoryfront.php/id/93/February.html','','',0),
     Array('92',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">January</SPAN></FONT>','/news/categoryfront.php/id/92/January.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">2009</B></SPAN></FONT>','/news/categoryfront.php/id/91/2009.html','','',0),
   Array('64',1, Array(
     Array('89',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">December</SPAN></FONT>','/news/categoryfront.php/id/89/December.html','','',0),
     Array('87',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">November</SPAN></FONT>','/news/categoryfront.php/id/87/November.html','','',0),
     Array('78',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">October</SPAN></FONT>','/news/categoryfront.php/id/78/October.html','','',0),
     Array('77',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">September</SPAN></FONT>','/news/categoryfront.php/id/77/September.html','','',0),
     Array('76',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">July</SPAN></FONT>','/news/categoryfront.php/id/76/July.html','','',0),
     Array('74',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">June</SPAN></FONT>','/news/categoryfront.php/id/74/June.html','','',0),
     Array('73',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">May</SPAN></FONT>','/news/categoryfront.php/id/73/May.html','','',0),
     Array('66',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">April</SPAN></FONT>','/news/categoryfront.php/id/66/April.html','','',0),
     Array('67',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">March</SPAN></FONT>','/news/categoryfront.php/id/67/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('69',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">January</SPAN></FONT>','/news/categoryfront.php/id/69/January.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">2008</B></SPAN></FONT>','/news/categoryfront.php/id/64/2008.html','','',0),
   Array('49',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('63',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">November</SPAN></FONT>','/news/categoryfront.php/id/63/November.html','','',0),
     Array('62',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">October</SPAN></FONT>','/news/categoryfront.php/id/62/October.html','','',0),
     Array('61',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">September</SPAN></FONT>','/news/categoryfront.php/id/61/September.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('55',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">June</SPAN></FONT>','/news/categoryfront.php/id/55/June.html','','',0),
     Array('54',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">May</SPAN></FONT>','/news/categoryfront.php/id/54/May.html','','',0),
     Array('53',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">April</SPAN></FONT>','/news/categoryfront.php/id/53/April.html','','',0),
     Array('52',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">March</SPAN></FONT>','/news/categoryfront.php/id/52/March.html','','',0),
     Array('51',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">February</SPAN></FONT>','/news/categoryfront.php/id/51/February.html','','',0),
     Array('50',1, null,'<SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana\">January</SPAN></FONT>','/news/categoryfront.php/id/50/January.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">2007</B></SPAN></FONT>','/news/categoryfront.php/id/49/2007.html','','',0)),'<B><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Arial\">Back Issues</B></SPAN></FONT>','/news/categoryfront.php/id/48/Back_Issues.html','','',0));
NavbarItems[1] = Array(
 Array('18',1, Array(
   Array('7',1, null,'About Us','/info/about_us.php','','',0),
   Array('20',1, null,'Media Info','http://www.education-today.co.uk/cp/2/ET%20Media%20Information%202010.pdf','','',0),
   Array('124',1, null,'2010 Features','http://www.education-today.co.uk/cp/2/Features%202010.pdf','','',0),
   Array('19',1, null,'Registration','http://www.gotxt.biz/gotxt_betaold//inquiryform/subscription/53','','',0),
   Array('8',1, null,'Contact Us','/info/contact_us.php','','',0)),'Home','http://www.education-today.co.uk/','','',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.education-today.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.education-today.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.education-today.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.education-today.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';
