/* [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','4601',jdecode('Welcome'),jdecode(''),'/4601.html','true',[],'',''],
	['PAGE','14201',jdecode('PORTUGU%C3%8AS'),jdecode(''),'/14201/index.html','true',[ 
		['PAGE','4922',jdecode('Nossa+Vis%C3%A3o'),jdecode(''),'/14201/4922.html','true',[],'',''],
		['PAGE','4901',jdecode('Nossa+Miss%C3%A3o'),jdecode(''),'/14201/4901.html','true',[],'',''],
		['PAGE','4985',jdecode('INSPE%C3%87%C3%83O+DE+MATERIAIS'),jdecode(''),'/14201/4985.html','true',[],'',''],
		['PAGE','31001',jdecode('Docu-Proof'),jdecode(''),'/14201/31001.html','true',[],'',''],
		['PAGE','31022',jdecode('Digital-Page'),jdecode(''),'/14201/31022.html','true',[],'',''],
		['PAGE','65012',jdecode('Scan360'),jdecode(''),'/14201/65012.html','true',[],'',''],
		['PAGE','31043',jdecode('Scan-TVS'),jdecode(''),'/14201/31043.html','true',[],'',''],
		['PAGE','42801',jdecode('Scan-TVS+CS'),jdecode(''),'/14201/42801.html','true',[],'',''],
		['PAGE','31064',jdecode('SpellPDF'),jdecode(''),'/14201/31064.html','true',[],'',''],
		['PAGE','31085',jdecode('BraillePoint'),jdecode(''),'/14201/31085.html','true',[],'',''],
		['PAGE','42822',jdecode('BrailleCheck'),jdecode(''),'/14201/42822.html','true',[],'',''],
		['PAGE','31106',jdecode('iCount'),jdecode(''),'/14201/31106.html','true',[],'',''],
		['PAGE','63412',jdecode('Download'),jdecode(''),'/14201/63412.html','true',[],'',''],
		['PAGE','54912',jdecode('DESENVOLVIMENTO+DE+EMBALAGEM'),jdecode(''),'/14201/54912.html','true',[],'',''],
		['PAGE','54933',jdecode('ASSUNTOS+REGULAT%C3%93RIOS%3A'),jdecode(''),'/14201/54933.html','true',[],'',''],
		['PAGE','54954',jdecode('+SUPRIMENTOS+DE+INFORM%C3%81TICA'),jdecode(''),'/14201/54954.html','true',[],'',''],
		['PAGE','5006',jdecode('Contato'),jdecode(''),'/14201/5006.html','true',[],'','']
	],'',''],
	['PAGE','13701',jdecode('ENGLISH'),jdecode(''),'/13701/index.html','true',[ 
		['PAGE','13722',jdecode('Our+Vision'),jdecode(''),'/13701/13722.html','true',[],'',''],
		['PAGE','13743',jdecode('Our+Mission'),jdecode(''),'/13701/13743.html','true',[],'',''],
		['PAGE','13806',jdecode('PROOFREADING+SOLUTIONS'),jdecode(''),'/13701/13806.html','true',[],'',''],
		['PAGE','31301',jdecode('Docu-Proof'),jdecode(''),'/13701/31301.html','true',[],'',''],
		['PAGE','31322',jdecode('Digital-Page'),jdecode(''),'/13701/31322.html','true',[],'',''],
		['PAGE','65033',jdecode('Scan360'),jdecode(''),'/13701/65033.html','true',[],'',''],
		['PAGE','31343',jdecode('Scan-TVS'),jdecode(''),'/13701/31343.html','true',[],'',''],
		['PAGE','42843',jdecode('Scan-TVS+CS'),jdecode(''),'/13701/42843.html','true',[],'',''],
		['PAGE','31364',jdecode('SpellPDF'),jdecode(''),'/13701/31364.html','true',[],'',''],
		['PAGE','31385',jdecode('BraillePoint'),jdecode(''),'/13701/31385.html','true',[],'',''],
		['PAGE','42864',jdecode('BrailleCheck'),jdecode(''),'/13701/42864.html','true',[],'',''],
		['PAGE','31406',jdecode('iCount'),jdecode(''),'/13701/31406.html','true',[],'',''],
		['PAGE','63433',jdecode('Download'),jdecode(''),'/13701/63433.html','true',[],'',''],
		['PAGE','56612',jdecode('PACKAGE+DEVELOPMENT'),jdecode(''),'/13701/56612.html','true',[],'',''],
		['PAGE','56633',jdecode('REGULATORY+AFFAIRS'),jdecode(''),'/13701/56633.html','true',[],'',''],
		['PAGE','56654',jdecode('IT+SUPPLIES'),jdecode(''),'/13701/56654.html','true',[],'',''],
		['PAGE','13827',jdecode('Contact'),jdecode(''),'/13701/13827.html','true',[],'','']
	],'',''],
	['PAGE','13848',jdecode('ESPA%C3%91OL'),jdecode(''),'/13848/index.html','true',[ 
		['PAGE','13869',jdecode('Nuestra+Visi%C3%B3n'),jdecode(''),'/13848/13869.html','true',[],'',''],
		['PAGE','13890',jdecode('Nuestra+Misi%C3%B3n'),jdecode(''),'/13848/13890.html','true',[],'',''],
		['PAGE','13953',jdecode('INSPECCI%C3%93N+DE+MATERIAL'),jdecode(''),'/13848/13953.html','true',[],'',''],
		['PAGE','31427',jdecode('Docu-Proof'),jdecode(''),'/13848/31427.html','true',[],'',''],
		['PAGE','31448',jdecode('Digital-Page'),jdecode(''),'/13848/31448.html','true',[],'',''],
		['PAGE','65054',jdecode('Scan360'),jdecode(''),'/13848/65054.html','true',[],'',''],
		['PAGE','31469',jdecode('Scan-TVS'),jdecode(''),'/13848/31469.html','true',[],'',''],
		['PAGE','42885',jdecode('Scan-TVS+CS'),jdecode(''),'/13848/42885.html','true',[],'',''],
		['PAGE','31490',jdecode('SpellPDF'),jdecode(''),'/13848/31490.html','true',[],'',''],
		['PAGE','31511',jdecode('BraillePoint'),jdecode(''),'/13848/31511.html','true',[],'',''],
		['PAGE','42906',jdecode('BrailleCheck'),jdecode(''),'/13848/42906.html','true',[],'',''],
		['PAGE','31532',jdecode('iCount'),jdecode(''),'/13848/31532.html','true',[],'',''],
		['PAGE','63454',jdecode('Download'),jdecode(''),'/13848/63454.html','true',[],'',''],
		['PAGE','60112',jdecode('DESARROLLO+DE+EMPAQUE'),jdecode(''),'/13848/60112.html','true',[],'',''],
		['PAGE','60133',jdecode('ASUNTOS+REGULATORIOS'),jdecode(''),'/13848/60133.html','true',[],'',''],
		['PAGE','60154',jdecode('COMPUTER+SUMINISTROS'),jdecode(''),'/13848/60154.html','true',[],'',''],
		['PAGE','13974',jdecode('Contacto'),jdecode(''),'/13848/13974.html','true',[],'','']
	],'','']];
var siteelementCount=55;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='B5D3B5';
theSitetree.keyvisualId='1966';
theSitetree.keyvisualName='businessman.jpg';
theSitetree.fontsetId='328';
theSitetree.graphicsetId='384';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Stylus',
				paletteFamily: 	'B5D3B5',
				keyvisualId: 	'1966',
				keyvisualName: 	'businessman.jpg',
				fontsetId: 		'328',
				graphicsetId: 	'384',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'B5D3B5',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4601',
internalId:  '',
customField: '20100716-211944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31001',
internalId:  '',
customField: '20100719-154701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4985',
internalId:  '',
customField: '20100718-074827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4901',
internalId:  '',
customField: '20091011-120155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4922',
internalId:  '',
customField: '20100716-214117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13701',
internalId:  '',
customField: '20100717-001524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54912',
internalId:  '',
customField: '20100718-201930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14201',
internalId:  '',
customField: '20100717-001626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5006',
internalId:  '',
customField: '20100401-095720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13848',
internalId:  '',
customField: '20100717-092453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13827',
internalId:  '',
customField: '20100401-095830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13974',
internalId:  '',
customField: '20100401-095913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31022',
internalId:  '',
customField: '20100601-210508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31043',
internalId:  '',
customField: '20100601-215012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13722',
internalId:  '',
customField: '20100717-001804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13743',
internalId:  '',
customField: '20091011-231324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31085',
internalId:  '',
customField: '20100603-180817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13806',
internalId:  '',
customField: '20100718-074949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13869',
internalId:  '',
customField: '20100717-092726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13890',
internalId:  '',
customField: '20091012-001926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31064',
internalId:  '',
customField: '20100301-081633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13953',
internalId:  '',
customField: '20100718-075105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31106',
internalId:  '',
customField: '20100716-233223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31301',
internalId:  '',
customField: '20100717-011237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31322',
internalId:  '',
customField: '20100717-012309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31343',
internalId:  '',
customField: '20100717-013750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31364',
internalId:  '',
customField: '20100320-151815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31385',
internalId:  '',
customField: '20100717-023846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31406',
internalId:  '',
customField: '20100717-024900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31427',
internalId:  '',
customField: '20100717-095034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31448',
internalId:  '',
customField: '20100717-095557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31469',
internalId:  '',
customField: '20100717-100909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31490',
internalId:  '',
customField: '20100320-142220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31511',
internalId:  '',
customField: '20100717-102941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31532',
internalId:  '',
customField: '20100717-103645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42885',
internalId:  '',
customField: '20100717-101749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42843',
internalId:  '',
customField: '20100717-021250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42801',
internalId:  '',
customField: '20100716-232438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42822',
internalId:  '',
customField: '20100716-232630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42864',
internalId:  '',
customField: '20100321-002825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42906',
internalId:  '',
customField: '20100717-103319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54933',
internalId:  '',
customField: '20100716-220137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54954',
internalId:  '',
customField: '20100717-025509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56612',
internalId:  '',
customField: '20100718-202321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56633',
internalId:  '',
customField: '20100717-000921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56654',
internalId:  '',
customField: '20100717-025202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60112',
internalId:  '',
customField: '20100718-202102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60133',
internalId:  '',
customField: '20100717-104749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60154',
internalId:  '',
customField: '20100717-105242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63412',
internalId:  '',
customField: '20100721-070513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63433',
internalId:  '',
customField: '20100721-070734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63454',
internalId:  '',
customField: '20100721-070957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65012',
internalId:  '',
customField: '20100722-220419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65033',
internalId:  '',
customField: '20100722-221756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65054',
internalId:  '',
customField: '20100722-222329'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHSQH';
var companyName   = 'Global+Quality+Design';
var htmlTitle	  = 'Global+Quality+Design';
var metaKeywords  = 'Desenvolvimento+e+Engenharia+de+Embalagem+%2C+Desenvolvimento+de+Artes+%2C+Cria%C3%A7%C3%A3o+de+Artes+%2C+Adequa%C3%A7%C3%A3o+de+embalagens+a+legisla%C3%A7%C3%B5es+Nacionais+e+Internacionais+%2C+Adequa%C3%A7%C3%A3o+de+artes+%C3%A0+RDCs+e+Portaria+de+INMETRO+%2C+Grafia+em+Braille+%2C+Braile+%2C+Consultoria+%2C+Terceiriza%C3%A7%C3%A3o+%2C+Estamos+habilitados+nos+idiomas+%3A+Portugu%C3%AAs+%2C+Espanhol+e+Ingl%C3%AAs+%2C+Artworks+%2C+Packaging+Engineering+and+Development+%2C+Labeling+%2C+Braille+%2C+Security+Feature+%2C+Consulting+%2C+Third+Part+%2C+Desarrollo+Empaque%2C+Docu-Proof+%2C+Docuproof+%2C+Docu+Proof+%2C+Digital+page+%2C+Digital-Page+%2C+Scan-TVS+%2C+Scan+TVS+%2C+TVS+Proof+Reader+%2C+TVS+Proof-Reader+%2C+X-Press+Robotic+%2C+Spell+PDF+%2C+SpellPDF+%2C+Artes+%2C++Arte+final+%2C+Arte-final';
var metaContents  = 'A+Global+Quality+Design+%C3%A9+uma+empresa+especializada+na+%C3%A1rea+Farmac%C3%AAutica+%2C+Hospitalar+%2C+Correlato+%2C+Nutricional+e+Cosm%C3%A9tico+%2C+prestando+assessoria+completa+em+Desenvolvimento+e+Engenharia+de+Embalagens+e+Materiais+Promocionais+segundo+as+legisla%C3%A7%C3%B5es+vigentes+do+Brasil+%2C+Pa%C3%ADses+do+MERCOSUL+%2C+Andinos+%2C+Am%C3%A9rica+Central+e+M%C3%A9xico+.';
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();
};
