/* [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','4520',jdecode('HOME+'),jdecode(''),'/4520.html','true',[],'',''],
	['PAGE','4577',jdecode('+++ESPA%C3%91OL'),jdecode(''),'/4577/index.html','true',[ 
		['PAGE','53301',jdecode('+DOCTORES'),jdecode(''),'/4577/53301.html','true',[],'',''],
		['PAGE','10805',jdecode('+SERVICIOS'),jdecode(''),'/4577/10805.html','true',[],'',''],
		['PAGE','15005',jdecode('ODONTOLOG%C3%8DA+GENERAL'),jdecode(''),'/4577/15005.html','true',[],'',''],
		['PAGE','45101',jdecode('+ODONTOLOG%C3%8DA+EST%C3%89TICA'),jdecode(''),'/4577/45101.html','true',[],'',''],
		['PAGE','50701',jdecode('+ESPECIALIDADES+DENTALES+'),jdecode(''),'/4577/50701.html','true',[],'',''],
		['PAGE','6803',jdecode('IMPLANTES+DENTALES'),jdecode(''),'/4577/6803.html','true',[],'',''],
		['PAGE','14305',jdecode('+GALER%C3%8DA+DE+FOTOS'),jdecode(''),'/4577/14305.html','true',[],'',''],
		['PAGE','4658',jdecode('EQUIPO+E+INSTALACIONES'),jdecode(''),'/4577/4658.html','true',[],'',''],
		['PAGE','53322',jdecode('PROMOCIONES'),jdecode(''),'/4577/53322.html','true',[],'',''],
		['PAGE','4712',jdecode('CONTACTO%2FMAPA%2FLINKS'),jdecode(''),'/4577/4712.html','true',[],'','']
	],'',''],
	['PAGE','33266',jdecode('ENGLISH'),jdecode(''),'/33266/index.html','true',[ 
		['PAGE','53343',jdecode('STAFF'),jdecode(''),'/33266/53343.html','true',[],'',''],
		['PAGE','53364',jdecode('SERVICES'),jdecode(''),'/33266/53364.html','true',[],'',''],
		['PAGE','53385',jdecode('GENERAL+DENTISTRY'),jdecode(''),'/33266/53385.html','true',[],'',''],
		['PAGE','53406',jdecode('COSMETIC+DENTISTRY'),jdecode(''),'/33266/53406.html','true',[],'',''],
		['PAGE','53427',jdecode('SPECIALIZED+DENTISTRY'),jdecode(''),'/33266/53427.html','true',[],'',''],
		['PAGE','53448',jdecode('DENTAL+IMPLANTS'),jdecode(''),'/33266/53448.html','true',[],'',''],
		['PAGE','53469',jdecode('BEFORE+AND+AFTER'),jdecode(''),'/33266/53469.html','true',[],'',''],
		['PAGE','53511',jdecode('FACILITIES+AND++EQUIPMENT'),jdecode(''),'/33266/53511.html','true',[],'',''],
		['PAGE','53532',jdecode('MAP%2FCONTACT%2FLINKS'),jdecode(''),'/33266/53532.html','true',[],'','']
	],'',''],
	['PAGE','107201',jdecode('IMPLANTES+DENTALES'),jdecode(''),'/107201.html','true',[],'',''],
	['PAGE','105201',jdecode('HORARIO+DE+CONSULTA'),jdecode(''),'/105201.html','true',[],'','']];
var siteelementCount=24;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='B0CBD6';
theSitetree.keyvisualId='1995';
theSitetree.keyvisualName='zahnbuerste.jpg';
theSitetree.fontsetId='328';
theSitetree.graphicsetId='383';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Stylus',
				paletteFamily: 	'B0CBD6',
				keyvisualId: 	'1995',
				keyvisualName: 	'zahnbuerste.jpg',
				fontsetId: 		'328',
				graphicsetId: 	'383',
				contentColor: 	'666666',
				contentBGColor: 'FFFFFF',
				a_color: 		'B0CBD6',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4658',
internalId:  '',
customField: '20090922-213718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105201',
internalId:  '',
customField: '20100511-113119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4520',
internalId:  '',
customField: '20090920-024050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4577',
internalId:  '',
customField: '20090922-203334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53301',
internalId:  '',
customField: '20090922-203258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10805',
internalId:  '',
customField: '20090922-210608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15005',
internalId:  '',
customField: '20090922-203925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45101',
internalId:  '',
customField: '20090922-204410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50701',
internalId:  '',
customField: '20090922-204909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6803',
internalId:  '',
customField: '20090922-215259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33266',
internalId:  '',
customField: '20090922-215806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53343',
internalId:  '',
customField: '20090920-021110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4712',
internalId:  '',
customField: '20090920-012444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53322',
internalId:  '',
customField: '20090920-003413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14305',
internalId:  '',
customField: '20090922-212440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53364',
internalId:  '',
customField: '20090922-220410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53385',
internalId:  '',
customField: '20090922-220821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53511',
internalId:  '',
customField: '20090922-223743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53448',
internalId:  '',
customField: '20090922-223559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53469',
internalId:  '',
customField: '20090920-015608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53532',
internalId:  '',
customField: '20090920-024322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53406',
internalId:  '',
customField: '20090922-221123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53427',
internalId:  '',
customField: '20090922-221838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107201',
internalId:  '',
customField: '20100514-164024'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INXLUV';
var companyName   = 'IMPLANTES+DENTALES';
var htmlTitle	  = 'DENTISTAS+MONTERREY+%3A%3A+DR.+ALONSOGUERRA+%3A%3A';
var metaKeywords  = 'Dentista+Monterrey++Dentaltek+Dentistas+Monterrey++Dentistas+en+Monterrey++Dentista+en+Monterrey++implantes+dentales+Monterrey++Dentist+in+Monterrey++Dentist+in+Mexico++Odontologia+Cosmetica++Odontologia+Estetica++Rehabilitacion+Dental++Dentistry+in+Mexico++Blanqueamientos+laser++Blanqueamiento+Zoom++Zoom++whitening+system++dientes++odontologia++dentist+in+mexico++dental+clinic+in+mexico++mini+dental+implants++++mini+implantes+dentales++endodoncia+monterrey++root+canal+treatment+monterrey++periodoncia+monterrey++cirug%C3%ADa+dental+monterrey++muelas+del+juicio++dentistas+en+mexico+++dentist+in+mexico++dentist+in+monterrey++endodontics++periodontics++pediatric+dentistry+bad+brath+dental+dental++implantes+straumann+Dentaltek';
var metaContents  = 'Dentista+Monterrey+Dentaltek++Dentistas+Monterrey++Dentista+en+Monterrey++Dentistas+en+Monterrey++implantes+dentales+Monterrey++Dentist+in+Monterrey++Dentist+in+Mexico+++Odontologia+Cosmetica++Odontologia+Estetica++Rehabilitacion+Dental++Dentistry+in+Mexico++Blanqueamientos+laser++Blanqueamiento+Zoom++Zoom+whitening+system++Odontologia++Dentistry+in+Mexico++Dental+Clinic+in+Mexico++mini+dental+implants++mini+implantes+dentales++endodoncia+monterrey++root+canal+treatment+monterrey++periodoncia+monterrey++cirug%C3%ADa+monterrey++muelas+del+juicio++periodontics++endodontics++root+canal+treatment+mexico++dental+whitening++dental+clinic+mexico+++dental+clinic+monterrey+++mal+aliento+dental+dental++dental+implants+mexico++dental+implants+monterrey+Dentaltek';
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();
};
