/* [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','401',jdecode('INICIO'),jdecode(''),'/401.html','true',[],''],
	['PAGE','452',jdecode('INFLABLES'),jdecode(''),'/452.html','true',[],''],
	['PAGE','9101',jdecode('LITTLE+TIKES'),jdecode(''),'/9101.html','true',[],''],
	['PAGE','473',jdecode('ALIMENTOS+++'),jdecode(''),'/473/index.html','true',[ 
		['PAGE','2401',jdecode('TAQUIZAS'),jdecode(''),'/473/2401.html','true',[],''],
		['PAGE','31201',jdecode('BOX+LUNCH'),jdecode(''),'/473/31201.html','true',[],''],
		['PAGE','32401',jdecode('BOTANAS+Y+SNACKS'),jdecode(''),'/473/32401.html','true',[],''],
		['PAGE','32422',jdecode('CANAP%C3%89S'),jdecode(''),'/473/32422.html','true',[],''],
		['PAGE','29801',jdecode('PARRILLADAS'),jdecode(''),'/473/29801.html','true',[],''],
		['PAGE','30801',jdecode('BUFFET'),jdecode(''),'/473/30801.html','true',[],''],
		['PAGE','31222',jdecode('BEBIDAS'),jdecode(''),'/473/31222.html','true',[],''],
		['PAGE','53801',jdecode('COFEE+BREAK'),jdecode(''),'/473/53801.html','true',[],''],
		['PAGE','53822',jdecode('BARBACOA+Y+CARNITAS'),jdecode(''),'/473/53822.html','true',[],''],
		['PAGE','53843',jdecode('TAMALES+Y+ATOLE'),jdecode(''),'/473/53843.html','true',[],''],
		['PAGE','53864',jdecode('ANTOJITOS+MEXICANOS'),jdecode(''),'/473/53864.html','true',[],''],
		['PAGE','53885',jdecode('PASTELES'),jdecode(''),'/473/53885.html','true',[],'']
	],''],
	['PAGE','29822',jdecode('ENTRETENIMIENTO+'),jdecode(''),'/29822.html','true',[],''],
	['PAGE','53906',jdecode('PUESTOS+DE+COMIDA'),jdecode(''),'/53906.html','true',[],''],
	['PAGE','53927',jdecode('PUESTOS+DE+GOLOSINAS'),jdecode(''),'/53927.html','true',[],''],
	['PAGE','53948',jdecode('PUESTOS+DE+DESTREZA'),jdecode(''),'/53948.html','true',[],''],
	['PAGE','53969',jdecode('JUEGOS+MECANICOS'),jdecode(''),'/53969.html','true',[],''],
	['PAGE','29843',jdecode('FIESTAS+TEMA'),jdecode(''),'/29843.html','true',[],''],
	['PAGE','53990',jdecode('BABY+SHOWERS'),jdecode(''),'/53990.html','true',[],''],
	['PAGE','54011',jdecode('DESPEDIDAS+DE+SOLTER%40S'),jdecode(''),'/54011.html','true',[],''],
	['PAGE','494',jdecode('MOBILIARIO'),jdecode(''),'/494.html','true',[],''],
	['PAGE','2422',jdecode('CARPAS'),jdecode(''),'/2422.html','true',[],''],
	['PAGE','2443',jdecode('PI%C3%91ATAS'),jdecode(''),'/2443.html','true',[],''],
	['PAGE','11401',jdecode('PASTELES'),jdecode(''),'/11401.html','true',[],''],
	['PAGE','33001',jdecode('DISFRACES'),jdecode(''),'/33001.html','true',[],''],
	['PAGE','2464',jdecode('MESEROS'),jdecode(''),'/2464.html','true',[],''],
	['PAGE','2485',jdecode('SHOWS'),jdecode(''),'/2485.html','true',[],''],
	['PAGE','29864',jdecode('DECORACION+DEL+LUGAR'),jdecode(''),'/29864.html','true',[],''],
	['PAGE','2506',jdecode('SERVICIO+A+EMPRESAS'),jdecode(''),'/2506.html','true',[],''],
	['PAGE','54032',jdecode('FOTO+Y+VIDEO'),jdecode(''),'/54032.html','true',[],''],
	['PAGE','30401',jdecode('SALAS+LOUNGE'),jdecode(''),'/30401.html','true',[],''],
	['PAGE','55201',jdecode('BARRA+Y+PISTAS+'),jdecode(''),'/55201.html','true',[],''],
	['PAGE','9801',jdecode('PROMOCIONES'),jdecode(''),'/9801.html','true',[],''],
	['PAGE','2527',jdecode('CONTACTANOS'),jdecode(''),'/2527.html','true',[],''],
	['PAGE','14801',jdecode('FOTOS+'),jdecode(''),'/14801.html','true',[],''],
	['PAGE','33506',jdecode('LIBRO+DE+VISITAS'),jdecode(''),'/33506/index.html','true',[ 
		['PAGE','33501',jdecode('RECOMENDACIONES'),jdecode(''),'/33506/33501.html','false',[],'']
	],'']];
var siteelementCount=41;
theSitetree.topTemplateName='School';
theSitetree.paletteFamily='FEE559';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10496';
theSitetree.graphicsetId='11095';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FEE559';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				name: 			'School',
				paletteFamily: 	'FEE559',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10496',
				graphicsetId: 	'11095',
				contentColor: 	'000000',
				contentBGColor: 'FEE559',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'F75E5E',
				e_color: 		'F75E5E',
				f_color: 		'F75E5E',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-5078']={
webappId:    '7008',
documentId:  '2527',
internalId:  '5078',
customField: 'language:es;country:ES;'
};
webappMappings['1501']=webappMappings['1501-4081317']={
webappId:    '1501',
documentId:  '401',
internalId:  '4081317',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-4c1c104d6e7cec67e1b870f40454c6a5']={
webappId:    '7060',
documentId:  '14801',
internalId:  '4c1c104d6e7cec67e1b870f40454c6a5',
customField: 'language:es;country:ES;'
};
webappMappings['1002']=webappMappings['1002-33506avec10in3dbs']={
webappId:    '1002',
documentId:  '33506',
internalId:  '33506avec10in3dbs',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20091012-115409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20091012-115627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9101',
internalId:  '',
customField: '20091012-115742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20090303-104554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2401',
internalId:  '',
customField: '20090303-104646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31201',
internalId:  '',
customField: '20090303-104808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32401',
internalId:  '',
customField: '20070911-213137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32422',
internalId:  '',
customField: '20070911-213059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29801',
internalId:  '',
customField: '20070911-210350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30801',
internalId:  '',
customField: '20070911-212208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31222',
internalId:  '',
customField: '20070911-212437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29822',
internalId:  '',
customField: '20090701-123739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29843',
internalId:  '',
customField: '20091013-103214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20070801-184703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2422',
internalId:  '',
customField: '20080804-184228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2443',
internalId:  '',
customField: '20090701-124216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11401',
internalId:  '',
customField: '20070801-192651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33001',
internalId:  '',
customField: '20080124-135955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2464',
internalId:  '',
customField: '20090701-124322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2485',
internalId:  '',
customField: '20090701-124547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29864',
internalId:  '',
customField: '20090701-125307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2506',
internalId:  '',
customField: '20070801-195913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30401',
internalId:  '',
customField: '20070911-205845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9801',
internalId:  '',
customField: '20091013-104510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53822',
internalId:  '',
customField: '20090701-130557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2527',
internalId:  '',
customField: '20070801-200240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14801',
internalId:  '',
customField: '20080804-184656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33506',
internalId:  '',
customField: '20070911-213620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33501',
internalId:  '',
customField: '20070911-213620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53843',
internalId:  '',
customField: '20090701-130557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53801',
internalId:  '',
customField: '20090701-130557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53864',
internalId:  '',
customField: '20090701-130557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53885',
internalId:  '',
customField: '20090701-130557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53906',
internalId:  '',
customField: '20091013-101342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53927',
internalId:  '',
customField: '20091013-101109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53948',
internalId:  '',
customField: '20091013-102720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53969',
internalId:  '',
customField: '20091013-103005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53990',
internalId:  '',
customField: '20091013-104115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54011',
internalId:  '',
customField: '20091013-104415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54032',
internalId:  '',
customField: '20090701-130557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55201',
internalId:  '',
customField: '20091012-115136'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN3DBS';
var companyName   = 'I+N+F+L+A+B+L+E+S+++++A+N+D+Y';
var htmlTitle	  = 'Inflables+Andy';
var metaKeywords  = 'renta+de+inflables++alquiler+de+mobiliario++carpas++little+tikes++taquizas++meseros++pasteles++pi%C3%B1atas+shows+decoracion+carpas+inflables+tumbling+brincolines+salas+lounge+barras+pistas+de+baile+decoraci%C3%B3n+puestos+de+comida+parrilladas+buffet+desayunos+baby+shower+despedidas+de+solteras+fiestas+tema+';
var metaContents  = 'Fiestas+infantiles++Taquizas++Alquiler+de+equipo++Shows++Eventos+de+empresas++Decoracion+Parrilladas+Decoraci%C3%B3n+de+fiestas+Salas+Lounge+Carpas+Mesas+Sillas+Meseros+Pasteles+InflablesPuestos+de+destreza+Puestos+de+Alimentos+Juegos+Mec%C3%A1nicos+Baby+shower+';
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();
};
