/* [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','1201',jdecode('inicio'),jdecode(''),'/1201.html','true',[],'',''],
	['PAGE','5701',jdecode('%C2%BFQuienes+Somos%3F'),jdecode(''),'/5701.html','true',[],'',''],
	['PAGE','11301',jdecode('KINDER+1'),jdecode(''),'/11301.html','true',[],'',''],
	['PAGE','11322',jdecode('KINDER+2'),jdecode(''),'/11322.html','true',[],'',''],
	['PAGE','11343',jdecode('Entrenamiento+B%C3%A1sico'),jdecode(''),'/11343.html','true',[],'',''],
	['PAGE','11364',jdecode('Guarderia+Canina'),jdecode(''),'/11364.html','true',[],'',''],
	['PAGE','11385',jdecode('Pensi%C3%B3n+Casera'),jdecode(''),'/11385.html','true',[],'',''],
	['PAGE','11406',jdecode('Prob.+comportamiento'),jdecode(''),'/11406/index.html','true',[ 
		['PAGE','60801',jdecode('Ladridos+excesivos'),jdecode(''),'/11406/60801.html','true',[],'','']
	],'',''],
	['PAGE','11427',jdecode('Flores+de+Bach'),jdecode(''),'/11427.html','true',[],'',''],
	['PAGE','72801',jdecode('DOG+WALKERS'),jdecode(''),'/72801.html','true',[],'',''],
	['PAGE','90501',jdecode('FIESTAS+CANINAS'),jdecode(''),'/90501.html','true',[],'',''],
	['PAGE','103701',jdecode('Fotos+fiestas'),jdecode(''),'/103701.html','true',[],'',''],
	['PAGE','11448',jdecode('Asesor%C3%ADa+de+Compra'),jdecode(''),'/11448/index.html','true',[ 
		['PAGE','45101',jdecode('Cachorros+disponibles'),jdecode(''),'/11448/45101.html','true',[],'','']
	],'',''],
	['PAGE','11469',jdecode('Platicas+a+Escuelas'),jdecode(''),'/11469.html','true',[],'',''],
	['PAGE','5743',jdecode('Cl%C3%ADnicas+Asociadas'),jdecode(''),'/5743.html','true',[],'',''],
	['PAGE','11490',jdecode('Art%C3%ADculo+del+Mes'),jdecode(''),'/11490/index.html','true',[ 
		['PAGE','51001',jdecode('Forum+para+todos'),jdecode(''),'/11490/51001.html','true',[],'','']
	],'',''],
	['PAGE','31101',jdecode('FOTOS+KINDER+1'),jdecode(''),'/31101.html','true',[],'',''],
	['PAGE','31801',jdecode('FOTOS+KINDER+2'),jdecode(''),'/31801.html','true',[],'',''],
	['PAGE','62601',jdecode('VIDEOS+KINDER+1+Y+2'),jdecode(''),'/62601.html','true',[],'',''],
	['PAGE','31006',jdecode('Libro+de+visitas'),jdecode(''),'/31006/index.html','true',[ 
		['PAGE','31001',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/31006/31001.html','false',[],'','']
	],'',''],
	['PAGE','5764',jdecode('Cont%C3%A1ctanos'),jdecode(''),'/5764.html','true',[],'','']];
var siteelementCount=25;
theSitetree.topTemplateName='Round';
theSitetree.paletteFamily='CC3333';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='444';
theSitetree.graphicsetId='495';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='e47272';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Round',
				paletteFamily: 	'CC3333',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'444',
				graphicsetId: 	'495',
				contentColor: 	'000000',
				contentBGColor: 'e47272',
				a_color: 		'e47272',
				b_color: 		'CC3333',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1201',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-5778826']={
webappId:    '1501',
documentId:  '1201',
internalId:  '5778826',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-31006avec10inl58i']={
webappId:    '1002',
documentId:  '31006',
internalId:  '31006avec10inl58i',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-cae647e2cdd81b7a994c1c5fc4ed2dbc']={
webappId:    '7060',
documentId:  '31101',
internalId:  'cae647e2cdd81b7a994c1c5fc4ed2dbc',
customField: 'language:es;country:ES;'
};
webappMappings['7060']=webappMappings['7060-e779384348075d22684aee49a7240038']={
webappId:    '7060',
documentId:  '31801',
internalId:  'e779384348075d22684aee49a7240038',
customField: 'language:es;country:ES;'
};
webappMappings['7008']=webappMappings['7008-1254']={
webappId:    '7008',
documentId:  '5764',
internalId:  '1254',
customField: 'language:es;country:ES;'
};
webappMappings['1003']=webappMappings['1003-avec10inl58i116353da514']={
webappId:    '1003',
documentId:  '51001',
internalId:  'avec10inl58i116353da514',
customField: 'es:ES:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1201',
internalId:  '',
customField: '20100430-121932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5701',
internalId:  '',
customField: '20100320-205251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11301',
internalId:  '',
customField: '20100430-120554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11322',
internalId:  '',
customField: '20100430-120630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11343',
internalId:  '',
customField: '20100430-120858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11364',
internalId:  '',
customField: '20100430-123622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11385',
internalId:  '',
customField: '20100430-123452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72801',
internalId:  '',
customField: '20100320-205644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11406',
internalId:  '',
customField: '20100430-123336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60801',
internalId:  '',
customField: '20100320-205610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11427',
internalId:  '',
customField: '20100320-205627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11448',
internalId:  '',
customField: '20100430-122034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45101',
internalId:  '',
customField: '20100430-122320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11469',
internalId:  '',
customField: '20100320-205741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5743',
internalId:  '',
customField: '20100320-205754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11490',
internalId:  '',
customField: '20100320-205818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51001',
internalId:  '',
customField: '20081023-145443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31101',
internalId:  '',
customField: '20070904-084254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31801',
internalId:  '',
customField: '20070910-110946'
};
webappMappings['7060']=webappMappings['7060-e35c701aeefe7bc4ecd7a6c784d1050b']={
webappId:    '7060',
documentId:  '103701',
internalId:  'e35c701aeefe7bc4ecd7a6c784d1050b',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62601',
internalId:  '',
customField: '20100222-103314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31006',
internalId:  '',
customField: '20070902-143414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31001',
internalId:  '',
customField: '20070904-084901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5764',
internalId:  '',
customField: '20090828-191513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103701',
internalId:  '',
customField: '20100415-160850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90501',
internalId:  '',
customField: '20100430-121347'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INL58I';
var companyName   = 'KINDER+CANINO';
var htmlTitle	  = 'KINDER+CANINO+UN+ENTRENAMIENTO+PARA+LA+VIDA';
var metaKeywords  = 'Entrenamiento%2C+pensi%C3%B3n%2C+perro%2C+canina%2C+socializaci%C3%B3n%2C+adiestramiento%2C+kinder%2C+canino%2C+flores+de+bach%2C+etologia%2C+tratamiento+de+comportamiento%2C+d.f.%2C+DF%2C+cachorro%2C+educaci%C3%B3n%2C+ir+al+ba%C3%B1o%2C+mordidas%2C+paseo%2C+paseadores%2C+perros%2C+dog%2C+dogs%2C+walkers%2C+walker%2C+travesuras%2C+bach%2C+comportamiento%2C+problemas%2C+cursos%2C+ni%C3%B1os%2C+cachorros%2C+consultas%2C+hotel';
var metaContents  = 'Kiner+Canino+es+un+lugar+en+el+que+aprenderas+a+comprender+a+tu+mascota+de+forma+correcta%2C+tambi%C3%A9n+entrenamos+de+forma+divertida+y+segura+para+perros+caseros+y+muy+queridos.+Si+ya+tienes+problemas+con+tu+perro+podremos+ayudarte+a+entender+y+eliminar+todas+las+conductas+indeseadas.+Nuestra+pension+es+para+perros+especiales+ya+que+estar%C3%A1n+siempre+como+en+casa.';
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();
};
