/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(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 POS_TARGET=8;
var theSitetree=[ 
	['PAGE','1201',jdecode('Inicio'),jdecode(''),'/1201/index.html','true',[ 
		['PAGE','18022',jdecode('Aviso+legal'),jdecode(''),'/1201/18022.html','true',[],'',''],
		['PAGE','58412',jdecode('Recogida+de+alimentos'),jdecode(''),'/1201/58412.html','true',[],'',''],
		['PAGE','46312',jdecode('Testimonios+BdS'),jdecode(''),'/1201/46312.html','true',[],'',''],
		['PAGE','20601',jdecode('Colabora+con+el+BdS'),jdecode(''),'/1201/20601.html','true',[],'',''],
		['PAGE','41312',jdecode('BdS+Multimedia'),jdecode(''),'/1201/41312.html','true',[],'','']
	],'',''],
	['PAGE','1252',jdecode('Informaci%C3%B3n+y+Descargas'),jdecode(''),'/1252.html','true',[],'',''],
	['PAGE','1294',jdecode('Contacta+con+nosotros'),jdecode(''),'/1294/index.html','true',[ 
		['PAGE','66612',jdecode('Contacta+con+nosotros+%28follow+up+page%29'),jdecode(''),'/1294/66612.html','false',[],'','']
	],'',''],
	['PAGE','35901',jdecode('Empresas+e+Instituciones'),jdecode(''),'/35901.html','true',[],'',''],
	['PAGE','17701',jdecode('Enlaces+BdS'),jdecode(''),'/17701.html','true',[],'','']];
var siteelementCount=11;
theSitetree.topTemplateName='Commercial';
theSitetree.paletteFamily='FFFFFF';
theSitetree.keyvisualId='10204';
theSitetree.keyvisualName='house.swf';
theSitetree.fontsetId='21115';
theSitetree.graphicsetId='13218';
theSitetree.contentColor='0068B4';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var prodDef={
  wl_name: 'arsys',
  product: 'WSCSYSSSSLYTC2IR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Commercial',
				paletteFamily: 	'FFFFFF',
				keyvisualId: 	'10204',
				keyvisualName: 	'house.swf',
				fontsetId: 		'21115',
				graphicsetId: 	'13218',
				contentColor: 	'0068B4',
				contentBGColor: 'FFFFFF',
				a_color: 		'0068b4',
				b_color: 		'569bcd',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1201',
internalId:  '',
customField: '20100124-171714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1294',
internalId:  '',
customField: '20090310-221901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35901',
internalId:  '',
customField: '20100131-133118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1252',
internalId:  '',
customField: '20100404-204310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20601',
internalId:  '',
customField: '20090504-205006'
};
webappMappings['7060']=webappMappings['7060-059ae06be04ae24807a22ee4e093e2c6']={
webappId:    '7060',
documentId:  '41312',
internalId:  '059ae06be04ae24807a22ee4e093e2c6',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41312',
internalId:  '',
customField: '20091004-103231'
};
webappMappings['7008']=webappMappings['7008-6643']={
webappId:    '7008',
documentId:  '1294',
internalId:  '6643',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66612',
internalId:  '',
customField: '20090308-173214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17701',
internalId:  '',
customField: '20090621-183713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18022',
internalId:  '',
customField: '20090207-214611'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '58412',
internalId:  'location',
customField: 'language:es;country:ES;isIncluded:false;'
};
webappMappings['1501']=webappMappings['1501-7411875']={
webappId:    '1501',
documentId:  '1201',
internalId:  '7411875',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46312',
internalId:  '',
customField: '20100207-210737'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58412',
internalId:  '',
customField: '20090224-200318'
};
var webAppHostname = 'wsc.webaporter.com:80';
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'AARS20INV6WH';
var companyName   = '+++++Banco+de+Solidaridad+%5BBdS%5D';
var htmlTitle	  = 'Banco+de+Solidaridad+%5BBdS%5D';
var metaKeywords  = 'banco+solidaridad+alimentos+madrid+comida+caja+caridad+cdo+espa%C3%B1a+madrid+crisis+familias+necesidad+voluntarios+';
var metaContents  = 'Banco%C2%A0de%C2%A0Solidaridad%C2%A0es%C2%A0una%C2%A0asociaci%C3%B3n%C2%A0civil%C2%A0que%C2%A0nace%C2%A0con%C2%A0el%C2%A0objetivo%C2%A0de%C2%A0responder%C2%A0a%C2%A0la%C2%A0++necesidad%C2%A0+primaria%C2%A0+de%C2%A0+alimentos%C2%A0+que%C2%A0+tienen%C2%A0+muchas%C2%A0+personas%C2%A0+y%C2%A0+familias%C2%A0+a%C2%A0+nuestro%C2%A0+alrededor%C2%A0+con%C2%A0+graves%C2%A0+dificultades%C2%A0+econ%C3%B3micas.%C2%A0+Los%C2%A0+voluntarios%C2%A0+del%C2%A0+banco%C2%A0+de%C2%A0+solidaridad%C2%A0+llevan%C2%A0+una%C2%A0+vez%C2%A0+al%C2%A0+mes%C2%A0+a%C2%A0+las%C2%A0+casas%C2%A0+de%C2%A0+quien%C2%A0+lo%C2%A0+necesita%C2%A0+los%C2%A0+alimentos%C2%A0+no%C2%A0+perecederos%C2%A0+que%C2%A0+aportan%C2%A0+voluntariamente%C2%A0+quienes%C2%A0+deseen%C2%A0+colaborar.%C2%A0+La%C2%A0+caridad%C2%A0+en%C2%A0+la%C2%A0+que%C2%A0+educa%C2%A0+la%C2%A0+Iglesia%C2%A0+Cat%C3%B3lica%C2%A0+es%C2%A0+el%C2%A0+origen%C2%A0+y%C2%A0+el%C2%A0+m%C3%A9todo%C2%A0+que%C2%A0+dan%C2%A0+forma%C2%A0+a%C2%A0+esta%C2%A0+iniciativa%2C%C2%A0+que%C2%A0++consiste%C2%A0+fundamentalmente%C2%A0+en%C2%A0+un%C2%A0+encuentro%C2%A0+entre%C2%A0+personas%C2%A0+%28donantes%2C%C2%A0+voluntarios%C2%A0y%C2%A0destinatarios%29%C2%A0que%C2%A0permite%C2%A0compartir%C2%A0la%C2%A0vida%C2%A0a%C2%A0trav%C3%A9s%C2%A0de%C2%A0la%C2%A0respuesta%C2%A0a%C2%A0una%C2%A0necesidad.%C2%A0%C2%A0++';
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;
};

theSitetree.getByXx = function(lookup, xx, ar) {
    if (typeof(ar) == 'undefined'){
    	ar = this;
    }
    for (var i=0; i < ar.length; i++) {
        if (ar[i][xx] == lookup){
        	return ar[i];
        }
        if (ar[i][POS_CHILDS].length > 0) {
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);
            if (result != null){
                return result;
               }
        }
    }
    return null;
};

function gotoPage(lookup) {
	if(__path_prefix__ == "/servlet/CMServeRES" && typeof (changePage) == 'function'){
		changePage(lookup);
		return;
	}
	var page = theSitetree.getHREF(lookup);
	if (!page) {
		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];
		for (var i=0 ; i < testFor.length ; i++) {
			var p = theSitetree.getByXx(lookup, testFor[i]);
			if (p != null) {
				page = p[POS_HREF];
				break;
			}
		}
	}
	document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
};

