/* [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','201',jdecode('Home'),jdecode(''),'/201.html','true',[],'',''],
	['PAGE','207',jdecode('About+us'),jdecode(''),'/207.html','true',[],'',''],
	['PAGE','217',jdecode('Century'),jdecode(''),'/217/index.html','true',[ 
		['PAGE','12601',jdecode('features'),jdecode(''),'/217/12601.html','true',[],'','']
	],'',''],
	['PAGE','5001',jdecode('Royal+Manor'),jdecode(''),'/5001/index.html','true',[ 
		['PAGE','12983',jdecode('features'),jdecode(''),'/5001/12983.html','true',[],'','']
	],'',''],
	['PAGE','5006',jdecode('Eastwood'),jdecode(''),'/5006/index.html','true',[ 
		['PAGE','13344',jdecode('features'),jdecode(''),'/5006/13344.html','true',[],'','']
	],'',''],
	['PAGE','5011',jdecode('West+River'),jdecode(''),'/5011/index.html','true',[ 
		['PAGE','13635',jdecode('features'),jdecode(''),'/5011/13635.html','true',[],'','']
	],'',''],
	['PAGE','5016',jdecode('Silvergate'),jdecode(''),'/5016/index.html','true',[ 
		['PAGE','13947',jdecode('features'),jdecode(''),'/5016/13947.html','true',[],'','']
	],'',''],
	['PAGE','5021',jdecode('Carroll%26%23x27%3Bs+Court'),jdecode(''),'/5021/index.html','true',[ 
		['PAGE','14275',jdecode('features'),jdecode(''),'/5021/14275.html','true',[],'',''],
		['PAGE','18216',jdecode('Heart+River'),jdecode(''),'/5021/18216.html','true',[],'',''],
		['PAGE','18211',jdecode('Playground'),jdecode(''),'/5021/18211.html','true',[],'',''],
		['PAGE','18201',jdecode('Tennis+Courts'),jdecode(''),'/5021/18201.html','true',[],'',''],
		['PAGE','18206',jdecode('Skate+Board+Park'),jdecode(''),'/5021/18206.html','true',[],'','']
	],'',''],
	['PAGE','11334',jdecode('Rental+Rates'),jdecode(''),'/11334.html','true',[],'',''],
	['PAGE','5402',jdecode('Guestbook'),jdecode(''),'/5402/index.html','true',[ 
		['PAGE','5403',jdecode('Read+Guestbook'),jdecode(''),'/5402/5403.html','false',[],'','']
	],'',''],
	['PAGE','6402',jdecode('Directions'),jdecode(''),'/6402.html','true',[],'',''],
	['PAGE','9807',jdecode('Chamber'),jdecode(''),'/9807.html','true',[],'',''],
	['PAGE','9812',jdecode('Recreation'),jdecode(''),'/9812.html','true',[],'',''],
	['PAGE','10107',jdecode('Schools'),jdecode(''),'/10107.html','true',[],'',''],
	['PAGE','11039',jdecode('Dickinson'),jdecode(''),'/11039.html','true',[],'',''],
	['PAGE','19301',jdecode('Millionaire%3F'),jdecode(''),'/19301.html','true',[],'',''],
	['PAGE','22101',jdecode('Featured+Links'),jdecode(''),'/22101.html','true',[],'','']];
var siteelementCount=28;
theSitetree.topTemplateName='Circulation';
theSitetree.paletteFamily='B1942D';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10381';
theSitetree.graphicsetId='10563';
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: 			'Circulation',
				paletteFamily: 	'B1942D',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10381',
				graphicsetId: 	'10563',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-500807']={
webappId:    '1501',
documentId:  '201',
internalId:  '500807',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-5402aen010i']={
webappId:    '1002',
documentId:  '5402',
internalId:  '5402aen010i',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '201',
internalId:  '',
customField: '20050626-060354'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '201',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '6402',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '207',
internalId:  '',
customField: '20050524-092700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217',
internalId:  '',
customField: '20050709-125854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12601',
internalId:  '',
customField: '20050524-093122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20050709-125455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12983',
internalId:  '',
customField: '20050524-093414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5006',
internalId:  '',
customField: '20050709-125533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13344',
internalId:  '',
customField: '20050524-093331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5011',
internalId:  '',
customField: '20050709-125701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13635',
internalId:  '',
customField: '20050524-093541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5016',
internalId:  '',
customField: '20050709-125800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13947',
internalId:  '',
customField: '20050524-093719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5021',
internalId:  '',
customField: '20050709-125846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14275',
internalId:  '',
customField: '20050524-094454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18216',
internalId:  '',
customField: '20050525-161239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18211',
internalId:  '',
customField: '20050526-124619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18201',
internalId:  '',
customField: '20050525-160118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18206',
internalId:  '',
customField: '20050526-124813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11334',
internalId:  '',
customField: '20110504-133413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5402',
internalId:  '',
customField: '20050519-000854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5403',
internalId:  '',
customField: '20050519-000854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6402',
internalId:  '',
customField: '20050524-094621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9807',
internalId:  '',
customField: '20050524-094700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9812',
internalId:  '',
customField: '20050519-145439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10107',
internalId:  '',
customField: '20050524-094736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11039',
internalId:  '',
customField: '20050524-094812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19301',
internalId:  '',
customField: '20050730-055037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22101',
internalId:  '',
customField: '20080228-152913'
};
var canonHostname = 'wscwrk01.ehost-services.com';
var accountId     = 'AEN010INX396';
var companyName   = 'Rent+Dickinson+-+Apartments';
var htmlTitle	  = 'Apartments%2C+Dickinson+North+Dakota%2C+ND+-+Rent+Dickinson';
var metaKeywords  = 'apartments%2C+rent%2C+renters%2C+lease%2C+dickinson%2C+housing%2C+rental%2C+apartment%2C+rentals%2C+students%2C+college%2C+university%2C+state%2C+dorm%2C+dormitory%2C+pool%2C+tennis%2C+garages%2C+bedrooms%2C+Century+Apartments%2C+Royal+Manor+apartments%2C+Eastwood+Apartments%2C+Silvergate+Townhomes%2C+West+River+Townhomes%2C+Carrolls+Mobile+Home+Court%2C+apartments+dickinson%2C+dickinson+apartments%2C+apartments+in+dickinson%2C+apartments+for+rent+in+dickinson%2C+apt%2C+apts%2C+apts+for+rent+in+dickinson%2C';
var metaContents  = 'Apartments%2C+Dickinson%2C+North+Dakota%2C+Dickinson+Apartments+for+rent.+renters+find+1%2C+2+and+3+bedroom+unfurnished+apartments+with+garages+and+swimming+pool.+See+Apartments+in+Apartments+Dickinson%2C+North+Dakota+58601.+Century+Apartments%2C+Royal+Manor+apartments+Dickinson%2C+North+Dakota%2C+Eastwood+Apartments%2C+Silvergate+Townhomes%2C+West+River+Townhomes+and+Carrolls+Mobile+Home+Court.++Fine+apartment+living+at+affordable+apartment+prices+in+Dickinson%2C+North+Dakota.+Apartments+near+Dickinson+State+University+with+Shopping+close+by.+Students+welcome+at+Rent+Dickinson+Apartments%2C+ND.+One+site+see+seven+apartment+complexes+located+in+Dickinson%2C+North+Dakota.+';
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();
};

