/* [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 theSitetree=[ 
	['PAGE','601',jdecode('Inicio'),jdecode(''),'/601.html','true',[],''],
	['PAGE','652',jdecode('Nosotros'),jdecode(''),'/652.html','true',[],''],
	['PAGE','673',jdecode('Paquetes'),jdecode(''),'/673/index.html','true',[ 
		['PAGE','5601',jdecode('Platino'),jdecode(''),'/673/5601.html','true',[],''],
		['PAGE','5622',jdecode('Oro'),jdecode(''),'/673/5622.html','true',[],''],
		['PAGE','5643',jdecode('Plata'),jdecode(''),'/673/5643.html','true',[],''],
		['PAGE','5664',jdecode('Graduaciones'),jdecode(''),'/673/5664.html','true',[],''],
		['PAGE','5685',jdecode('XV+a%C3%B1os'),jdecode(''),'/673/5685.html','true',[],'']
	],''],
	['PAGE','694',jdecode('Shows'),jdecode(''),'/694/index.html','true',[ 
		['PAGE','5706',jdecode('Carnaval+%E2%80%93+latino+'),jdecode(''),'/694/5706.html','true',[],''],
		['PAGE','5727',jdecode('60%E2%80%99s+%E2%80%93+70%E2%80%99s'),jdecode(''),'/694/5727.html','true',[],''],
		['PAGE','5748',jdecode('Ac%C3%BAstico+-+int'),jdecode(''),'/694/5748.html','true',[],''],
		['PAGE','5769',jdecode('Circus+-+infantil'),jdecode(''),'/694/5769.html','true',[],''],
		['PAGE','5790',jdecode('Mexicano'),jdecode(''),'/694/5790.html','true',[],''],
		['PAGE','5811',jdecode('Techno+-+din%C3%A1mico'),jdecode(''),'/694/5811.html','true',[],'']
	],''],
	['PAGE','14101',jdecode('Videos'),jdecode(''),'/14101.html','true',[],''],
	['PAGE','715',jdecode('Evento+del+mes'),jdecode(''),'/715/index.html','true',[ 
		['PAGE','5832',jdecode('7+Julio+de+2007'),jdecode(''),'/715/5832.html','true',[],''],
		['PAGE','5853',jdecode('14+Julio+de+2007'),jdecode(''),'/715/5853.html','true',[],''],
		['PAGE','13501',jdecode('20+dic+2008'),jdecode(''),'/715/13501.html','true',[],''],
		['PAGE','12701',jdecode('25+abril+09'),jdecode(''),'/715/12701.html','true',[],''],
		['PAGE','16401',jdecode('26+junio+09'),jdecode(''),'/715/16401.html','true',[],''],
		['PAGE','13301',jdecode('19+julio+09'),jdecode(''),'/715/13301.html','true',[],''],
		['PAGE','17101',jdecode('22+agosto+2009'),jdecode(''),'/715/17101.html','true',[],'']
	],''],
	['PAGE','17201',jdecode('Gpos.+Hermanos'),jdecode(''),'/17201/index.html','true',[ 
		['PAGE','17222',jdecode('Banda+La+Se%C3%B1al'),jdecode(''),'/17201/17222.html','true',[],''],
		['PAGE','17243',jdecode('Verxs%C3%A1til'),jdecode(''),'/17201/17243.html','true',[],'']
	],''],
	['PAGE','17301',jdecode('Ubicaci%C3%B3n'),jdecode(''),'/17301.html','true',[],''],
	['PAGE','736',jdecode('Cont%C3%A1ctanos'),jdecode(''),'/736.html','true',[],'']];
var siteelementCount=29;
theSitetree.topTemplateName='Eatdrink';
theSitetree.paletteFamily='C63C41';
theSitetree.keyvisualId='3355';
theSitetree.keyvisualName='kv_3355.jpg';
theSitetree.fontsetId='10621';
theSitetree.graphicsetId='10736';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				name: 			'Eatdrink',
				paletteFamily: 	'C63C41',
				keyvisualId: 	'3355',
				keyvisualName: 	'kv_3355.jpg',
				fontsetId: 		'10621',
				graphicsetId: 	'10736',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'4E1416',
				e_color: 		'4E1416',
				f_color: 		'4E1416',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20091002-105643'
};
webappMappings['7008']=webappMappings['7008-11655']={
webappId:    '7008',
documentId:  '736',
internalId:  '11655',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '652',
internalId:  '',
customField: '20091002-105923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '673',
internalId:  '',
customField: '20070807-102828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5601',
internalId:  '',
customField: '20070807-102849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5622',
internalId:  '',
customField: '20070807-102913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5643',
internalId:  '',
customField: '20070807-102934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5664',
internalId:  '',
customField: '20070807-102955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5685',
internalId:  '',
customField: '20070807-103022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '694',
internalId:  '',
customField: '20070807-102433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5706',
internalId:  '',
customField: '20070807-102513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5727',
internalId:  '',
customField: '20070807-102546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5748',
internalId:  '',
customField: '20070807-102612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5769',
internalId:  '',
customField: '20070807-102644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5790',
internalId:  '',
customField: '20070807-102713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5811',
internalId:  '',
customField: '20070807-102743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '715',
internalId:  '',
customField: '20091002-111131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5832',
internalId:  '',
customField: '20070807-104818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5853',
internalId:  '',
customField: '20070807-105116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '736',
internalId:  '',
customField: '20070807-102357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12701',
internalId:  '',
customField: '20091001-165348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13301',
internalId:  '',
customField: '20091001-170227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13501',
internalId:  '',
customField: '20091001-183726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14101',
internalId:  '',
customField: '20091002-105102'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16401',
internalId:  '',
customField: '20091002-111838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17301',
internalId:  '',
customField: '20091028-181938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17201',
internalId:  '',
customField: '20091029-153348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17222',
internalId:  '',
customField: '20091028-183014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17101',
internalId:  '',
customField: '20091028-180539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17243',
internalId:  '',
customField: '20091028-180851'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INLQJZ';
var companyName   = 'Octava+L%C3%ADnea';
var htmlTitle	  = 'Octava+L%C3%ADnea';
var metaKeywords  = '';
var metaContents  = 'octava+linea%2C+grupos+musicales%2C+animacion+de+eventos%2C+sociales%2C+musica+para+bodas%2C+musica+bodas%2C+graduaciones%2C+coordinadores+de+eventos%2C+ciper+eventos%2C+eventos+ciper%2C+audio+e+iluminacion%2C+musica%2C+grupos+musicales+en+san+nicolas%2C+grupos+musicales+en+monterrey%2C+proveedores+de+musica%2C+proveedores+de+eventos%2C+salones%2C+';
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();
};
