/* [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','45827',jdecode('Actualidad+RaD%28Sf%29+2012'),jdecode(''), jdecode('%2F45827.html'), 'true',[],'',''],
	['PAGE','44227',jdecode('Actualidad+RaD%28Sf%29'),jdecode(''), jdecode('%2F44227.html'), 'false',[],'',''],
	['PAGE','801',jdecode('Actualidad+RaD%28Sf%29+old'),jdecode(''), jdecode('%2F801.html'), 'false',[],'',''],
	['PAGE','28401',jdecode('Terremoto+en+Hait%C3%AD'),jdecode(''), jdecode('%2F28401.html'), 'false',[],'',''],
	['PAGE','852',jdecode('RaD%28Sf%29+ONGD'),jdecode(''), jdecode('%2F852%2Findex.html'), 'true',[ 
		['PAGE','873',jdecode('Una+red+de+solidaridad'),jdecode(''), jdecode('%2F852%2F873.html'), 'true',[],'','']
	],'',''],
	['PAGE','894',jdecode('Desarrollo+del+Milenio'),jdecode(''), jdecode('%2F894%2Findex.html'), 'true',[ 
		['PAGE','915',jdecode('Los+8+objetivos+del+Milenio'),jdecode(''), jdecode('%2F894%2F915.html'), 'true',[],'','']
	],'',''],
	['PAGE','957',jdecode('Proyectos+2012'),jdecode(''), jdecode('%2F957%2Findex.html'), 'true',[ 
		['PAGE','8901',jdecode('Proyecto+Marruecos+Sur'),jdecode(''), jdecode('%2F957%2F8901.html'), 'true',[],'','']
	],'',''],
	['PAGE','17401',jdecode('Programas+de+actuaci%C3%B3n'),jdecode(''), jdecode('%2F17401%2Findex.html'), 'true',[ 
		['PAGE','999',jdecode('Programa+de+Salud'),jdecode(''), jdecode('%2F17401%2F999.html'), 'true',[],'',''],
		['PAGE','17422',jdecode('Programa+Educativo'),jdecode(''), jdecode('%2F17401%2F17422.html'), 'true',[],'',''],
		['PAGE','17443',jdecode('Programa+de+Ropa+y+Calzado'),jdecode(''), jdecode('%2F17401%2F17443.html'), 'true',[],'',''],
		['PAGE','17464',jdecode('Programa+Desarrollo+Econ%C3%B3mico'),jdecode(''), jdecode('%2F17401%2F17464.html'), 'true',[],'',''],
		['PAGE','17485',jdecode('Programa+Desarrollo+Social'),jdecode(''), jdecode('%2F17401%2F17485.html'), 'true',[],'','']
	],'',''],
	['PAGE','1020',jdecode('Solidaridad+4x4'),jdecode(''), jdecode('%2F1020%2Findex.html'), 'true',[ 
		['PAGE','1041',jdecode('Decalogo+del+viajero+solidario'),jdecode(''), jdecode('%2F1020%2F1041.html'), 'true',[],'','']
	],'',''],
	['PAGE','1062',jdecode('Viajes+y+Rutas+Solidarias'),jdecode(''), jdecode('%2F1062%2Findex.html'), 'true',[ 
		['PAGE','16301',jdecode('Ruta+Solidaria+Octubre%26%23x27%3B08'),jdecode(''), jdecode('%2F1062%2F16301.html'), 'true',[],'',''],
		['PAGE','11801',jdecode('Viaje+ONG+RaD%28Sf%29+Enero%26%23x27%3B09+'),jdecode(''), jdecode('%2F1062%2F11801.html'), 'true',[],'',''],
		['PAGE','16322',jdecode('Ruta+Solidaria+Junio%26%23x27%3B09'),jdecode(''), jdecode('%2F1062%2F16322.html'), 'true',[],'',''],
		['PAGE','24001',jdecode('Viaje+ONG+RaD%28Sf%29+Octubre%26%23x27%3B09'),jdecode(''), jdecode('%2F1062%2F24001.html'), 'true',[],'',''],
		['PAGE','46427',jdecode('Viaje+ONG+RaD%28Sf%29+Octubre%26%23x27%3B11'),jdecode(''), jdecode('%2F1062%2F46427.html'), 'true',[],'','']
	],'',''],
	['PAGE','32901',jdecode('Sala+de+Prensa'),jdecode(''), jdecode('%2F32901%2Findex.html'), 'true',[ 
		['PAGE','41027',jdecode('Dia+internacional+del+agua'),jdecode(''), jdecode('%2F32901%2F41027.html'), 'false',[],'','']
	],'',''],
	['PAGE','37919',jdecode('Descarga+de+documentos'),jdecode(''), jdecode('%2F37919.html'), 'true',[],'',''],
	['PAGE','37019',jdecode('Hazte+Socio'),jdecode(''), jdecode('%2F37019%2Findex.html'), 'true',[ 
		['PAGE','12801',jdecode('Como+hacerte+socio'),jdecode(''), jdecode('%2F37019%2F12801.html'), 'true',[],'',''],
		['PAGE','13201',jdecode('Hazte+Socio+%28follow+up+page%29'),jdecode(''), jdecode('%2F37019%2F13201.html'), 'false',[],'','']
	],'',''],
	['PAGE','1104',jdecode('Colabora+con+nosotros'),jdecode(''), jdecode('%2F1104.html'), 'true',[],'',''],
	['PAGE','1125',jdecode('Contacto'),jdecode(''), jdecode('%2F1125%2Findex.html'), 'true',[ 
		['PAGE','12701',jdecode('Hazte+Socio+%28follow+up+page%29'),jdecode(''), jdecode('%2F1125%2F12701.html'), 'false',[],'','']
	],'',''],
	['PAGE','22801',jdecode('Agradecimientos'),jdecode(''), jdecode('%2F22801.html'), 'true',[],'','']];
var siteelementCount=34;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10892';
theSitetree.contentColor='A00000';
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: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10892',
				contentColor: 	'A00000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '801',
internalId:  '',
customField: '20110314-213759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '852',
internalId:  '',
customField: '20090930-234220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '894',
internalId:  '',
customField: '20091001-102445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '873',
internalId:  '',
customField: '20090930-234914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '915',
internalId:  '',
customField: '20091105-205337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1125',
internalId:  '',
customField: '20100218-233957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1104',
internalId:  '',
customField: '20100207-232849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11801',
internalId:  '',
customField: '20091001-200431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1020',
internalId:  '',
customField: '20091001-172535'
};
webappMappings['1501']=webappMappings['1501-9445521']={
webappId:    '1501',
documentId:  '45827',
internalId:  '9445521',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '957',
internalId:  '',
customField: '20091001-102438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8901',
internalId:  '',
customField: '20100218-234242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '999',
internalId:  '',
customField: '20091105-204248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1041',
internalId:  '',
customField: '20100302-221835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1062',
internalId:  '',
customField: '20091105-210711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13201',
internalId:  '',
customField: '20091001-155437'
};
webappMappings['7008']=webappMappings['7008-6974']={
webappId:    '7008',
documentId:  '12801',
internalId:  '6974',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12801',
internalId:  '',
customField: '20100214-183726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44227',
internalId:  '',
customField: '20111005-112241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37919',
internalId:  '',
customField: '20100302-222027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12701',
internalId:  '',
customField: '20091001-155124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17401',
internalId:  '',
customField: '20091105-204555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17422',
internalId:  '',
customField: '20091001-202602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17443',
internalId:  '',
customField: '20091001-202851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17464',
internalId:  '',
customField: '20091001-203037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17485',
internalId:  '',
customField: '20091001-203220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16301',
internalId:  '',
customField: '20091001-212659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16322',
internalId:  '',
customField: '20091001-211405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22801',
internalId:  '',
customField: '20110314-215458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24001',
internalId:  '',
customField: '20091105-205957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41027',
internalId:  '',
customField: '20100322-233720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28401',
internalId:  '',
customField: '20100214-185800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37019',
internalId:  '',
customField: '20100214-190153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32901',
internalId:  '',
customField: '20100322-234726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45827',
internalId:  '',
customField: '20120104-233044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46427',
internalId:  '',
customField: '20120105-000559'
};
var webAppHostname = 'wsc.webaporter.com:80';
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'AARS20INLO72';
var companyName   = '';
var htmlTitle	  = 'ONGD+RaD%28Sf%29+Rumbo+al+Desarrollo+%28Sin+Fronteras%29';
var metaKeywords  = 'ONG%2C+ONGD%2C+Solidaridad%2C+4x4%2C+Desarrollo%2C+viajero+sostenible%2C+organizacion+no+gubernamental%2C+marruecos+sur%2C+merzouga%2C+desarrollo+sostenible%2C+desarrollo+del+milenio%2C+ruta+solidaria%2C+viajes+ongd%2C+radsf%2C+RaD%28Sf%29%2C+rumbo%2C+rumbo+al+desarrollo';
var metaContents  = 'Sitio+Web+Oficial+de+la+ONG+Rumbo+al+Desarrollo+%28Sin+Fronteras%29';
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();
};

