/* [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','11101',jdecode('Page+d%26%23x27%3Baccueil'),jdecode(''),'/11101.html','true',[],'',''],
	['PAGE','39923',jdecode('collection+2010'),jdecode(''),'/39923.html','true',[],'',''],
	['PAGE','11501',jdecode('Nouveaut%C3%A9+septembre'),jdecode(''),'/11501.html','true',[],'',''],
	['PAGE','26001',jdecode('Robes+de+soir%C3%A9e'),jdecode(''),'/26001.html','true',[],'',''],
	['PAGE','25722',jdecode('Robes+de+mari%C3%A9e'),jdecode(''),'/25722.html','true',[],'',''],
	['PAGE','10643',jdecode('Robes+de+coktail'),jdecode(''),'/10643.html','true',[],'',''],
	['PAGE','27401',jdecode('Photos+Clientes'),jdecode(''),'/27401.html','true',[],'',''],
	['PAGE','12201',jdecode('La+Boutique'),jdecode(''),'/12201.html','true',[],'',''],
	['PAGE','12501',jdecode('Presse'),jdecode(''),'/12501.html','true',[],'',''],
	['PAGE','12106',jdecode('Livre+d%26%23x27%3Bor'),jdecode(''),'/12106/index.html','true',[ 
		['PAGE','12101',jdecode('Entr%C3%A9es'),jdecode(''),'/12106/12101.html','false',[],'','']
	],'',''],
	['PAGE','11543',jdecode('Contactez+nous'),jdecode(''),'/11543/index.html','true',[ 
		['PAGE','28001',jdecode('Contactez+nous%28follow+up+page%29'),jdecode(''),'/11543/28001.html','false',[],'','']
	],'',''],
	['PAGE','28301',jdecode('Comment+nous+trouver'),jdecode(''),'/28301.html','true',[],'',''],
	['PAGE','28201',jdecode('Acc%C3%A8s'),jdecode(''),'/28201.html','true',[],'','']];
var siteelementCount=15;
theSitetree.topTemplateName='Inspiration';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='103';
theSitetree.graphicsetId='122';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Inspiration',
				paletteFamily: 	'000000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'103',
				graphicsetId: 	'122',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'669999',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11101',
internalId:  '',
customField: '20100114-175656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26001',
internalId:  '',
customField: '20090122-110946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11543',
internalId:  '',
customField: '20090119-154254'
};
webappMappings['1002']=webappMappings['1002-12106aars20invntl']={
webappId:    '1002',
documentId:  '12106',
internalId:  '12106aars20invntl',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27401',
internalId:  '',
customField: '20090128-164755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25722',
internalId:  '',
customField: '20090122-122616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11501',
internalId:  '',
customField: '20090122-153918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10643',
internalId:  '',
customField: '20090122-152538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12201',
internalId:  '',
customField: '20090128-165122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12501',
internalId:  '',
customField: '20090128-165741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12106',
internalId:  '',
customField: '20090113-111652'
};
webappMappings['7008']=webappMappings['7008-6257']={
webappId:    '7008',
documentId:  '11543',
internalId:  '6257',
customField: 'language:fr;country:FR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28001',
internalId:  '',
customField: '20090119-153423'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '28201',
internalId:  'location',
customField: 'language:fr;country:FR;isIncluded:false;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '28301',
internalId:  'routing',
customField: 'fr_FR'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28201',
internalId:  '',
customField: '20090119-154308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28301',
internalId:  '',
customField: '20090119-154428'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '11101',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39923',
internalId:  '',
customField: '20091120-093616'
};
var canonHostname = 'llwd718.servidoresdns.net';
var accountId     = 'AARS20INVNTL';
var companyName   = '';
var htmlTitle	  = 'ATELIER+33+PARIS';
var metaKeywords  = 'C%C3%A9r%C3%A9monie++Robes+de+soir%C3%A9e++Robes+de+mari%C3%A9e++H%C3%A9nn%C3%A9e++Bar+Mitswa++Fiancaille++Habill%C3%A9e++Mariage++Communion++Bapt%C3%A8me++coktail++Robe+de+coktail++Dentelle++Soie++Tailleur+habill%C3%A9e++Tenue+de+soir%C3%A9e++tenue+de+coktail++Haute+couture++Sur+mesure++Robe+sur+mesure++Cr%C3%A9ation++Atelier+de+cr%C3%A9ation+mazel+tov+mabrouk++f%C3%A9licitation%2Catelier33paris.com%2Catelier33paris%2Catelier33%2Cdress%2Cevening+dress';
var metaContents  = 'Robes+de+soir%C3%A9e++Robes+de+mari%C3%A9e++Robes+de+coktail++Nouveaut%C3%A9++atelier33%2C+atelier33paris%2Catelier33paris.com%2Cparis+mode%2C+fashion%2Cdress%2C++evening+dress%2C';
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();
};
