/* [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(''), jdecode('%2F701.html'), 'true',[],'',''],
	['PAGE','32101',jdecode('%C2%BFQui%C3%A9nes+somos%3F'),jdecode(''), jdecode('%2F32101.html'), 'true',[],'',''],
	['PAGE','752',jdecode('GUIAS+TURISTICAS'),jdecode(''), jdecode('%2F752.html'), 'true',[],'',''],
	['PAGE','22637',jdecode('TARIFAS+Y+DISTRIBUCI%C3%93N+GU%C3%8DAS'),jdecode(''), jdecode('%2F22637.html'), 'true',[],'',''],
	['PAGE','773',jdecode('Guadalajara+'),jdecode(''), jdecode('%2F773%2Findex.html'), 'true',[ 
		['PAGE','8322',jdecode('Gu%C3%ADa+y+Mapa'),jdecode(''), jdecode('%2F773%2F8322.html'), 'true',[],'',''],
		['PAGE','22301',jdecode('Atractivos+Tur%C3%ADsticos'),jdecode(''), jdecode('%2F773%2F22301.html'), 'true',[],'',''],
		['PAGE','8301',jdecode('Anunciantes'),jdecode(''), jdecode('%2F773%2F8301.html'), 'true',[],'','']
	],'',''],
	['PAGE','22322',jdecode('Ribera+de+Chapala'),jdecode(''), jdecode('%2F22322%2Findex.html'), 'true',[ 
		['PAGE','22343',jdecode('Gu%C3%ADa+y+Mapa'),jdecode(''), jdecode('%2F22322%2F22343.html'), 'true',[],'',''],
		['PAGE','22364',jdecode('Atractivos+Tur%C3%ADsticos'),jdecode(''), jdecode('%2F22322%2F22364.html'), 'true',[],'',''],
		['PAGE','22385',jdecode('Anunciantes'),jdecode(''), jdecode('%2F22322%2F22385.html'), 'true',[],'','']
	],'',''],
	['PAGE','22406',jdecode('Tlaquepaque'),jdecode(''), jdecode('%2F22406%2Findex.html'), 'true',[ 
		['PAGE','22427',jdecode('Gu%C3%ADa+y+Mapa'),jdecode(''), jdecode('%2F22406%2F22427.html'), 'true',[],'',''],
		['PAGE','22448',jdecode('Atractivos+Tur%C3%ADsticos'),jdecode(''), jdecode('%2F22406%2F22448.html'), 'true',[],'',''],
		['PAGE','22469',jdecode('Anunciantes'),jdecode(''), jdecode('%2F22406%2F22469.html'), 'true',[],'','']
	],'',''],
	['PAGE','22490',jdecode('Tonal%C3%A1'),jdecode(''), jdecode('%2F22490%2Findex.html'), 'true',[ 
		['PAGE','22511',jdecode('Gu%C3%ADa+y+Mapa'),jdecode(''), jdecode('%2F22490%2F22511.html'), 'true',[],'',''],
		['PAGE','22532',jdecode('Atractivos+Tur%C3%ADsticos'),jdecode(''), jdecode('%2F22490%2F22532.html'), 'true',[],'',''],
		['PAGE','22553',jdecode('Anunciantes'),jdecode(''), jdecode('%2F22490%2F22553.html'), 'true',[],'','']
	],'',''],
	['PAGE','794',jdecode('Pto.+Vallarta'),jdecode(''), jdecode('%2F794%2Findex.html'), 'true',[ 
		['PAGE','8364',jdecode('Gu%C3%ADa+y+Mapa'),jdecode(''), jdecode('%2F794%2F8364.html'), 'true',[],'',''],
		['PAGE','22574',jdecode('Atractivos+Tur%C3%ADsticos'),jdecode(''), jdecode('%2F794%2F22574.html'), 'true',[],'',''],
		['PAGE','8343',jdecode('Anunciantes'),jdecode(''), jdecode('%2F794%2F8343.html'), 'true',[],'','']
	],'',''],
	['PAGE','815',jdecode('Quer%C3%A9taro'),jdecode(''), jdecode('%2F815%2Findex.html'), 'true',[ 
		['PAGE','8406',jdecode('Gu%C3%ADa+y+Mapa'),jdecode(''), jdecode('%2F815%2F8406.html'), 'true',[],'',''],
		['PAGE','22595',jdecode('Atractivos+Tur%C3%ADsticos'),jdecode(''), jdecode('%2F815%2F22595.html'), 'true',[],'',''],
		['PAGE','8385',jdecode('Anunciantes'),jdecode(''), jdecode('%2F815%2F8385.html'), 'true',[],'','']
	],'',''],
	['PAGE','158412',jdecode('REVISTA+ANFITRION'),jdecode(''), jdecode('%2F158412.html'), 'true',[],'',''],
	['PAGE','172123',jdecode('TARIFAS+Y+DISTRIBUCION+REVISTA'),jdecode(''), jdecode('%2F172123.html'), 'true',[],'',''],
	['PAGE','22616',jdecode('OTROS+PRODUCTOS'),jdecode(''), jdecode('%2F22616.html'), 'true',[],'',''],
	['PAGE','22658',jdecode('CONTACTO'),jdecode(''), jdecode('%2F22658.html'), 'true',[],'',''],
	['PAGE','22679',jdecode('DIRECTORIO'),jdecode(''), jdecode('%2F22679.html'), 'true',[],'',''],
	['PAGE','70906',jdecode('Libro+de+visitas'),jdecode(''), jdecode('%2F70906%2Findex.html'), 'true',[ 
		['PAGE','70901',jdecode('Leer+el+libro+de+Visitas'),jdecode(''), jdecode('%2F70906%2F70901.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 prodDef={
  wl_name: 'grp13-hostin',
  product: 'WSCSYSSSSLY0XJEZ'
};
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: '20111004-112546'
};
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: '20101127-135338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22364',
internalId:  '',
customField: '20061128-151446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22385',
internalId:  '',
customField: '20101129-121940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22406',
internalId:  '',
customField: '20080317-092018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22427',
internalId:  '',
customField: '20101116-131952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22448',
internalId:  '',
customField: '20061128-152015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22469',
internalId:  '',
customField: '20110401-075920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22490',
internalId:  '',
customField: '20080317-093929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22511',
internalId:  '',
customField: '20101127-134338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22532',
internalId:  '',
customField: '20061128-152412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22553',
internalId:  '',
customField: '20101123-173336'
};
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: '20101231-104445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8406',
internalId:  '',
customField: '20101231-104304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22595',
internalId:  '',
customField: '20070104-130939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8385',
internalId:  '',
customField: '20110101-194320'
};
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: '20101014-134214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22679',
internalId:  '',
customField: '20111005-123359'
};
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: '20111226-144311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '172123',
internalId:  '',
customField: '20100506-173830'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.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();
};

