/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','473',jdecode('%C2%BFQue+es+Rotaract%3F'),jdecode(''),'/473.html','true',[],'',''],
	['PAGE','7001',jdecode('Nosotros'),jdecode(''),'/7001.html','true',[],'',''],
	['PAGE','7022',jdecode('Actividades'),jdecode(''),'/7022/index.html','true',[ 
		['PAGE','10701',jdecode('Calendario'),jdecode(''),'/7022/10701.html','false',[],'','']
	],'',''],
	['PAGE','2301',jdecode('Galeria'),jdecode(''),'/2301/index.html','true',[ 
		['PAGE','33112',jdecode('Ambulacia'),jdecode(''),'/2301/33112.html','true',[],'','']
	],'',''],
	['PAGE','2006',jdecode('Libro+de+visitas'),jdecode(''),'/2006/index.html','true',[ 
		['PAGE','2001',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/2006/2001.html','false',[],'',''],
		['PAGE','452',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/2006/452.html','true',[],'','']
	],'',''],
	['PAGE','36212',jdecode('Logo+rio'),jdecode(''),'/36212.html','true',[],'',''],
	['PAGE','37912',jdecode('SEDIPROA'),jdecode(''),'/37912/index.html','true',[ 
		['PAGE','39812',jdecode('Contenido'),jdecode(''),'/37912/39812.html','true',[],'',''],
		['PAGE','38812',jdecode('Contacto'),jdecode(''),'/37912/38812.html','true',[],'',''],
		['PAGE','38833',jdecode('Patrocinadores'),jdecode(''),'/37912/38833.html','true',[],'',''],
		['PAGE','42012',jdecode('Promo'),jdecode(''),'/37912/42012.html','true',[],'','']
	],'','']];
var siteelementCount=16;
theSitetree.topTemplateName='Odd';
theSitetree.paletteFamily='DCE5FA';
theSitetree.keyvisualId='12129';
theSitetree.keyvisualName='kv_12129.jpg';
theSitetree.fontsetId='33320';
theSitetree.graphicsetId='14195';
theSitetree.contentColor='5C657A';
theSitetree.contentBGColor='DCE5FA';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Odd',
				paletteFamily: 	'DCE5FA',
				keyvisualId: 	'12129',
				keyvisualName: 	'kv_12129.jpg',
				fontsetId: 		'33320',
				graphicsetId: 	'14195',
				contentColor: 	'5C657A',
				contentBGColor: 'DCE5FA',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '37912',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '37912',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100406-222356'
};
webappMappings['1002']=webappMappings['1002-2006avec10invb8c']={
webappId:    '1002',
documentId:  '2006',
internalId:  '2006avec10invb8c',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-49dfa0c5a2da116a8f6dcec2dbb7a9fd']={
webappId:    '7060',
documentId:  '2301',
internalId:  '49dfa0c5a2da116a8f6dcec2dbb7a9fd',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20090707-200333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7001',
internalId:  '',
customField: '20090707-195914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7022',
internalId:  '',
customField: '20090707-195701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10701',
internalId:  '',
customField: '20090707-130017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2301',
internalId:  '',
customField: '20090701-205731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2006',
internalId:  '',
customField: '20070726-132425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20070726-132425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20070727-103606'
};
webappMappings['7060']=webappMappings['7060-7417bd1fc6705a2de7dd2fae0da04b86']={
webappId:    '7060',
documentId:  '33112',
internalId:  '7417bd1fc6705a2de7dd2fae0da04b86',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37912',
internalId:  '',
customField: '20100406-221955'
};
webappMappings['7005']=webappMappings['7005-1402']={
webappId:    '7005',
documentId:  '36212',
internalId:  '1402',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33112',
internalId:  '',
customField: '20090707-202805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36212',
internalId:  '',
customField: '20100310-191842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38812',
internalId:  '',
customField: '20100412-171241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38833',
internalId:  '',
customField: '20100406-222718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39812',
internalId:  '',
customField: '20100405-232044'
};
webappMappings['7060']=webappMappings['7060-55a6b727b3a9bc729fe149a567d1aea9']={
webappId:    '7060',
documentId:  '42012',
internalId:  '55a6b727b3a9bc729fe149a567d1aea9',
customField: 'language:es;country:ES;'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INVB8C';
var companyName   = '++++++++CLUB+ROTARACT+++++IZCALLI+ORIENTE';
var htmlTitle	  = '';
var metaKeywords  = 'Rotaract%2C++Rotaract+Izcalli+Oriente%2C++Rotary+Internacional%2C+Rotaract+4170%2C+sediproa%2C+ayuda+comunitaria%2C+jovenes+en+accion%2C+Rotaract+mexico++';
var metaContents  = 'Rotaract+%7BROTARy+in+ACTion%7D+es+un+programa+de+Rotary+International+orientado+a+j%C3%B3venes+adultos+que+se+aboca+a+la+formaci%C3%B3n+de+profesionales+l%C3%ADderes+en+su+trabajo+y+su+comunidad+a+trav%C3%A9s+del+compa%C3%B1erismo+y+servicio+a+la+comunidad+a+nivel+local+e+internacional.++++';
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();
};
