/* [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','1001',jdecode('Home'),jdecode(''),'/1001.html','true',[],''],
	['PAGE','1052',jdecode('Nouvelle+page'),jdecode(''),'/1052.html','true',[],'']];
var siteelementCount=2;
theSitetree.topTemplateName='Eatdrink';
theSitetree.paletteFamily='CD984C';
theSitetree.keyvisualId='3355';
theSitetree.keyvisualName='kv_3355.jpg';
theSitetree.fontsetId='10621';
theSitetree.graphicsetId='10741';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Eatdrink',
				paletteFamily: 	'CD984C',
				keyvisualId: 	'3355',
				keyvisualName: 	'kv_3355.jpg',
				fontsetId: 		'10621',
				graphicsetId: 	'10741',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'412D10',
				e_color: 		'979796',
				f_color: 		'979796',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1001',
internalId:  '',
customField: '20101230-025826'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1052',
internalId:  '',
customField: '20081220-042344'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1001',
internalId:  '1006',
customField: '1006'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '1052',
internalId:  '3489118',
customField: 'fr:FR:'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLPKK';
var companyName   = 'Gagne+Argent+Facilement+';
var htmlTitle	  = 'Gagnez+de+largent+facilement+sur+internet.';
var metaKeywords  = 'B%C3%A2tissez+votre+entreprise+et+gagnez+de+l%E2%80%99argent+sur+internet+%C3%A0+partir+de+votre+domicile%2COpportunite%2Ccarrefourinternet%2Cargent%2Ctravail%2Csport%2Cvend%2Cradin%2Crencontre%2Ccommerceinternet%2Cwebcommerce%2Csonnerie%2Cimage%2Cportail%2Cr%C3%A9gie%2Cemploi%2Cdomicile%2Cmaison%2Cami%2Ctraduction%2Ctraduire%2C+vendre%2Cvente%2Cr%C3%A9f%C3%A9rencement%2Cpublicit%C3%A9%2Cr%C3%A9f%C3%A9rence%2Cpositif%2Cplus%2Cracing%2Cformuleun%2Camour%2Cstore%2Ctrafechange%2Cclassement%2Cweborama%2Cdomaine%2Copportunit%C3%A9%2Cvoyages%2Cservices%2C+affaire%2Cgagnez%2Cchangerdevie%2C+argent%2Cinternet%2Cassurez%2Choroscope%2C+avenir%2Centreprise%2Caffaire%2Cgagnez+internet%2Cwebmasters%2Cmoteurderecherche%2Cannuaire%2Castrologie%2Ccartomancie%2Cvols%2Cvoyages%2Cr%C3%A9servations%2Cautos%2Cs%C3%A9jours%2Ch%C3%B4tel%2Cvacances%2Ccollectionneurs%2Cbillets%2Cmonnaies%2Cm%C3%A9dailles%2Cavion%2Caviation%2C%C3%A9cole%2Cpilotage%2Cnolisement%2Ca%C3%A9rien%2Cmillion%2Cvingt%2Chits%2Cmartinique%2Clocations%2Cautomobiles%2Cauto%2Cbanque%2Cboutique%2Cen+ligne%2Cmoney%2Cmaker%2Cmoneymaker%2Cgagnerargent%2Cmarketing%2C1tpe%2Caffiliation%2Ccompte%2Cpayer%2Cpaiement%2Cpaiements%2Ccommunication%2Ccommunications%2Cweber%2Cmachine%2Calbatros%2Caffiliation%2Caffiliationexpert%2Ccomment+b%C3%A2tir%2Cbatir%2Cb%C3%A2tire%2Cb%C3%A2tire%2Caffaires%2Cargent%2Copportunit%C3%A9%2Cweb%2Cinternet%2Cdomicile%2Cannuaire%2Cpublicit%C3%A9%2Copportunit%C3%A9s%2Cebook%2Cvendre%2Caffaire%2Clettre%2Cb%C3%A2tir%2Civan%2Cplus%2Civan-plus%2Cconstruire%2C+gagn%2Cgagn%C3%A9%2Cgagner%2Cgagnez%2Cargen%2Cargent%2Cfacil%2Cfacile%2Cfacilemen%2Cfacilement%2Cgagneargen%2Cgagne+argent%2Cgagne+argent+facile%2Cgagneargentfacile%2Cgagnargenfacil%2Cinternet%2CeBay%2Ccomment%2Cbeaucoup%2Csecret%2Cautonomie%2Cfinanci%C3%A8re%2Cfinancier%2Cfinance%2CB%C3%A2tir%2Cliste%2Cb%C3%A2tir+sa+liste%2Cdecouvrez+les+techniques%2Cpros%2Cg%C3%A9n%C3%A9rer%2Crevenus%2Csemaine%2Csimple+liste%2Cliste%2Csans%2Cmanipuler%2Ctromperies%2Cobtenir%2Crapport%2Cerreurs%2Cpubliez%2Cpublier%2Cnewsletter%2Cmythe%2Cla+liste%2Cvideo%2Cvid%C3%A9o%2Cadword%2Cmeilleur%2Cm%C3%A9thode%2Capprendre%2Ccr%C3%A9er%2Ccampagne%2Crentable%2Csecret%2Cr%C3%A9ussissent%2Cr%C3%A9ussir%2Cmoteur%2Crecherche%2Cmoteur+de+recherche%2Cannuaire%2Cactasite%2C1mot%2Camen%2C1-mot%2Camour%2Clove%2Cajoutervotre+site%2C';
var metaContents  = '+a+href%3Dhttp%3A%2F%2Fbatirsaliste.com%2Famember%2Fgo.php%3Fr%3D188i%3Dl0D%C3%A9couvrez+les+techniques+des+pros+pour+g%C3%A9n%C3%A9rer+des+revenus+chaque+semaine+sur+Internet+%C3%A0+laide+dune+simple+liste%2C+sans+avoir+%C3%A0+utiliser+des+tromperies+ou+de+la+manipulation%21%2Fa++%2Ca+href%3Dhttp%3A%2F%2Fbatirsaliste.com%2Famember%2Fgo.php%3Fr%3D188i%3Dl1Obtenez+2+rapports+GRATUITS%3A+9+erreurs+%C3%A0+%C3%A9viter+%C3%A0+tout+prix+quand+vous+publiez+une+newsletter+et+Mythe%3A+largent+est+dans+la+liste.%2Fa+++%2C+%C2%ABahref%3Dhttp%3A%2F%2Fwww.1tpe.com%2Findex-pro.php%3Fp%3Dnavy1+target%3D_blank++IMG+src%3Dhttp%3A%2F%2Fwww.1tpe.com%2Fbanners%2F468-60-aff.jpg+border%3D0+%2Fa%2C++a+href%3Dhttp%3A%2F%2Fwww.1tpe.com%2Findex-pro.php%3Fp%3Dnavy1+target%3D_blank++IMG+src%3Dhttp%3A%2F%2Fwww.1tpe.com%2Fbanners%2F468-60.jpg+border%3D0+%2Fa%3B+a+href%3Dhttp%3A%2F%2Fwww.123ici.com%2Fannu.asp%2Fnum%2F818%2Fsite%2F211262+%2CTarget%3D_blankOpportunit%C3%A9s+daffaires%2Fa++%2Cscript+type%3Dtext%2Fjavascript+src%3Dhttp%3A%2F%2Ffr.wedoo.com%2Fcgi-bin%2Fsurfer%2Fsurfer_in.cgi%3Fsiteid%3D175195originid%3D2%2Fscript%2Chttp%3A%2F%2Fwww.video-adwords.biz%3Fa_aid%3Dnavy1+%2Ca+href%3Dhttp%3A%2F%2Fwww.video-adwords.biz%2F%3Fa_aid%3Dnavy1amp%3Ba_bid%3D8c48e4debD%C3%A9couvrez+la+meilleure+m%C3%A9thode+pour+apprendre+%C3%A0+cr%C3%A9er%2Fbbr+des+campagnes+Adwords+rentableIMG+SRC%3Dhttp%3A%2F%2Fwww.video-adwords.biz%2Faffiliate%2Fscripts%2Fsb.php%3Fa_aid%3Dnavy1amp%3Ba_bid%3D8c48e4de+WIDTH%3D1+HEIGHT%3D1+BORDER%3D0%2Fa%2Ca+href%3Dhttp%3A%2F%2Fwww.video-adwords.biz%2F%3Fa_aid%3Dnavy1amp%3Ba_bid%3Dfe01a2eeimg+src%3Dhttp%3A%2F%2Fwww.video-adwords.biz%2Faffiliate%2Fscripts%2Fsb.php%3Fa_aid%3Dnavy1amp%3Ba_bid%3Dfe01a2ee+alt%3DFormation+Adwords+title%3DFormation+Adwords%2Fa%2Ca+href%3Dhttp%3A%2F%2Fgo.navy1.smog20.4.1tpe.net+target%3D_blankGagner%21+Le+secret+de+ceux+qui+r%C3%A9ussissent%2Fa%3Bcentera+href%3Dhttp%3A%2F%2Fwww.recherche-web.com+target%3D_blankimg+src%3Dhttp%3A%2F%2Fwww.recherche-web.com%2Flogorecherche.gif+alt%3DMoteur+de+Recherche.+Inscription+Gratuite.++border%3D0+width%3D90+height%3D87brfont+face%3DArial+size%3D1centerbLe+MoteurbrRecherche-Web%2Fb%2Fcenter%2Ffont%2Fa%3B++++a+href%3Dhttp%3A%2F%2Fannuaire.actasite.com%2Ftravail%2Ba%2Bdomicile%2C1465m.aspx+target%3D_blank+title%3Dtravail+a+domicile+travail+%C3%A0+domicile%2Fa%3Ba+href%3Dhttp%3A%2F%2Fwww.actasite.com%2Ftravail%2Ba%2Bdomicile%2C1465m.aspx+target%3D_blank+title%3Dtravail+a+domicile+travail+%C3%A0+domicile%2Fa+%3Ba+href%3Dhttp%3A%2F%2Fwww.1-mot.com%2Fannuaire-argent-1.html+target%3D_blankAnnuaire+argent%2Fa%3Bscript+type%3Dtext%2Fjavascript++var+uri+%3D+http%3A%2F%2Fimpfr.tradedoubler.com%2Fimp%3Ftype%28js%29g%2816944150%29a%281578879%29+%2B+new+String+%28Math.random%28%29%29.substring+%282%2C+11%29%3B++document.write%28sc%2Bript+type%3Dtext%2Fjavascript+src%3D%2Buri%2B+charset%3DISO-8859-1%2Fsc%2Bript%29%3B++%2Fscript%3Bpcentera+href%3Dhttp%3A%2F%2Fannuaire.affinitilove.comimg+src%3Dhttp%3A%2F%2Fannuaire.affinitilove.com%2Flogoa2.png+alt%3Dlogo+style%3Dborder%3Anone%2F%2Fa%2Fcenter%2Fp%3Ba+href%3Dhttp%3A%2F%2Fwww.ajoutezvotresite.com%2F+target%3D_blankimg+src%3Dhttp%3A%2F%2Fwww.ajoutezvotresite.com%2Fbutton.php%3Fu%3DNavy1+alt%3DAjoutez+votre+site+border%3D0+%2F%2Fa%2C++%21DOCTYPE+HTML+PUBLIC+-%2F%2FW3C%2F%2FDTD+HTML+4.01+Transitional%2F%2FEN+http%3A%2F%2Fwww.w3.org%2FTR%2Fhtml4%2Floose.dtd++htmlheadtitle15+conseils+pour+rendre+votre+site+plus+agr%C3%A9able%2Ftitle++++meta+http-equiv%3DContent-Type+content%3Dtext%2Fhtml%3B+charset%3Diso-8859-1++++++%2Fhead++++body+bgcolor%3D%23B72400++table+class%3Dcellborder+align%3Dcenter+bgcolor%3D%23ffffff+border%3D0+cellpadding%3D10+cellspacing%3D0+width%3D750++++tbody+++++tr++++++td+align%3Dleft+valign%3Dtop+++++++++table+width%3D100%25+border%3D0+cellspacing%3D0+cellpadding%3D0++++++++++tr++++++++++++tdnbsp%3B%2Ftd++++++++++++td+align%3Dcenterfont+face%3DVerdana%2C+Arial%2C+Helvetica%2C+sans-serif+size%3D1Votre+++++++++++++++petit+guide+de+reacute%3Bfeacute%3Brence+indispensable%2Ffont%2Ftd++++++++++%2Ftr++++++++++tr+++++++++++++tdimg+src%3Dcouv15cons.png+width%3D200+height%3D238%2Ftd++++++++++++td+++++++++++++++h1+align%3Dcenterfont+size%3D6+face%3DGeorgia%2C+Times+New+Roman%2C+Times%2C+serifquot%3B+++++++++++++++++font+color%3D%23FF0000+size%3D715%2Ffontfont+color%3D%23FF0000+Conseils%2Ffont+++++++++++++++++de+Probr++++++++++++++++pour+Rendre+b%2Fbfont+color%3D%23FF0000bVotre+Site%2Fbbr++++++++++++++++%2FfontbPlus+%2Fbfont+color%3D%23FF0000bAgreacute%3Bable+%2Fb%2Ffontetbr++++++++++++++++encore+font+color%3D%23FF0000Plus+Vendeur%2Ffont+quot%3Bbr++++++++++++++++br++++++++++++++++%2Ffont%2Fh1++++++++++++%2Ftd++++++++++%2Ftr++++++++%2Ftable++++++++p+align%3Dcenterfont+face%3DGeorgia%2C+Times+New+Roman%2C+Times%2C+serif+size%3D3bfont+color%3D%23990000Retenir+++++++++++vos+visiteurs+-+ecirc%3Btre+plus+Creacute%3Bdible+-+mieux+Vendre+-+ecirc%3Btre+++++++++++plus+Professionnel+...br++++++++++br++++++++++%2Ffont%2Fb%2Ffont%2Fp++++++++pfont+size%3D3+face%3DGeorgia%2C+Times+New+Roman%2C+Times%2C+serifbSouvent+++++++++++il+nest+pas+neacute%3Bcessaire+deffectuer+de+nombreuses+transformations+++++++++++sur+un+site+internet+pour+le+rendre+plus+agreacute%3Bable+agrave%3B+parcourir+++++++++++pour+vos+visiteurs.%2Fbbr++++++++++br++++++++++Deacute%3Bcouvrez+15+conseils+efficaces+de+pro+pour+ameacute%3Bliorer+votre+++++++++++site+%3A+br++++++++++%2Ffont%2Fp++++++++table+border%3D0+cellpadding%3D5+width%3D100%25++tbody++tr+valign%3Dtop++++++++++++td+width%3D49%25+++++++++++++++pfont+face%3DGeorgia%2C+Times+New+Roman%2C+Times%2C+serif+size%3D3bfont+face%3DGeorgia%2C+Times+New+Roman%2C+Times%2C+serifQue+++++++++++++++++vont+vous+apporter+ces+conseils+%3A%2Ffont%2Fbbr++++++++++++++++br++++++++++++++++-+Utilisez+plus+de+3+fois+ceci+diffeacute%3Bremment+dans+votre+site+++++++++++++++++et+vous+perdrez+en+creacute%3Bdibiliteacute%3Bbr++++++++++++++++br++++++++++++++++-+Si+vous+nindiquez+pas+cela+dans+vos+pages+votre+site+sera+mal+++++++++++++++++reacute%3Bfeacute%3Brenceacute%3B+par+les+moteurs+de+recherchebr++++++++++++++++%2Ffont%2Fp++++++++++++++pfont+face%3DGeorgia%2C+Times+New+Roman%2C+Times%2C+serif+size%3D3-+++++++++++++++++Comment+eacute%3Bviter+de+perdre+vos+visiteurs+dans+votre+site+et+++++++++++++++++ne+pas+les+forcer+agrave%3B+partir+...br++++++++++++++++%2Ffont%2Fp++++++++++++++pfont+face%3DGeorgia%2C+Times+New+Roman%2C+Times%2C+serif+size%3D3-+++++++++++++++++Demandez-vous+agrave%3B+qui+vous+parlez+...br++++++++++++++++%2Ffontfont+face%3DGeorgia%2C+Times+New+Roman%2C+Times%2C+serif+size%3D3br++++++++++++++++-+Pourquoi%2C+et+comment%2C+devez+vous+bien+connaicirc%3Btre+le+mateacute%3Briel+++++++++++++++++utiliseacute%3B+par+les+visiteurs+de+votre+site+%3Fbr++++++++++++++++br++++++++++++++++-+Quelles+informations+doit+on+retouver+sur+toutes+les+pages+de+++++++++++++++++votre+site+%3Fbr++++++++++++++++br++++++++++++++++-+De+quelle+faccedil%3Bon+optimiser+vos+images+et+illustrationsbr++++++++++++++++br++++++++++++++++-+Comment+diffeacute%3Brencier+votre+site+des+sites+concurrents+ou+++++++++++++++++similaires+%3Fbr++++++++++++++++br++++++++++++++++-+etc+...br++++++++++++++++br++++++++++++++++br++++++++++++++++%2Ffont%2Fp++++++++++++++%2Ftd++++++++++++td+valign%3Dtop+width%3D51%25+++++++++++++++div+align%3Dcenterimg+src%3Dcouv15cons.png+width%3D200+height%3D238br++++++++++++++++br++++++++++++++%2Fdiv++++++++++++++table+class%3Ddashedpullout+align%3Dcenter+cellpadding%3D4+cellspacing%3D0+width%3D360+bgcolor%3D%23FFCC66++++++++++++++++tbody+++++++++++++++++tr++td++++++++++++++++++++table+border%3D0+cellpadding%3D5+width%3D100%25++++++++++++++++++++++tbody+++++++++++++++++++++++tr+++++++++++++++++++++++++td+++++++++++++++++++++++++++p+class%3Doptinheadline+align%3Dcenterbfont+face%3DArial%2C+Helvetica%2C+sans-serif+size%3D2Remplissez+++++++++++++++++++++++++++++ce+bon+pour+recevoirbr++++++++++++++++++++++++++++vos+conseils+en+cadeau%2Ffont%2Fb%2Fp++++++++++++++++++++++++%2Ftd++++++++++++++++++++++%2Ftr++++++++++++++++++++++tr++++++++++++++++++++++++td+align%3Dcenter+valign%3Dmiddle++%21--+votre+script+dautor%C3%A9pondeur+d%C3%A9but+--++++script+type%3Dtext%2Fjavascript+src%3Dhttp%3A%2F%2Fforms.aweber.com%2Fform%2F46%2F1402410346.js%2Fscript++++%21--+votre+script+dautor%C3%A9pondeur+fin+--++%2Ftd++++++++++++++++++++++%2Ftr++++++++++++++++++++++%2Ftbody+++++++++++++++++++++%2Ftable++++++++++++++++%2Ftd++%2Ftr++%2Ftbody++%2Ftable++++++++++++++br++++++++++++++br++++++++++++++table+width%3D360+border%3D0+cellspacing%3D0+cellpadding%3D5+bgcolor%3D%23FFFFCC++++++++++++++++tr++++++++++++++++++td++++++++++++++++++++p+align%3Dleftfont+face%3DCourier+New%2C+Courier%2C+mono+size%3D2Celui+++++++++++++++++++++++qui+donne+un+bon+conseil%2C+construit+dune+main%2C+celui+qui+conseille+++++++++++++++++++++++et+donne+lexemple%2C+agrave%3Bconstruit+des+deux+mains+%3B+mais+celui+qui+donne+++++++++++++++++++++++de+bonnes+leccedil%3Bons+et+un+mauvais+exemple+construit+dune+++++++++++++++++++++++main+et+deacute%3Btruit+de+lautre.%2Ffont%2Fp++++++++++++++++++++p+align%3Drightfont+face%3DCourier+New%2C+Courier%2C+mono+size%3D2%5BFrancis+++++++++++++++++++++++Bacon%5D%2Ffont%2Fp++++++++++++++++++%2Ftd++++++++++++++++%2Ftr++++++++++++++%2Ftable++++++++++++%2Ftd++%2Ftr++%2Ftbody++%2Ftable++++++++%2Ftd++%2Ftr++%2Ftbody++%2Ftable++++++script+language%3Djavascriptdocument.write%28img+src%3Dhttp%3A%2F%2Fmonsite.voila.fr%2Fservlets%2Fistat%3Fsite%3Dnavy1page%3D%2F15conseils.htmloutil%3Dftpwebn%3D+%2B+Math.round%28Math.random%28%29*100000%29+%2B++width%3D1+height%3D1%29%3B+%2Fscript++script+language%3Djavascriptdocument.write%28img+src%3Dhttp%3A%2F%2Fe.voila.fr%2Fcgi-bin%2Fft%2F10000033638%3Fpage%3Dnavy1_15conseils.htmln%3D+%2B+Math.round%28Math.random%28%29*100000%29+%2B++width%3D1+height%3D1%29%3B%2Fscript++%2Fbody++%2Fhtml%3Ba+href%3Dhttp%3A%2F%2Fwww.123ici.com%2Fannu.asp%2Fnum%2F818%2Fsite%2F223017+Target%3D_blankOpportunit%C3%A9s+daffaires%2Fa%3B++a+href%3Dhttp%3A%2F%2Fwww.joelouvier.info%2F+title%3DEuropean+directory-Site-et-Blog-Nord-59+target%3D_blankAnnuaire-NORD-EUROPE%2Fa%3B';
					                                                                    
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 */					                                                            

