/* [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 theSitetree=[ 
	['PAGE','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','71401',jdecode('Where+do+I+start%3F'),jdecode(''),'/71401.html','true',[],''],
	['PAGE','452',jdecode('Our+Team'),jdecode(''),'/452.html','true',[],''],
	['PAGE','56801',jdecode('SUMMER+PROGRAMS%21%21%21%21%21'),jdecode(''),'/56801.html','true',[],''],
	['PAGE','49601',jdecode('Clinic+Locations'),jdecode(''),'/49601/index.html','true',[ 
		['PAGE','53201',jdecode('Madison%2C+WI'),jdecode(''),'/49601/53201.html','true',[],''],
		['PAGE','53222',jdecode('Rockford%2C+IL'),jdecode(''),'/49601/53222.html','false',[],''],
		['PAGE','53243',jdecode('Wausau%2C+WI'),jdecode(''),'/49601/53243.html','false',[],'']
	],''],
	['PAGE','494',jdecode('Speech+Therapy'),jdecode(''),'/494.html','true',[],''],
	['PAGE','20801',jdecode('Physical+Therapy'),jdecode(''),'/20801/index.html','true',[ 
		['PAGE','9401',jdecode('Traditional+PT'),jdecode(''),'/20801/9401.html','true',[],'']
	],''],
	['PAGE','9422',jdecode('Intensive+Therapy'),jdecode(''),'/9422.html','true',[],''],
	['PAGE','536',jdecode('Occupational+Therapy'),jdecode(''),'/536/index.html','true',[ 
		['PAGE','9443',jdecode('Traditional+OT'),jdecode(''),'/536/9443.html','true',[],''],
		['PAGE','9464',jdecode('Handwriting'),jdecode(''),'/536/9464.html','true',[],'']
	],''],
	['PAGE','578',jdecode('Specialty+Therapies'),jdecode(''),'/578/index.html','true',[ 
		['PAGE','9485',jdecode('Aquatic+Therapy'),jdecode(''),'/578/9485.html','true',[],''],
		['PAGE','9506',jdecode('AIT'),jdecode(''),'/578/9506.html','false',[],''],
		['PAGE','9527',jdecode('Social+Groups'),jdecode(''),'/578/9527.html','true',[],''],
		['PAGE','51101',jdecode('CIMT'),jdecode(''),'/578/51101.html','false',[],''],
		['PAGE','37001',jdecode('Sibs+group'),jdecode(''),'/578/37001.html','true',[],''],
		['PAGE','13801',jdecode('Motor+Groups'),jdecode(''),'/578/13801.html','true',[],''],
		['PAGE','14301',jdecode('Suit+Therapy'),jdecode(''),'/578/14301.html','false',[],''],
		['PAGE','36001',jdecode('Interactive+Metronome'),jdecode(''),'/578/36001.html','true',[],''],
		['PAGE','34501',jdecode('Fast+ForWord'),jdecode(''),'/578/34501.html','true',[],'']
	],''],
	['PAGE','557',jdecode('Tutoring'),jdecode(''),'/557.html','true',[],''],
	['PAGE','49901',jdecode('Parent%2FChild+Groups'),jdecode(''),'/49901.html','true',[],''],
	['PAGE','515',jdecode('Recent+Press'),jdecode(''),'/515/index.html','false',[ 
		['PAGE','599',jdecode('Announcements'),jdecode(''),'/515/599.html','true',[],'']
	],''],
	['PAGE','33001',jdecode('Family+Support'),jdecode(''),'/33001/index.html','true',[ 
		['PAGE','58501',jdecode('Mom%26%23x27%3Bs+Night%21%21'),jdecode(''),'/33001/58501.html','true',[],'']
	],''],
	['PAGE','58001',jdecode('Contract+Services'),jdecode(''),'/58001.html','false',[],''],
	['PAGE','10001',jdecode('Contact'),jdecode(''),'/10001.html','true',[],''],
	['PAGE','37801',jdecode('BRAG+PAGE%21'),jdecode(''),'/37801.html','false',[],''],
	['PAGE','62201',jdecode('Forms'),jdecode(''),'/62201.html','true',[],'']];
var siteelementCount=35;
theSitetree.topTemplateName='Displace';
theSitetree.paletteFamily='CFCFCF';
theSitetree.keyvisualId='11076';
theSitetree.keyvisualName='kv_11076.jpg';
theSitetree.fontsetId='31958';
theSitetree.graphicsetId='13799';
theSitetree.contentColor='342500';
theSitetree.contentBGColor='CFCFCF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Displace',
				paletteFamily: 	'CFCFCF',
				keyvisualId: 	'11076',
				keyvisualName: 	'kv_11076.jpg',
				fontsetId: 		'31958',
				graphicsetId: 	'13799',
				contentColor: 	'342500',
				contentBGColor: 'CFCFCF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49601',
internalId:  '',
customField: '20100126-151315'
};
webappMappings['7008']=webappMappings['7008-685']={
webappId:    '7008',
documentId:  '10001',
internalId:  '685',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100624-230117'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20100624-232651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20100115-113617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20801',
internalId:  '',
customField: '20100126-144250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9401',
internalId:  '',
customField: '20080115-184753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9422',
internalId:  '',
customField: '20100624-230947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20100126-144900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9443',
internalId:  '',
customField: '20080115-184753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9464',
internalId:  '',
customField: '20100115-113058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20100624-231206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9485',
internalId:  '',
customField: '20090105-141757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9506',
internalId:  '',
customField: '20080630-203159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9527',
internalId:  '',
customField: '20090101-112004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13801',
internalId:  '',
customField: '20090101-112658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14301',
internalId:  '',
customField: '20100126-150520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20091012-200533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20090105-142813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '599',
internalId:  '',
customField: '20080117-132422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10001',
internalId:  '',
customField: '20090414-161420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33001',
internalId:  '',
customField: '20091012-200706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34501',
internalId:  '',
customField: '20090101-113122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36001',
internalId:  '',
customField: '20080425-190116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37001',
internalId:  '',
customField: '20090101-111927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37801',
internalId:  '',
customField: '20090203-173401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49901',
internalId:  '',
customField: '20091012-201501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51101',
internalId:  '',
customField: '20081102-184312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53201',
internalId:  '',
customField: '20090416-124126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53222',
internalId:  '',
customField: '20090110-180514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53243',
internalId:  '',
customField: '20081229-193437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56801',
internalId:  '',
customField: '20100624-231633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58001',
internalId:  '',
customField: '20090116-181531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58501',
internalId:  '',
customField: '20100510-191640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62201',
internalId:  '',
customField: '20100126-140750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71401',
internalId:  '',
customField: '20100126-152010'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INXPJN';
var companyName   = 'Communication+Innovations+Therapy+';
var htmlTitle	  = 'Communication+Innovations+Physical+Therapy++Occupational+Therapy+Speech+Therapy+Tutoring+Reading';
var metaKeywords  = 'physical+therapy+occupational+theapy+speech+therapy+autism+CP+reading+math+madison+DAN+PT+OT+Therasuit+aquatic+therapy+aspergers+pediatric+cerebral+palsy+disorders+language';
var metaContents  = 'Physical+Therapy%2C+Occupational+Therapy%2C+Speech+Therapy%2C+Auditory+Integration+Training%2C+Tutoring%2C+Fast+ForWord%2C+Aquatic+Therapy+and+more%21+Communication+Innovations+is+located+near+the+Great+Dane+in+Fitchburg.++Our+location+allows+our+patients+the+option+to+use+the+myriad+of+fun+and+services+in+the+Hatchery+Hill+complex.++Communication+Innovations+offer+a+state+of+the+art+facility+with+all+the+comforts+of+home%21%21%21';
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();
};
