/* [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','4555',jdecode('Inicio'),jdecode(''), jdecode('%2F4555.html'), 'true',[],'',''],
	['PAGE','4612',jdecode('%C2%BFQuienes+somos%3F'),jdecode(''), jdecode('%2F4612%2Findex.html'), 'true',[ 
		['PAGE','4639',jdecode('Mision+y+Vision'),jdecode(''), jdecode('%2F4612%2F4639.html'), 'true',[],'','']
	],'',''],
	['PAGE','4666',jdecode('Nuestros+servicios'),jdecode(''), jdecode('%2F4666%2Findex.html'), 'true',[ 
		['PAGE','4693',jdecode('Bodas'),jdecode(''), jdecode('%2F4666%2F4693.html'), 'true',[],'',''],
		['PAGE','4720',jdecode('XV+A%C3%B1os'),jdecode(''), jdecode('%2F4666%2F4720.html'), 'true',[],'',''],
		['PAGE','4747',jdecode('Bautizos'),jdecode(''), jdecode('%2F4666%2F4747.html'), 'true',[],'',''],
		['PAGE','4774',jdecode('Bienvenidas'),jdecode(''), jdecode('%2F4666%2F4774.html'), 'true',[],'',''],
		['PAGE','4801',jdecode('Conferencias'),jdecode(''), jdecode('%2F4666%2F4801.html'), 'true',[],'',''],
		['PAGE','4828',jdecode('Graduaciones'),jdecode(''), jdecode('%2F4666%2F4828.html'), 'true',[],'',''],
		['PAGE','4855',jdecode('Eventos+politicos'),jdecode(''), jdecode('%2F4666%2F4855.html'), 'true',[],'',''],
		['PAGE','4882',jdecode('Sonorizacion+a+grupos+y+artistas'),jdecode(''), jdecode('%2F4666%2F4882.html'), 'true',[],'','']
	],'',''],
	['PAGE','4963',jdecode('Generos+musicales'),jdecode(''), jdecode('%2F4963.html'), 'true',[],'',''],
	['PAGE','44301',jdecode('Equipo+profesional'),jdecode(''), jdecode('%2F44301%2Findex.html'), 'true',[ 
		['PAGE','5044',jdecode('Equipo+de+Iluminacion'),jdecode(''), jdecode('%2F44301%2F5044.html'), 'true',[],'',''],
		['PAGE','5071',jdecode('Equipo+de+Video'),jdecode(''), jdecode('%2F44301%2F5071.html'), 'true',[],'',''],
		['PAGE','5017',jdecode('Equipo+de+Audio'),jdecode(''), jdecode('%2F44301%2F5017.html'), 'true',[],'',''],
		['PAGE','44322',jdecode('Pistas+Iluminadas'),jdecode(''), jdecode('%2F44301%2F44322.html'), 'true',[],'','']
	],'',''],
	['PAGE','4990',jdecode('Configuracion+de+paquetes'),jdecode(''), jdecode('%2F4990%2Findex.html'), 'true',[ 
		['PAGE','14602',jdecode('Paquetes+Basicos'),jdecode(''), jdecode('%2F4990%2F14602.html'), 'true',[],'',''],
		['PAGE','14629',jdecode('Paquetes+Fiesta'),jdecode(''), jdecode('%2F4990%2F14629.html'), 'true',[],'',''],
		['PAGE','14656',jdecode('Paquetes+Plus'),jdecode(''), jdecode('%2F4990%2F14656.html'), 'true',[],'',''],
		['PAGE','14683',jdecode('Paquetes+Power'),jdecode(''), jdecode('%2F4990%2F14683.html'), 'true',[],'',''],
		['PAGE','14710',jdecode('Sonorizacion+en+General'),jdecode(''), jdecode('%2F4990%2F14710.html'), 'true',[],'',''],
		['PAGE','38901',jdecode('Pistas+Iluminadas'),jdecode(''), jdecode('%2F4990%2F38901.html'), 'true',[],'','']
	],'',''],
	['PAGE','4909',jdecode('Galeria+de+fotos'),jdecode(''), jdecode('%2F4909%2Findex.html'), 'true',[ 
		['PAGE','43001',jdecode('Galeria+1'),jdecode(''), jdecode('%2F4909%2F43001.html'), 'true',[],'',''],
		['PAGE','9102',jdecode('Galeria+2'),jdecode(''), jdecode('%2F4909%2F9102.html'), 'true',[],'',''],
		['PAGE','9902',jdecode('Galeria+3'),jdecode(''), jdecode('%2F4909%2F9902.html'), 'true',[],'',''],
		['PAGE','47401',jdecode('Pistas+Iluminadas'),jdecode(''), jdecode('%2F4909%2F47401.html'), 'true',[],'','']
	],'',''],
	['PAGE','4936',jdecode('Videos'),jdecode(''), jdecode('%2F4936.html'), 'true',[],'',''],
	['PAGE','5098',jdecode('Tienda+virtual'),jdecode(''), jdecode('%2F5098%2Findex.html'), 'true',[ 
		['PAGE','14737',jdecode('Iluminacion+Chauvett'),jdecode(''), jdecode('%2F5098%2F14737.html'), 'true',[],'',''],
		['PAGE','14764',jdecode('Amplificadores+BackStage'),jdecode(''), jdecode('%2F5098%2F14764.html'), 'true',[],'',''],
		['PAGE','14791',jdecode('Reproductores+Alde+Audio'),jdecode(''), jdecode('%2F5098%2F14791.html'), 'true',[],'','']
	],'',''],
	['PAGE','37401',jdecode('Libro+de+visitas'),jdecode(''), jdecode('%2F37401.html'), 'true',[],'',''],
	['PAGE','5125',jdecode('Cont%C3%A1ctenos'),jdecode(''), jdecode('%2F5125.html'), 'true',[],'','']];
var siteelementCount=37;
theSitetree.topTemplateName='Kreis';
theSitetree.paletteFamily='D24C59';
theSitetree.keyvisualId='589';
theSitetree.keyvisualName='collage.jpg';
theSitetree.fontsetId='124';
theSitetree.graphicsetId='143';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'es',
  country: 'ES'
};
var prodDef={
  wl_name: 'grp13-hostin',
  product: 'WSCSYSSSSLY0XJEZ'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Kreis',
				paletteFamily: 	'D24C59',
				keyvisualId: 	'589',
				keyvisualName: 	'collage.jpg',
				fontsetId: 		'124',
				graphicsetId: 	'143',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'D24C59',
				b_color: 		'F877A1',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-169366']={
webappId:    '1501',
documentId:  '4555',
internalId:  '169366',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4555',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-7fcaa1e74d28a8fdc2e1fbfa456d2360']={
webappId:    '7060',
documentId:  '9102',
internalId:  '7fcaa1e74d28a8fdc2e1fbfa456d2360',
customField: 'language:es;country:ES;'
};
webappMappings['7060']=webappMappings['7060-659cb2f514cbee2388ff8c1019c3d1d1']={
webappId:    '7060',
documentId:  '9902',
internalId:  '659cb2f514cbee2388ff8c1019c3d1d1',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4555',
internalId:  '',
customField: '20110131-153225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4936',
internalId:  '',
customField: '20110131-154459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4612',
internalId:  '',
customField: '20100202-210626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4639',
internalId:  '',
customField: '20080311-145736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4666',
internalId:  '',
customField: '20110121-213914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4693',
internalId:  '',
customField: '20110121-213621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4720',
internalId:  '',
customField: '20110121-213712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4747',
internalId:  '',
customField: '20110121-212636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4774',
internalId:  '',
customField: '20110121-212717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4801',
internalId:  '',
customField: '20110121-212820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4828',
internalId:  '',
customField: '20110121-213807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4855',
internalId:  '',
customField: '20100203-205924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4882',
internalId:  '',
customField: '20100203-210625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4963',
internalId:  '',
customField: '20110126-095318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5017',
internalId:  '',
customField: '20100204-113249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5044',
internalId:  '',
customField: '20110126-100934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5071',
internalId:  '',
customField: '20110126-105650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4990',
internalId:  '',
customField: '20110124-100226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14602',
internalId:  '',
customField: '20110121-204431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14629',
internalId:  '',
customField: '20110121-204854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14656',
internalId:  '',
customField: '20110124-111622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14683',
internalId:  '',
customField: '20110124-111800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14710',
internalId:  '',
customField: '20100203-212443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4909',
internalId:  '',
customField: '20110126-094736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9102',
internalId:  '',
customField: '20060213-193915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9902',
internalId:  '',
customField: '20110125-204628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5098',
internalId:  '',
customField: '20060222-192253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14737',
internalId:  '',
customField: '20060222-194726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14764',
internalId:  '',
customField: '20060222-192659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14791',
internalId:  '',
customField: '20060222-192710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5125',
internalId:  '',
customField: '20110124-102202'
};
webappMappings['1002']=webappMappings['1002-37401avec10inx3qv']={
webappId:    '1002',
documentId:  '37401',
internalId:  '37401avec10inx3qv',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37401',
internalId:  '',
customField: '20100629-203851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38901',
internalId:  '',
customField: '20110124-112031'
};
webappMappings['7060']=webappMappings['7060-cd44e160516567ded71115b93667c423']={
webappId:    '7060',
documentId:  '43001',
internalId:  'cd44e160516567ded71115b93667c423',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43001',
internalId:  '',
customField: '20110125-213658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44301',
internalId:  '',
customField: '20110126-100723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44322',
internalId:  '',
customField: '20110126-105027'
};
webappMappings['7060']=webappMappings['7060-675481f3cb01159b614d75a660825de8']={
webappId:    '7060',
documentId:  '47401',
internalId:  '675481f3cb01159b614d75a660825de8',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47401',
internalId:  '',
customField: '20110624-114204'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INX3QV';
var companyName   = 'AUDIO%2C+VIDEO+E+ILUMINACI%C3%93N++PROFESIONAL';
var htmlTitle	  = 'Luz+y+Sonido+MixUp';
var metaKeywords  = 'luz+y+sonido%0D%0Ailuminacion%0D%0Avideo%0D%0Afiestas%0D%0Abodas%0D%0AXV+a%C3%B1os%0D%0Aartistas%0D%0Asonorizacion%0D%0Aequipo+de+audio+e+iluminacion.';
var metaContents  = 'Servicios+de+renta+de+equipo+de+audio%2C+iluminacion%2C+video+y+DJ+movil+para+eventos%2C++abarcando+todos+los+tipos+de+eventos+familiares%2C+empresariales%2C+politicos+y+artisticos.';
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();
};

