/* [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(''), jdecode('%2F11.html'), 'true',[],'',''],
	['PAGE','32',jdecode('Quem+somos'),jdecode(''), jdecode('%2F32.html'), 'true',[],'',''],
	['PAGE','1097',jdecode('O+que+%C3%A9+eHealth%3F'),jdecode(''), jdecode('%2F1097%2Findex.html'), 'true',[ 
		['PAGE','6587',jdecode('Defini%C3%A7%C3%B5es'),jdecode(''), jdecode('%2F1097%2F6587.html'), 'true',[],'',''],
		['PAGE','73501',jdecode('Fundamentos'),jdecode(''), jdecode('%2F1097%2F73501.html'), 'true',[],'','']
	],'',''],
	['PAGE','3198',jdecode('Artigos+Pessoais+'),jdecode(''), jdecode('%2F3198.html'), 'true',[],'',''],
	['PAGE','7302',jdecode('Outros+Artigos'),jdecode(''), jdecode('%2F7302.html'), 'true',[],'',''],
	['PAGE','6403',jdecode('Vis%C3%A3o+Internacional'),jdecode(''), jdecode('%2F6403.html'), 'true',[],'',''],
	['PAGE','6412',jdecode('Vis%C3%A3o+Nacional'),jdecode(''), jdecode('%2F6412%2Findex.html'), 'true',[ 
		['PAGE','8269',jdecode('TISS'),jdecode(''), jdecode('%2F6412%2F8269.html'), 'true',[],'','']
	],'',''],
	['PAGE','5255',jdecode('Tend%C3%AAncias'),jdecode(''), jdecode('%2F5255%2Findex.html'), 'true',[ 
		['PAGE','5494',jdecode('Bar+Coding+and+RFID+'),jdecode(''), jdecode('%2F5255%2F5494.html'), 'true',[],'',''],
		['PAGE','5503',jdecode('Disease+Management++'),jdecode(''), jdecode('%2F5255%2F5503.html'), 'true',[],'',''],
		['PAGE','5512',jdecode('EHR+%28PEP%29'),jdecode(''), jdecode('%2F5255%2F5512.html'), 'true',[],'',''],
		['PAGE','5521',jdecode('Emerg+Preparedne'),jdecode(''), jdecode('%2F5255%2F5521.html'), 'true',[],'',''],
		['PAGE','5530',jdecode('Integrating+PACS+'),jdecode(''), jdecode('%2F5255%2F5530.html'), 'true',[],'',''],
		['PAGE','5539',jdecode('IT+Biomedical+Devices'),jdecode(''), jdecode('%2F5255%2F5539.html'), 'true',[],'',''],
		['PAGE','5548',jdecode('Patient-Centric+Portals+'),jdecode(''), jdecode('%2F5255%2F5548.html'), 'true',[],'',''],
		['PAGE','5557',jdecode('Regional+Networks+'),jdecode(''), jdecode('%2F5255%2F5557.html'), 'true',[],'','']
	],'',''],
	['PAGE','6693',jdecode('Community+Health'),jdecode(''), jdecode('%2F6693.html'), 'true',[],'',''],
	['PAGE','8606',jdecode('TeleHealth'),jdecode(''), jdecode('%2F8606%2Findex.html'), 'true',[ 
		['PAGE','6702',jdecode('Fundamentos'),jdecode(''), jdecode('%2F8606%2F6702.html'), 'true',[],'',''],
		['PAGE','7440',jdecode('Gloss%C3%A1rio'),jdecode(''), jdecode('%2F8606%2F7440.html'), 'true',[],'',''],
		['PAGE','8650',jdecode('Debate'),jdecode(''), jdecode('%2F8606%2F8650.html'), 'true',[],'','']
	],'',''],
	['PAGE','110501',jdecode('mHealth'),jdecode(''), jdecode('%2F110501.html'), 'true',[],'',''],
	['PAGE','38901',jdecode('PHR'),jdecode(''), jdecode('%2F38901.html'), 'true',[],'',''],
	['PAGE','6753',jdecode('Estudos+de+Caso'),jdecode(''), jdecode('%2F6753%2Findex.html'), 'true',[ 
		['PAGE','3550',jdecode('DICOEMS'),jdecode(''), jdecode('%2F6753%2F3550.html'), 'true',[],'',''],
		['PAGE','6805',jdecode('INFOMED+-+Cuba'),jdecode(''), jdecode('%2F6753%2F6805.html'), 'true',[],'',''],
		['PAGE','6940',jdecode('Health-e-Child+%28HeC%29'),jdecode(''), jdecode('%2F6753%2F6940.html'), 'true',[],'',''],
		['PAGE','7969',jdecode('Immunogrid'),jdecode(''), jdecode('%2F6753%2F7969.html'), 'true',[],'',''],
		['PAGE','8947',jdecode('DESSOS'),jdecode(''), jdecode('%2F6753%2F8947.html'), 'true',[],'',''],
		['PAGE','9266',jdecode('TeleManagement'),jdecode(''), jdecode('%2F6753%2F9266.html'), 'true',[],'',''],
		['PAGE','9562',jdecode('e-Card+Austria+'),jdecode(''), jdecode('%2F6753%2F9562.html'), 'true',[],'',''],
		['PAGE','22201',jdecode('PARINTINS+'),jdecode(''), jdecode('%2F6753%2F22201.html'), 'true',[],'',''],
		['PAGE','29001',jdecode('MedicalORDER'),jdecode(''), jdecode('%2F6753%2F29001.html'), 'true',[],'',''],
		['PAGE','29022',jdecode('DISPEC+'),jdecode(''), jdecode('%2F6753%2F29022.html'), 'true',[],'',''],
		['PAGE','29043',jdecode('Apoteket'),jdecode(''), jdecode('%2F6753%2F29043.html'), 'true',[],'',''],
		['PAGE','17501',jdecode('TACIT'),jdecode(''), jdecode('%2F6753%2F17501.html'), 'true',[],'',''],
		['PAGE','77801',jdecode('Telepharmacies+'),jdecode(''), jdecode('%2F6753%2F77801.html'), 'true',[],'','']
	],'',''],
	['PAGE','86',jdecode('Contato'),jdecode(''), jdecode('%2F86.html'), 'true',[],'',''],
	['PAGE','5027',jdecode('Livro+de+visitas%2FF%C3%B3rum'),jdecode(''), jdecode('%2F5027%2Findex.html'), 'true',[ 
		['PAGE','5026',jdecode('Mensagens+Recebidas'),jdecode(''), jdecode('%2F5027%2F5026.html'), 'false',[],'','']
	],'','']];
var siteelementCount=43;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='AC2323';
theSitetree.keyvisualId='1754';
theSitetree.keyvisualName='krankenhaus.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='356';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='AC2323';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var prodDef={
  wl_name: 'brazilprod',
  product: 'WSCSYSSSSLY0X9A9'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'AC2323',
				keyvisualId: 	'1754',
				keyvisualName: 	'krankenhaus.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'356',
				contentColor: 	'FFFFFF',
				contentBGColor: 'AC2323',
				a_color: 		'AC2323',
				b_color: 		'480F0F',
				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: '20110923-084227'
};
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: '20120123-080234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8650',
internalId:  '',
customField: '20120123-075413'
};
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: '20110218-053053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7302',
internalId:  '',
customField: '20110923-092616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6403',
internalId:  '',
customField: '20110923-085554'
};
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: '20110923-091201'
};
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: '20110923-094201'
};
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: '20110707-101606'
};
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:  '86',
internalId:  '',
customField: '20110530-084048'
};
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:  '110501',
internalId:  '',
customField: '20110707-103921'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN2FFI';
var companyName   = '+++++++++++++++TICs+em+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();
};

