/* [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','43',jdecode('Home'),jdecode(''),'/43.html','true',[],'',''],
	['PAGE','73',jdecode('Specials'),jdecode(''),'/73.html','true',[],'',''],
	['PAGE','22401',jdecode('Brazilian+%2F+Full+Bikini+'),jdecode(''),'/22401.html','true',[],'',''],
	['PAGE','82',jdecode('About+us'),jdecode(''),'/82/index.html','true',[ 
		['PAGE','91',jdecode('How+to+find+us'),jdecode(''),'/82/91.html','true',[],'','']
	],'',''],
	['PAGE','100',jdecode('Service+Price+List'),jdecode(''),'/100/index.html','true',[ 
		['PAGE','109',jdecode('Body'),jdecode(''),'/100/109.html','true',[],'',''],
		['PAGE','118',jdecode('Face'),jdecode(''),'/100/118.html','true',[],'',''],
		['PAGE','127',jdecode('Hands+%26+Feet'),jdecode(''),'/100/127.html','true',[],'','']
	],'',''],
	['PAGE','1765',jdecode('About+Esthetician'),jdecode(''),'/1765.html','true',[],'','']];
var siteelementCount=10;
theSitetree.topTemplateName='Communication';
theSitetree.paletteFamily='006600';
theSitetree.keyvisualId='310';
theSitetree.keyvisualName='power.jpg';
theSitetree.fontsetId='32';
theSitetree.graphicsetId='32';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Communication',
				paletteFamily: 	'006600',
				keyvisualId: 	'310',
				keyvisualName: 	'power.jpg',
				fontsetId: 		'32',
				graphicsetId: 	'32',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'006600',
				b_color: 		'009900',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '43',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43',
internalId:  '',
customField: '20110221-204229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82',
internalId:  '',
customField: '20080107-033007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73',
internalId:  '',
customField: '20110221-203856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91',
internalId:  '',
customField: '20071202-022704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100',
internalId:  '',
customField: '20080215-072507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109',
internalId:  '',
customField: '20100908-122228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118',
internalId:  '',
customField: '20100203-174907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127',
internalId:  '',
customField: '20100908-122413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1765',
internalId:  '',
customField: '20100203-175925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22401',
internalId:  '',
customField: '20110221-203638'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INXEFT';
var companyName   = 'SUBLIME+STUDIO+for+ESTHETICS++++1185+Pacific+Blvd.+Vancouver+BC++604.722.7001';
var htmlTitle	  = 'SUBLIME+STUDIO+FOR+ESTHETICS+%28Yaletown+Vancouver%29+Brazilian+Waxing+';
var metaKeywords  = 'Sublime+Studio%2C+Sublime+Studio%2C+www.sublimestudio.ca+%2C+brazilian+yaletown%2C+yaletown+brazilian+waxing%2C+brazilian+waxing+Vancouver%2C+brazilian+waxing+reviews+vancouver+brazilian+waxing%2C+Rav%2C+esthetics%2C++esthetics+in+vancouver%2C+beauty+and+beyond%2C+vancouver+spas%2C+facial+massage%2C+waxing%2C+brazilian+waxing+in+Vancouver%2C+french+manicure%2C+pedicures%2C+ear+candling%2C+cheap%2C+affordable%2C+great+services%2C+sublime%2C+professional%2C+brazilian+waxing%2Cesthetician+in+vancouver%2C+unique%2C+innovative%2C+lower+mainland%2C+greater+vancouver%2C+brow%2C+Brazilian+waxing%2C+eye+brow+vancouver%2Cthe+best+brazilian+waxing+in+Vancouver+queen%2C+expert%2C+brazilian+expert%2C+brow+waxing%2C+the+best+in+vancouver%2C+gift+certificates%2C+nail+technician%2C+state+of+the+art%2C+star+nails%2C+decleor%2C+tend+skin%2C+deep+tissue+massage%2C+wellness%2C+day+spa%2C+waxing+specialist%2C+hair+removal%2C+beauty+expert%2C+experience%2C+ankle%2C+yaletown%2C+downtown%2C+sublime+studio+vancouver%2C+sublime+studio+yaletown%2C+brazilian+waxing%2C+brazilian+experts%2C+brazilian+waxing+vancouver%2C+brazilian+waxing+vancouver%2C+brazilian+waxing+vancouver%2C+brazilian+waxing+yaletown%2C+vancouver+wax%2C+vancouver+brazilian+waxing%2C+vancouver+wax%2C+brazilian+waxing+experts%2C+vancouver+brazilian+waxing%2C+brazilian+waxing%2C+brazilian+waxing%2C+brazilian+waxing+script+type%3Dtext%2Fjavascriptvar+gaJsHost+%3D+%28%28https%3A+%3D%3D+document.location.protocol%29+%3F+https%3A%2F%2Fssl.+%3A+http%3A%2F%2Fwww.%29%3Bdocument.write%28unescape%28%253Cscript+src%3D+%2B+gaJsHost+%2B+google-analytics.com%2Fga.js+type%3Dtext%2Fjavascript%253E%253C%2Fscript%253E%29%29%3B%2Fscriptscript+type%3Dtext%2Fjavascriptvar+pageTracker+%3D+_gat._getTracker%28UA-xxxxxx-x%29%3BpageTracker._trackPageview%28%29%3B%2Fscript';
var metaContents  = 'Sublime+Studio+is+a+full+esthetics+Studio+located+in+Yaletown+Vancouver%2C+brazilian+waxing%2C++beauty%2C+spa%2C+facial+massage%2C+waxing%2C+brazilian+waxing+experts%2C+french+manicure%2C+pedicures%2C+ear+candling%2C+cheap%2C+affordable%2C+great+services%2C+professional%2C+unique%2C+expert%2C+brazilian+waxing%2C+brow+waxing%2C+the+best+in+vancouver%2C+gift+certificates.+We+carry+Star+Nail%2C+Decleor%2C+Tend+Skin...+Waxing+specialist%2C+hair+removal%2C+beauty+expert.+Yaletown%2C+Downtown%2C+Vancouver+best+brazilian+waxing%2C+brazilian+waxing%2C+brazilian+waxing+vancouver%2C+brazilian+waxing+vancouver%2C+brazilian+waxing+yaletown%2C+brazilian+waxing+vancouver%2C+brazilian+waxing+vancouver%2C+waxing+Vancouver%2C+waxing+vancouver%2C+vancouver+waxing';
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();
};

