/* [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','2401',jdecode('Home'),jdecode(''), jdecode('%2F2401.html'), 'true',[],'',''],
	['PAGE','3964',jdecode('About+us'),jdecode(''), jdecode('%2F3964.html'), 'true',[],'',''],
	['PAGE','3901',jdecode('Properties'),jdecode(''), jdecode('%2F3901%2Findex.html'), 'true',[ 
		['PAGE','31401',jdecode('Acadia+on+the+Green+II'),jdecode(''), jdecode('%2F3901%2F31401.html'), 'true',[],'',''],
		['PAGE','5001',jdecode('Ashbury+Woods'),jdecode(''), jdecode('%2F3901%2F5001.html'), 'true',[],'',''],
		['PAGE','5022',jdecode('Brook+Forest'),jdecode(''), jdecode('%2F3901%2F5022.html'), 'true',[],'',''],
		['PAGE','5064',jdecode('Chambord'),jdecode(''), jdecode('%2F3901%2F5064.html'), 'true',[],'',''],
		['PAGE','5085',jdecode('Chestnut+Hills'),jdecode(''), jdecode('%2F3901%2F5085.html'), 'true',[],'',''],
		['PAGE','5043',jdecode('Covington+Courts'),jdecode(''), jdecode('%2F3901%2F5043.html'), 'true',[],'',''],
		['PAGE','5106',jdecode('Forest+Gate'),jdecode(''), jdecode('%2F3901%2F5106.html'), 'true',[],'',''],
		['PAGE','44401',jdecode('Ginger+Brook'),jdecode(''), jdecode('%2F3901%2F44401.html'), 'true',[],'',''],
		['PAGE','5127',jdecode('Ginger+Creek'),jdecode(''), jdecode('%2F3901%2F5127.html'), 'true',[],'',''],
		['PAGE','5148',jdecode('Graue+Mill'),jdecode(''), jdecode('%2F3901%2F5148.html'), 'true',[],'',''],
		['PAGE','5169',jdecode('Heritage+Oaks'),jdecode(''), jdecode('%2F3901%2F5169.html'), 'true',[],'',''],
		['PAGE','5190',jdecode('Hunter+Trails'),jdecode(''), jdecode('%2F3901%2F5190.html'), 'true',[],'',''],
		['PAGE','5211',jdecode('Indian+Woods'),jdecode(''), jdecode('%2F3901%2F5211.html'), 'true',[],'',''],
		['PAGE','5253',jdecode('Lake+Ridge+Club'),jdecode(''), jdecode('%2F3901%2F5253.html'), 'true',[],'',''],
		['PAGE','5274',jdecode('Madison+Club'),jdecode(''), jdecode('%2F3901%2F5274.html'), 'true',[],'',''],
		['PAGE','5295',jdecode('Maple+Grove+Condominiums'),jdecode(''), jdecode('%2F3901%2F5295.html'), 'true',[],'',''],
		['PAGE','5316',jdecode('Reserve+of+Clarendon+Hills'),jdecode(''), jdecode('%2F3901%2F5316.html'), 'true',[],'',''],
		['PAGE','31422',jdecode('Residences+of+Oak+Brook+Hills'),jdecode(''), jdecode('%2F3901%2F31422.html'), 'true',[],'',''],
		['PAGE','5337',jdecode('Rivermist'),jdecode(''), jdecode('%2F3901%2F5337.html'), 'true',[],'',''],
		['PAGE','5358',jdecode('Ruth+Lake+Woods'),jdecode(''), jdecode('%2F3901%2F5358.html'), 'true',[],'',''],
		['PAGE','5379',jdecode('Saddle+Brook'),jdecode(''), jdecode('%2F3901%2F5379.html'), 'true',[],'',''],
		['PAGE','41401',jdecode('Saddlebrook+Chase'),jdecode(''), jdecode('%2F3901%2F41401.html'), 'true',[],'',''],
		['PAGE','5400',jdecode('Sutton+Place'),jdecode(''), jdecode('%2F3901%2F5400.html'), 'true',[],'',''],
		['PAGE','5421',jdecode('Tartan+Lakes'),jdecode(''), jdecode('%2F3901%2F5421.html'), 'true',[],'',''],
		['PAGE','5442',jdecode('Tartan+Ridge'),jdecode(''), jdecode('%2F3901%2F5442.html'), 'true',[],'',''],
		['PAGE','5463',jdecode('Westchester+Club'),jdecode(''), jdecode('%2F3901%2F5463.html'), 'true',[],'',''],
		['PAGE','45901',jdecode('Woodcreek+of+Clarendon+Hills'),jdecode(''), jdecode('%2F3901%2F45901.html'), 'true',[],'',''],
		['PAGE','5484',jdecode('Woods+of+Hobson+Greene'),jdecode(''), jdecode('%2F3901%2F5484.html'), 'true',[],'',''],
		['PAGE','5505',jdecode('Woods+of+Rivermist'),jdecode(''), jdecode('%2F3901%2F5505.html'), 'true',[],'','']
	],'',''],
	['PAGE','3985',jdecode('Staff'),jdecode(''), jdecode('%2F3985.html'), 'true',[],'',''],
	['PAGE','3922',jdecode('Contact'),jdecode(''), jdecode('%2F3922.html'), 'true',[],'',''],
	['PAGE','42101',jdecode('GM1'),jdecode(''), jdecode('%2F42101.html'), 'false',[],'',''],
	['PAGE','42301',jdecode('GMHOA'),jdecode(''), jdecode('%2F42301.html'), 'false',[],'',''],
	['PAGE','42701',jdecode('GM2'),jdecode(''), jdecode('%2F42701.html'), 'false',[],'',''],
	['PAGE','42722',jdecode('GM3'),jdecode(''), jdecode('%2F42722.html'), 'false',[],'',''],
	['PAGE','42743',jdecode('GM4'),jdecode(''), jdecode('%2F42743.html'), 'false',[],'',''],
	['PAGE','42764',jdecode('GM5'),jdecode(''), jdecode('%2F42764.html'), 'false',[],'','']];
var siteelementCount=40;
theSitetree.topTemplateName='Diablo';
theSitetree.paletteFamily='379356';
theSitetree.keyvisualId='8771';
theSitetree.keyvisualName='kv_8771.jpg';
theSitetree.fontsetId='17089';
theSitetree.graphicsetId='12468';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E6E6E6';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLY0X9RC'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Diablo',
				paletteFamily: 	'379356',
				keyvisualId: 	'8771',
				keyvisualName: 	'kv_8771.jpg',
				fontsetId: 		'17089',
				graphicsetId: 	'12468',
				contentColor: 	'000000',
				contentBGColor: 'E6E6E6',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2401',
internalId:  '',
customField: '20110830-125944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3901',
internalId:  '',
customField: '20110830-130002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3922',
internalId:  '',
customField: '20110830-130027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3964',
internalId:  '',
customField: '20110830-130010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3985',
internalId:  '',
customField: '20110830-130018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41401',
internalId:  '',
customField: '20101025-165615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5505',
internalId:  '',
customField: '20090616-122651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5484',
internalId:  '',
customField: '20100819-001512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5022',
internalId:  '',
customField: '20110830-124422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5442',
internalId:  '',
customField: '20100819-001323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20100819-001732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5085',
internalId:  '',
customField: '20100818-235650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5043',
internalId:  '',
customField: '20110830-124520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5106',
internalId:  '',
customField: '20110830-124541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5127',
internalId:  '',
customField: '20110830-124629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5148',
internalId:  '',
customField: '20110830-124647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5169',
internalId:  '',
customField: '20110830-124702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5190',
internalId:  '',
customField: '20110830-124724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5211',
internalId:  '',
customField: '20110316-155743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5337',
internalId:  '',
customField: '20090616-122006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5379',
internalId:  '',
customField: '20090616-122123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5400',
internalId:  '',
customField: '20100819-000758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5421',
internalId:  '',
customField: '20100819-001148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5064',
internalId:  '',
customField: '20110830-124444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31401',
internalId:  '',
customField: '20110830-124344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5253',
internalId:  '',
customField: '20101207-155658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5274',
internalId:  '',
customField: '20090616-121755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5295',
internalId:  '',
customField: '20100719-213856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5316',
internalId:  '',
customField: '20100819-000540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5358',
internalId:  '',
customField: '20101007-162926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5463',
internalId:  '',
customField: '20100819-211430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31422',
internalId:  '',
customField: '20110316-161202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42301',
internalId:  '',
customField: '20101103-140905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42101',
internalId:  '',
customField: '20101103-140847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42701',
internalId:  '',
customField: '20101103-141101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42722',
internalId:  '',
customField: '20101103-141402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42743',
internalId:  '',
customField: '20110316-160256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42764',
internalId:  '',
customField: '20110316-160428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44401',
internalId:  '',
customField: '20110830-124614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45901',
internalId:  '',
customField: '20110316-162525'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INP30H';
var companyName   = 'Oak+and+Dale+Properties';
var htmlTitle	  = 'Oak+and+Dale';
var metaKeywords  = '%22Hinsdale%22+%22Property+Management%22+%22Homeowners%22+%22Illinois%22+%22Oak%22+%22Dale%22+%22Oak+and+Dale%22';
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();
};

