var edit_mode = "3";
var treecolor = "FFFFFFFF";
var dirty = false;
var site_nav_index = {'a':[1],'b':[2],'br':[2,3],'bq':[2,4],'bp':[2,5],'bv':[2,6],'bu':[2,7],'bt':[2,8],'bx':[2,9],'ba':[2,10],'bo':[2,11],'bk':[2,12],'bl':[2,13],'bm':[2,14],'bn':[2,15],'by':[2,16],'c':[17],'ca':[17,18],'cq':[17,19],'ck':[17,20],'cv':[17,21],'cp':[17,22],'cm':[17,23],'cl':[17,24],'cn':[17,25],'ct':[17,26],'cs':[17,27],'cc':[17,28],'cd':[17,29],'ce':[17,30],'cf':[17,31],'d':[32],'e':[33],'ea':[33,34],'eb':[33,35],'ec':[33,36],'ed':[33,37],'ee':[33,38],'ef':[33,39],'ej':[33,40],'ek':[33,41],'el':[33,42],'em':[33,43],'en':[33,44],'eo':[33,45],'f':[46],'fb':[46,47],'fc':[46,48],'fe':[46,49],'ff':[46,50],'fg':[46,51],'fi':[46,52],'fn':[46,53],'fo':[46,54],'fq':[46,55],'fy':[46,56],'g':[57],'gb':[57,58],'gc':[57,59],'gd':[57,60],'ge':[57,61],'gg':[57,62],'gh':[57,63],'gk':[57,64],'gl':[57,65],'go':[57,66],'h':[67],'hb':[67,68],'ha':[67,69],'hc':[67,70],'hd':[67,71],'hf':[67,72],'hg':[67,73],'hh':[67,74],'hi':[67,75],'hj':[67,76],'hl':[67,77],'hq':[67,78],'ho':[67,79],'hr':[67,80],'hm':[67,81],'i':[82],'ia':[82,83],'ic':[82,84],'id':[82,85],'if':[82,86],'ih':[82,87],'ij':[82,88],'ik':[82,89],'in':[82,90],'io':[82,91],'j':[92],'ja':[92,93],'jb':[92,94],'jc':[92,95],'jd':[92,96],'je':[92,97],'jp':[92,98],'jf':[92,99],'jg':[92,100],'jh':[92,101],'ji':[92,102],'jj':[92,103],'jl':[92,104],'jo':[92,105],'k':[106],'ka':[106,107],'kb':[106,108],'kc':[106,109],'kd':[106,110],'ke':[106,111],'kf':[106,112],'kh':[106,113],'ki':[106,114],'kj':[106,115],'kl':[106,116],'kn':[106,117],'kp':[106,118],'l':[119],'lc':[119,120],'le':[119,121],'lg':[119,122],'lh':[119,123],'li':[119,124],'ll':[119,125],'ln':[119,126],'lo':[119,127],'lp':[119,128],'lq':[119,129],'lr':[119,130],'ls':[119,131],'lt':[119,132],'lu':[119,133],'m':[134],'ma':[134,135],'mb':[134,136],'md':[134,137],'me':[134,138],'mj':[134,139],'mg':[134,140],'mf':[134,141],'mh':[134,142],'mi':[134,143],'mk':[134,144],'mx':[134,145],'mm':[134,146],'mn':[134,147],'mo':[134,148],'n':[149],'na':[149,150],'nb':[149,151],'nc':[149,152],'nd':[149,153],'nf':[149,154],'ng':[149,155],'nh':[149,156],'nj':[149,157],'nl':[149,158],'nm':[149,159],'nq':[149,160],'o':[161],'ob':[161,162],'oc':[161,163],'od':[161,164],'oe':[161,165],'of':[161,166],'oa':[161,167],'og':[161,168],'oh':[161,169],'oj':[161,170],'ok':[161,171],'ol':[161,172],'on':[161,173],'oi':[161,174],'om':[161,175],'oo':[161,176],'or':[161,177],'oq':[161,178],'os':[161,179],'ot':[161,180],'ou':[161,181],'ov':[161,182],'ox':[161,183],'oy':[161,184],'s':[185],'sa':[185,186],'sb':[185,187],'se':[185,188],'sg':[185,189],'r':[190],'rf':[190,191],'rg':[190,192],'ra':[190,193],'rb':[190,194],'rc':[190,195],'rd':[190,196],'re':[190,197],'rj':[190,198],'rk':[190,199],'rl':[190,200],'rm':[190,201],'rn':[190,202],'rh':[190,203],'ri':[190,204],'p':[205],'pa':[205,206],'pb':[205,207],'pd':[205,208],'pg':[205,209],'t':[210],'ta':[210,211],'tb':[210,212],'tc':[210,213],'td':[210,214],'te':[210,215],'tf':[210,216],'tg':[210,217],'th':[210,218],'ti':[210,219],'tj':[210,220],'tk':[210,221],'u':[222],'ul':[222,223],'un':[222,224],'x':[225],'ya':[225,226],'yb':[225,227],'yc':[225,228],'yd':[225,229]};
var nav_path = site_nav_index[page];

function process_nav()
{
	var nav = [['a','Welcome','a',1,1,'',''],['b','News','From the Headmistress 15th July',2,1,'',''],[['br','25.6.10','From the Headmistress 25th June',3,1,'',''],['bq','28.5.10','From the Headmistress 28th May',4,1,'',''],['bp','7.5.10','From the Headmistress 7th May',5,1,'',''],['bv','25.3.10','From the Headmistress 25th March',6,1,'',''],['bu','5.3.10','From the Headmistress 5th March',7,1,'',''],['bt','12.2.10','From the Headmistress 12th February',8,1,'',''],['bx','29.1.10','From the Headmistress 29th January',9,1,'',''],['ba','17.12.09','From the Headmistress 17th December',10,1,'',''],['bo','27.11.09','From the Headmistress 27th November',11,1,'',''],['bk','13.11.09','From the Headmistress 13th November',12,1,'',''],['bl','23.10.09','From the Headmistress 23rd October',13,1,'',''],['bm','8.10.09','From the Headmistress 8th October',14,1,'',''],['bn','25.9.09','From the Headmistress 25th September',15,1,'',''],['by','School News','School News',16,1,'',''],],['c','Sports News','Sports News 15th July',17,1,'',''],[['ca','PE info','PE in the Preparatory School',18,1,'',''],['cq','25.6.10','Sports News 25th June',19,1,'',''],['ck','28.5.10','Sports News 28th May',20,1,'',''],['cv','7.5.10','Sports News 7th May',21,1,'',''],['cp','25.3.10','Sports News 25th March',22,1,'',''],['cm','5.3.10','Sports News 5th March',23,1,'',''],['cl','12.2.10','Sports News 12th February',24,1,'',''],['cn','29.1.10','Sports News 29th January',25,1,'',''],['ct','17.12.09','Sports News 17th December',26,1,'',''],['cs','27.11.09','Sports News 27th November',27,1,'',''],['cc','13.11.09','Sports News 13th November',28,1,'',''],['cd','23.10.09','Sports News 23rd October',29,1,'',''],['ce','8.10.09','Sports News 8th October',30,1,'',''],['cf','25.9.09','Sports News 25th September',31,1,'',''],],['d','Curriculum','Curriculum',32,1,'',''],['e','PPI (Year 0)','Pre Prep I (Year 0)',33,1,'',''],[['ea','First day','First day',34,1,'',''],['eb','Doctor','PPI were visited by a doctor',35,1,'',''],['ec','Winkworth','Winkworth Arboretum trip',36,1,'',''],['ed','Beans','Jack and the bean stalk',37,1,'',''],['ee','Shapes','Shape work',38,1,'',''],['ef','Snowmen','Snowmen',39,1,'',''],['ej','Bears','PPI have enjoyed studying all they can about Teddy Bears',40,1,'',''],['ek','Dolls','PPI\'s multi-cultural week studies',41,1,'',''],['el','Art work','el',42,1,'',''],['em','Farm visit','Visit to Bocketts Farm',43,1,'',''],['en','PPI Garden','There have been lots of exciting developments in the PPI Garden',44,1,'',''],['eo','Curriculum PPI','PPI Curriculum Overview',45,1,'',''],],['f','PPII (Year 1)','Pre Prep II (Year 1)',46,1,'',''],[['fb','Shape Pictures','PPII have used all sorts of shapes to create these beautiful pic',47,1,'',''],['fc','Art work','PPIIs artwork',48,1,'',''],['fe','History','A Victorian day for the PPII girls',49,1,'',''],['ff','Light','Stained glass windows',50,1,'',''],['fg','Homes','PPII have been learning about Homes',51,1,'',''],['fi','Weaving','Weaving',52,1,'',''],['fn','Petworth','PPII visited Petworth House',53,1,'',''],['fo','Sayers Croft','PPI and PPII went to Sayers Croft',54,1,'',''],['fq','Artefacts','PPII have been finding out about homes in the past',55,1,'',''],['fy','Curriculum PPII','PPII Curriculum Overview',56,1,'',''],],['g','PPIII (Year 2)','Pre Prep III (Year 2)',57,1,'',''],[['gb','Poetry','Poetry',58,1,'',''],['gc','Artwork','PPIII\'s artwork',59,1,'',''],['gd','Seaside visit','PPIII visit the seaside',60,1,'',''],['ge','Mexico','PPIII have been learning about Barnaby Bear and his travels to M',61,1,'',''],['gg','DT','Lighthouses',62,1,'',''],['gh','Food','Pizza Express Trip - a DT project',63,1,'',''],['gk','Islands','Katie Morag Day was the conclusion of PPIII\'s study of the Isle',64,1,'',''],['gl','Egyptians','Egypt- PPIIIB have been writing postcards to family and friends',65,1,'',''],['go','Curriculum PPIII','PPIII Curriculum Overview',66,1,'',''],],['h','Form I (Year 3)','Form I (Year 3)',67,1,'',''],[['hb','Residential Trip','One night stay at Juniper Hall',68,1,'',''],['ha','Poetry','Poetry',69,1,'',''],['hc','Teeth','Form I were visited by Guildford Orthodontics and later they use',70,1,'',''],['hd','Beaulieu','Victorian Visit to Palace House Beaulieu',71,1,'',''],['hf','Netball','The U8s first Netball match v St Hilarys',72,1,'',''],['hg','Victorian School','Form I finding out what it was like to a Victorian scholar in Gu',73,1,'',''],['hh','Snow','Snowfall',74,1,'',''],['hi','Writing','Writing',75,1,'',''],['hj','Bramley','Form I are studying the village of Bramley in their Geography an',76,1,'',''],['hl','Chinthurst Walk','Chinthurst Hill walk 12th May 2010',77,1,'',''],['hq','Christening','Acting out a christening in Holy Trinity Church',78,1,'',''],['ho','Canal trip','Wey and Arun canal trip',79,1,'',''],['hr','Problem Solving','Problem Solving',80,1,'',''],['hm','Curriculum Form I','Form I Curriculum Overview',81,1,'',''],],['i','Lower II (Year 4)','Lower II (Year 4)',82,1,'',''],[['ia','Residential Trip','The LIIs spent three days at Hooke Court learning about the Roma',83,1,'',''],['ic','Poetry','Poetry inspired by the Seasons',84,1,'',''],['id','Christmas','Work inspired by the Christmas story',85,1,'',''],['if','Writing','Lower II have been preparing some composition writing.',86,1,'',''],['ih','Butser Farm','Butser Farm learning about the Iron Age people \<br\>and a little',87,1,'',''],['ij','Maths','Maths trails around the school grounds',88,1,'',''],['ik','Wedding','Vows and LII\'s pretend Wedding',89,1,'',''],['in','Climbing','Climbing at Craggy Island',90,1,'',''],['io','Curriculum','LII Curriculum Overview',91,1,'',''],],['j','Upper II (Year 5)','Upper II (Year 5)',92,1,'',''],[['ja','France','UII residential trip to France',93,1,'',''],['jb','Bikeability','Level 1 training for UII and Level 2 training for LIII',94,1,'',''],['jc','Architecture','Architecture workshop',95,1,'',''],['jd','Poetry','Poetry',96,1,'',''],['je','Writing 1','Creative writing',97,1,'',''],['jp','Writing 2','Pieces based on the Walter de la Mare poem ‘The Listener’',98,1,'',''],['jf','Hampton Court','Hampton Court Visit',99,1,'',''],['jg','Tudor Feast','Tudor Feast',100,1,'',''],['jh','Odes','Odes',101,1,'',''],['ji','Brooklands','UII visit Brooklands',102,1,'',''],['jj','Orienteering','UIIs orienteering at Holmbury Hill',103,1,'',''],['jl','French','UII\'s French Fashion Show',104,1,'',''],['jo','Curriculum','UII Curriculum Overview',105,1,'',''],],['k','Lower III (Year 6)','Lower III (Year 6)',106,1,'',''],[['ka','Residential Trip','Isle of Wight a residential trip of four nights for LIII',107,1,'',''],['kb','History','Britain since the 1930s',108,1,'',''],['kc','Kennings','Lower III\'s Kennings - answers at the bottom of the page',109,1,'',''],['kd','Hindu Dancing','Hindu Dancing',110,1,'',''],['ke','Science','LIII visit to the Science Museum at Wroughton, the home of the S',111,1,'',''],['kf','Fashion','Fashion Parade',112,1,'',''],['kh','Funeral','Funeral',113,1,'',''],['ki','Guildford','LIII studying Guildford',114,1,'',''],['kj','Citizenship','LIII Citizenship',115,1,'',''],['kl','ICT','LIII\'s podcasts',116,1,'',''],['kn','Watersports','Watersports - a physical challenge and an end of year treat for',117,1,'',''],['kp','Curriculum','LIII Curriculum Overview',118,1,'',''],],['l','Art and DT','Art and Design Technology',119,1,'',''],[['lc','Silk scarves','Silk scarves by UII (Year 5)',120,1,'',''],['le','Fantasy','Fantasy paintings by LII (Year 4)',121,1,'',''],['lg','Flowers','Flowers and butterflies painted by LII (Year 4)',122,1,'',''],['lh','Boxes','Fantasy shoe boxes by LII (Year 4)',123,1,'',''],['li','Robots','Robots by Form I (Year 3)',124,1,'',''],['ll','Masks','Masks made by LIII (Year 6) and LII (Year 4)',125,1,'',''],['ln','Rousseau','Paintings in the style of Rousseau by LIII (Year 6)',126,1,'',''],['lo','Abstract','Abstract paintings by UII (Year 5)',127,1,'',''],['lp','Pop-ups','Pneumatic Pop-up Santas made by LII (Year 4)',128,1,'',''],['lq','Torches','Torches by UII (Year 5)',129,1,'',''],['lr','Fairgrounds','Fairgrounds made by UII (Year 5) using pulleys',130,1,'',''],['ls','Circuits','Quiz boards made by LII (Year 4) using simple circuits',131,1,'',''],['lt','Cars','LIII (Year 6) made cars',132,1,'',''],['lu','Shelters','LII (Year 4) making animal shelters',133,1,'',''],],['m','Drama and Music','Drama and Music',134,1,'',''],[['ma','Drama info','Drama in the Preparatory School',135,1,'',''],['mb','Music info','Music in the Preparatory School',136,1,'',''],['md','LIII Happy Prince','The Happy Prince, the LIII production 2010',137,1,'',''],['me','Music Festival','Music Festival Photos',138,1,'',''],['mj','Drums','African Drumming Workshops',139,1,'',''],['mg','Concerts','Spring Concerts',140,1,'',''],['mf','PP Concert','Pre Prep Concert',141,1,'',''],['mh','Puppets','Puppets - Form I drama lessons',142,1,'',''],['mi','Masks','Masks - LII drama lessons',143,1,'',''],['mk','Shalford','Shalford Ladies Club Concert',144,1,'',''],['mx','Music Summer 10','Music News Summer Term 2010',145,1,'',''],['mm','Music Spring 10','Music News Spring Term 2010',146,1,'',''],['mn','Music Autumn 09','Music News Autumn Term 2009',147,1,'',''],['mo','Music Summer 09','Music News Summer Term 2009',148,1,'',''],],['n','Clubs and Charity','Clubs and Charity',149,1,'',''],[['na','Computer Club','Computer Club',150,1,'',''],['nb','CAT Club','CAT Club',151,1,'',''],['nc','Chess','Chess Club',152,1,'',''],['nd','Dance','Ballet, Tap, Modern and Country Dancing',153,1,'',''],['nf','More clubs','Clubs',154,1,'',''],['ng','Languages','Modern Foreign language clubs',155,1,'',''],['nh','Science','Science Club',156,1,'',''],['nj','Charity News','Charity News',157,1,'',''],['nl','Pink Day','Pink Mufti Day in aid of the Royal Marsden Hospital and Breakthr',158,1,'',''],['nm','Dog Walk','Dog Walk in aid of Dogs for the Disabled',159,1,'',''],['nq','Sleepover','The sleepover at school was a sponsored event to raise money to',160,1,'',''],],['o','Events','Events',161,1,'',''],[['ob','Open Day','Open Day',162,1,'',''],['oc','Grandparents\' Tea','Grandparents\' Tea Party',163,1,'',''],['od','Arts\' Week','Pre-Prep Arts\' Week',164,1,'',''],['oe','Sports Day','Sports Day',165,1,'',''],['of','PP Sports Day','Pre-Prep Sports Day',166,1,'',''],['oa','Heritage Day','Most of the school visited Holy Trinity Church on the 12th Septe',167,1,'',''],['og','Tutor Group Picnic','Tutor Group Picnic',168,1,'',''],['oh','St Catherine\'s Day','How the Prep School celebrated St Catherine\'s Day',169,1,'',''],['oj','Gym Comp','House Gym Competition \'Strictly St Catherine\'s\'',170,1,'',''],['ok','Nativity','Pre-Prep\'s Nativity Play',171,1,'',''],['ol','Carol Service','Carol Service',172,1,'',''],['on','Book Week','Book Week',173,1,'',''],['oi','Arts\' Eve','Creative Arts\' Evening',174,1,'',''],['om','House Gala','House Swimming Gala',175,1,'',''],['oo','The Life of Christ','The Life of Christ',176,1,'',''],['or','Harvest','Our Harvest Festival took place at Godalming Parish Church on Fr',177,1,'',''],['oq','Science Week','Science Week lunchtime activities',178,1,'',''],['os','Poetry Day','National Poetry Day',179,1,'',''],['ot','Heads','Heads for the Day',180,1,'',''],['ou','Library opening','Library',181,1,'',''],['ov','Cooking','Activities Week Cooking',182,1,'',''],['ox','Pumpkin Comp','Pumpkins - Animal design competition',183,1,'',''],['oy','Girls Go Green','Girls Go Green 12th -16th October',184,1,'',''],],['s','Helpful Information','Helpful Information',185,1,'',''],[['sa','Lunch menus','Lunch menus',186,1,'',''],['sb','Library','Library',187,1,'',''],['se','Uniform','UNIFORM  LIST',188,1,'',''],['sg','Cat Club','Cat Club Rules',189,1,'',''],],['r','Library','Library',190,1,'',''],[['rf','KS2 Reading Scheme','Bibliocats Reading Scheme for KS2 girls',191,1,'',''],['rg','KS1 Reading Scheme','Bibliocats Reading Scheme for Pre-Prep girls',192,1,'',''],['ra','KS2 Reading Lists','KS2 Reading List for the Bibliocats Reading Scheme',193,1,'',''],['rb','Magazines/Newspapers','Current Magazine and Newspaper Subscriptions',194,1,'',''],['rc','Websites','Book Club Websites',195,1,'',''],['rd','Library work','Some of the activities completed as part of the Library\'s Readi',196,1,'',''],['re','Book Week','Book Week',197,1,'',''],['rj','Nick Handel','Nick Handel',198,1,'',''],['rk','Short story/poetry','World Book Day Short Story Competition',199,1,'',''],['rl','Book Bags','Winners of the Book Bag Competition',200,1,'',''],['rm','WBDay','World Book Day Costumes',201,1,'',''],['rn','Storyteller','Chris Connaughton, Storyteller',202,1,'',''],['rh','Book Loans','Book Loans Policy',203,1,'',''],['ri','Library Conduct','Library Conduct',204,1,'',''],],['p','PTA','PTA News',205,1,'',''],[['pa','May Fair 10','May Fair 2010 8th May 10am - 1pm',206,1,'',''],['pb','Yellow Moon','Yellow Moon',207,1,'',''],['pd','Autumn Picnic','PTA Autumn Picnic',208,1,'',''],['pg','2nd hand uniform','Second Hand Uniform',209,1,'',''],],['t','Websites','Website Links',210,1,'',''],[['ta','Search engines','Search engines',211,1,'',''],['tb','Useful Sites','Other useful sites',212,1,'',''],['tc','Geography','Geography',213,1,'',''],['td','History','History',214,1,'',''],['te','ICT','ICT',215,1,'',''],['tf','Mathematics','Mathematics',216,1,'',''],['tg','Music','Music',217,1,'',''],['th','RE','RE',218,1,'',''],['ti','Science','Science',219,1,'',''],['tj','PE','PE',220,1,'',''],['tk','English','English',221,1,'',''],],['u','LIII parents','LIII Play photos',222,1,'',''],[['ul','Happy Prince 1','Happy Prince landscape shots',223,1,'',''],['un','Happy Prince 2','Happy Prince portrait shots',224,1,'',''],],['x','Community','x',225,1,'',''],[['ya','Staff List','ya',226,0,'',''],['yb','Calendar','Prep School Calendar',227,0,'',''],['yc','Sports Fixtures','yc',228,0,'',''],['yd','Weekly Activities','yd',229,0,'',''],]];
	_process_nav(nav, 0, '');
}

function _process_nav(nav, level, state)
{
	nav_div = document.getElementById('navblock');
	navigation = write_nav(nav, level, state);
	if (nav_div.hasChildNodes())
	{
		nav_div.removeChild(nav_div.childNodes[0]);
	}
	nav_div.appendChild(navigation);
}


function write_nav(nav, level, state)
{
	var navigation = document.createElement("ul");
	if (nav == 'undefined')
	{
		alert('Deary me, this isn\'t right!');
	}
	if (state == '' && nav_path.length >= (level + 1)) {navigation.style.display = "block";}
	navigation.className ='uln';
	for (var x = 0; x < nav.length; x++)
	{
		var item = nav[x];
		if (item && typeof(item[0]) == 'string')
		{
			if (typeof(nav[x+1]) != 'undefined' && typeof(nav[x+1][0]) != 'string' && typeof(nav[x+1][0]) != 'undefined')
			{
				var citem = write_nav_item(item, level, 'nf', state);
				if (citem != null)
				{
					x++;
					item = nav[x];
					if (nav[x - 1] != 'undefined' && nav[x-1][3] == nav_path[level] && item[4] != 0)
					{
						var child_nav = write_nav(item, level + 1, '');
						citem.appendChild(child_nav);
					}
					else
					{
						if (item[4] != 0)						{
							citem.appendChild(write_nav(item, level + 1, '_x'));
						}
					}
					navigation.appendChild(citem);
				}
			}
			else
			{
				citem = write_nav_item(item, level, 'np', state);
				if (citem != null)
				{
					navigation.appendChild(citem);
				}
			}
		}
	}
	return navigation;
}

function write_nav_item(item, level, navtype, state)
{
	var on_style = "";
	var list_on_style = "";
	var mode = 3;
	
	if (item[1] == '')
	{
		item[1] = 'Untitled';
	}
	if (item[3] == nav_path[level])	{
		on_style = " " + navtype;
		on_style += item[3] == nav_path[level] ? '_on' : '';

		list_on_style = " l" + navtype;
		list_on_style += item[3] == nav_path[level] ? '_on' : '';
	}
	else	{
		list_on_style = " l" + navtype;
		list_on_style += '_off';
	}
	if (item[4] == 0 && mode == 3)
	{
		on_style = '_hidden';
		list_on_style = '_hidden';
	}

	if (item[4] == 0 && mode == 3)
	{
		return null;
	}

	var nav_item = document.createElement("li");
	nav_item.setAttribute('id', "_" + item);
	//nav_item.setAttribute('class', "l" + navtype + list_on_style);
	nav_item.className = "l" + navtype + list_on_style;
	//if (level > 0 || navtype == 'np') {nav_item.style.display = "none";}

	div1 = document.createElement("div");
	div1.className = "nbg";

	div2 = document.createElement("div");
	//div2.setAttribute('class', navtype + on_style);
	div2.className = navtype + on_style;

// create disclosure
	if (navtype == 'nf')
	{
		d_b = document.createElement("a");
		d_b.setAttribute('name', '');
		d_b.setAttribute('onclick', 'disclose(this);');
		d_b.className="d_i";	// disclosure icon

		d_a = document.createElement("img");
		d_a.setAttribute('src', 'http://www.take2theweb.com/images/FIG.GIF');
		d_a.setAttribute('onclick', 'disclose(event);');
		d_a.onclick = disclose;
		d_a.setAttribute('height', '16');
		d_a.setAttribute('width', '16');
		d_a.className = 'nfi';
		//d_b.appendChild(d_a);
		div2.appendChild(d_a);
	}
	
//
	
	d_a = document.createElement("a");
	d_a.className = 'n_l';		// navigation link
	if (item[6] != undefined && item[6] != '')	{
		d_a.setAttribute('href', item[6]);
		d_a.setAttribute('target', '_top');
	}
	else
	{
		d_a.setAttribute('href', item[0] + '.html');
	}
	d_a.setAttribute('title', item[2]);
	d_a.setAttribute('alt', "This is a disclosure item");
	if (item[5] != '') {d_a.setAttribute('accesskey', item[5]);}
	
	d_a_txt = document.createTextNode(item[1]);
	
	d_a.appendChild(d_a_txt);
	div2.appendChild(d_a);
	div1.appendChild(div2);
	nav_item.appendChild(div1);
	return nav_item;
}

function disclose(e)
{
	if (!e) var e = window.event;
	e = e.target || e.srcElement;
	p = e.parentNode.parentNode.parentNode.lastChild;
	var state = p.style.display;
	switch(state)
	{
		case '':
		case null:
		case 'none':
			p.style.display='block';
			{
				e.className ='nfi_on';
			}
			break;
		default:
			p.style.display='none';
			{
				e.className ='nfi';
			}
	}
}

