/* [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','208501',jdecode('Home'),jdecode(''),'/208501.html','false',[],'',''],
	['PAGE','401',jdecode('Home'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','473',jdecode('Dj%26%23x27%3Bs'),jdecode(''),'/473/index.html','false',[ 
		['PAGE','226401',jdecode('Agenda'),jdecode(''),'/473/226401.html','true',[],'',''],
		['PAGE','47801',jdecode('Galerie+2008'),jdecode(''),'/473/47801.html','true',[],'',''],
		['PAGE','189301',jdecode('Galerie+2009'),jdecode(''),'/473/189301.html','true',[],'',''],
		['PAGE','193201',jdecode('27.02.09+Students+Party'),jdecode(''),'/473/193201.html','true',[],'',''],
		['PAGE','66701',jdecode('R%C3%A9f%C3%A9rences'),jdecode(''),'/473/66701.html','true',[],'',''],
		['PAGE','25906',jdecode('Livre+d%26%23x27%3Bor'),jdecode(''),'/473/25906.html','true',[],'','']
	],'',''],
	['PAGE','63201',jdecode('Location'),jdecode(''),'/63201/index.html','false',[ 
		['PAGE','65501',jdecode('Sonorisation'),jdecode(''),'/63201/65501.html','true',[],'',''],
		['PAGE','65522',jdecode('Lumi%C3%A8re'),jdecode(''),'/63201/65522.html','true',[],'','']
	],'',''],
	['PAGE','515',jdecode('Contact'),jdecode(''),'/515.html','true',[],'','']];
var siteelementCount=13;
theSitetree.topTemplateName='Displace';
theSitetree.paletteFamily='2E2E2E';
theSitetree.keyvisualId='11075';
theSitetree.keyvisualName='kv_11075.jpg';
theSitetree.fontsetId='31958';
theSitetree.graphicsetId='13798';
theSitetree.contentColor='D8D8D5';
theSitetree.contentBGColor='2E2E2E';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Displace',
				paletteFamily: 	'2E2E2E',
				keyvisualId: 	'11075',
				keyvisualName: 	'kv_11075.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: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '226401',
internalId:  '',
customField: '20100301-020229'
};
webappMappings['1002']=webappMappings['1002-25906abw1x0ine434']={
webappId:    '1002',
documentId:  '25906',
internalId:  '25906abw1x0ine434',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63201',
internalId:  '',
customField: '20090811-200503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100301-030731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65501',
internalId:  '',
customField: '20090811-200209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65522',
internalId:  '',
customField: '20090811-200436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20100111-183719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47801',
internalId:  '',
customField: '20090221-000135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66701',
internalId:  '',
customField: '20090302-043500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '193201',
internalId:  '',
customField: '20090302-030434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25906',
internalId:  '',
customField: '20080610-081929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20091128-173407'
};
webappMappings['7060']=webappMappings['7060-ff7a3a60a973df07e41ec0429f631933']={
webappId:    '7060',
documentId:  '193201',
internalId:  'ff7a3a60a973df07e41ec0429f631933',
customField: 'language:fr;country:FR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '189301',
internalId:  '',
customField: '20091111-203628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '208501',
internalId:  '',
customField: '20100112-063510'
};
webappMappings['7008']=webappMappings['7008-3179']={
webappId:    '7008',
documentId:  '515',
internalId:  '3179',
customField: 'language:fr;country:FR;'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW1X0INE434';
var companyName   = '+++++++Oneclub+mobile++++++++++++++++++++++++++++++++++++++++Projection3D';
var htmlTitle	  = 'Oneclub+mobile';
var metaKeywords  = 'dj+gabs%2C+gabriel+guillet%2C+dj+sergio%2C+fribourg%2C+bulle%2C+romont%2C+payerne%2C+sarine%2C+gl%C3%A2ne%2C+discoth%C3%A8que%2C+disco%2C+club%2C+mobile%2C+sonorisation%2C+%C3%A9clairage%2C+lumi%C3%A8re%2C+location%2C+mat%C3%A9riel%2C+dj%2C+discoclub%2C+oneclub%2C+giron%2C+jeunesse%2C+photo%2C+f%C3%AAte%2C+dj+ciccio%2C+projection3d%2C+projection+3d%2C+projection3d.ch';
var metaContents  = 'Club+dj%2C+disco+club+mobile%2C+dj+gabs%2C+projection3d%2C+projection+3d%2C+guillet+gabriel%2C+projection3d.ch';
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();
};

