/* [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','401',jdecode('HOME'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','452',jdecode('CONTACT+US'),jdecode(''),'/452.html','true',[],'',''],
	['PAGE','473',jdecode('ABOUT+US'),jdecode(''),'/473.html','true',[],'',''],
	['PAGE','515',jdecode('HOME+LISTINGS'),jdecode(''),'/515.html','true',[],'',''],
	['PAGE','536',jdecode('HOME+SEARCH'),jdecode(''),'/536.html','true',[],'',''],
	['PAGE','557',jdecode('BUYER+TIPS'),jdecode(''),'/557.html','true',[],'',''],
	['PAGE','578',jdecode('SELLER+TIPS'),jdecode(''),'/578.html','true',[],'',''],
	['PAGE','494',jdecode('SHORTSALE+TIPS'),jdecode(''),'/494.html','true',[],'',''],
	['PAGE','16301',jdecode('Map'),jdecode(''),'/16301.html','true',[],'','']];
var siteelementCount=9;
theSitetree.topTemplateName='Holz';
theSitetree.paletteFamily='FF7112';
theSitetree.keyvisualId='8819';
theSitetree.keyvisualName='KV_05.swf';
theSitetree.fontsetId='17181';
theSitetree.graphicsetId='12654';
theSitetree.contentColor='E4A180';
theSitetree.contentBGColor='262626';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Holz',
				paletteFamily: 	'FF7112',
				keyvisualId: 	'8819',
				keyvisualName: 	'KV_05.swf',
				fontsetId: 		'17181',
				graphicsetId: 	'12654',
				contentColor: 	'E4A180',
				contentBGColor: '262626',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'FF6600',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-628443']={
webappId:    '1501',
documentId:  '401',
internalId:  '628443',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-1192']={
webappId:    '7008',
documentId:  '452',
internalId:  '1192',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-1193']={
webappId:    '7008',
documentId:  '473',
internalId:  '1193',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-1194']={
webappId:    '7008',
documentId:  '557',
internalId:  '1194',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-1195']={
webappId:    '7008',
documentId:  '578',
internalId:  '1195',
customField: 'language:en;country:US;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-1196']={
webappId:    '7008',
documentId:  '515',
internalId:  '1196',
customField: 'language:en;country:US;'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '16301',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['7008']=webappMappings['7008-1197']={
webappId:    '7008',
documentId:  '494',
internalId:  '1197',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20110713-004444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20110712-225056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20110712-230005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20110713-012552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20110713-015611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20090627-014456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20090627-014054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20090627-013938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16301',
internalId:  '',
customField: '20110713-010048'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INX2KJ';
var companyName   = 'WilliamAndCarmen.com';
var htmlTitle	  = 'Remax+Bank+Owned+Division%2C+Foreclosure%2C+Shortsale%2C+Pre-foreclosure%2C+Bank+Owned%2C+Asset+Management%2C+Valuation+Services%2C+Asset+Disposition%2C+Loan+Modification%2C+Mortgages%2C+Champions+Gate%2C+Celebration%2C+Reunion%2C+Central+Florida%2C+Orange%2C+Osceola%2C+Polk%2C+County%2C+Re';
var metaKeywords  = 'Remax+Bank+Owned+Division%2C+Asset+Management%2C+Asset%2C+Foreclosure%2C+Celebration+Florida%2C+REO%2C+Real+Estate+Owned%2C+Shortsales%2C+Corporate+Owned%2C+Bank+Owned+Division%2C+Home+Auction%2C+Bank+Owned%2C+Shortsale%2C+Short+Sale%2C+BPO%2C+Broker+Price+Opinion%2C+Loan+Modification%2C+vacation+homes%2C+Champions+Gate%2C+Orlando%2C+Kissimmee%2C+Davenport%2C+Central+Florida%2C+Real+Estate%2C+Realtors%2C+For+Sale%2C+Houses%2C+Homes%2C+Estate+Homes%2C+builder%2C+new+construction%2C+condo%2C+commercial%2C+townhouse%2C+townhome%2C+properties%2C++Residential%2C++St.+Cloud%2C+Pepper+Mill%2C+Whisper+Lakes%2C+Hunters+Creek%2C+Ginger+Mill%2C+Mill+Run%2C+oak+hollow%2C+oak+run%2C+mill+slough%2C+theme+parks%2C+attractions%2C+Universal%2C+Disney%2C+Sea+World%2C+Deer+Field%2C+Deer+Run%2C+Falcon+Trace%2C+Eagle+Trace%2C+Lender%2C+income+property%2C+investment+property%2C+mortgage%2C+search%2C+sales%2C+Poinciana%2C+Lake+Toho%2C+Chain+of+Lakes%2C+Single+family+home%2C+multiple+family++home%2C+duplex%2C+Windermere%2C+Dr.+Phillips%2C+Metro+West%2C+hipotecas%2C+bienes+raices%2C+casas%2C+venta%2C+propiedad%2C+propiedades%2C+casa%2C+florida%2C+central%2C+compra%2C+condominio%2C+comercial%2C+comunidad%2C+amenities%2C+pre+foreclosure%2CPre-foreclosure%2C+bankowned%2C+bank%2C+lender%2C+harmony%2C+harbor%2C+water+front%2C+acreage%2C+acre%2C+sunshine%2C+state%2C+a%2C++is%2C+the%2C+at%2C+in%2C+for%2C+by%2C+owner%2C+buyer%2C+seller%2C+Asset+disposition%2C+Reunion%2C+Celebration';
var metaContents  = 'Remax+Bank+Owned+Division%2C+Asset+Management%2C+Asset%2C+Foreclosure%2C+Celebration+Florida%2C+REO%2C+Real+Estate+Owned%2C+Shortsales%2C+Corporate+Owned%2C+Bank+Owned+Division%2C+Home+Auction%2C+Bank+Owned%2C+Shortsale%2C+Short+Sale%2C+BPO%2C+Broker+Price+Opinion%2C+Loan+Modification%2C+vacation+homes%2C+Champions+Gate%2C+Orlando%2C+Kissimmee%2C+Davenport%2C+Central+Florida%2C+Real+Estate%2C+Realtors%2C+For+Sale%2C+Houses%2C+Homes%2C+Estate+Homes%2C+builder%2C+new+construction%2C+condo%2C+commercial%2C+townhouse%2C+townhome%2C+properties%2C++Residential%2C++St.+Cloud%2C+Pepper+Mill%2C+Whisper+Lakes%2C+Hunters+Creek%2C+Ginger+Mill%2C+Mill+Run%2C+oak+hollow%2C+oak+run%2C+mill+slough%2C+theme+parks%2C+attractions%2C+Universal%2C+Disney%2C+Sea+World%2C+Deer+Field%2C+Deer+Run%2C+Falcon+Trace%2C+Eagle+Trace%2C+Lender%2C+income+property%2C+investment+property%2C+mortgage%2C+search%2C+sales%2C+Poinciana%2C+Lake+Toho%2C+Chain+of+Lakes%2C+Single+family+home%2C+multiple+family++home%2C+duplex%2C+Windermere%2C+Dr.+Phillips%2C+Metro+West%2C+hipotecas%2C+bienes+raices%2C+casas%2C+venta%2C+propiedad%2C+propiedades%2C+casa%2C+florida%2C+central%2C+compra%2C+condominio%2C+comercial%2C+comunidad%2C+amenities%2C+pre+foreclosure%2CPre-foreclosure%2C+bankowned%2C+bank%2C+lender%2C+harmony%2C+harbor%2C+water+front%2C+acreage%2C+acre%2C+sunshine%2C+state%2C+a%2C++is%2C+the%2C+at%2C+in%2C+for%2C+by%2C+owner%2C+buyer%2C+seller%2C+Asset+disposition%2C+Reunion%2C+Celebration';
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();
};

