/* [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','701',jdecode('P%C3%81GINA+INICIAL'),jdecode(''), jdecode('%2F701.html'), 'true',[],'',''],
	['PAGE','3301',jdecode('QUEM+SOU'),jdecode(''), jdecode('%2F3301.html'), 'true',[],'',''],
	['PAGE','89812',jdecode('SHOW+NO+MOINHO+EVENTOS.'),jdecode(''), jdecode('%2F89812.html'), 'true',[],'',''],
	['PAGE','87412',jdecode('SHOW%2FANIVERS%C3%81RIO+DA+SRA+ROMILDE%2C+DIA+1%C2%B0+DE+NOVEMBRO+DE+2009.'),jdecode(''), jdecode('%2F87412.html'), 'true',[],'',''],
	['PAGE','76312',jdecode('SHOW+NA+PIEGEL+CAF%C3%89+DAN%C3%87ANE%2C+ANIVERS%C3%81RIO+DA+JEANNE.'),jdecode(''), jdecode('%2F76312.html'), 'true',[],'',''],
	['PAGE','73512',jdecode('SHOW+NA+CIDADE+DE+PONTA+GROSSA-PR%2C+NO+EMP%C3%93RIO+AVENIDA.'),jdecode(''), jdecode('%2F73512.html'), 'true',[],'',''],
	['PAGE','81812',jdecode('TEATRO+GUAIRA%2C+SHOW+NO+DIA+12+DE+SETEMBRO+DE+2009.'),jdecode(''), jdecode('%2F81812.html'), 'true',[],'',''],
	['PAGE','83212',jdecode('COMERCIAL+PARA+TELEVIS%C3%83O%2C+PARTICIPA%C3%87%C3%83O.'),jdecode(''), jdecode('%2F83212.html'), 'true',[],'',''],
	['PAGE','72212',jdecode('SHOW%2FCASAMENTO+NO+JOCKEY+CLUB+EM+CURITIBA%2C+DIA+19+DE++SETEMBRO+DE+2009.'),jdecode(''), jdecode('%2F72212.html'), 'true',[],'',''],
	['PAGE','66312',jdecode('SHOW%2FCASAMENTO+DE+ADEISE+E+JOS%C3%89.'),jdecode(''), jdecode('%2F66312.html'), 'true',[],'',''],
	['PAGE','64412',jdecode('SHOW%2FCASAMENTO+NO+CENTRAL+HALL.'),jdecode(''), jdecode('%2F64412.html'), 'true',[],'',''],
	['PAGE','57112',jdecode('SHOW%2FCASAMENTO+DE+ANGELA+E+KELSTON.'),jdecode(''), jdecode('%2F57112.html'), 'true',[],'',''],
	['PAGE','50412',jdecode('SHOW%2F+TEATRO+GUAIRINHA%2C+DIA+12+DE+MAR%C3%87O+DE+2009.'),jdecode(''), jdecode('%2F50412.html'), 'true',[],'',''],
	['PAGE','27201',jdecode('SHOW%2F+TEATRO+FERNANDA+MONTENEGRO%2C+OUTUBRO+DE+2009.'),jdecode(''), jdecode('%2F27201.html'), 'true',[],'',''],
	['PAGE','54412',jdecode('ANIVERS%C3%81RIO+DA+HAMBURGUERIA+BURNING+BURGUER.'),jdecode(''), jdecode('%2F54412.html'), 'true',[],'',''],
	['PAGE','50312',jdecode('SHOW+NO+ESPA%C3%87O+BATEL+DOIS%2C+BODAS+DE+PRATA.'),jdecode(''), jdecode('%2F50312.html'), 'true',[],'',''],
	['PAGE','46133',jdecode('SHOW+NO+BUFFET+ILHA+DO+MEL.'),jdecode(''), jdecode('%2F46133.html'), 'true',[],'',''],
	['PAGE','48112',jdecode('SHOW+NO+ESPA%C3%87O+HIPICA%2C+EVENTO+SITE+DA+NOIVA.'),jdecode(''), jdecode('%2F48112.html'), 'true',[],'',''],
	['PAGE','46112',jdecode('SHOW+NO+PARQUE+DA+FONTE.'),jdecode(''), jdecode('%2F46112.html'), 'true',[],'',''],
	['PAGE','53012',jdecode('SHOW+NA+DANCETERIA+JOKERS.'),jdecode(''), jdecode('%2F53012.html'), 'true',[],'',''],
	['PAGE','35712',jdecode('SHOW+NO+ANIVERS%C3%81RIO+DA+SRA+LENITA%2C+DIA+10+DE+DEZEMBRO+DE+2008.'),jdecode(''), jdecode('%2F35712.html'), 'true',[],'',''],
	['PAGE','5701',jdecode('SHOWS+E+PROGRAMAS'),jdecode(''), jdecode('%2F5701.html'), 'true',[],'',''],
	['PAGE','16501',jdecode('SHOW+NA+INSIDE'),jdecode(''), jdecode('%2F16501.html'), 'true',[],'',''],
	['PAGE','30501',jdecode('SHOW+ROTARY+CLUB'),jdecode(''), jdecode('%2F30501.html'), 'true',[],'',''],
	['PAGE','30601',jdecode('SHOW+NA+CIDADE+DE+TEL%C3%8AMACO+BORBA-PR.'),jdecode(''), jdecode('%2F30601.html'), 'true',[],'',''],
	['PAGE','32501',jdecode('SHOWS+EM+CASAMENTOS%2C+ANIVERS%C3%81RIOS%2C+BODAS%2C+FESTAS+EM+GERAL.'),jdecode(''), jdecode('%2F32501.html'), 'true',[],'',''],
	['PAGE','61712',jdecode('PATROCINADORES+E+APOIADORES+CULTURAIS.'),jdecode(''), jdecode('%2F61712.html'), 'true',[],'',''],
	['PAGE','23901',jdecode('POCKET+SHOW+NAS+LIVRARIAS+CURITIBA.'),jdecode(''), jdecode('%2F23901.html'), 'true',[],'',''],
	['PAGE','46812',jdecode('PROGRAMA+CLOSE+METROPOLITANO.'),jdecode(''), jdecode('%2F46812.html'), 'true',[],'',''],
	['PAGE','17501',jdecode('PROGRAMA+BALAN%C3%87O+GERAL.'),jdecode(''), jdecode('%2F17501.html'), 'true',[],'',''],
	['PAGE','3406',jdecode('V%C3%8DDEOS+DOS+SHOWS'),jdecode(''), jdecode('%2F3406.html'), 'true',[],'',''],
	['PAGE','10301',jdecode('CONTATO'),jdecode(''), jdecode('%2F10301.html'), 'true',[],'',''],
	['PAGE','12506',jdecode('LIVRO+DE+VISITAS%2FF%C3%93RUM'),jdecode(''), jdecode('%2F12506%2Findex.html'), 'false',[ 
		['PAGE','12501',jdecode('SERVI%C3%87O+DE+BILHETES'),jdecode(''), jdecode('%2F12506%2F12501.html'), 'true',[],'','']
	],'',''],
	['PAGE','24501',jdecode('BLOG'),jdecode(''), jdecode('%2F24501.html'), 'true',[],'','']];
var siteelementCount=35;
theSitetree.topTemplateName='Vegas';
theSitetree.paletteFamily='686868';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16925';
theSitetree.graphicsetId='12333';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='686868';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var prodDef={
  wl_name: 'brazilprod',
  product: 'WSCSYSSSSLY0X9A9'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'true',
				name: 			'Vegas',
				paletteFamily: 	'686868',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16925',
				graphicsetId: 	'12333',
				contentColor: 	'FFFFFF',
				contentBGColor: '686868',
				a_color: 		'686868',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-7509b023cda4f2ce245d28cdc4d96207']={
webappId:    '7060',
documentId:  '5701',
internalId:  '7509b023cda4f2ce245d28cdc4d96207',
customField: 'language:pt;country:BR;'
};
webappMappings['1002']=webappMappings['1002-12506avec10inpjrj']={
webappId:    '1002',
documentId:  '12506',
internalId:  '12506avec10inpjrj',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-e8d5c0e2e0f14cd3113c1fef9a6e68f7']={
webappId:    '7060',
documentId:  '16501',
internalId:  'e8d5c0e2e0f14cd3113c1fef9a6e68f7',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-dc9af55c68402437fe37d4ea7b0747ff']={
webappId:    '7060',
documentId:  '17501',
internalId:  'dc9af55c68402437fe37d4ea7b0747ff',
customField: 'language:pt;country:BR;'
};
webappMappings['7050']=webappMappings['7050-180']={
webappId:    '7050',
documentId:  '24501',
internalId:  '180',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-c029a054307c81bb12dd35f47d1290e6']={
webappId:    '7060',
documentId:  '27201',
internalId:  'c029a054307c81bb12dd35f47d1290e6',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-38b8d1b17e331e818cb108bd2b8512cc']={
webappId:    '7060',
documentId:  '23901',
internalId:  '38b8d1b17e331e818cb108bd2b8512cc',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-05cf0abfb9874883a90a240a2abb3654']={
webappId:    '7060',
documentId:  '27201',
internalId:  '05cf0abfb9874883a90a240a2abb3654',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-69c23dac0bb9b91a87dd78faffeec705']={
webappId:    '7060',
documentId:  '30501',
internalId:  '69c23dac0bb9b91a87dd78faffeec705',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-ce8a60e82fcd8f114cc15f56ba61564a']={
webappId:    '7060',
documentId:  '23901',
internalId:  'ce8a60e82fcd8f114cc15f56ba61564a',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-aba7eef848efcbf3fe448755ffa00757']={
webappId:    '7060',
documentId:  '30501',
internalId:  'aba7eef848efcbf3fe448755ffa00757',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-fd5258836f748f2bf9d5a8f90e8467e4']={
webappId:    '7060',
documentId:  '30601',
internalId:  'fd5258836f748f2bf9d5a8f90e8467e4',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-b2d5cc861a93b351ae99f1f5a1268997']={
webappId:    '7060',
documentId:  '32501',
internalId:  'b2d5cc861a93b351ae99f1f5a1268997',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-1f127249ff6c365ace7afe802440cd43']={
webappId:    '7060',
documentId:  '30601',
internalId:  '1f127249ff6c365ace7afe802440cd43',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-b0fa0002e2896b03e059b6580a37e285']={
webappId:    '7060',
documentId:  '32501',
internalId:  'b0fa0002e2896b03e059b6580a37e285',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20111116-180437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32501',
internalId:  '',
customField: '20090724-193108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35712',
internalId:  '',
customField: '20081212-183611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3301',
internalId:  '',
customField: '20100921-173849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27201',
internalId:  '',
customField: '20091021-202602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5701',
internalId:  '',
customField: '20080904-193931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16501',
internalId:  '',
customField: '20080918-210430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30501',
internalId:  '',
customField: '20081118-124042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30601',
internalId:  '',
customField: '20081118-124221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23901',
internalId:  '',
customField: '20080919-214316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17501',
internalId:  '',
customField: '20090518-160716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3406',
internalId:  '',
customField: '20110507-164851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10301',
internalId:  '',
customField: '20111116-180514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12506',
internalId:  '',
customField: '20080904-194821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12501',
internalId:  '',
customField: '20080904-194821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24501',
internalId:  '',
customField: '20081212-165848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46133',
internalId:  '',
customField: '20090518-153954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46112',
internalId:  '',
customField: '20090518-155837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46812',
internalId:  '',
customField: '20090518-175409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48112',
internalId:  '',
customField: '20090529-161306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50312',
internalId:  '',
customField: '20090611-171838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50412',
internalId:  '',
customField: '20091021-185759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53012',
internalId:  '',
customField: '20090626-154415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54412',
internalId:  '',
customField: '20090701-163742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57112',
internalId:  '',
customField: '20090724-203844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61712',
internalId:  '',
customField: '20090902-231056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64412',
internalId:  '',
customField: '20090826-184905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66312',
internalId:  '',
customField: '20091020-182803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72212',
internalId:  '',
customField: '20090920-200656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73512',
internalId:  '',
customField: '20090929-170906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76312',
internalId:  '',
customField: '20100505-120806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81812',
internalId:  '',
customField: '20091028-155032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83212',
internalId:  '',
customField: '20091021-210437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87412',
internalId:  '',
customField: '20091102-192416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89812',
internalId:  '',
customField: '20100505-121551'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INPJRJ';
var companyName   = 'S%C3%89RGIO+QUEIROZ+ELVIS+COVER';
var htmlTitle	  = '';
var metaKeywords  = 'ELVIS%2C+COVER%2C+S%C3%89RGIO%2C+QUEIROZ%2C+ELVIS+COVER+S%C3%89RGIO+QUEIROZ%2C+COVER+ELVIS+S%C3%89RGIO+QUEIROZ%2C+ELVIS+PRESLEY+COVER+S%C3%89RGIO+QUEIROZ%2C+ELVIS+COVER+EM+CURITIBA%2C+ELVIS+PRESLEY+COVER+S%C3%89RGIO+QUEIROZ+EM+CURITIBA.+M%C3%9ASICA%2C+SHOW%2C+EVENTO%2C+ROCK%2C+CURITIBA%2C+PARAN%C3%81%2C+ELVIS+PRESLEY+COVER%2C+FESTA%2C+MUSIC.+sergioqueiroz.com%2C+sergio+queiroz';
var metaContents  = 'ELVIS+PRESLEY+COVER+S%C3%89RGIO+QUEIROZ%2C+S%C3%89RGIO%2C+QUEIROZ%2C+ELVIS%2C+PRESLEY%2C+COVER%2C+S%C3%89RGIO+QUEIROZ.COM%2C+S%C3%89RGIO+QUEIROZ+COVER+ELVIS.COM.BR%2C+COVER+DE+ELVIS+PRESLEY+EM+CURITIBA%2C+ELVIS+PRESLEY%2C+ELVIS+PRESLEY+COVER%2C+COVERS+DE+ELVIS+PRESLEY%2C+CURITIBA%2C+PARAN%C3%81+BRASIL%2C+BRAZIL%2C+MUSIC%2C+M%C3%9ASICA%2C+ROCK.+sergioqieiroz.com%2C+sergio+queiroz';
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();
};

