/* [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','501',jdecode('INICIO'),jdecode(''),'/501.html','true',[],'',''],
	['PAGE','6201',jdecode('SALON+DE+PERIF%C3%89RICO'),jdecode(''),'/6201/index.html','true',[ 
		['PAGE','82512',jdecode('Renta+B%C3%A1sica'),jdecode(''),'/6201/82512.html','true',[],'',''],
		['PAGE','3601',jdecode('Paquetes+todo+incluido'),jdecode(''),'/6201/3601.html','true',[],'',''],
		['PAGE','7801',jdecode('Men%C3%BAs+infantiles'),jdecode(''),'/6201/7801.html','true',[],'',''],
		['PAGE','83133',jdecode('Complementos'),jdecode(''),'/6201/83133.html','true',[],'',''],
		['PAGE','13322',jdecode('L%C3%ADmites+sal%C3%B3n+de+fiestas'),jdecode(''),'/6201/13322.html','true',[],'',''],
		['PAGE','32422',jdecode('Curso+de+Verano'),jdecode(''),'/6201/32422.html','true',[],'',''],
		['PAGE','39864',jdecode('Cl%C3%A1usulas+curso+verano'),jdecode(''),'/6201/39864.html','true',[],'','']
	],'',''],
	['PAGE','615',jdecode('JARDIN+DE+COYOAC%C3%81N'),jdecode(''),'/615/index.html','true',[ 
		['PAGE','3643',jdecode('Renta+B%C3%A1sica'),jdecode(''),'/615/3643.html','true',[],'',''],
		['PAGE','7822',jdecode('Paquetes+todo+incluido'),jdecode(''),'/615/7822.html','true',[],'',''],
		['PAGE','88912',jdecode('Men%C3%BAs+infantiles'),jdecode(''),'/615/88912.html','true',[],'',''],
		['PAGE','88933',jdecode('Complementos'),jdecode(''),'/615/88933.html','true',[],'',''],
		['PAGE','92012',jdecode('Curso+de+verano'),jdecode(''),'/615/92012.html','true',[],'','']
	],'',''],
	['PAGE','2801',jdecode('ESPECT%C3%81CULOS%2FSHOWS'),jdecode(''),'/2801.html','true',[],'',''],
	['PAGE','3622',jdecode('UBICACI%C3%93N'),jdecode(''),'/3622.html','true',[],'',''],
	['PAGE','6243',jdecode('CONTACTO'),jdecode(''),'/6243.html','true',[],'','']];
var siteelementCount=18;
theSitetree.topTemplateName='Nurseries';
theSitetree.paletteFamily='FFE57B';
theSitetree.keyvisualId='7903';
theSitetree.keyvisualName='kv_7903.jpg';
theSitetree.fontsetId='16886';
theSitetree.graphicsetId='12313';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFE57B';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'true',
				name: 			'Nurseries',
				paletteFamily: 	'FFE57B',
				keyvisualId: 	'7903',
				keyvisualName: 	'kv_7903.jpg',
				fontsetId: 		'16886',
				graphicsetId: 	'12313',
				contentColor: 	'000000',
				contentBGColor: 'FFE57B',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82512',
internalId:  '',
customField: '20091026-082724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88933',
internalId:  '',
customField: '20091026-005300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83133',
internalId:  '',
customField: '20091025-233738'
};
webappMappings['7008']=webappMappings['7008-11550']={
webappId:    '7008',
documentId:  '6243',
internalId:  '11550',
customField: 'language:es;country:ES;'
};
webappMappings['7008']=webappMappings['7008-11552']={
webappId:    '7008',
documentId:  '6243',
internalId:  '11552',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20091026-082419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88912',
internalId:  '',
customField: '20091024-162857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6201',
internalId:  '',
customField: '20091026-082638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3601',
internalId:  '',
customField: '20091025-233548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7801',
internalId:  '',
customField: '20091024-230024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13322',
internalId:  '',
customField: '20091025-233853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3622',
internalId:  '',
customField: '20091024-233523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20091025-011805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3643',
internalId:  '',
customField: '20091025-234407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7822',
internalId:  '',
customField: '20091026-005133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2801',
internalId:  '',
customField: '20091026-005739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6243',
internalId:  '',
customField: '20091026-005932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32422',
internalId:  '',
customField: '20091025-000950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39864',
internalId:  '',
customField: '20091015-014116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92012',
internalId:  '',
customField: '20091026-005439'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INV9CP';
var companyName   = 'EL+RINCON+DE+LOS+ENANOS';
var htmlTitle	  = 'El+Rinc%C3%B3n+de+los+Enanos';
var metaKeywords  = 'salones+de+fiestas%2C+eventos+escolares%2Ccurso+de+verano%2C+jardin%2C+rincon%2Cenanos%2C+curso+de+pascua%2Cfiestas+infantiles%2C+cursos+de+verano%2C+salones+fiestas+iztapalapa%2C+salones+fiestas+tl%C3%A9huac%2C+salones+coyoacan%2C+jardines+coyoacan%2C+salones+infantiles%2C+eventos+infantiles';
var metaContents  = 'salones+de+fiestas%2C+eventos+escolares%2C+curso+de+verano%2C+fiestas+infantiles%2C+jardin%2C+rincon%2C+salones+fiestas+iztapalapa%2C+salones+fiestas+tl%C3%A1huac%2C+salones+coyoacan%2C+jardines+coyoacan%2C+salones+infantiles%2C+eventos+infantiles';
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();
};
