/* [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','3301',jdecode('HOME'),jdecode(''),'/3301.html','true',[],'',''],
	['PAGE','7901',jdecode('INFO'),jdecode(''),'/7901.html','true',[],'',''],
	['PAGE','6901',jdecode('LAN%C3%87AMENTOS'),jdecode(''),'/6901/index.html','true',[ 
		['PAGE','26423',jdecode('centro+Linha'),jdecode(''),'/6901/26423.html','true',[],'',''],
		['PAGE','11612',jdecode('bandeja+Mari+'),jdecode(''),'/6901/11612.html','true',[],'',''],
		['PAGE','11633',jdecode('bandeja+Espelho'),jdecode(''),'/6901/11633.html','true',[],'',''],
		['PAGE','11654',jdecode('placa+Espelho+'),jdecode(''),'/6901/11654.html','true',[],'',''],
		['PAGE','11675',jdecode('bandeja+Reflexa+'),jdecode(''),'/6901/11675.html','true',[],'',''],
		['PAGE','11696',jdecode('vaso+Hexagonal'),jdecode(''),'/6901/11696.html','true',[],'',''],
		['PAGE','11717',jdecode('vaso+Yang'),jdecode(''),'/6901/11717.html','true',[],'',''],
		['PAGE','15512',jdecode('vaso+Yin'),jdecode(''),'/6901/15512.html','true',[],'',''],
		['PAGE','11738',jdecode('cachepot+Quatro'),jdecode(''),'/6901/11738.html','true',[],'',''],
		['PAGE','11759',jdecode('cachepot+Espelho+'),jdecode(''),'/6901/11759.html','true',[],'',''],
		['PAGE','11780',jdecode('vaso+Espelho+'),jdecode(''),'/6901/11780.html','true',[],'',''],
		['PAGE','26444',jdecode('vaso+Dueto'),jdecode(''),'/6901/26444.html','true',[],'',''],
		['PAGE','15533',jdecode('protetor+de+mesa'),jdecode(''),'/6901/15533.html','true',[],'',''],
		['PAGE','11801',jdecode('lumin%C3%A1ria+S1'),jdecode(''),'/6901/11801.html','true',[],'',''],
		['PAGE','15554',jdecode('mesa+Revista'),jdecode(''),'/6901/15554.html','true',[],'',''],
		['PAGE','11864',jdecode('mesa+Revista+60+x+60'),jdecode(''),'/6901/11864.html','true',[],'',''],
		['PAGE','11843',jdecode('mesa+revisteiro+Mari+2'),jdecode(''),'/6901/11843.html','true',[],'',''],
		['PAGE','11822',jdecode('mesa+Arquivo'),jdecode(''),'/6901/11822.html','true',[],'',''],
		['PAGE','26465',jdecode('mesa+Cris+retangular+80+x+40'),jdecode(''),'/6901/26465.html','true',[],'',''],
		['PAGE','26523',jdecode('mesa+Cris+oval+80+x+40'),jdecode(''),'/6901/26523.html','true',[],'',''],
		['PAGE','26544',jdecode('mesa+Cris+redonda+50'),jdecode(''),'/6901/26544.html','true',[],'',''],
		['PAGE','26565',jdecode('mesa+Coluna+50'),jdecode(''),'/6901/26565.html','true',[],'',''],
		['PAGE','26586',jdecode('espelho+%C3%89+bom'),jdecode(''),'/6901/26586.html','true',[],'','']
	],'',''],
	['PAGE','4622',jdecode('ONDE+ENCONTRAR'),jdecode(''),'/4622/index.html','true',[ 
		['PAGE','5322',jdecode('Alagoas'),jdecode(''),'/4622/5322.html','true',[],'',''],
		['PAGE','5343',jdecode('Amazonas'),jdecode(''),'/4622/5343.html','true',[],'',''],
		['PAGE','5364',jdecode('Bahia'),jdecode(''),'/4622/5364.html','true',[],'',''],
		['PAGE','5385',jdecode('Cear%C3%A1'),jdecode(''),'/4622/5385.html','true',[],'',''],
		['PAGE','5406',jdecode('Distrito+Federal'),jdecode(''),'/4622/5406.html','true',[],'',''],
		['PAGE','5427',jdecode('Espir%C3%ADto+Santo'),jdecode(''),'/4622/5427.html','true',[],'',''],
		['PAGE','5448',jdecode('Goi%C3%A1s'),jdecode(''),'/4622/5448.html','true',[],'',''],
		['PAGE','5469',jdecode('Maranh%C3%A3o'),jdecode(''),'/4622/5469.html','true',[],'',''],
		['PAGE','5490',jdecode('Mato+Grosso'),jdecode(''),'/4622/5490.html','true',[],'',''],
		['PAGE','5511',jdecode('Mato+Grosso+do+Sul'),jdecode(''),'/4622/5511.html','true',[],'',''],
		['PAGE','5532',jdecode('Minas+Gerais'),jdecode(''),'/4622/5532.html','true',[],'',''],
		['PAGE','11301',jdecode('Par%C3%A1'),jdecode(''),'/4622/11301.html','true',[],'',''],
		['PAGE','5574',jdecode('Para%C3%ADba'),jdecode(''),'/4622/5574.html','true',[],'',''],
		['PAGE','5553',jdecode('Paran%C3%A1'),jdecode(''),'/4622/5553.html','true',[],'',''],
		['PAGE','5595',jdecode('Pernambuco'),jdecode(''),'/4622/5595.html','true',[],'',''],
		['PAGE','5616',jdecode('Piau%C3%AD'),jdecode(''),'/4622/5616.html','true',[],'',''],
		['PAGE','5637',jdecode('Rio+de+Janeiro'),jdecode(''),'/4622/5637.html','true',[],'',''],
		['PAGE','5658',jdecode('Rio+Grande+do+Norte'),jdecode(''),'/4622/5658.html','true',[],'',''],
		['PAGE','5679',jdecode('Rio+Grande+do+Sul'),jdecode(''),'/4622/5679.html','true',[],'',''],
		['PAGE','5700',jdecode('Santa+Catarina'),jdecode(''),'/4622/5700.html','true',[],'',''],
		['PAGE','5301',jdecode('S%C3%A3o+Paulo'),jdecode(''),'/4622/5301.html','true',[],'',''],
		['PAGE','5721',jdecode('Sergipe'),jdecode(''),'/4622/5721.html','true',[],'','']
	],'','']];
var siteelementCount=49;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='D72B2B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10461';
theSitetree.graphicsetId='10893';
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: 			'Alpha',
				paletteFamily: 	'D72B2B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10461',
				graphicsetId: 	'10893',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'D72B2B',
				e_color: 		'D72B2B',
				f_color: 		'D72B2B',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3301',
internalId:  '',
customField: '20100514-100530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6901',
internalId:  '',
customField: '20100514-100547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5322',
internalId:  '',
customField: '20090803-153444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4622',
internalId:  '',
customField: '20090803-120746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7901',
internalId:  '',
customField: '20090803-133002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20100513-135418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5343',
internalId:  '',
customField: '20090803-153832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5364',
internalId:  '',
customField: '20090730-122351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5385',
internalId:  '',
customField: '20090803-153538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5406',
internalId:  '',
customField: '20090730-122823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5427',
internalId:  '',
customField: '20100513-134222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5448',
internalId:  '',
customField: '20100513-134410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5469',
internalId:  '',
customField: '20090730-123401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5490',
internalId:  '',
customField: '20090730-123806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5511',
internalId:  '',
customField: '20090730-123941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5532',
internalId:  '',
customField: '20090730-124653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5553',
internalId:  '',
customField: '20090730-124837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5574',
internalId:  '',
customField: '20100513-134639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5595',
internalId:  '',
customField: '20100513-134931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5616',
internalId:  '',
customField: '20090730-125519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5637',
internalId:  '',
customField: '20090805-085751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5658',
internalId:  '',
customField: '20090730-125944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5679',
internalId:  '',
customField: '20100513-135112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5700',
internalId:  '',
customField: '20100513-135143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5721',
internalId:  '',
customField: '20090730-132508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11301',
internalId:  '',
customField: '20090730-134044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11612',
internalId:  '',
customField: '20090803-095342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11633',
internalId:  '',
customField: '20090803-095740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11654',
internalId:  '',
customField: '20090803-100118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11675',
internalId:  '',
customField: '20090803-100645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11696',
internalId:  '',
customField: '20090803-155915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11717',
internalId:  '',
customField: '20090804-074214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11738',
internalId:  '',
customField: '20090804-074841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11759',
internalId:  '',
customField: '20090806-133720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11780',
internalId:  '',
customField: '20090806-133834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11801',
internalId:  '',
customField: '20090804-075241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11822',
internalId:  '',
customField: '20090804-081237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11843',
internalId:  '',
customField: '20090804-075930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11864',
internalId:  '',
customField: '20090804-075609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15554',
internalId:  '',
customField: '20090802-235436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15533',
internalId:  '',
customField: '20090806-102056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26423',
internalId:  '',
customField: '20100513-164056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15512',
internalId:  '',
customField: '20090806-101731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26444',
internalId:  '',
customField: '20100513-164320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26465',
internalId:  '',
customField: '20100513-164441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26523',
internalId:  '',
customField: '20100513-164557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26544',
internalId:  '',
customField: '20100513-164702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26565',
internalId:  '',
customField: '20100513-164802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26586',
internalId:  '',
customField: '20100514-101017'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHTEF';
var companyName   = '';
var htmlTitle	  = 'KIOKAWA+DESIGN';
var metaKeywords  = '';
var metaContents  = '';
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();
};
