/* [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 theSitetree=[ 
	['PAGE','801',jdecode('Home'),jdecode(''),'/801.html','true',[],''],
	['PAGE','852',jdecode('Decoraci%C3%B3n+Interiores'),jdecode(''),'/852/index.html','true',[ 
		['PAGE','16101',jdecode('Pabellones'),jdecode(''),'/852/16101.html','true',[],''],
		['PAGE','16122',jdecode('Cortinas'),jdecode(''),'/852/16122.html','true',[],''],
		['PAGE','45901',jdecode('Blancos'),jdecode(''),'/852/45901.html','true',[],''],
		['PAGE','45922',jdecode('Cielos'),jdecode(''),'/852/45922.html','true',[],'']
	],''],
	['PAGE','873',jdecode('Decoraci%C3%B3n+Exteriores'),jdecode(''),'/873/index.html','true',[ 
		['PAGE','16143',jdecode('Palapas+Playa'),jdecode(''),'/873/16143.html','true',[],''],
		['PAGE','16164',jdecode('Terrazas'),jdecode(''),'/873/16164.html','true',[],'']
	],''],
	['PAGE','5343',jdecode('Tapiceria'),jdecode(''),'/5343/index.html','true',[ 
		['PAGE','16248',jdecode('Exteriores'),jdecode(''),'/5343/16248.html','true',[],''],
		['PAGE','16269',jdecode('Interiores'),jdecode(''),'/5343/16269.html','true',[],'']
	],''],
	['PAGE','45985',jdecode('Lounge'),jdecode(''),'/45985.html','true',[],''],
	['PAGE','5364',jdecode('Accesorios'),jdecode(''),'/5364/index.html','true',[ 
		['PAGE','45943',jdecode('Mesas'),jdecode(''),'/5364/45943.html','true',[],''],
		['PAGE','45964',jdecode('Lamparas'),jdecode(''),'/5364/45964.html','true',[],'']
	],''],
	['PAGE','70901',jdecode('Persianas'),jdecode(''),'/70901/index.html','true',[ 
		['PAGE','71822',jdecode('American+Blinds'),jdecode(''),'/70901/71822.html','true',[],''],
		['PAGE','71801',jdecode('Sunset'),jdecode(''),'/70901/71801.html','true',[],'']
	],''],
	['PAGE','84301',jdecode('Toldos'),jdecode(''),'/84301.html','true',[],''],
	['PAGE','15122',jdecode('Entretenimiento'),jdecode(''),'/15122/index.html','true',[ 
		['PAGE','16311',jdecode('Botargas'),jdecode(''),'/15122/16311.html','true',[],''],
		['PAGE','894',jdecode('Escenograf%C3%ADas'),jdecode(''),'/15122/894.html','true',[],''],
		['PAGE','16290',jdecode('Juegos'),jdecode(''),'/15122/16290.html','true',[],''],
		['PAGE','83801',jdecode('Juegos+Infantiles'),jdecode(''),'/15122/83801.html','true',[],''],
		['PAGE','5322',jdecode('Utiler%C3%ADas'),jdecode(''),'/15122/5322.html','true',[],''],
		['PAGE','83822',jdecode('Vestuario'),jdecode(''),'/15122/83822.html','true',[],'']
	],''],
	['PAGE','80001',jdecode('Promociones'),jdecode(''),'/80001.html','true',[],''],
	['PAGE','915',jdecode('Cont%C3%A1ctanos'),jdecode(''),'/915.html','true',[],'']];
var siteelementCount=29;
theSitetree.topTemplateName='Displace';
theSitetree.paletteFamily='02325B';
theSitetree.keyvisualId='11074';
theSitetree.keyvisualName='kv_11074.jpg';
theSitetree.fontsetId='31958';
theSitetree.graphicsetId='13796';
theSitetree.contentColor='3B82CE';
theSitetree.contentBGColor='02325B';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				name: 			'Displace',
				paletteFamily: 	'02325B',
				keyvisualId: 	'11074',
				keyvisualName: 	'kv_11074.jpg',
				fontsetId: 		'31958',
				graphicsetId: 	'13796',
				contentColor: 	'3B82CE',
				contentBGColor: '02325B',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-3944']={
webappId:    '7008',
documentId:  '915',
internalId:  '3944',
customField: 'language:es;country:ES;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '801',
internalId:  '',
customField: '20090905-210450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '852',
internalId:  '',
customField: '20090303-171935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16101',
internalId:  '',
customField: '20090303-213501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70901',
internalId:  '',
customField: '20090302-174420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71822',
internalId:  '',
customField: '20090302-174440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71801',
internalId:  '',
customField: '20090302-174458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '894',
internalId:  '',
customField: '20090302-174731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5364',
internalId:  '',
customField: '20090303-215005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16122',
internalId:  '',
customField: '20090302-172647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45901',
internalId:  '',
customField: '20090302-172814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45922',
internalId:  '',
customField: '20090302-172927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '873',
internalId:  '',
customField: '20090304-094758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16143',
internalId:  '',
customField: '20090302-173701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16164',
internalId:  '',
customField: '20090302-173736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45943',
internalId:  '',
customField: '20090302-174336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45964',
internalId:  '',
customField: '20090220-202553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80001',
internalId:  '',
customField: '20090905-210829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84301',
internalId:  '',
customField: '20090303-215820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5343',
internalId:  '',
customField: '20090302-173931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16248',
internalId:  '',
customField: '20090302-173849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16269',
internalId:  '',
customField: '20090302-174019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45985',
internalId:  '',
customField: '20090303-215704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15122',
internalId:  '',
customField: '20090303-213116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16311',
internalId:  '',
customField: '20090304-094639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16290',
internalId:  '',
customField: '20090302-174753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83801',
internalId:  '',
customField: '20090302-174815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5322',
internalId:  '',
customField: '20090304-102150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83822',
internalId:  '',
customField: '20090303-220138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '915',
internalId:  '',
customField: '20090401-192118'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN39SV';
var companyName   = 'Decoraciones+Rivera+Maya+SC';
var htmlTitle	  = 'Bienvenidos+a+R.R.+Ambientes+y+Decoraci%C3%B3nes';
var metaKeywords  = 'Cortinas%2C+ambientes%2C+decoraciones%2C+pabellones%2C+dise%C3%B1os%2C+tapicer%C3%ADa%2C+mesas+de+casino%2C+escenograf%C3%ADa%2C+decoraci%C3%B3n%2C+vestuario%2C+colchones%2C+forros+de+colch%C3%B3n%2C+colchonetas%2C+uniformes%2C+palapas%2C+Cortinas%2C+ambientes%2C+decoraciones%2C+pabellones%2C+dise%C3%B1os%2C+tapicer%C3%ADa%2C+mesas+de+casino%2C+escenograf%C3%ADa%2C+decoraci%C3%B3n%2C+vestuario%2C+colchones%2C+forros+de+colch%C3%B3n%2C+colchonetas%2C+uniformes%2C+palapas%2C+botargas%2C+pambazos%2C+lounge%2C+cielos%2C+disfraces%2C+pergolas%2C+p%C3%A9rgolas%2C+blancos%2C+runners%2C+cojines%2C+rodapies%2C+cabrillas%2C+terrrazas%2C+mobiliario%2C+mesas%2C+l%C3%A1mparas%2C+escenograf%C3%ADas%2C+teatro%2C+juegos%2C+infantiles%2C+casino%2C+mesas+casino%2C+entretenimiento%2C+animaci%C3%B3n%2C+persianas%2C+toldos%2C+romanas%2C+plisadas%2C+cabriaroll%2C+celulares%2C+Sunset%2C+American+Blinds%2C+Hunter+Douglas%2C+Sunbrella%2C+Canvas';
var metaContents  = 'Cortinas%2C+ambientes%2C+decoraciones%2C+pabellones%2C+dise%C3%B1os%2C+tapicer%C3%ADa%2C+mesas+de+casino%2C+escenograf%C3%ADa%2C+decoraci%C3%B3n%2C+vestuario%2C+colchones%2C+forros+de+colch%C3%B3n%2C+colchonetas%2C+uniformes%2C+palapas%2C+botargas%2C+pambazos%2C+lounge%2C+cielos%2C+disfraces%2C+pergolas%2C+p%C3%A9rgolas%2C+blancos%2C+runners%2C+cojines%2C+rodapies%2C+cabrillas%2C+terrrazas%2C+mobiliario%2C+mesas%2C+l%C3%A1mparas%2C+escenograf%C3%ADas%2C+teatro%2C+juegos%2C+infantiles%2C+casino%2C+mesas+casino%2C+entretenimiento%2C+animaci%C3%B3n%2C+persianas%2C+toldos%2C+romanas%2C+plisadas%2C+cabriaroll%2C+celulares%2C+Sunset%2C+American+Blinds%2C+Hunter+Douglas%2C+Sunbrella%2C+Canvas';
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();
};
