/* [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('Accueil'),jdecode(''),'/4598.html','true',[],'',''],
	['PAGE','4682',jdecode('Notre+philosophie'),jdecode(''),'/4682.html','true',[],'',''],
	['PAGE','11107',jdecode('Strip-tease'),jdecode(''),'/11107.html','true',[],'',''],
	['PAGE','11134',jdecode('Aimer+s%C3%A9duire'),jdecode(''),'/11134.html','true',[],'',''],
	['PAGE','6862',jdecode('Sensual+Dance'),jdecode(''),'/6862.html','true',[],'',''],
	['PAGE','17773',jdecode('Pole+%26+Lap+Dance'),jdecode(''),'/17773.html','true',[],'',''],
	['PAGE','11161',jdecode('Enterrement+%26+Anniv.'),jdecode(''),'/11161.html','true',[],'',''],
	['PAGE','57701',jdecode('Tarifs+des+cours'),jdecode(''),'/57701.html','true',[],'',''],
	['PAGE','97601',jdecode('Les+Stages'),jdecode(''),'/97601.html','true',[],'',''],
	['PAGE','10320',jdecode('M%C3%A9dias'),jdecode(''),'/10320.html','true',[],'',''],
	['PAGE','4763',jdecode('Boutique'),jdecode(''),'/4763.html','true',[],'',''],
	['PAGE','10293',jdecode('Liens'),jdecode(''),'/10293.html','true',[],'',''],
	['PAGE','69622',jdecode('Contact'),jdecode(''),'/69622.html','true',[],'','']];
var siteelementCount=13;
theSitetree.topTemplateName='Kreis';
theSitetree.paletteFamily='D24C59';
theSitetree.keyvisualId='589';
theSitetree.keyvisualName='collage.jpg';
theSitetree.fontsetId='124';
theSitetree.graphicsetId='143';
theSitetree.contentColor='F877A1';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'fr',
  country: 'FR'
};
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: 	'F877A1',
				contentBGColor: '000000',
				a_color: 		'D24C59',
				b_color: 		'F877A1',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4598',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-1353']={
webappId:    '7008',
documentId:  '69622',
internalId:  '1353',
customField: 'language:fr;country:FR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4598',
internalId:  '',
customField: '20101107-114248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97601',
internalId:  '',
customField: '20100328-184936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4763',
internalId:  '',
customField: '20101107-095830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4682',
internalId:  '',
customField: '20101107-091113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57701',
internalId:  '',
customField: '20100515-123406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11134',
internalId:  '',
customField: '20101107-091801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6862',
internalId:  '',
customField: '20080205-211443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17773',
internalId:  '',
customField: '20101107-111703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11107',
internalId:  '',
customField: '20101107-114601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11161',
internalId:  '',
customField: '20101107-115351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10320',
internalId:  '',
customField: '20101107-094943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10293',
internalId:  '',
customField: '20101107-115808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69622',
internalId:  '',
customField: '20101107-115934'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXXX7';
var companyName   = 'Strip-Emotion+%26+Pole-Emotion';
var htmlTitle	  = 'Ecole+Strip-Emotion';
var metaKeywords  = 'striptease%2Ceffeuillage%2Cs%EF%BF%BDduction%2Cdanse%2Ccorps%2Cformation%2Csant%EF%BF%BD%2Cd%EF%BF%BDtente%2Cr%EF%BF%BDgime%2Csensualit%EF%BF%BD%2Ccours%2C%EF%BF%BDcole%2Csalsa%2Centerrement%2Cvip%2Cmari%EF%BF%BDe%2Csensualdance%2Cdisco%2Cdisco-fox%2Cdanse+orientale%2Cdanse+de+salon%2CK-Danse%2CDanse+Passion%2CLausanne%2CRenens%2CGen%EF%BF%BDve%2CCrissier%2CClosalet%2Cbarre%2Cpole%2Cpoteau%2CGland%2CMontreux%2CChampagne%2CBonvillars%2Capprendre%2Cbouger%2Cdanser%2Cclub%2Csauna%2Cdiscoth%EF%BF%BDque%2Ccoralie%2Csexe%2C%EF%BF%BDchangisme%2Clesbienne%2Cfemme%2Cm%EF%BF%BDlangisme%2Cgym%2Ccoach%2Ccoaching%2Cerotica+night%2Cpalladium%2Cgen%EF%BF%BDve%2Catelier+volant%2Cpole+dance%2Cvip+service%2Canniversaire%2Csurprise%2Clap+dance%2Cactivdanses%2Catelier+volant%2Cmad%2Csensual%2Cpoledance%2Clapdance%2Cbourse%2Cemploi%2Cgain%2Cgain+accessoire%2Cformation%2Ctravail%2Caimer%2Csolitude%2Cno%EF%BF%BDmie%2Cval%EF%BF%BDrie%2Cjeanrenaud%2Centerrement%2Cchippendale';
var metaContents  = 'Ecole+et+cours+de+Striptease+pour+Femmes+et+hommes%2C++Ecole+de+Sensual+Dance%2C+Ecole+de+Pole+Dance%2C++Enterrement+vie+de+jeune+fille+et+jeune+homme%2C++Service+VIP%2C+Anniversaire%2C+Ecole+de+Lap+Dance%2C+Boutique%2C+Enterrement+vie+de+c%EF%BF%BDlibataire%2C+Coaching';
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();
};

