/* [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','1511',jdecode('Inicio'),jdecode(''),'/1511.html','true',[],''],

	['PAGE','1532',jdecode('Informaci%C3%B3n+personal'),jdecode(''),'/1532.html','true',[],''],

	['PAGE','1553',jdecode('Mis+fotos'),jdecode(''),'/1553.html','true',[],''],

	['PAGE','1574',jdecode('Mi+blog'),jdecode(''),'/1574.html','true',[],''],

	['PAGE','1585',jdecode('Libro+de+invitados'),jdecode(''),'/1585.html','true',[],''],

	['PAGE','1606',jdecode('Contacto'),jdecode(''),'/1606.html','true',[],'']];

var siteelementCount=6;

theSitetree.topTemplateName='Noble';

theSitetree.paletteFamily='8E8E5B';

theSitetree.keyvisualId='-1';

theSitetree.keyvisualName='keyv.jpg';

theSitetree.fontsetId='17227';

theSitetree.graphicsetId='12672';

theSitetree.contentColor='FFFFFF';

theSitetree.contentBGColor='8E8E5B';

var theTemplate={

				name: 			'Noble',

				paletteFamily: 	'8E8E5B',

				keyvisualId: 	'-1',

				keyvisualName: 	'keyv.jpg',

				fontsetId: 		'17227',

				graphicsetId: 	'12672',

				contentColor: 	'FFFFFF',

				contentBGColor: '8E8E5B',

				hasFlashNavigation: 'false',

				hasFlashLogo: 	'false',

				hasFlashCompanyname: 'false',

				hasFlashElements: 'false',

				hasCompanyname: 'false',

				a_color: 		'000000',

				b_color: 		'000000',

				c_color: 		'000000',

				d_color: 		'000000',

				e_color: 		'000000',

				f_color: 		'000000',

				hasCustomLogo: 	'false',

				contentFontFace:'Arial, Helvetica, sans-serif',

				contentFontSize:'12'

			  };

var webappMappings = {};

webappMappings['7060']={

webappId:    '7060',

documentId:  '1553',

internalId:  'b3c96d5644ad05386d8b4be46073605f',

customField: 'language:es;country:ES;'

};

webappMappings['7050']={

webappId:    '7050',

documentId:  '1574',

internalId:  '4470',

customField: 'language:es;country:ES;'

};

webappMappings['7002']={

webappId:    '7002',

documentId:  '1585',

internalId:  '4834',

customField: 'language:es;country:ES;'

};

webappMappings['7008']={

webappId:    '7008',

documentId:  '1606',

internalId:  '4871',

customField: 'language:es;country:ES;'

};

webappMappings['5000']={

webappId:    '5000',

documentId:  '1511',

internalId:  '',

customField: '20090907-221139'

};

webappMappings['5000']={

webappId:    '5000',

documentId:  '1532',

internalId:  '',

customField: '20090907-221139'

};

webappMappings['5000']={

webappId:    '5000',

documentId:  '1553',

internalId:  '',

customField: '20090907-221139'

};

webappMappings['5000']={

webappId:    '5000',

documentId:  '1574',

internalId:  '',

customField: '20090907-221140'

};

webappMappings['5000']={

webappId:    '5000',

documentId:  '1585',

internalId:  '',

customField: '20090907-221140'

};

webappMappings['5000']={

webappId:    '5000',

documentId:  '1606',

internalId:  '',

customField: '20090907-221140'

};

webappMappings['1006']={

webappId:    '1006',

documentId:  '1511',

internalId:  '1006',

customField: '1006'

};

var canonHostname = 'wsc01a.arsys.es';

var accountId     = 'AARS20INLNX3';

var companyName   = '%C2%A1Hola+Caracola+est%C3%A1+en+l%C3%ADnea%21';

var htmlTitle	  = '%C2%A1Hola+Caracola+est%C3%A1+en+l%C3%ADnea%21';

var metaKeywords  = '';

var metaContents  = '';

					                                                                    

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 */					                                                            

