/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(s);
}

var POS_NODENAME=0;
var POS_ID=1;
var POS_NAME=2;
var POS_NAVIGATIONTEXT=3;
var POS_HREF=4;
var POS_ISNAVIGATION=5;
var POS_CHILDS=6;
var POS_TEMPLATENAME=7;
var theSitetree=[ 
	['PAGE','4598',jdecode('Home'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','4930',jdecode('BTT'),jdecode(''),'/4930/index.html','true',[ 
		['PAGE','6603',jdecode('Agenda+BTT'),jdecode(''),'/4930/6603.html','true',[],''],
		['PAGE','8803',jdecode('Resultados'),jdecode(''),'/4930/8803.html','true',[],''],
		['PAGE','8130',jdecode('Ranking+UCI'),jdecode(''),'/4930/8130.html','true',[],''],
		['PAGE','165201',jdecode('Meus+V%C3%ADdeos+BTT'),jdecode(''),'/4930/165201.html','true',[],''],
		['PAGE','48803',jdecode('V%C3%ADdeos+Favoritos'),jdecode(''),'/4930/48803.html','true',[],''],
		['PAGE','101201',jdecode('Humor+e+Bikes'),jdecode(''),'/4930/101201.html','true',[],''],
		['PAGE','66903',jdecode('Galeria+Provas'),jdecode(''),'/4930/66903.html','true',[],''],
		['PAGE','164501',jdecode('Galeria+Passeios'),jdecode(''),'/4930/164501.html','true',[],''],
		['PAGE','7002',jdecode('%C3%81lbum+Extreme'),jdecode(''),'/4930/7002.html','true',[],''],
		['PAGE','38802',jdecode('%C3%81lbum+Lazer%2FXC'),jdecode(''),'/4930/38802.html','true',[],'']
	],''],
	['PAGE','46703',jdecode('V%C3%ADdeo'),jdecode(''),'/46703/index.html','true',[ 
		['PAGE','108801',jdecode('Os+Meus+V%C3%ADdeos'),jdecode(''),'/46703/108801.html','true',[],''],
		['PAGE','89201',jdecode('V%C3%ADd.+Favoritos'),jdecode(''),'/46703/89201.html','true',[],''],
		['PAGE','145201',jdecode('V%C3%ADd.+C%C3%B3micos'),jdecode(''),'/46703/145201.html','true',[],''],
		['PAGE','175201',jdecode('V%C3%ADd.+M%C3%BAsicais'),jdecode(''),'/46703/175201.html','true',[],''],
		['PAGE','145222',jdecode('V%C3%ADd.+Ins%C3%B3litos'),jdecode(''),'/46703/145222.html','true',[],'']
	],''],
	['PAGE','4957',jdecode('Fotografia'),jdecode(''),'/4957/index.html','true',[ 
		['PAGE','10002',jdecode('As+minhas+Fotos'),jdecode(''),'/4957/10002.html','true',[],''],
		['PAGE','16402',jdecode('%C3%81lbum+Viagens'),jdecode(''),'/4957/16402.html','true',[],''],
		['PAGE','81501',jdecode('Fotos+%2B+Vistas'),jdecode(''),'/4957/81501.html','true',[],''],
		['PAGE','157501',jdecode('Agenda%7CConcursos'),jdecode(''),'/4957/157501.html','true',[],'']
	],''],
	['PAGE','97522',jdecode('Passatempos'),jdecode(''),'/97522.html','true',[],''],
	['PAGE','97501',jdecode('Ganhar+Dinheiro'),jdecode(''),'/97501/index.html','true',[ 
		['PAGE','146401',jdecode('TOP+Sites+PTC'),jdecode(''),'/97501/146401.html','true',[],''],
		['PAGE','146422',jdecode('Novos%7Cem+teste'),jdecode(''),'/97501/146422.html','true',[],''],
		['PAGE','156901',jdecode('Outros%7CPTR%7CPTS'),jdecode(''),'/97501/156901.html','true',[],''],
		['PAGE','150401',jdecode('Sites+Pagantes'),jdecode(''),'/97501/150401.html','true',[],''],
		['PAGE','146801',jdecode('Ganhos%7CProvas'),jdecode(''),'/97501/146801.html','true',[],''],
		['PAGE','146885',jdecode('Ganhe+Mais+%24%24'),jdecode(''),'/97501/146885.html','true',[],''],
		['PAGE','146822',jdecode('Dicas+%7C+Infos'),jdecode(''),'/97501/146822.html','true',[],''],
		['PAGE','146843',jdecode('Visitas%7CTr%C3%A1fego'),jdecode(''),'/97501/146843.html','true',[],''],
		['PAGE','139301',jdecode('%24%24+Fotos%7CVideos'),jdecode(''),'/97501/139301.html','true',[],''],
		['PAGE','139343',jdecode('%24%24+Sites%7CBlogs'),jdecode(''),'/97501/139343.html','true',[],''],
		['PAGE','139364',jdecode('%2BFormas+Ganhar'),jdecode(''),'/97501/139364.html','true',[],''],
		['PAGE','146864',jdecode('Scams+%7C+Fraudes'),jdecode(''),'/97501/146864.html','true',[],'']
	],''],
	['PAGE','108885',jdecode('Borlas%7CPromos'),jdecode(''),'/108885.html','true',[],''],
	['PAGE','149701',jdecode('BANNER+BOX'),jdecode(''),'/149701.html','true',[],''],
	['PAGE','117001',jdecode('Humor'),jdecode(''),'/117001.html','true',[],''],
	['PAGE','150801',jdecode('Jogos'),jdecode(''),'/150801.html','true',[],''],
	['PAGE','104901',jdecode('Mobile'),jdecode(''),'/104901.html','true',[],''],
	['PAGE','105501',jdecode('Marinha'),jdecode(''),'/105501/index.html','true',[ 
		['PAGE','76402',jdecode('%C3%81lbum+Marinha'),jdecode(''),'/105501/76402.html','true',[],''],
		['PAGE','113601',jdecode('V%C3%ADdeos'),jdecode(''),'/105501/113601.html','true',[],'']
	],''],
	['PAGE','4984',jdecode('Colec%C3%A7%C3%B5es'),jdecode(''),'/4984/index.html','true',[ 
		['PAGE','78203',jdecode('Postais'),jdecode(''),'/4984/78203.html','true',[],''],
		['PAGE','78230',jdecode('Selos'),jdecode(''),'/4984/78230.html','true',[],''],
		['PAGE','78257',jdecode('Calend%C3%A1rios'),jdecode(''),'/4984/78257.html','true',[],''],
		['PAGE','108822',jdecode('Outras+Colec%C3%A7%C3%B5es'),jdecode(''),'/4984/108822.html','true',[],''],
		['PAGE','108843',jdecode('Repetidos'),jdecode(''),'/4984/108843.html','true',[],'']
	],''],
	['PAGE','35203',jdecode('Compras%7CUsados'),jdecode(''),'/35203/index.html','true',[ 
		['PAGE','156922',jdecode('Usados'),jdecode(''),'/35203/156922.html','true',[],'']
	],''],
	['PAGE','114901',jdecode('Ajudar+%26+Apoiar'),jdecode(''),'/114901.html','true',[],''],
	['PAGE','13503',jdecode('Links+%26+Links'),jdecode(''),'/13503/index.html','true',[ 
		['PAGE','139385',jdecode('BTT'),jdecode(''),'/13503/139385.html','true',[],''],
		['PAGE','161601',jdecode('Ciclismo+Estrada'),jdecode(''),'/13503/161601.html','true',[],''],
		['PAGE','139490',jdecode('Coleccionismo'),jdecode(''),'/13503/139490.html','true',[],''],
		['PAGE','139469',jdecode('Compras+Online'),jdecode(''),'/13503/139469.html','true',[],''],
		['PAGE','144443',jdecode('Desporto'),jdecode(''),'/13503/144443.html','true',[],''],
		['PAGE','139616',jdecode('F%C3%A9rias%7CViagens'),jdecode(''),'/13503/139616.html','true',[],''],
		['PAGE','144506',jdecode('Finan%C3%A7as'),jdecode(''),'/13503/144506.html','true',[],''],
		['PAGE','139406',jdecode('Fotografia'),jdecode(''),'/13503/139406.html','true',[],''],
		['PAGE','139532',jdecode('Ganhar+%24+na+Net'),jdecode(''),'/13503/139532.html','true',[],''],
		['PAGE','139448',jdecode('Humor'),jdecode(''),'/13503/139448.html','true',[],''],
		['PAGE','144464',jdecode('Imprensa'),jdecode(''),'/13503/144464.html','true',[],''],
		['PAGE','139658',jdecode('Jogos+e+Lazer'),jdecode(''),'/13503/139658.html','true',[],''],
		['PAGE','139637',jdecode('Marinha'),jdecode(''),'/13503/139637.html','true',[],''],
		['PAGE','139595',jdecode('M%C3%BAsica'),jdecode(''),'/13503/139595.html','true',[],''],
		['PAGE','139574',jdecode('Pessoais%7CBlogs'),jdecode(''),'/13503/139574.html','true',[],''],
		['PAGE','144401',jdecode('Recursos+Web'),jdecode(''),'/13503/144401.html','true',[],''],
		['PAGE','139511',jdecode('Sites+%2B+%C3%9Ateis'),jdecode(''),'/13503/139511.html','true',[],''],
		['PAGE','139553',jdecode('Sites+Diversos'),jdecode(''),'/13503/139553.html','true',[],''],
		['PAGE','139679',jdecode('Sites+Infantis'),jdecode(''),'/13503/139679.html','true',[],''],
		['PAGE','139427',jdecode('Video'),jdecode(''),'/13503/139427.html','true',[],'']
	],''],
	['PAGE','139700',jdecode('Downloads'),jdecode(''),'/139700.html','true',[],''],
	['PAGE','149001',jdecode('Arquivo'),jdecode(''),'/149001/index.html','true',[ 
		['PAGE','155601',jdecode('Arquivo+BTT'),jdecode(''),'/149001/155601.html','true',[],'']
	],''],
	['PAGE','13002',jdecode('Livro+Visitas'),jdecode(''),'/13002/index.html','true',[ 
		['PAGE','13003',jdecode('Entradas'),jdecode(''),'/13002/13003.html','true',[],'']
	],''],
	['PAGE','4903',jdecode('Contacto%7CPerfil'),jdecode(''),'/4903.html','true',[],'']];
var siteelementCount=81;
theSitetree.topTemplateName='Maschine';
theSitetree.paletteFamily='264B41';
theSitetree.keyvisualId='1910';
theSitetree.keyvisualName='digital.jpg';
theSitetree.fontsetId='319';
theSitetree.graphicsetId='371';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Maschine',
				paletteFamily: 	'264B41',
				keyvisualId: 	'1910',
				keyvisualName: 	'digital.jpg',
				fontsetId: 		'319',
				graphicsetId: 	'371',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1007']={
webappId:    '1007',
documentId:  '7002',
internalId:  '107ee11b55d',
customField: 'BTT'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4598',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '10002',
internalId:  '10802d5b969',
customField: 'g.12lf6i6ts.5dq97kfjltopq.6rn80'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4598',
internalId:  '6400678',
customField: '1501'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '13002',
internalId:  '13002aam010in3ind',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '13003',
internalId:  '13002aam010in3ind',
customField: 'action=list'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '16402',
internalId:  '10966284764',
customField: 'Viagens'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '76402',
internalId:  '114dd5a458a',
customField: 'Marinha'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '38802',
internalId:  '10dc85d1a7a',
customField: 'g.12lf6i6uq.2ppig3qqujmud.6rn80'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4598',
internalId:  '',
customField: '20080803-041734'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4903',
internalId:  '',
customField: '20080803-051715'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4930',
internalId:  '',
customField: '20080803-042242'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6603',
internalId:  '',
customField: '20080801-041121'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8803',
internalId:  '',
customField: '20071024-010659'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '66903',
internalId:  '',
customField: '20080124-012309'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7002',
internalId:  '',
customField: '20080124-014631'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '38802',
internalId:  '',
customField: '20080124-014800'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '157501',
internalId:  '',
customField: '20080725-040001'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4957',
internalId:  '',
customField: '20080803-043050'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '46703',
internalId:  '',
customField: '20080803-042905'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4984',
internalId:  '',
customField: '20080725-042111'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13503',
internalId:  '',
customField: '20080731-041233'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '81501',
internalId:  '',
customField: '20080801-042550'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8130',
internalId:  '',
customField: '20080801-041344'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10002',
internalId:  '',
customField: '20080116-034926'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16402',
internalId:  '',
customField: '20080116-034953'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '76402',
internalId:  '',
customField: '20080124-020131'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48803',
internalId:  '',
customField: '20080123-203905'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '78203',
internalId:  '',
customField: '20070928-043632'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '78230',
internalId:  '',
customField: '20070928-043935'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '78257',
internalId:  '',
customField: '20070928-044209'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '35203',
internalId:  '',
customField: '20080801-044209'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13002',
internalId:  '',
customField: '20080122-030020'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13003',
internalId:  '',
customField: '20060714-024748'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '89201',
internalId:  '',
customField: '20080725-034337'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '97522',
internalId:  '',
customField: '20080801-042654'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '97501',
internalId:  '',
customField: '20080801-042730'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '101201',
internalId:  '',
customField: '20080801-041927'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '104901',
internalId:  '',
customField: '20080801-043609'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '105501',
internalId:  '',
customField: '20080122-202251'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '108801',
internalId:  '',
customField: '20080114-023825'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '108885',
internalId:  '',
customField: '20080801-044055'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '139700',
internalId:  '',
customField: '20080731-030535'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '113601',
internalId:  '',
customField: '20080122-202444'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '114901',
internalId:  '',
customField: '20080801-044658'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '108843',
internalId:  '',
customField: '20080122-215333'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '108822',
internalId:  '',
customField: '20080124-020518'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '150801',
internalId:  '',
customField: '20080731-043318'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '117001',
internalId:  '',
customField: '20080731-043258'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '4903',
internalId:  '11423564',
customField: 'pt:PT:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '139385',
internalId:  '',
customField: '20080725-042929'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '146885',
internalId:  '',
customField: '20080721-051158'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '146885',
internalId:  '12184556',
customField: 'pt:PT:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '149001',
internalId:  '',
customField: '20080725-205320'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '149701',
internalId:  '',
customField: '20080731-035151'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '150401',
internalId:  '',
customField: '20080725-040803'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '145201',
internalId:  '',
customField: '20080722-043455'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '145222',
internalId:  '',
customField: '20080722-043600'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '146401',
internalId:  '',
customField: '20080725-040300'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '146422',
internalId:  '',
customField: '20080725-040601'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '156901',
internalId:  '',
customField: '20080722-043732'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '146801',
internalId:  '',
customField: '20080725-040940'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '146822',
internalId:  '',
customField: '20080725-041217'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '146843',
internalId:  '',
customField: '20080725-041435'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '139301',
internalId:  '',
customField: '20080725-041552'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '139343',
internalId:  '',
customField: '20080725-041703'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '139364',
internalId:  '',
customField: '20080725-041738'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '146864',
internalId:  '',
customField: '20080725-041953'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '155601',
internalId:  '',
customField: '20080731-030015'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '156922',
internalId:  '',
customField: '20080731-043001'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '161601',
internalId:  '',
customField: '20080725-042830'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '139490',
internalId:  '',
customField: '20080725-043020'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '139469',
internalId:  '',
customField: '20080725-043112'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '144443',
internalId:  '',
customField: '20080725-043150'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '139616',
internalId:  '',
customField: '20080725-043238'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '144506',
internalId:  '',
customField: '20080725-043536'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '139406',
internalId:  '',
customField: '20080725-043619'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '139532',
internalId:  '',
customField: '20080725-043722'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '139448',
internalId:  '',
customField: '20080725-043832'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '144464',
internalId:  '',
customField: '20080725-044014'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '139658',
internalId:  '',
customField: '20080725-044058'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '139637',
internalId:  '',
customField: '20080725-044141'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '139595',
internalId:  '',
customField: '20080725-044216'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '139574',
internalId:  '',
customField: '20080725-044252'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '144401',
internalId:  '',
customField: '20080725-044412'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '139511',
internalId:  '',
customField: '20080725-044447'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '139553',
internalId:  '',
customField: '20080725-044521'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '139679',
internalId:  '',
customField: '20080725-044550'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '139427',
internalId:  '',
customField: '20080725-044706'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '164501',
internalId:  '',
customField: '20080803-042446'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '165201',
internalId:  '',
customField: '20080730-025403'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '175201',
internalId:  '',
customField: '20080804-194538'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN3IND';
var companyName   = 'PedroAires.com';
var htmlTitle	  = 'PedroAires.com';
var metaKeywords  = 'BTT%2C+Bikes%2C+Bicicleta%2C+gratis%2C+coleccoes%2C+fotografia%2C+Ribatejo%2C+Santarem%2C+album%2C+hobbies%2C+ciclismo%2C+postais%2C+selos%2C+moedas%2C+raspadinhas%2C+calendarios%2C+fotoblog%2C+viagens%2C+photos%2C+Downhill%2C+Freeride%2C+Dirt%2C+4X%2C+Videos%2C+downtown%2C+DHI%2C+DHU%2C+XCO%2C+marinha%2C+links%2C+navios%2C+fotos%2C+passatempos%2C+dinheiro%2C+money%2C+telem%C3%B3vel%2C+natal%2C+borlas%2C+promo%C3%A7%C3%B5es%2C+apoiar%2C+ajudar%2C+mar%2C+navy%2C+lucro.';
var metaContents  = 'Dinheiro%2C+BTT%2C+Fotografia%2C+Video%2C+Coleccoes%2C+fotos%2C+gratis%2C+pagina+pessoal%2C++usados%2C+compras%2C+links%2C+passatempos%2C+telem%C3%B3vel%2C+humor%2C+promo%C3%A7%C3%B5es%2C+borlas%2C+bike%2C+apoiar%2C+ajudar%2C+marinha%2C+mar%2C+lucro.';
					                                                                    
theSitetree.getById = function(id, ar) {												
							if (typeof(ar) == 'undefined')                              
								ar = this;                                              
							for (var i=0; i < ar.length; i++) {                         
								if (ar[i][POS_ID] == id)                                
									return ar[i];                                       
								if (ar[i][POS_CHILDS].length > 0) {                     
									var result=this.getById(id, ar[i][POS_CHILDS]);     
									if (result != null)                                 
										return result;                                  
								}									                    
							}                                                           
							return null;                                                
					  };                                                                
					                                                                    
theSitetree.getParentById = function(id, ar) {                                        
						if (typeof(ar) == 'undefined')                              	
							ar = this;                                             		
						for (var i=0; i < ar.length; i++) {                        		
							for (var j = 0; j < ar[i][POS_CHILDS].length; j++) {   		
								if (ar[i][POS_CHILDS][j][POS_ID] == id) {          		
									// child found                                 		
									return ar[i];                                  		
								}                                                  		
								var result=this.getParentById(id, ar[i][POS_CHILDS]);   
								if (result != null)                                 	
									return result;                                  	
							}                                                       	
						}                                                           	
						return null;                                                	
					 }								                                    
					                                                                    
theSitetree.getName = function(id) {                                                  
						var elem = this.getById(id);                                    
						if (elem != null)                                               
							return elem[POS_NAME];                                      
						return null;	                                                
					  };			                                                    
theSitetree.getNavigationText = function(id) {                                        
						var elem = this.getById(id);                                    
						if (elem != null)                                               
							return elem[POS_NAVIGATIONTEXT];                            
						return null;	                                                
					  };			                                                    
					                                                                    
theSitetree.getHREF = function(id) {                                                  
						var elem = this.getById(id);                                    
						if (elem != null)                                               
							return elem[POS_HREF];                                      
						return null;	                                                
					  };			                                                    
					                                                                    
theSitetree.getIsNavigation = function(id) {                                          
						var elem = this.getById(id);                                    
						if (elem != null)                                               
							return elem[POS_ISNAVIGATION];                              
						return null;	                                                
					  };			                                                    
					                                                                    
theSitetree.getTemplateName = function(id, lastTemplateName, ar) {             		
	                                                                                 
	if (typeof(lastTemplateName) == 'undefined')                                     
		lastTemplateName = this.topTemplateName;	                                 
	if (typeof(ar) == 'undefined')                                                   
		ar = this;                                                                   
		                                                                             
	for (var i=0; i < ar.length; i++) {                                              
		var actTemplateName = ar[i][POS_TEMPLATENAME];                               
		                                                                             
		if (actTemplateName == '')                                                   
			actTemplateName = lastTemplateName;		                                 
		                                                                             
		if (ar[i][POS_ID] == id) {                                			         
			return actTemplateName;                                                  
		}	                                                                         
		                                                                             
		if (ar[i][POS_CHILDS].length > 0) {                                          
			var result=this.getTemplateName(id, actTemplateName, ar[i][POS_CHILDS]); 
			if (result != null)                                                      
				return result;                                                       
		}									                                         
	}                                                                                
	return null;                                                                     
	};                                                                               
/* EOF */					                                                            
