/* [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','4556',jdecode('Home'),jdecode(''),'/4556.html','true',[],'',''],
	['PAGE','6134',jdecode('QUIENES+SOMOS'),jdecode(''),'/6134.html','true',[],'',''],
	['PAGE','6215',jdecode('BANDA+EVOLUCION'),jdecode(''),'/6215/index.html','true',[ 
		['PAGE','15101',jdecode('FOTOGRAFIAS'),jdecode(''),'/6215/15101.html','true',[],'','']
	],'',''],
	['PAGE','6188',jdecode('GRUPOS+VERSATILES'),jdecode(''),'/6188/index.html','true',[ 
		['PAGE','6269',jdecode('GRUPO+AZUL+MARINO'),jdecode(''),'/6188/6269.html','true',[],'',''],
		['PAGE','6242',jdecode('GRUPO+EL+REVE+'),jdecode(''),'/6188/6242.html','true',[],'',''],
		['PAGE','30501',jdecode('GRUPO+SUIGENERIS'),jdecode(''),'/6188/30501.html','true',[],'','']
	],'',''],
	['PAGE','14801',jdecode('OPERA+'),jdecode(''),'/14801/index.html','true',[ 
		['PAGE','15601',jdecode('SHOW+TENORES+'),jdecode(''),'/14801/15601.html','true',[],'',''],
		['PAGE','15622',jdecode('SHOW+DIVAS+'),jdecode(''),'/14801/15622.html','true',[],'',''],
		['PAGE','15643',jdecode('PIANORCHESTRA'),jdecode(''),'/14801/15643.html','true',[],'','']
	],'',''],
	['PAGE','30522',jdecode('JAZZ'),jdecode(''),'/30522.html','true',[],'',''],
	['PAGE','12449',jdecode('MARIMBA+'),jdecode(''),'/12449/index.html','true',[ 
		['PAGE','28501',jdecode('MARIMBA+GRUPO+'),jdecode(''),'/12449/28501.html','true',[],'','']
	],'',''],
	['PAGE','30564',jdecode('BANDA+SINALOENSE'),jdecode(''),'/30564/index.html','true',[ 
		['PAGE','12505',jdecode('LAS+PERLAS+DE+SINALOA'),jdecode(''),'/30564/12505.html','true',[],'',''],
		['PAGE','19901',jdecode('PARA+UNIVERSIDADES'),jdecode(''),'/30564/19901.html','true',[],'',''],
		['PAGE','28522',jdecode('BANDA+DIAZ'),jdecode(''),'/30564/28522.html','true',[],'','']
	],'',''],
	['PAGE','30585',jdecode('GRUPOS+DE+SALSA'),jdecode(''),'/30585.html','true',[],'',''],
	['PAGE','19922',jdecode('GRUPOS+NORTE%C3%91OS+'),jdecode(''),'/19922/index.html','true',[ 
		['PAGE','19943',jdecode('AIRE+NORTE%C3%91O'),jdecode(''),'/19922/19943.html','true',[],'',''],
		['PAGE','19964',jdecode('REACTIVO'),jdecode(''),'/19922/19964.html','true',[],'',''],
		['PAGE','19985',jdecode('LOS+CAMPESINOS+'),jdecode(''),'/19922/19985.html','true',[],'','']
	],'',''],
	['PAGE','28543',jdecode('FARA+FARA+'),jdecode(''),'/28543.html','true',[],'',''],
	['PAGE','11937',jdecode('TRIOS+'),jdecode(''),'/11937/index.html','true',[ 
		['PAGE','30606',jdecode('LOS+MONARCAS'),jdecode(''),'/11937/30606.html','true',[],'','']
	],'',''],
	['PAGE','40401',jdecode('MARIACHIS'),jdecode(''),'/40401.html','true',[],'',''],
	['PAGE','30627',jdecode('ENSAMBLE+RECEPCIONES'),jdecode(''),'/30627.html','true',[],'',''],
	['PAGE','30648',jdecode('MUSICA+MISAS'),jdecode(''),'/30648/index.html','true',[ 
		['PAGE','30669',jdecode('ENSAMBLE+BASICO'),jdecode(''),'/30648/30669.html','true',[],'',''],
		['PAGE','30690',jdecode('ENSAMBLE+ROMANO'),jdecode(''),'/30648/30690.html','true',[],'',''],
		['PAGE','33501',jdecode('ENSAMBLE+EUROPEO'),jdecode(''),'/30648/33501.html','true',[],'','']
	],'',''],
	['PAGE','30711',jdecode('TROVADORES+'),jdecode(''),'/30711.html','true',[],'',''],
	['PAGE','35001',jdecode('MAGOS'),jdecode(''),'/35001.html','true',[],'',''],
	['PAGE','12350',jdecode('OTROS+SERVICIOS'),jdecode(''),'/12350.html','true',[],'',''],
	['PAGE','6350',jdecode('CONTACTANOS'),jdecode(''),'/6350.html','true',[],'','']];
var siteelementCount=37;
theSitetree.topTemplateName='Natural';
theSitetree.paletteFamily='666699';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='155';
theSitetree.graphicsetId='168';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FCFCF4';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Natural',
				paletteFamily: 	'666699',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'155',
				graphicsetId: 	'168',
				contentColor: 	'000000',
				contentBGColor: 'FCFCF4',
				a_color: 		'666699',
				b_color: 		'91A5C1',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4556',
internalId:  '',
customField: '20080823-013213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6134',
internalId:  '',
customField: '20080709-230623'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4556',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6215',
internalId:  '',
customField: '20091119-215032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15101',
internalId:  '',
customField: '20080324-175823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6188',
internalId:  '',
customField: '20080124-062301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6269',
internalId:  '',
customField: '20091119-214943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6242',
internalId:  '',
customField: '20091119-213340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30501',
internalId:  '',
customField: '20090911-102052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14801',
internalId:  '',
customField: '20080711-193236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15601',
internalId:  '',
customField: '20080701-011405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15622',
internalId:  '',
customField: '20090610-001620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15643',
internalId:  '',
customField: '20080709-235449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30522',
internalId:  '',
customField: '20080823-020043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12449',
internalId:  '',
customField: '20090610-002936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28501',
internalId:  '',
customField: '20090610-002712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12505',
internalId:  '',
customField: '20090911-021017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19901',
internalId:  '',
customField: '20080508-011338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28522',
internalId:  '',
customField: '20080711-182132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30564',
internalId:  '',
customField: '20091201-192408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30585',
internalId:  '',
customField: '20080711-184729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19922',
internalId:  '',
customField: '20090911-095354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19943',
internalId:  '',
customField: '20080508-011631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19964',
internalId:  '',
customField: '20080508-001446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19985',
internalId:  '',
customField: '20080508-001446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28543',
internalId:  '',
customField: '20091119-215647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11937',
internalId:  '',
customField: '20080401-014202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30606',
internalId:  '',
customField: '20080711-184730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30627',
internalId:  '',
customField: '20080711-184730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30648',
internalId:  '',
customField: '20081018-154136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30669',
internalId:  '',
customField: '20080711-193025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30690',
internalId:  '',
customField: '20080711-195245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33501',
internalId:  '',
customField: '20081018-154803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30711',
internalId:  '',
customField: '20080823-015350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12350',
internalId:  '',
customField: '20080711-195829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6350',
internalId:  '',
customField: '20071015-224344'
};
webappMappings['1501']=webappMappings['1501-157278']={
webappId:    '1501',
documentId:  '4556',
internalId:  '157278',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35001',
internalId:  '',
customField: '20090131-023633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40401',
internalId:  '',
customField: '20090915-124339'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INX3J9';
var companyName   = 'Evolucion+Musical';
var htmlTitle	  = 'www.evolucionmusical.com.mx';
var metaKeywords  = 'Grupos+Musicales+Monterrey.+Banda+Monterrey.+Grupos+Norte%C3%B1os+Monterrey.+Banda+Sinaloense+Monterrey.+Marimba+Monterrey.+Opera+Monterrey.+Mariachis+Monterrey.+Trio+Monterrey.+Tecladistas+Monterrey.+Magos+Monterrey.+Fara+Fara+Monterrey.+Grupo+de+Jazz+Monterrey.+Grupo+de+Salsa+Monterrey.+Ensambles+Monterrey.+Comediantes+Monterrey.+Trovadores+Monterrey.+Cintas+Monterrey.+Musica+Clasica+Monterrey.+Shows+Musicales+Monterrey.+Musica+Posadas+Monterrey.+Grupos+Musicales+para+Bodas+Monterrey.+Musica+de+Cuerdas+Monterrey.+Salterio+Monterrey.+Renta+de+Equipo+de+sonido+Monterrey.+Shows+Musicales+Profesionales+Monterrey.+Los+mejores+grupos+musicales+Monterrey.';
var metaContents  = 'GRUPOS+MUSICALES+MONTERREY.+Agencia+que+vende+grupos+musicales+de+todos+los+g%C3%A9neros+para+eventos+sociales%2C+empresariales%2C+bodas%2C+graduaciones%2C+posadas%2C+congresos+y+de+cualquier+magnitud';
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();
};
