/* [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','11',jdecode('Home'),jdecode(''),'/11.html','true',[],'',''],
	['PAGE','32',jdecode('Quem+somos'),jdecode(''),'/32.html','true',[],'',''],
	['PAGE','1097',jdecode('O+que+%C3%A9+eHealth%3F'),jdecode(''),'/1097/index.html','true',[ 
		['PAGE','6587',jdecode('Defini%C3%A7%C3%B5es'),jdecode(''),'/1097/6587.html','true',[],'',''],
		['PAGE','73501',jdecode('Fundamentos'),jdecode(''),'/1097/73501.html','true',[],'','']
	],'',''],
	['PAGE','3198',jdecode('Artigos+Pessoais+'),jdecode(''),'/3198.html','true',[],'',''],
	['PAGE','7302',jdecode('Outros+Artigos'),jdecode(''),'/7302.html','true',[],'',''],
	['PAGE','6403',jdecode('Vis%C3%A3o+Internacional'),jdecode(''),'/6403.html','true',[],'',''],
	['PAGE','6412',jdecode('Vis%C3%A3o+Nacional'),jdecode(''),'/6412/index.html','true',[ 
		['PAGE','8269',jdecode('TISS'),jdecode(''),'/6412/8269.html','true',[],'','']
	],'',''],
	['PAGE','5255',jdecode('Tend%C3%AAncias'),jdecode(''),'/5255/index.html','true',[ 
		['PAGE','5494',jdecode('Bar+Coding+and+RFID+'),jdecode(''),'/5255/5494.html','true',[],'',''],
		['PAGE','5503',jdecode('Disease+Management++'),jdecode(''),'/5255/5503.html','true',[],'',''],
		['PAGE','5512',jdecode('EHR+%28PEP%29'),jdecode(''),'/5255/5512.html','true',[],'',''],
		['PAGE','5521',jdecode('Emerg+Preparedne'),jdecode(''),'/5255/5521.html','true',[],'',''],
		['PAGE','5530',jdecode('Integrating+PACS+'),jdecode(''),'/5255/5530.html','true',[],'',''],
		['PAGE','5539',jdecode('IT+Biomedical+Devices'),jdecode(''),'/5255/5539.html','true',[],'',''],
		['PAGE','5548',jdecode('Patient-Centric+Portals+'),jdecode(''),'/5255/5548.html','true',[],'',''],
		['PAGE','5557',jdecode('Regional+Networks+'),jdecode(''),'/5255/5557.html','true',[],'','']
	],'',''],
	['PAGE','6693',jdecode('Community+Health'),jdecode(''),'/6693.html','true',[],'',''],
	['PAGE','8606',jdecode('TeleHealth'),jdecode(''),'/8606/index.html','true',[ 
		['PAGE','6702',jdecode('Fundamentos'),jdecode(''),'/8606/6702.html','true',[],'',''],
		['PAGE','7440',jdecode('Gloss%C3%A1rio'),jdecode(''),'/8606/7440.html','true',[],'',''],
		['PAGE','8650',jdecode('Debate'),jdecode(''),'/8606/8650.html','true',[],'','']
	],'',''],
	['PAGE','38901',jdecode('PHR'),jdecode(''),'/38901.html','true',[],'',''],
	['PAGE','6753',jdecode('Estudos+de+Caso'),jdecode(''),'/6753/index.html','true',[ 
		['PAGE','3550',jdecode('DICOEMS'),jdecode(''),'/6753/3550.html','true',[],'',''],
		['PAGE','6805',jdecode('INFOMED+-+Cuba'),jdecode(''),'/6753/6805.html','true',[],'',''],
		['PAGE','6940',jdecode('Health-e-Child+%28HeC%29'),jdecode(''),'/6753/6940.html','true',[],'',''],
		['PAGE','7969',jdecode('Immunogrid'),jdecode(''),'/6753/7969.html','true',[],'',''],
		['PAGE','8947',jdecode('DESSOS'),jdecode(''),'/6753/8947.html','true',[],'',''],
		['PAGE','9266',jdecode('TeleManagement'),jdecode(''),'/6753/9266.html','true',[],'',''],
		['PAGE','9562',jdecode('e-Card+Austria+'),jdecode(''),'/6753/9562.html','true',[],'',''],
		['PAGE','22201',jdecode('PARINTINS+'),jdecode(''),'/6753/22201.html','true',[],'',''],
		['PAGE','29001',jdecode('MedicalORDER'),jdecode(''),'/6753/29001.html','true',[],'',''],
		['PAGE','29022',jdecode('DISPEC+'),jdecode(''),'/6753/29022.html','true',[],'',''],
		['PAGE','29043',jdecode('Apoteket'),jdecode(''),'/6753/29043.html','true',[],'',''],
		['PAGE','17501',jdecode('TACIT'),jdecode(''),'/6753/17501.html','true',[],'',''],
		['PAGE','77801',jdecode('Telepharmacies+'),jdecode(''),'/6753/77801.html','true',[],'','']
	],'',''],
	['PAGE','68',jdecode('Agenda'),jdecode(''),'/68.html','true',[],'',''],
	['PAGE','86',jdecode('Contato'),jdecode(''),'/86.html','true',[],'',''],
	['PAGE','5027',jdecode('Livro+de+visitas%2FF%C3%B3rum'),jdecode(''),'/5027/index.html','true',[ 
		['PAGE','5026',jdecode('Mensagens+Recebidas'),jdecode(''),'/5027/5026.html','false',[],'','']
	],'',''],
	['PAGE','52301',jdecode('White+Paper'),jdecode(''),'/52301.html','true',[],'','']];
var siteelementCount=44;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='3E6E72';
theSitetree.keyvisualId='1754';
theSitetree.keyvisualName='krankenhaus.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='354';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3E6E72';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'3E6E72',
				keyvisualId: 	'1754',
				keyvisualName: 	'krankenhaus.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'354',
				contentColor: 	'FFFFFF',
				contentBGColor: '3E6E72',
				a_color: 		'3E6E72',
				b_color: 		'101C1D',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8606',
internalId:  '',
customField: '20100128-085046'
};
webappMappings['1002']=webappMappings['1002-5027AVEC10IN2FFI']={
webappId:    '1002',
documentId:  '5027',
internalId:  '5027AVEC10IN2FFI',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '11',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11',
internalId:  '',
customField: '20100719-150032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8650',
internalId:  '',
customField: '20100719-145614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32',
internalId:  '',
customField: '20080101-083510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1097',
internalId:  '',
customField: '20060806-174337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6587',
internalId:  '',
customField: '20060806-174201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73501',
internalId:  '',
customField: '20080827-043905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3198',
internalId:  '',
customField: '20090817-024445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7302',
internalId:  '',
customField: '20090429-092341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6403',
internalId:  '',
customField: '20100130-114603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6412',
internalId:  '',
customField: '20100511-145115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8269',
internalId:  '',
customField: '20060812-140543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5255',
internalId:  '',
customField: '20100719-143142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5494',
internalId:  '',
customField: '20060724-122741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5503',
internalId:  '',
customField: '20060724-113150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5512',
internalId:  '',
customField: '20060724-120647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5521',
internalId:  '',
customField: '20060724-120715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5530',
internalId:  '',
customField: '20060724-120757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5539',
internalId:  '',
customField: '20060724-120849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5548',
internalId:  '',
customField: '20060724-120920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5557',
internalId:  '',
customField: '20060724-120945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6693',
internalId:  '',
customField: '20070522-114452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6702',
internalId:  '',
customField: '20060816-202120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7440',
internalId:  '',
customField: '20060816-204708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38901',
internalId:  '',
customField: '20100130-120401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6753',
internalId:  '',
customField: '20090817-030903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3550',
internalId:  '',
customField: '20070222-134413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6805',
internalId:  '',
customField: '20060806-184301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6940',
internalId:  '',
customField: '20061125-171248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7969',
internalId:  '',
customField: '20060812-091520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8947',
internalId:  '',
customField: '20060824-113017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9266',
internalId:  '',
customField: '20060911-182351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9562',
internalId:  '',
customField: '20061002-155535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22201',
internalId:  '',
customField: '20070104-164527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29001',
internalId:  '',
customField: '20070222-140950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29022',
internalId:  '',
customField: '20070222-140849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29043',
internalId:  '',
customField: '20070222-141152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17501',
internalId:  '',
customField: '20080520-095437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77801',
internalId:  '',
customField: '20080909-060415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68',
internalId:  '',
customField: '20100129-143408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86',
internalId:  '',
customField: '20090817-035943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5027',
internalId:  '',
customField: '20080820-123806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5026',
internalId:  '',
customField: '20060816-111205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52301',
internalId:  '',
customField: '20071217-154130'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN2FFI';
var companyName   = 'TICs+na+%C3%A1rea+de+Sa%C3%BAde';
var htmlTitle	  = 'eHealth+Summit';
var metaKeywords  = 'eHealth++eHealthcare++Sa%C3%BAde+Digital++Tecnologia+de+Informa%C3%A7%C3%A3o+Cl%C3%ADnica+e+Assistencial++Prontu%C3%A1rio+Eletr%C3%B4nico+do+Paciente';
var metaContents  = 'Tecnologia+de+Informa%C3%A7%C3%A3o+de+Comunica%C3%A7%C3%A3o+para+Sa%C3%BAde++eHealth++Health++Healthcare++Sa%C3%BAde+Digital';
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();
};
