/* [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/index.html','true',[ 
		['PAGE','20407',jdecode('Property+Management'),jdecode(''),'/201/20407.html','true',[],'','']
	],'',''],
	['PAGE','33201',jdecode('Contact+Us'),jdecode(''),'/33201/index.html','true',[ 
		['PAGE','33502',jdecode('Contact+Us+%28follow+up+page%29'),jdecode(''),'/33201/33502.html','false',[],'','']
	],'',''],
	['PAGE','7206',jdecode('Features'),jdecode(''),'/7206.html','true',[],'',''],
	['PAGE','7211',jdecode('Pool'),jdecode(''),'/7211.html','true',[],'',''],
	['PAGE','14701',jdecode('Floor+Plans'),jdecode(''),'/14701/index.html','true',[ 
		['PAGE','15301',jdecode('Efficiency'),jdecode(''),'/14701/15301.html','true',[],'',''],
		['PAGE','15306',jdecode('1+bedroom'),jdecode(''),'/14701/15306.html','true',[],'',''],
		['PAGE','15311',jdecode('2+bedroom'),jdecode(''),'/14701/15311.html','true',[],'','']
	],'',''],
	['PAGE','13001',jdecode('Rental+Rate'),jdecode(''),'/13001.html','true',[],'',''],
	['PAGE','12602',jdecode('Directions'),jdecode(''),'/12602.html','true',[],'',''],
	['PAGE','18801',jdecode('Schools'),jdecode(''),'/18801.html','true',[],'',''],
	['PAGE','19462',jdecode('City'),jdecode(''),'/19462.html','true',[],'',''],
	['PAGE','25401',jdecode('Round+Rock+YMCA'),jdecode(''),'/25401.html','true',[],'',''],
	['PAGE','5502',jdecode('Photos+of+Complex'),jdecode(''),'/5502.html','true',[],'',''],
	['PAGE','6805',jdecode('Photos+of+Flowers'),jdecode(''),'/6805.html','true',[],'',''],
	['PAGE','18401',jdecode('Millionaire%3F'),jdecode(''),'/18401.html','true',[],'',''],
	['PAGE','23601',jdecode('Featured+Links'),jdecode(''),'/23601.html','true',[],'','']];
var siteelementCount=19;
theSitetree.topTemplateName='Linedup';
theSitetree.paletteFamily='4270B8';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10359';
theSitetree.graphicsetId='10505';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='4270B8';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Linedup',
				paletteFamily: 	'4270B8',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10359',
				graphicsetId: 	'10505',
				contentColor: 	'FFFFFF',
				contentBGColor: '4270B8',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-1257']={
webappId:    '7008',
documentId:  '33201',
internalId:  '1257',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-eaa4bb9f78dc056a6303c63fa9a0767a']={
webappId:    '7060',
documentId:  '5502',
internalId:  'eaa4bb9f78dc056a6303c63fa9a0767a',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-0b560697d941ecb379600eae99a73d88']={
webappId:    '7060',
documentId:  '6805',
internalId:  '0b560697d941ecb379600eae99a73d88',
customField: 'language:en;country:US;'
};
webappMappings['1501']=webappMappings['1501-472437']={
webappId:    '1501',
documentId:  '201',
internalId:  '472437',
customField: '1501'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '12602',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '201',
internalId:  '',
customField: '20080707-132541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20407',
internalId:  '',
customField: '20050922-190100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33201',
internalId:  '',
customField: '20080711-081341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33502',
internalId:  '',
customField: '20051002-072333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7206',
internalId:  '',
customField: '20080707-135141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7211',
internalId:  '',
customField: '20080707-135333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14701',
internalId:  '',
customField: '20080707-142134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15301',
internalId:  '',
customField: '20080707-141228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15306',
internalId:  '',
customField: '20080707-141245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15311',
internalId:  '',
customField: '20080707-135825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13001',
internalId:  '',
customField: '20080707-135921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12602',
internalId:  '',
customField: '20080707-140020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18801',
internalId:  '',
customField: '20080707-142531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19462',
internalId:  '',
customField: '20080707-142657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25401',
internalId:  '',
customField: '20080707-142334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5502',
internalId:  '',
customField: '20080707-141430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6805',
internalId:  '',
customField: '20080707-142842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18401',
internalId:  '',
customField: '20080707-140603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23601',
internalId:  '',
customField: '20080707-141456'
};
var canonHostname = 'wscwrk01.ehost-services.com';
var accountId     = 'AEN010INXEOU';
var companyName   = 'Bowman%27s+Walk+Apartments+-+Round+Rock%2C+TX';
var htmlTitle	  = 'Apartments+Round+Rock%2C+Texas%2C+Bowmans+Walk+Apartments%2C+TX';
var metaKeywords  = 'Apartments%2C+Round+Rock%2C+TX%2C+rent%2C+lease%2C+apartment%2C+rental%2C+1%2C+2+bedrooms%2C+pool%2C+Austin%2C+Pflugerville%2C+roommate%2C+Texas%2C+student%2C+university%2C+retirement%2C+affordable%2C+apt%2C+apts%2C+rentals%2C+apartments+round+rock%2C+round+rock+apartments%2C+apartments+in+round+rock%2C';
var metaContents  = 'Apartments+Round+Rock%2C+Texas%2C+TX%2C+Bowmans+Walk+Apartments%2C+Round+Rock%2C+TX+78664.+Efficiency%2C+1+and+2+bedroom+apartments+available.+Apartments+feature%3A+swimming+pool%2C+fireplaces%2C+patios%2Fbalconies%2C+washer%2Fdryer+hookups%2C+covered+parking%2C+apartments+convenient+to+IH-35.+Affordable+apartment+living+in+a+beautiful+setting.+Come+see+apartments+in+Round+Rock+and+save.+';
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();
};
