/* [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','1101',jdecode('Home'),jdecode(''),'/1101.html','true',[],'',''],
	['PAGE','3222',jdecode('About+the+owner'),jdecode(''),'/3222.html','true',[],'',''],
	['PAGE','3264',jdecode('Services'),jdecode(''),'/3264.html','true',[],'',''],
	['PAGE','1152',jdecode('Schedule'),jdecode(''),'/1152.html','true',[],'',''],
	['PAGE','42001',jdecode('Rates'),jdecode(''),'/42001.html','true',[],'',''],
	['PAGE','3390',jdecode('The+equipment...'),jdecode(''),'/3390/index.html','true',[ 
		['PAGE','50301',jdecode('the+Pulley+Tower+Combo+Unit'),jdecode(''),'/3390/50301.html','true',[],'',''],
		['PAGE','3411',jdecode('the+Ladder'),jdecode(''),'/3390/3411.html','true',[],'',''],
		['PAGE','20401',jdecode('the+Leg+Extension+Unit'),jdecode(''),'/3390/20401.html','true',[],'',''],
		['PAGE','33801',jdecode('Jumping%26Stretching+Board'),jdecode(''),'/3390/33801.html','true',[],'',''],
		['PAGE','52843',jdecode('Archway'),jdecode(''),'/3390/52843.html','true',[],'','']
	],'',''],
	['PAGE','3348',jdecode('TEACHER+TRAINING'),jdecode(''),'/3348.html','true',[],'',''],
	['PAGE','15301',jdecode('CONTACT+'),jdecode(''),'/15301.html','true',[],'',''],
	['PAGE','58701',jdecode('Press'),jdecode(''),'/58701.html','true',[],'',''],
	['PAGE','69296',jdecode('Testimonials'),jdecode(''),'/69296.html','true',[],'','']];
var siteelementCount=15;
theSitetree.topTemplateName='Dispose';
theSitetree.paletteFamily='718DF8';
theSitetree.keyvisualId='9684';
theSitetree.keyvisualName='kv_9684.gif';
theSitetree.fontsetId='10666';
theSitetree.graphicsetId='11186';
theSitetree.contentColor='626262';
theSitetree.contentBGColor='CCCACA';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Dispose',
				paletteFamily: 	'718DF8',
				keyvisualId: 	'9684',
				keyvisualName: 	'kv_9684.gif',
				fontsetId: 		'10666',
				graphicsetId: 	'11186',
				contentColor: 	'626262',
				contentBGColor: 'CCCACA',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1101',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1101',
internalId:  '',
customField: '20090901-192255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3222',
internalId:  '',
customField: '20091230-223449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3264',
internalId:  '',
customField: '20090903-005723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1152',
internalId:  '',
customField: '20100302-232055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42001',
internalId:  '',
customField: '20090429-173207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3390',
internalId:  '',
customField: '20090429-173249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50301',
internalId:  '',
customField: '20090117-170716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3411',
internalId:  '',
customField: '20080914-171745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20401',
internalId:  '',
customField: '20071126-004117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33801',
internalId:  '',
customField: '20071126-005016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52843',
internalId:  '',
customField: '20080519-163827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3348',
internalId:  '',
customField: '20100308-225158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15301',
internalId:  '',
customField: '20090826-145524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58701',
internalId:  '',
customField: '20100122-145722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69296',
internalId:  '',
customField: '20090117-173034'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INX2E6';
var companyName   = 'Welcome+to+LAS+VEGAS+GYROTONIC%C2%AE';
var htmlTitle	  = 'Las+Vegas+GYROTONIC%28R%29+v1';
var metaKeywords  = 'Gyrotonic%2C+Gyrokinesis%2C+Pilates%2C+Yoga%2C+Mind+Body+Fitness%2C+Fitness%2C+Alternative+Health%2C+Tai+Chi%2C+Chi+Gong%2C+Spiritual+Wellness%2C+Spinal+Wellness%2C+Spinal+Health%2C+Wellness%2C+Skeletal+Alignment%2C+';
var metaContents  = 'Las+Vegas+GYROTONIC%2C+GYROTONIC+Las+Vegas%2C+GYROTONIC+Nevada%2C+Nevada+GYROTONIC%2C+Pilates+Las+Vegas%2C+Las+Vegas+Pilates%2C+Pilates+Nevada%2C+Yoga+Las+Vegas%2C+Las+Vegas+Yoga%2C+Yoga+Nevada%2C+Mind+Body+Fitness+Las+Vegas%2C+Mind+Body+Fitness+Nevada%2C+GYROKINESIS+Las+Vegas%2C+GYROKINESIS+Nevada%2C+Las+Vegas+GYROKINESIS';
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();
};
