/* [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','6712',jdecode('Home'),jdecode(''),'/6712/index.html','true',[ 
		['PAGE','7812',jdecode('About+Us'),jdecode(''),'/6712/7812.html','true',[],'',''],
		['PAGE','7833',jdecode('Our+Team'),jdecode(''),'/6712/7833.html','false',[],'',''],
		['PAGE','7854',jdecode('Hours+of+Operation'),jdecode(''),'/6712/7854.html','true',[],'',''],
		['PAGE','6931',jdecode('Contact'),jdecode(''),'/6712/6931.html','true',[],'',''],
		['PAGE','7875',jdecode('Location'),jdecode(''),'/6712/7875.html','true',[],'','']
	],'',''],
	['PAGE','6784',jdecode('Muriel+Mastey'),jdecode(''),'/6784.html','true',[],'',''],
	['PAGE','6889',jdecode('Hair+Bootcamp'),jdecode(''),'/6889.html','true',[],'',''],
	['PAGE','6805',jdecode('The+Salon'),jdecode(''),'/6805/index.html','true',[ 
		['PAGE','7917',jdecode('Hair+Services'),jdecode(''),'/6805/7917.html','true',[],'',''],
		['PAGE','64865',jdecode('Aesthetic+Services'),jdecode(''),'/6805/64865.html','true',[],'',''],
		['PAGE','6910',jdecode('Product'),jdecode(''),'/6805/6910.html','true',[],'',''],
		['PAGE','69545',jdecode('Collections%2FEditorials'),jdecode(''),'/6805/69545.html','false',[],'',''],
		['PAGE','7896',jdecode('Our+Guestbook'),jdecode(''),'/6805/7896.html','false',[],'',''],
		['PAGE','8112',jdecode('Request+Information'),jdecode(''),'/6805/8112.html','true',[],'','']
	],'',''],
	['PAGE','83725',jdecode('Press'),jdecode(''),'/83725/index.html','true',[ 
		['PAGE','58765',jdecode('Magazine+Features'),jdecode(''),'/83725/58765.html','true',[],'',''],
		['PAGE','58786',jdecode('TV+Features'),jdecode(''),'/83725/58786.html','true',[],'',''],
		['PAGE','58807',jdecode('Events+and+Fashion'),jdecode(''),'/83725/58807.html','true',[],'',''],
		['PAGE','6826',jdecode('Online+Press'),jdecode(''),'/83725/6826.html','true',[],'','']
	],'',''],
	['PAGE','21434',jdecode('Events'),jdecode(''),'/21434/index.html','true',[ 
		['PAGE','52634',jdecode('Hollywood+Events'),jdecode(''),'/21434/52634.html','true',[],'',''],
		['PAGE','52655',jdecode('Charitable+Events'),jdecode(''),'/21434/52655.html','true',[],'',''],
		['PAGE','52676',jdecode('Other+Fun+Events'),jdecode(''),'/21434/52676.html','true',[],'','']
	],'','']];
var siteelementCount=24;
theSitetree.topTemplateName='Business';
theSitetree.paletteFamily='003366';
theSitetree.keyvisualId='2492';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='418';
theSitetree.graphicsetId='463';
theSitetree.contentColor='020E66';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Business',
				paletteFamily: 	'003366',
				keyvisualId: 	'2492',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'418',
				graphicsetId: 	'463',
				contentColor: 	'020E66',
				contentBGColor: 'FFFFFF',
				a_color: 		'003366',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6712',
internalId:  '',
customField: '20100917-162030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6784',
internalId:  '',
customField: '20100917-150834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6805',
internalId:  '',
customField: '20100831-143159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6826',
internalId:  '',
customField: '20100928-233536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64865',
internalId:  '',
customField: '20100916-160845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21434',
internalId:  '',
customField: '20100917-111410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6889',
internalId:  '',
customField: '20100901-194225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6910',
internalId:  '',
customField: '20100917-162139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6931',
internalId:  '',
customField: '20100915-160226'
};
webappMappings['7008']=webappMappings['7008-8305']={
webappId:    '7008',
documentId:  '8112',
internalId:  '8305',
customField: 'language:en;country:US;'
};
webappMappings['1002']=webappMappings['1002-7896ahw050inzgm4']={
webappId:    '1002',
documentId:  '7896',
internalId:  '7896ahw050inzgm4',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7812',
internalId:  '',
customField: '20100831-133339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7833',
internalId:  '',
customField: '20100831-133442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7854',
internalId:  '',
customField: '20100828-132450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7875',
internalId:  '',
customField: '20100827-161744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7896',
internalId:  '',
customField: '20100824-135440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8112',
internalId:  '',
customField: '20100710-154635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7917',
internalId:  '',
customField: '20100915-160954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58807',
internalId:  '',
customField: '20100831-142737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52676',
internalId:  '',
customField: '20100819-150143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58765',
internalId:  '',
customField: '20100928-235910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58786',
internalId:  '',
customField: '20100831-141226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52634',
internalId:  '',
customField: '20100819-145935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52655',
internalId:  '',
customField: '20100819-150045'
};
webappMappings['1501']=webappMappings['1501-7899211']={
webappId:    '1501',
documentId:  '6712',
internalId:  '7899211',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-0ebf823353d1999e17a4736f9fb36e43']={
webappId:    '7060',
documentId:  '52634',
internalId:  '0ebf823353d1999e17a4736f9fb36e43',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-a6db0ab54c4592ddbfc8703734deb407']={
webappId:    '7060',
documentId:  '52655',
internalId:  'a6db0ab54c4592ddbfc8703734deb407',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-951b1c01cefcb1791ed9e8449e204ac7']={
webappId:    '7060',
documentId:  '52676',
internalId:  '951b1c01cefcb1791ed9e8449e204ac7',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69545',
internalId:  '',
customField: '20100917-134113'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '6712',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83725',
internalId:  '',
customField: '20100929-000059'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INZGM4';
var companyName   = 'POINT+DE+VUE+SALON';
var htmlTitle	  = 'POINT+DE+VUE+SALON+A+place+where+all+hair+feels+good+%21';
var metaKeywords  = 'Hair+bootcamp+Hollywood+celebrities+beauty+salon+waxing+sknicare+Hair+color+balayage+highlights+blow+dry+class+cottage+celebrity+event+relaxation+beauty+makeover+beverly+hills+salon+women+style+fashion+beauty+venue+west+hollywood+salon+bridal+showers+gifting+beauty+suites+hair+expert+muriel+mastey+xavier+guerin+tricks+and+tips+on+hair+red+carpet+ready+';
var metaContents  = '';
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();
};

