/* [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','801',jdecode('Bienvenidos'),jdecode(''),'/801.html','true',[],'',''],
	['PAGE','5001',jdecode('%C2%BFQuienes+somos%3F'),jdecode(''),'/5001.html','true',[],'',''],
	['PAGE','5022',jdecode('++Misi%C3%B3n+y+Visi%C3%B3n'),jdecode(''),'/5022.html','true',[],'',''],
	['PAGE','29601',jdecode('Participa_GRUPO+'),jdecode(''),'/29601.html','true',[],'',''],
	['PAGE','5106',jdecode('N%C3%BAmeros+Anteriores'),jdecode(''),'/5106.html','true',[],'',''],
	['PAGE','5085',jdecode('N%C3%BAmero+Actual'),jdecode(''),'/5085.html','true',[],'',''],
	['PAGE','5148',jdecode('Actos+y+Eventos'),jdecode(''),'/5148.html','true',[],'',''],
	['PAGE','5127',jdecode('Noticias'),jdecode(''),'/5127.html','true',[],'',''],
	['PAGE','5169',jdecode('Links+de+Interes'),jdecode(''),'/5169.html','true',[],'',''],
	['PAGE','5190',jdecode('Galeria+de+Fotos'),jdecode(''),'/5190.html','true',[],'',''],
	['PAGE','5211',jdecode('Videos'),jdecode(''),'/5211.html','true',[],'',''],
	['PAGE','11006',jdecode('Libro+de+visitas'),jdecode(''),'/11006/index.html','true',[ 
		['PAGE','11001',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/11006/11001.html','false',[],'','']
	],'','']];
var siteelementCount=13;
theSitetree.topTemplateName='Lounge';
theSitetree.paletteFamily='4DB1CB';
theSitetree.keyvisualId='11721';
theSitetree.keyvisualName='kv_11721.jpg';
theSitetree.fontsetId='32984';
theSitetree.graphicsetId='14004';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Lounge',
				paletteFamily: 	'4DB1CB',
				keyvisualId: 	'11721',
				keyvisualName: 	'kv_11721.jpg',
				fontsetId: 		'32984',
				graphicsetId: 	'14004',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'B9B19D',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-11006avec10inp7dr']={
webappId:    '1002',
documentId:  '11006',
internalId:  '11006avec10inp7dr',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '801',
internalId:  '',
customField: '20100221-093635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20100805-024304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5022',
internalId:  '',
customField: '20100221-094718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29601',
internalId:  '',
customField: '20090323-224731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5085',
internalId:  '',
customField: '20100320-230615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5106',
internalId:  '',
customField: '20100320-232051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5127',
internalId:  '',
customField: '20090329-183019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5148',
internalId:  '',
customField: '20100805-041133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5169',
internalId:  '',
customField: '20100523-011711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5190',
internalId:  '',
customField: '20081012-063740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5211',
internalId:  '',
customField: '20081012-063740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11006',
internalId:  '',
customField: '20081028-130359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11001',
internalId:  '',
customField: '20081028-130359'
};
webappMappings['1501']=webappMappings['1501-13014360']={
webappId:    '1501',
documentId:  '801',
internalId:  '13014360',
customField: '1501'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INP7DR';
var companyName   = 'ARCHIVO+%C2%BFQU%C3%89%3F++Gaceta+del+Archivista';
var htmlTitle	  = '';
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;
};

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();
};
