/* [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','6301',jdecode('Home'),jdecode(''), jdecode('%2F6301.html'), 'true',[],'',''],
	['PAGE','6352',jdecode('Company+Information'),jdecode(''), jdecode('%2F6352.html'), 'true',[],'',''],
	['PAGE','14101',jdecode('How+Mediation+Works'),jdecode(''), jdecode('%2F14101.html'), 'true',[],'',''],
	['PAGE','6394',jdecode('Mediators'),jdecode(''), jdecode('%2F6394%2Findex.html'), 'true',[ 
		['PAGE','9801',jdecode('Glick'),jdecode(''), jdecode('%2F6394%2F9801.html'), 'false',[],'',''],
		['PAGE','9822',jdecode('Shore'),jdecode(''), jdecode('%2F6394%2F9822.html'), 'false',[],'',''],
		['PAGE','9843',jdecode('Cannon'),jdecode(''), jdecode('%2F6394%2F9843.html'), 'false',[],'',''],
		['PAGE','9864',jdecode('Miele'),jdecode(''), jdecode('%2F6394%2F9864.html'), 'false',[],'',''],
		['PAGE','9885',jdecode('koch'),jdecode(''), jdecode('%2F6394%2F9885.html'), 'false',[],'',''],
		['PAGE','9906',jdecode('carsello'),jdecode(''), jdecode('%2F6394%2F9906.html'), 'false',[],'',''],
		['PAGE','9927',jdecode('pino'),jdecode(''), jdecode('%2F6394%2F9927.html'), 'false',[],'',''],
		['PAGE','9948',jdecode('flax'),jdecode(''), jdecode('%2F6394%2F9948.html'), 'false',[],'',''],
		['PAGE','9969',jdecode('deeb'),jdecode(''), jdecode('%2F6394%2F9969.html'), 'false',[],'',''],
		['PAGE','9990',jdecode('valdes'),jdecode(''), jdecode('%2F6394%2F9990.html'), 'false',[],'',''],
		['PAGE','10011',jdecode('friedman'),jdecode(''), jdecode('%2F6394%2F10011.html'), 'false',[],'','']
	],'',''],
	['PAGE','6373',jdecode('Areas+of+Expertise'),jdecode(''), jdecode('%2F6373.html'), 'true',[],'',''],
	['PAGE','18501',jdecode('Interpreting+Services+'),jdecode(''), jdecode('%2F18501.html'), 'true',[],'',''],
	['PAGE','6415',jdecode('Directions'),jdecode(''), jdecode('%2F6415.html'), 'true',[],'',''],
	['PAGE','8901',jdecode('Contact+Us'),jdecode(''), jdecode('%2F8901.html'), 'true',[],'',''],
	['PAGE','6457',jdecode('Links'),jdecode(''), jdecode('%2F6457.html'), 'true',[],'','']];
var siteelementCount=20;
theSitetree.topTemplateName='Deepcolor';
theSitetree.paletteFamily='5583CB';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10613';
theSitetree.graphicsetId='10469';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='154186';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'comcast',
  product: 'WSCSYSSSSLYTC245'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Deepcolor',
				paletteFamily: 	'5583CB',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10613',
				graphicsetId: 	'10469',
				contentColor: 	'000000',
				contentBGColor: '154186',
				a_color: 		'5583CB',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6301',
internalId:  '',
customField: '20120127-141639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6352',
internalId:  '',
customField: '20110830-133454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6373',
internalId:  '',
customField: '20110830-133555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6394',
internalId:  '',
customField: '20110706-145808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6415',
internalId:  '',
customField: '20110830-134318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8901',
internalId:  '',
customField: '20110706-134936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6457',
internalId:  '',
customField: '20110906-144304'
};
webappMappings['7008']=webappMappings['7008-11780']={
webappId:    '7008',
documentId:  '8901',
internalId:  '11780',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10011',
internalId:  '',
customField: '20110706-144130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9801',
internalId:  '',
customField: '20110824-131736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9822',
internalId:  '',
customField: '20110706-141430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9843',
internalId:  '',
customField: '20110706-142007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9864',
internalId:  '',
customField: '20110812-122536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9885',
internalId:  '',
customField: '20110706-142404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9906',
internalId:  '',
customField: '20110706-142500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9927',
internalId:  '',
customField: '20110706-142741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9948',
internalId:  '',
customField: '20110706-143252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9969',
internalId:  '',
customField: '20110706-143407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9990',
internalId:  '',
customField: '20120106-144959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14101',
internalId:  '',
customField: '20120120-141626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18501',
internalId:  '',
customField: '20120112-131338'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INFQ0O';
var companyName   = '++++++++++++++Center+For+Conflict+Resolution%2C+Inc.';
var htmlTitle	  = 'Center+for+Conflict+Resolution%2C+glick%2C+shore%2C+mediators%2C+mediation%2C+miami%2C';
var metaKeywords  = 'mediator%0D%0AMediator+Miami%0D%0AMiami%0D%0ASouth+Florida%0D%0AGlick%0D%0AShore%0D%0Amediation+Miami%0D%0AInterpreting';
var metaContents  = 'North+Miami.+Mediation+specialist+in+workers%27+compensation%2C+finance%2C+commerce%2C+human+resources%2C+real+estate%2C+and+personal+injury.+Mediator+biographies%2C+information+on+mediation+process...';
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();
};

