/* [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','7701',jdecode('Home'),jdecode(''), jdecode('%2F7701.html'), 'true',[],'',''],
	['PAGE','7836',jdecode('Legal+areas'),jdecode(''), jdecode('%2F7836%2Findex.html'), 'true',[ 
		['PAGE','7857',jdecode('Personal+Injury'),jdecode(''), jdecode('%2F7836%2F7857.html'), 'true',[],'',''],
		['PAGE','18401',jdecode('Motor+Vehicle+Accidents'),jdecode(''), jdecode('%2F7836%2F18401.html'), 'true',[],'',''],
		['PAGE','18601',jdecode('Wrongful+Death'),jdecode(''), jdecode('%2F7836%2F18601.html'), 'true',[],'',''],
		['PAGE','7878',jdecode('Employment'),jdecode(''), jdecode('%2F7836%2F7878.html'), 'true',[],'',''],
		['PAGE','7899',jdecode('Criminal'),jdecode(''), jdecode('%2F7836%2F7899.html'), 'true',[],'',''],
		['PAGE','7920',jdecode('Family+Law'),jdecode(''), jdecode('%2F7836%2F7920.html'), 'true',[],'',''],
		['PAGE','7941',jdecode('Other+areas+of+practice'),jdecode(''), jdecode('%2F7836%2F7941.html'), 'true',[],'','']
	],'',''],
	['PAGE','7794',jdecode('About+us'),jdecode(''), jdecode('%2F7794%2Findex.html'), 'true',[ 
		['PAGE','7752',jdecode('Our+history%2C+background'),jdecode(''), jdecode('%2F7794%2F7752.html'), 'true',[],'',''],
		['PAGE','7773',jdecode('Our+team'),jdecode(''), jdecode('%2F7794%2F7773.html'), 'true',[],'',''],
		['PAGE','7815',jdecode('How+to+find+us'),jdecode(''), jdecode('%2F7794%2F7815.html'), 'true',[],'','']
	],'',''],
	['PAGE','7983',jdecode('Interesting+links'),jdecode(''), jdecode('%2F7983.html'), 'true',[],'',''],
	['PAGE','8301',jdecode('In+the+news....'),jdecode(''), jdecode('%2F8301.html'), 'true',[],'',''],
	['PAGE','17601',jdecode('Cases+and+settlements'),jdecode(''), jdecode('%2F17601.html'), 'true',[],'',''],
	['PAGE','17622',jdecode('Contact+us'),jdecode(''), jdecode('%2F17622.html'), 'true',[],'','']];
var siteelementCount=17;
theSitetree.topTemplateName='Jakarta';
theSitetree.paletteFamily='A9A975';
theSitetree.keyvisualId='7854';
theSitetree.keyvisualName='kv_7854.jpg';
theSitetree.fontsetId='16854';
theSitetree.graphicsetId='12294';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='CCCC99';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'valueweb',
  product: 'WSCSYSSSSLYTCR7V'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'true',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Jakarta',
				paletteFamily: 	'A9A975',
				keyvisualId: 	'7854',
				keyvisualName: 	'kv_7854.jpg',
				fontsetId: 		'16854',
				graphicsetId: 	'12294',
				contentColor: 	'000000',
				contentBGColor: 'CCCC99',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'A9A975',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7701',
internalId:  '',
customField: '20100517-232126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7752',
internalId:  '',
customField: '20090703-182901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7836',
internalId:  '',
customField: '20100517-231755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7857',
internalId:  '',
customField: '20090718-005742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7878',
internalId:  '',
customField: '20090703-183029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7773',
internalId:  '',
customField: '20090703-172414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7794',
internalId:  '',
customField: '20090718-004720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7815',
internalId:  '',
customField: '20090718-005147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7899',
internalId:  '',
customField: '20091013-152957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7920',
internalId:  '',
customField: '20090718-005619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7941',
internalId:  '',
customField: '20090703-172414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18401',
internalId:  '',
customField: '20091013-152850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7983',
internalId:  '',
customField: '20100517-231746'
};
webappMappings['1501']=webappMappings['1501-5352654']={
webappId:    '1501',
documentId:  '7701',
internalId:  '5352654',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8301',
internalId:  '',
customField: '20100517-233851'
};
webappMappings['7008']=webappMappings['7008-3936']={
webappId:    '7008',
documentId:  '17622',
internalId:  '3936',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18601',
internalId:  '',
customField: '20090703-191921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17601',
internalId:  '',
customField: '20100517-235022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17622',
internalId:  '',
customField: '20090704-021621'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INLYF7';
var companyName   = 'Law+Offices+of+Robin+Remley+LLC';
var htmlTitle	  = 'Law+Offices+of+Robin+Remley+LLC%2C+Northwest+Indiana+Attorney%2C+Lawyer%2C++Personal+Injury%2C+accident+attorney%2C+accidents%2C+slip+and+fall%2C+car+accident%2C+employment+discrimination%2C+Injured%2C+Injury%2C+Accident%2C+Accidents+Attorney%2C+Accident+Lawyer%2C+Indiana+Lawyer%2C+Wr';
var metaKeywords  = 'Accident%2C+Indiana%2C+lawyer%2C+lawyer%2C+lawyer%2C+attorney%2C+attorney%2C+accident%2C+accident%2C+accident%2C+accident%2C+injured%2C+injured%2C+injured%2C+divorce%2C+divorce%2C+OWI%2C+DUI%2C++injury%2C+lawyer%2C+attorney%2C+indiana%2C+divorce%2C+family+law%2C+criminal%2C+dui%2C+owi%2C+drunk+driving%2C+crash%2C+I-65%2C+80%2F94%2C+Robin+Remley%2C+Robin+Remley%2C+accident%2C+accident%2C+lawyer%2C+indiana%2C+drinking+and+driving%2C+divorce%2C+accident%2C+injured%2C+lawyer%2C+injured%2C+lawyer%2C+munster%2C+dyer%2C+highland%2C+hammond%2C+gary%2C+merrillville%2C+crown+point%2C+schererville%2C+st.+john%2C+hobart%2C+griffith%2C+hebron%2C+valparaiso%2C+portage%2C+porter+county%2C+lake+county%2C+divorce%2C+divorce%2C+divorce%2C+divorce%2C+divorce%2C+injured%2C+injuredl%2C+injured%2C+death%2C+death%2C+death%2C+employment+discrimination%2C+Law+Offices+of+Robin+Remley+LLC%2C+Northwest+Indiana+Attorney%2C+Lawyer%2C++Personal+Injury%2C+accident+attorney%2C+accidents%2C+slip+and+fall%2C+car+accident%2C+employment+discrimination%2C+Injured%2C+Injury%2C+Accident%2C+Accidents+Attorney%2C+Accident+Lawyer%2C+Indiana+Lawyer%2C+Wrongful+Death%2C++Criminal+defense%2C+DUI%2C+family+law%2C+divorce%2C+Indiana%2C+Hammond%2C+Gary%2C+Munster%2C+Merrillville%2C+Dyer%2C+Highland%2C+Crown+Point%2C+Cook+County%2C+Lake+County%2C+Porter+County%2C+Jasper+County%2C+Laporte+County%2C+St.+John%2C+Cedar+Lake%2C+Hobart%2C+Portage%2C+Valparaiso%2C+Chesterton%2C+fmla%2C+harassment%2C+discrimination%2C+criminal%2C+drunk+driving';
var metaContents  = 'Law+Offices+of+Robin+Remley+LLC%2C+Northwest+Indiana+Attorney%2C+Lawyer%2C++Personal+Injury%2C+accident+attorney%2C+accidents%2C+slip+and+fall%2C+car+accident%2C+employment+discrimination%2C+fmla%2C+harassment%2C++Injured%2C+Injury%2C+Accident%2C+Accidents+Attorney%2C+Accident+Lawyer%2C+Indiana+Lawyer%2C+Wrongful+Death%2C++Criminal+defense%2C+DUI%2C+family+law%2C+divorce%2C+Indiana%2C+Hammond%2C+Gary%2C+Munster%2C+Merrillville%2C+Dyer%2C+Highland%2C+Crown+Point%2C+Cook+County%2C+Lake+County%2C+Porter+County%2C+Jasper+County%2C+Laporte+County%2C+St.+John%2C+Cedar+Lake%2C+Hobart%2C+Portage%2C+Valparaiso%2C+Chesterton';
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();
};

