/* [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','2201',jdecode('INICIO'),jdecode(''), jdecode('%2F2201.html'), 'true',[],'',''],
	['PAGE','34601',jdecode('BODAS'),jdecode(''), jdecode('%2F34601.html'), 'true',[],'',''],
	['PAGE','34622',jdecode('KARAOKE'),jdecode(''), jdecode('%2F34622.html'), 'true',[],'',''],
	['PAGE','38101',jdecode('CORPORATIVOS'),jdecode(''), jdecode('%2F38101.html'), 'true',[],'',''],
	['PAGE','2422',jdecode('PAQUETES+FIESTA'),jdecode(''), jdecode('%2F2422.html'), 'true',[],'',''],
	['PAGE','2401',jdecode('MOBILIARIO'),jdecode(''), jdecode('%2F2401.html'), 'true',[],'',''],
	['PAGE','9101',jdecode('SERVICIOS'),jdecode(''), jdecode('%2F9101.html'), 'true',[],'',''],
	['PAGE','2443',jdecode('GALERIA'),jdecode(''), jdecode('%2F2443.html'), 'true',[],'',''],
	['PAGE','2464',jdecode('CONTACTOS'),jdecode(''), jdecode('%2F2464.html'), 'true',[],'','']];
var siteelementCount=9;
theSitetree.topTemplateName='Vienna';
theSitetree.paletteFamily='D6D2C5';
theSitetree.keyvisualId='11884';
theSitetree.keyvisualName='kv_11884.jpg';
theSitetree.fontsetId='33180';
theSitetree.graphicsetId='14088';
theSitetree.contentColor='696146';
theSitetree.contentBGColor='ebe8df';
var localeDef={
  language: 'es',
  country: 'ES'
};
var prodDef={
  wl_name: 'grp13-hostin',
  product: 'WSCVWLSSSLYTC2IW'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Vienna',
				paletteFamily: 	'D6D2C5',
				keyvisualId: 	'11884',
				keyvisualName: 	'kv_11884.jpg',
				fontsetId: 		'33180',
				graphicsetId: 	'14088',
				contentColor: 	'696146',
				contentBGColor: 'ebe8df',
				a_color: 		'EBE8DF',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2201',
internalId:  '',
customField: '20111004-231333'
};
webappMappings['7060']=webappMappings['7060-7200faccf6660b92a969590f1c00160e']={
webappId:    '7060',
documentId:  '2443',
internalId:  '7200faccf6660b92a969590f1c00160e',
customField: 'language:es;country:ES;'
};
webappMappings['7008']=webappMappings['7008-10379']={
webappId:    '7008',
documentId:  '2464',
internalId:  '10379',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2401',
internalId:  '',
customField: '20111004-231849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2422',
internalId:  '',
customField: '20120114-010637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2464',
internalId:  '',
customField: '20111004-232150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2443',
internalId:  '',
customField: '20111004-232059'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9101',
internalId:  '',
customField: '20111004-231958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34601',
internalId:  '',
customField: '20111004-231441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34622',
internalId:  '',
customField: '20120114-010315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38101',
internalId:  '',
customField: '20120114-010515'
};
webappMappings['1501']=webappMappings['1501-15888071']={
webappId:    '1501',
documentId:  '2201',
internalId:  '15888071',
customField: '1501'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHSOB';
var companyName   = 'AGENCIA+PRODUCTORA+DE+EVENTOS';
var htmlTitle	  = 'Paax+Producciones';
var metaKeywords  = 'fiesta%2C+eventos%2C+renta%2C+montaje%2C+audio%2C+video%2C+iluminaci%C3%B3n%2C+pantallas+plasma%2C+pisos+iluminados%2C+suvenirs%2C+cumplea%C3%B1os%2C+bodas%2C+bautizos%2C+conferencias%2C+graduaciones%2C+quince+a%C3%B1os%2C+xv+a%C3%B1os%2C+eventos+empresariales%2C+fiestas+fin+de+a%C3%B1o%2C+grupos+musicales%2C+luz+y+sonido%2C+luz%2C+sonido%2C+vj%C2%B4s%2C+dj%C2%B4s%2C+paax%2C+producciones%2C+musica%2C+music%2C+sillas%2C+mesas%2C+carpas%2C+salas%2C+lounge%2Crenta+audio%2C+renta+sonido%2C+renta+de+audio%2C+renta+de+sonido';
var metaContents  = 'Empresa+dedicada+al+montaje+y+renta+de+equpos+profesionales+de+video%2C+audio%2C+iluminaci%C3%B3n%2C+pantallas+de+plasma%2C+suvenirs%2C+para+cualquier+tipo+de+eventos.';
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();
};

