/* [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','1701',jdecode('Home'),jdecode(''),'/1701.html','true',[],'',''],
	['PAGE','7701',jdecode('Therapeutic+Yoga'),jdecode(''),'/7701.html','true',[],'',''],
	['PAGE','27012',jdecode('SHOP+and+EVENTS'),jdecode(''),'/27012.html','true',[],'',''],
	['PAGE','7201',jdecode('About+Me'),jdecode(''),'/7201.html','true',[],'',''],
	['PAGE','1773',jdecode('Gallery'),jdecode(''),'/1773.html','true',[],'',''],
	['PAGE','23212',jdecode('Gallery+2'),jdecode(''),'/23212.html','true',[],'',''],
	['PAGE','1794',jdecode('Contact'),jdecode(''),'/1794.html','true',[],'',''],
	['PAGE','8901',jdecode('Interesting+Articles'),jdecode(''),'/8901.html','true',[],'',''],
	['PAGE','41815',jdecode('Breathe+'),jdecode(''),'/41815.html','true',[],'','']];
var siteelementCount=9;
theSitetree.topTemplateName='Hobby1';
theSitetree.paletteFamily='FFFFF1';
theSitetree.keyvisualId='10184';
theSitetree.keyvisualName='kv_10184.jpg';
theSitetree.fontsetId='21085';
theSitetree.graphicsetId='13177';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Hobby1',
				paletteFamily: 	'FFFFF1',
				keyvisualId: 	'10184',
				keyvisualName: 	'kv_10184.jpg',
				fontsetId: 		'21085',
				graphicsetId: 	'13177',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1701',
internalId:  '',
customField: '20091221-061401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41815',
internalId:  '',
customField: '20090503-184342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1773',
internalId:  '',
customField: '20090503-173237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1794',
internalId:  '',
customField: '20090411-111951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27012',
internalId:  '',
customField: '20100115-065544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8901',
internalId:  '',
customField: '20090621-175352'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7701',
internalId:  '',
customField: '20090628-085532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20090916-195916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23212',
internalId:  '',
customField: '20081007-212347'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0IN2QWP';
var companyName   = 'Yoga+for+Me';
var htmlTitle	  = '';
var metaKeywords  = 'hare+om%2Creiki%2C++integral+yoga%2C+yoga%2C+therapy%2C+yoga+for+the+special+child%2C+and+sonia+sumar%2C+occupational+therapy%2C+children+and+yoga%2C+autism%2C+add%2C+adhd%2C+sensory+integration%2C++sensory+processing%2C+tara+picariello%2C+new+jersey%2C+sensory+dysfunction%2C+special+needs+children%2C+families%2Cfitness%2C+exercise%2Chealth%2Ctherapeutic+listening%3B+listening%3B+the+listening+program%3B+cranford+nj%2C+clark+nj%2C+westfield%2C+nj+mountainside%2C+nj%2C+garwood%2C+nj%2C+short+hills%2C+nj+%2C+BLOG%2C+blog%2C+add+comments+to+yoga+your+child%2C+special+needs%2C+if+you+cant+breathe+you+cant+function%2C+Mary+Massery%2C+CranioSacral+Therapy%2C+Upledger+Institute%3B+stroke%2C+cva%3B+arthritis%2C+adults%2C+family%2C+back+pain%2C+motor+vehicle+accident%3B+tbi%3B+birthday+parties%2C+anxiety%2C+high+blood+pressure%2C+diabetis%3B+obesity%2C+learning+disability%2C+aches+and+pains%2C+cerebral+palsy%3B+development+disability%2C+eating+disorder%2C+panic+attacks%2C+breathing%2C+stress+management%3B+copying+skills+social+skills+group+omshanti+om+shanti%2C+birthday+parties%2C+party%2C+adult%2C+teenage%2C+children%2C+senior%2C+relaxing%2C+stretching%2C+health%2C+athlethes%2C+lifestyle%2C+calm%2C+peace%2C+social+skills%2C+om+shanti+om%2C+weighted+blankets%2C+weighted+sandbags%2C+sale%2C+yoga+products%2C+visual+vestibular%2C+improve+reading+and+adhd%2C+yoga+store%2C+shirts%2C+sandbags%2C+weighted+blankets%2C+yoga+sandbags%2C+autism+speaks%2C+autism+speaks+annual+walk%2C+shopping%2C+five+below%2C+fundraising+event%2C+donate%2C+sale+items%2C+kitty+wilken%2C+heart+of+nature%2C+photography%2C+nature+inspired+art+work%2C+etsy%2C+sensory+ideas%2C+sensory+items%2C+shop%2C+store%2C+yoga+store%2C+debrah+dickson%2C+anne-buckley+reen%2C+visual+vestibular%2C+auditory+processing%2C+brain+gym%2C+moving+therapy%2C+neurology%2C+Dr.+Alan+B.+Gertner%2C+audiology%2C++dr+vincent+vicci%2C+unique+christmas+ideas%2C+love+me%2C+swag+bucks%2C+free+prizes%2C+gabba%2C+neurotransmitter';
var metaContents  = 'Yoga+in+New+Jersey.+Reiki+Yoga+for+children+and+adults+of+all+ages.++Yoga+for+children+with+many+special+needs+and+disabilities.+Yoga+by+Tara+Picariello+an+Occupational+Therapist+and+Certified+Yoga+Instructor.++Yoga+from+Integral+Yoga+Institute+and+Sonia+Sumar.+Yoga+Products.+Unique+Yoga+Products%2C+Yoga+Shop%2C+Yoga+can+be+used+as+a+form+of+therapy+to+aid+in+the+healing+of+many+conditions%2C+including+but+not+limited+too%3AArthritis%2CStroke%2CHigh+Blood+Pressure%2CDiabetes%2CCancer%2CGeneral+Aches+and+Annoying+Pains.+For+Infants+and+Children+with+all+levels+of%3AADD%2FADHDAnxiety+DisorderAutismCancerCerebral+PalsyDown+SyndromeDevelopmental+DelaysLearning+DisabilitiesObesitySensory+Processing+DisorderAnd+Much+More%21Now+offering+a+Store+to+buy+unique+yoga+products.+Anee+Buckley+Reen%2C++Debrah+Dickson.+Dr.+Vincent+Vicci.+Articles+natural+Solutions+magazine+brain+gym+brain+moving+moving+therapy+Jean+Aryes%2C+christmas+gifts%2C+unique%2C+swag+bucks%2C+free+prizes%2C+Cheri+Clampett%2C+arturo+peal%2C+theapeutic+yoga%2C+therapeutic+yoga+center%2C+California%2C+cranioSacral+THerapy';
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();
};
