/* [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','401',jdecode('INICIO'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','5401',jdecode('CD.+VICTORIA'),jdecode(''),'/5401.html','true',[],'',''],
	['PAGE','5443',jdecode('REYNOSA'),jdecode(''),'/5443.html','true',[],'',''],
	['PAGE','7601',jdecode('MATAMOROS'),jdecode(''),'/7601.html','true',[],'',''],
	['PAGE','5464',jdecode('TAMPICO'),jdecode(''),'/5464.html','true',[],'',''],
	['PAGE','5485',jdecode('ALTAMIRA'),jdecode(''),'/5485.html','true',[],'',''],
	['PAGE','5506',jdecode('MADERO'),jdecode(''),'/5506.html','true',[],'',''],
	['PAGE','492801',jdecode('OCAMPO'),jdecode(''),'/492801.html','true',[],'',''],
	['PAGE','342601',jdecode('LLERA+DE+CANALES'),jdecode(''),'/342601.html','true',[],'',''],
	['PAGE','5527',jdecode('SOTO+LA+MARINA'),jdecode(''),'/5527.html','true',[],'',''],
	['PAGE','5548',jdecode('JAUMAVE'),jdecode(''),'/5548.html','true',[],'',''],
	['PAGE','737012',jdecode('TULA'),jdecode(''),'/737012.html','true',[],'',''],
	['PAGE','6201',jdecode('REGIONAL'),jdecode(''),'/6201.html','true',[],'',''],
	['PAGE','305301',jdecode('AMBROSIO+GARZA+D.'),jdecode(''),'/305301.html','false',[],'',''],
	['PAGE','302301',jdecode('OTHON+VILLARREAL+G.'),jdecode(''),'/302301.html','false',[],'',''],
	['PAGE','302322',jdecode('JOS%C3%89+DE+LA+PAZ+B.'),jdecode(''),'/302322.html','false',[],'',''],
	['PAGE','302343',jdecode('MIGUEL+TREVI%C3%91O+R.'),jdecode(''),'/302343.html','false',[],'',''],
	['PAGE','302385',jdecode('OSCAR+DIAZ+SALAZAR'),jdecode(''),'/302385.html','false',[],'',''],
	['PAGE','302406',jdecode('J+GUADALUPE+D%C3%8DAZ+MTZ.'),jdecode(''),'/302406.html','false',[],'',''],
	['PAGE','742312',jdecode('beny+Cruz+Zapata'),jdecode(''),'/742312.html','false',[],'',''],
	['PAGE','1179630',jdecode('HECTOR++MIGUEL+CHAVEZ'),jdecode(''),'/1179630.html','false',[],'',''],
	['PAGE','1290474',jdecode('Everardo+H.+Medrano'),jdecode(''),'/1290474.html','false',[],'',''],
	['PAGE','303201',jdecode('ROBERTO+OLVERA+PEREZ'),jdecode(''),'/303201.html','false',[],'',''],
	['PAGE','393101',jdecode('PEDRO+NATIVIDAD'),jdecode(''),'/393101.html','false',[],'',''],
	['PAGE','1337396',jdecode('Eusebio+Carranza+Mart%C3%ADnez'),jdecode(''),'/1337396.html','false',[],'',''],
	['PAGE','1206752',jdecode('PEPE+WALLE'),jdecode(''),'/1206752.html','false',[],'',''],
	['PAGE','447901',jdecode('CARLOS+CARRE%C3%91O+ORTIZ'),jdecode(''),'/447901.html','false',[],'',''],
	['PAGE','628301',jdecode('Temo+Diaz'),jdecode(''),'/628301.html','false',[],'',''],
	['PAGE','1406418',jdecode('Temito+Diaz'),jdecode(''),'/1406418.html','false',[],'',''],
	['PAGE','1190830',jdecode('Paco+Tores+Banda'),jdecode(''),'/1190830.html','false',[],'',''],
	['PAGE','637601',jdecode('Jesus+hernanadez'),jdecode(''),'/637601.html','false',[],'',''],
	['PAGE','875612',jdecode('Humberto+Gutierrez'),jdecode(''),'/875612.html','false',[],'',''],
	['PAGE','1429918',jdecode('A.+G.+Trevi%C3%B1o'),jdecode(''),'/1429918.html','false',[],'',''],
	['PAGE','1256852',jdecode('J.J.+Zapata'),jdecode(''),'/1256852.html','false',[],'',''],
	['PAGE','1171130',jdecode('Mario+Aquino'),jdecode(''),'/1171130.html','false',[],'',''],
	['PAGE','1175230',jdecode('Hector+Sandoval'),jdecode(''),'/1175230.html','false',[],'',''],
	['PAGE','850633',jdecode('benny'),jdecode(''),'/850633.html','false',[],'',''],
	['PAGE','1202841',jdecode('Neftali+Galvan'),jdecode(''),'/1202841.html','false',[],'',''],
	['PAGE','1238952',jdecode('Murillo'),jdecode(''),'/1238952.html','false',[],'',''],
	['PAGE','1254852',jdecode('J.+Julian'),jdecode(''),'/1254852.html','false',[],'',''],
	['PAGE','669501',jdecode('El+guajo'),jdecode(''),'/669501.html','true',[],'',''],
	['PAGE','790012',jdecode('Atascadero'),jdecode(''),'/790012.html','false',[],'',''],
	['PAGE','325301',jdecode('El+chango+platanero'),jdecode(''),'/325301.html','false',[],'',''],
	['PAGE','414101',jdecode('frases'),jdecode(''),'/414101.html','false',[],'',''],
	['PAGE','363201',jdecode('Enlaces+de+inter%C3%A9s'),jdecode(''),'/363201.html','true',[],'',''],
	['PAGE','11801',jdecode('DIRECTORIO'),jdecode(''),'/11801.html','true',[],'',''],
	['PAGE','850612',jdecode('victoria+1'),jdecode(''),'/850612.html','false',[],'',''],
	['PAGE','850654',jdecode('victoria+3'),jdecode(''),'/850654.html','false',[],'',''],
	['PAGE','1265552',jdecode('San+fernando'),jdecode(''),'/1265552.html','false',[],'',''],
	['PAGE','1265573',jdecode('Gonzales'),jdecode(''),'/1265573.html','false',[],'',''],
	['PAGE','1265594',jdecode('Miquiihuana'),jdecode(''),'/1265594.html','false',[],'','']];
var siteelementCount=51;
theSitetree.topTemplateName='Card';
theSitetree.paletteFamily='669900';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='427';
theSitetree.graphicsetId='481';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Card',
				paletteFamily: 	'669900',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'427',
				graphicsetId: 	'481',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-9489150']={
webappId:    '1501',
documentId:  '401',
internalId:  '9489150',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100629-112034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '302406',
internalId:  '',
customField: '20100629-110425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '302343',
internalId:  '',
customField: '20100519-065821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5401',
internalId:  '',
customField: '20100518-195059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1238952',
internalId:  '',
customField: '20100203-203936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5443',
internalId:  '',
customField: '20091122-213425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7601',
internalId:  '',
customField: '20100623-085751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5464',
internalId:  '',
customField: '20100509-222515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5485',
internalId:  '',
customField: '20100606-223029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5506',
internalId:  '',
customField: '20100215-112705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5527',
internalId:  '',
customField: '20100609-074528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5548',
internalId:  '',
customField: '20100609-074419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6201',
internalId:  '',
customField: '20100609-074330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '305301',
internalId:  '',
customField: '20100629-111926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '302301',
internalId:  '',
customField: '20100629-110334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '302322',
internalId:  '',
customField: '20100615-081242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1254852',
internalId:  '',
customField: '20100209-221657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '302385',
internalId:  '',
customField: '20100618-085351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '303201',
internalId:  '',
customField: '20100628-082631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '342601',
internalId:  '',
customField: '20100606-223251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '325301',
internalId:  '',
customField: '20090802-204017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11801',
internalId:  '',
customField: '20080513-082658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '363201',
internalId:  '',
customField: '20090119-161228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '669501',
internalId:  '',
customField: '20100421-072220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1179630',
internalId:  '',
customField: '20100629-110522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1190830',
internalId:  '',
customField: '20100428-085026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '393101',
internalId:  '',
customField: '20100629-110736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '414101',
internalId:  '',
customField: '20090427-081436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '447901',
internalId:  '',
customField: '20100629-110840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '637601',
internalId:  '',
customField: '20091002-090759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '492801',
internalId:  '',
customField: '20100126-095800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1175230',
internalId:  '',
customField: '20100223-222230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1171130',
internalId:  '',
customField: '20100629-111119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '628301',
internalId:  '',
customField: '20100629-110934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1202841',
internalId:  '',
customField: '20100622-081022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1206752',
internalId:  '',
customField: '20100621-080640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '737012',
internalId:  '',
customField: '20090730-195917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '742312',
internalId:  '',
customField: '20100614-074531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '790012',
internalId:  '',
customField: '20091105-090916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '850612',
internalId:  '',
customField: '20100510-070522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '850633',
internalId:  '',
customField: '20100628-083418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '850654',
internalId:  '',
customField: '20100222-083956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '875612',
internalId:  '',
customField: '20100628-083004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1256852',
internalId:  '',
customField: '20100210-081727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1265552',
internalId:  '',
customField: '20100215-214029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1265573',
internalId:  '',
customField: '20100215-214430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1265594',
internalId:  '',
customField: '20100215-214809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1290474',
internalId:  '',
customField: '20100629-110617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1337396',
internalId:  '',
customField: '20100419-092329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1406418',
internalId:  '',
customField: '20100629-111015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1429918',
internalId:  '',
customField: '20100614-075748'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INFTOV';
var companyName   = 'Miercoles%2C+30++de+Junio++del+2010+++++++CD.+Victoria+Tamaulipas';
var htmlTitle	  = 'Periodico+Ejepol%C3%ADtico+El+Despertar+de+Tamaulipas';
var metaKeywords  = 'ejepol%C3%ADtico';
var metaContents  = 'periodismo+de+combate+ejepolitico+Ambrosio+Garza+Dragustinovis.++';
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();
};
