/* [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','701',jdecode('Bienvenidos'),jdecode(''),'/701.html','true',[],'',''],
	['PAGE','32101',jdecode('%C2%BFQui%C3%A9nes+somos%3F'),jdecode(''),'/32101.html','true',[],'',''],
	['PAGE','752',jdecode('GUIAS+TURISTICAS'),jdecode(''),'/752.html','true',[],'',''],
	['PAGE','22637',jdecode('TARIFAS+Y+DISTRIBUCI%C3%93N+GU%C3%8DAS'),jdecode(''),'/22637.html','true',[],'',''],
	['PAGE','773',jdecode('Guadalajara+'),jdecode(''),'/773/index.html','true',[ 
		['PAGE','8322',jdecode('Gu%C3%ADa+y+Mapa'),jdecode(''),'/773/8322.html','true',[],'',''],
		['PAGE','22301',jdecode('Atractivos+Tur%C3%ADsticos'),jdecode(''),'/773/22301.html','true',[],'',''],
		['PAGE','8301',jdecode('Anunciantes'),jdecode(''),'/773/8301.html','true',[],'','']
	],'',''],
	['PAGE','22322',jdecode('Ribera+de+Chapala'),jdecode(''),'/22322/index.html','true',[ 
		['PAGE','22343',jdecode('Gu%C3%ADa+y+Mapa'),jdecode(''),'/22322/22343.html','true',[],'',''],
		['PAGE','22364',jdecode('Atractivos+Tur%C3%ADsticos'),jdecode(''),'/22322/22364.html','true',[],'',''],
		['PAGE','22385',jdecode('Anunciantes'),jdecode(''),'/22322/22385.html','true',[],'','']
	],'',''],
	['PAGE','22406',jdecode('Tlaquepaque'),jdecode(''),'/22406/index.html','true',[ 
		['PAGE','22427',jdecode('Gu%C3%ADa+y+Mapa'),jdecode(''),'/22406/22427.html','true',[],'',''],
		['PAGE','22448',jdecode('Atractivos+Tur%C3%ADsticos'),jdecode(''),'/22406/22448.html','true',[],'',''],
		['PAGE','22469',jdecode('Anunciantes'),jdecode(''),'/22406/22469.html','true',[],'','']
	],'',''],
	['PAGE','22490',jdecode('Tonal%C3%A1'),jdecode(''),'/22490/index.html','true',[ 
		['PAGE','22511',jdecode('Gu%C3%ADa+y+Mapa'),jdecode(''),'/22490/22511.html','true',[],'',''],
		['PAGE','22532',jdecode('Atractivos+Tur%C3%ADsticos'),jdecode(''),'/22490/22532.html','true',[],'',''],
		['PAGE','22553',jdecode('Anunciantes'),jdecode(''),'/22490/22553.html','true',[],'','']
	],'',''],
	['PAGE','794',jdecode('Pto.+Vallarta'),jdecode(''),'/794/index.html','true',[ 
		['PAGE','8364',jdecode('Gu%C3%ADa+y+Mapa'),jdecode(''),'/794/8364.html','true',[],'',''],
		['PAGE','22574',jdecode('Atractivos+Tur%C3%ADsticos'),jdecode(''),'/794/22574.html','true',[],'',''],
		['PAGE','8343',jdecode('Anunciantes'),jdecode(''),'/794/8343.html','true',[],'','']
	],'',''],
	['PAGE','815',jdecode('Quer%C3%A9taro'),jdecode(''),'/815/index.html','true',[ 
		['PAGE','8406',jdecode('Gu%C3%ADa+y+Mapa'),jdecode(''),'/815/8406.html','true',[],'',''],
		['PAGE','22595',jdecode('Atractivos+Tur%C3%ADsticos'),jdecode(''),'/815/22595.html','true',[],'',''],
		['PAGE','8385',jdecode('Anunciantes'),jdecode(''),'/815/8385.html','true',[],'','']
	],'',''],
	['PAGE','158412',jdecode('REVISTA+ANFITRION'),jdecode(''),'/158412.html','true',[],'',''],
	['PAGE','172123',jdecode('TARIFAS+Y+DISTRIBUCION+REVISTA'),jdecode(''),'/172123.html','true',[],'',''],
	['PAGE','22616',jdecode('OTROS+PRODUCTOS'),jdecode(''),'/22616.html','true',[],'',''],
	['PAGE','22658',jdecode('CONTACTO'),jdecode(''),'/22658.html','true',[],'',''],
	['PAGE','22679',jdecode('DIRECTORIO'),jdecode(''),'/22679.html','true',[],'',''],
	['PAGE','70906',jdecode('Libro+de+visitas'),jdecode(''),'/70906/index.html','true',[ 
		['PAGE','70901',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/70906/70901.html','false',[],'','']
	],'','']];
var siteelementCount=35;
theSitetree.topTemplateName='Holz';
theSitetree.paletteFamily='FF7112';
theSitetree.keyvisualId='8817';
theSitetree.keyvisualName='KV_03.swf';
theSitetree.fontsetId='17181';
theSitetree.graphicsetId='12654';
theSitetree.contentColor='CCCCCC';
theSitetree.contentBGColor='262626';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Holz',
				paletteFamily: 	'FF7112',
				keyvisualId: 	'8817',
				keyvisualName: 	'KV_03.swf',
				fontsetId: 		'17181',
				graphicsetId: 	'12654',
				contentColor: 	'CCCCCC',
				contentBGColor: '262626',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'FF6600',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1693701']={
webappId:    '1501',
documentId:  '701',
internalId:  '1693701',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-70906avec10in29yh']={
webappId:    '1002',
documentId:  '70906',
internalId:  '70906avec10in29yh',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20100614-095625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '773',
internalId:  '',
customField: '20070707-121407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8301',
internalId:  '',
customField: '20100409-102905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32101',
internalId:  '',
customField: '20100506-164652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20070707-121259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8322',
internalId:  '',
customField: '20070707-121557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22301',
internalId:  '',
customField: '20061128-151131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22322',
internalId:  '',
customField: '20070428-140319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22343',
internalId:  '',
customField: '20070428-143819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22364',
internalId:  '',
customField: '20061128-151446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22385',
internalId:  '',
customField: '20100618-123404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22406',
internalId:  '',
customField: '20080317-092018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22427',
internalId:  '',
customField: '20080317-221712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22448',
internalId:  '',
customField: '20061128-152015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22469',
internalId:  '',
customField: '20100409-115224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22490',
internalId:  '',
customField: '20080317-093929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22511',
internalId:  '',
customField: '20080317-094410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22532',
internalId:  '',
customField: '20061128-152412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22553',
internalId:  '',
customField: '20100409-115431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '794',
internalId:  '',
customField: '20070427-180031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8364',
internalId:  '',
customField: '20070428-104622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22574',
internalId:  '',
customField: '20070104-155908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8343',
internalId:  '',
customField: '20100409-124550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '815',
internalId:  '',
customField: '20061206-110641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8406',
internalId:  '',
customField: '20061128-153257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22595',
internalId:  '',
customField: '20070104-130939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8385',
internalId:  '',
customField: '20070923-193212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22616',
internalId:  '',
customField: '20100506-173248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22637',
internalId:  '',
customField: '20070923-194238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22658',
internalId:  '',
customField: '20061122-120516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22679',
internalId:  '',
customField: '20061124-131358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70906',
internalId:  '',
customField: '20061224-080636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70901',
internalId:  '',
customField: '20061224-080636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158412',
internalId:  '',
customField: '20100506-134703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '172123',
internalId:  '',
customField: '20100506-173830'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN29YH';
var companyName   = 'B+I+E+N+V+E+N+I+D+O+S';
var htmlTitle	  = 'anfitrionguiaturistica';
var metaKeywords  = 'Guadalajara%2C+Tlaquepaque%2CTonal%C3%A1%2C+Ribera+de+Chapala%2C+Quer%C3%A9taro%2C+Puerto+Vallarta+Gu%C3%ADa+Tur%C3%ADstica+Anfitri%C3%B3n%2C+viajes%2C+publicidad%2C+anuncios%2C+distribuci%C3%B3n%2C+restaurantes%2C+hoteles%2C+spa%2C+cafeter%C3%ADas%2C+discotecas%2C+turismo%2C+Anfitrion%2C+guia+turistica+revista';
var metaContents  = 'Gu%C3%ADa+turistica+dedicada+a+mostrar+los+atrativos+tur%C3%ADsticos+de+diferentes+puntos+de+la+Rep%C3%BAblica+mexicana%3A+Guadalajara%2C+Tlaquepaque%2CTonal%C3%A1%2C+La+Ribera%2C+Quer%C3%A9taro%2C+Puerto+Vallarta%2C+as%C3%AD+como+su+publicidad.';
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();
};
