/* [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','4598',jdecode('DUOSON'),jdecode(''),'/4598/index.html','true',[ 
		['PAGE','4655',jdecode('%C2%BFQuien+es+DUOSON%3F'),jdecode(''),'/4598/4655.html','true',[],'',''],
		['PAGE','4682',jdecode('Nuestro+Objetivo'),jdecode(''),'/4598/4682.html','true',[],'',''],
		['PAGE','4709',jdecode('Valores'),jdecode(''),'/4598/4709.html','true',[],'',''],
		['PAGE','61101',jdecode('Contactanos'),jdecode(''),'/4598/61101.html','true',[],'',''],
		['PAGE','10537',jdecode('Mapa+de+Ubicaci%C3%B3n'),jdecode(''),'/4598/10537.html','true',[],'','']
	],'',''],
	['PAGE','4736',jdecode('PRODUCTOS+OFRECIDOS'),jdecode(''),'/4736/index.html','true',[ 
		['PAGE','13301',jdecode('Accesorios+para+automatizacion'),jdecode(''),'/4736/13301.html','true',[],'',''],
		['PAGE','12079',jdecode('Bocinas'),jdecode(''),'/4736/12079.html','true',[],'',''],
		['PAGE','80861',jdecode('Bocinas+Intemperie'),jdecode(''),'/4736/80861.html','true',[],'',''],
		['PAGE','13322',jdecode('Cables'),jdecode(''),'/4736/13322.html','true',[],'',''],
		['PAGE','12070',jdecode('Controles+Remotos'),jdecode(''),'/4736/12070.html','true',[],'',''],
		['PAGE','12088',jdecode('Multi-Rooms'),jdecode(''),'/4736/12088.html','true',[],'',''],
		['PAGE','13343',jdecode('Sistemas+de+Automatizacion'),jdecode(''),'/4736/13343.html','true',[],'',''],
		['PAGE','13364',jdecode('Sistemas+de+Distribucion+de+Audio+y+Video'),jdecode(''),'/4736/13364.html','true',[],'',''],
		['PAGE','80882',jdecode('Soportes+para+TV%2C+Bocinas+o+Projectores'),jdecode(''),'/4736/80882.html','true',[],'','']
	],'',''],
	['PAGE','57201',jdecode('_____________________'),jdecode(''),'/57201.html','true',[],'',''],
	['PAGE','81303',jdecode('LISTA+DE+PRODUCTOS'),jdecode(''),'/81303.html','true',[],'',''],
	['PAGE','12097',jdecode('REPRESENTACIONES'),jdecode(''),'/12097/index.html','true',[ 
		['PAGE','81061',jdecode('FURMAN'),jdecode(''),'/12097/81061.html','true',[],'',''],
		['PAGE','57222',jdecode('GEFEN'),jdecode(''),'/12097/57222.html','true',[],'',''],
		['PAGE','12115',jdecode('NUVO+TECHNOLOGIES'),jdecode(''),'/12097/12115.html','true',[],'',''],
		['PAGE','81124',jdecode('OMNI+MOUNT+-+Soportes'),jdecode(''),'/12097/81124.html','true',[],'',''],
		['PAGE','47801',jdecode('PLANET+WAVES+-+Cables'),jdecode(''),'/12097/47801.html','true',[],'',''],
		['PAGE','12124',jdecode('TERRA+SPEAKERS'),jdecode(''),'/12097/12124.html','true',[],'',''],
		['PAGE','12133',jdecode('TRUAUDIO'),jdecode(''),'/12097/12133.html','true',[],'',''],
		['PAGE','12142',jdecode('UNIVERSAL+REMOTE'),jdecode(''),'/12097/12142.html','true',[],'',''],
		['PAGE','12151',jdecode('XANTECH'),jdecode(''),'/12097/12151.html','true',[],'',''],
		['PAGE','81166',jdecode('ZEEVEE'),jdecode(''),'/12097/81166.html','true',[],'','']
	],'',''],
	['PAGE','57621',jdecode('_____________________'),jdecode(''),'/57621.html','true',[],'',''],
	['PAGE','57642',jdecode('NOTICIAS'),jdecode(''),'/57642.html','true',[],'',''],
	['PAGE','4790',jdecode('CONTACTANOS'),jdecode(''),'/4790/index.html','true',[ 
		['PAGE','5023',jdecode('Cont%C3%A1ctanos+%28follow+up+page%29'),jdecode(''),'/4790/5023.html','false',[],'','']
	],'',''],
	['PAGE','22206',jdecode('DEJANOS+UN+COMENTARIO'),jdecode(''),'/22206/index.html','true',[ 
		['PAGE','22201',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/22206/22201.html','false',[],'','']
	],'','']];
var siteelementCount=35;
theSitetree.topTemplateName='Displace';
theSitetree.paletteFamily='2E2E2E';
theSitetree.keyvisualId='11076';
theSitetree.keyvisualName='kv_11076.jpg';
theSitetree.fontsetId='31958';
theSitetree.graphicsetId='13798';
theSitetree.contentColor='D8D8D5';
theSitetree.contentBGColor='2E2E2E';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Displace',
				paletteFamily: 	'2E2E2E',
				keyvisualId: 	'11076',
				keyvisualName: 	'kv_11076.jpg',
				fontsetId: 		'31958',
				graphicsetId: 	'13798',
				contentColor: 	'D8D8D5',
				contentBGColor: '2E2E2E',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '12097',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '12097',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80861',
internalId:  '',
customField: '20100131-175313'
};
webappMappings['1002']=webappMappings['1002-22206avec10inxx5m']={
webappId:    '1002',
documentId:  '22206',
internalId:  '22206avec10inxx5m',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4655',
internalId:  '',
customField: '20100201-134852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4598',
internalId:  '',
customField: '20070406-155129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81061',
internalId:  '',
customField: '20100131-180218'
};
webappMappings['7008']=webappMappings['7008-6643']={
webappId:    '7008',
documentId:  '4790',
internalId:  '6643',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4682',
internalId:  '',
customField: '20070729-151012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4709',
internalId:  '',
customField: '20100201-135201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61101',
internalId:  '',
customField: '20100201-135601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10537',
internalId:  '',
customField: '20070729-151458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4736',
internalId:  '',
customField: '20100201-134045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13301',
internalId:  '',
customField: '20100201-141152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12079',
internalId:  '',
customField: '20100201-141850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13322',
internalId:  '',
customField: '20070405-180350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12070',
internalId:  '',
customField: '20080506-121739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12088',
internalId:  '',
customField: '20070406-162354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13343',
internalId:  '',
customField: '20070405-180350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13364',
internalId:  '',
customField: '20070405-180350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57201',
internalId:  '',
customField: '20080803-172204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12097',
internalId:  '',
customField: '20100221-155632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57222',
internalId:  '',
customField: '20100131-170758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81166',
internalId:  '',
customField: '20100131-230118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81124',
internalId:  '',
customField: '20100131-180218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12115',
internalId:  '',
customField: '20100201-004635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47801',
internalId:  '',
customField: '20080223-143659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12124',
internalId:  '',
customField: '20070406-184903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12133',
internalId:  '',
customField: '20071225-233131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12142',
internalId:  '',
customField: '20100413-212345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12151',
internalId:  '',
customField: '20070428-164131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57621',
internalId:  '',
customField: '20080803-172204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57642',
internalId:  '',
customField: '20100201-222450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4790',
internalId:  '',
customField: '20080809-130251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5023',
internalId:  '',
customField: '20040903-005236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81303',
internalId:  '',
customField: '20100201-231135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80882',
internalId:  '',
customField: '20100131-175313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22206',
internalId:  '',
customField: '20070405-234627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22201',
internalId:  '',
customField: '20070405-234720'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INXX5M';
var companyName   = 'DUOSON++++++Innovative+Systems';
var htmlTitle	  = '';
var metaKeywords  = 'Xantech+Terra+Speakers+Truaudio+NUVO+Nuvo+Technologies+Universal+Remote+Multiroom+Sistemas+de+Audio+Sistemas+de+Video+Controles+Remotos+Programables+DUOSON+gefen+HDMI+Cables+para+Bocina+Soportes+para+TV+Planet+Waves+owi+Omnimount+MuxLab+Honeywell+Genesis+ZeeVee+Video+HD';
var metaContents  = 'Todo+lo+necesario+para+la+integracion+de+sistemas+Sistemas+Multiroom%2C+Interfaces+para+Audio+y+Video%2C+Bocinas%2C+Amplificadores%2C+Controles%2C+Cables%2C+Soportes%2C+Accesorios+en+A%2FV+y+m%C3%A1s.+%21%21';
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();
};

