/* [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','301',jdecode('Home'),jdecode(''),'/301.html','true',[],'',''],
	['PAGE','55101',jdecode('Attorney+Profile'),jdecode(''),'/55101.html','true',[],'',''],
	['PAGE','352',jdecode('Areas+of+Practice'),jdecode(''),'/352.html','true',[],'',''],
	['PAGE','394',jdecode('Criminal+Law'),jdecode(''),'/394/index.html','true',[ 
		['PAGE','93315',jdecode('Assault+Laws'),jdecode(''),'/394/93315.html','true',[],'',''],
		['PAGE','93915',jdecode('Burglary+Laws'),jdecode(''),'/394/93915.html','true',[],'',''],
		['PAGE','95415',jdecode('Drug+Laws+'),jdecode(''),'/394/95415.html','true',[],'',''],
		['PAGE','94615',jdecode('Forgery+Laws'),jdecode(''),'/394/94615.html','true',[],'',''],
		['PAGE','87801',jdecode('Police+Tactics'),jdecode(''),'/394/87801.html','true',[],'',''],
		['PAGE','89015',jdecode('Gun+Possession'),jdecode(''),'/394/89015.html','true',[],'','']
	],'',''],
	['PAGE','415',jdecode('DUI%2FDWI'),jdecode(''),'/415/index.html','true',[ 
		['PAGE','57701',jdecode('DUI+FAQs'),jdecode(''),'/415/57701.html','true',[],'',''],
		['PAGE','58701',jdecode('DUI%2FDWI%3A+Penalties'),jdecode(''),'/415/58701.html','true',[],'',''],
		['PAGE','91715',jdecode('License+Suspension'),jdecode(''),'/415/91715.html','true',[],'',''],
		['PAGE','92615',jdecode('B+-+Card+License+'),jdecode(''),'/415/92615.html','true',[],'','']
	],'',''],
	['PAGE','65101',jdecode('Criminal+Expungement'),jdecode(''),'/65101.html','true',[],'',''],
	['PAGE','373',jdecode('Family+Law'),jdecode(''),'/373.html','true',[],'',''],
	['PAGE','99315',jdecode('Family+Legal+Fees'),jdecode(''),'/99315.html','true',[],'',''],
	['PAGE','99515',jdecode('Family+Law+FAQs'),jdecode(''),'/99515.html','true',[],'',''],
	['PAGE','62901',jdecode('Divorce+'),jdecode(''),'/62901/index.html','true',[ 
		['PAGE','96815',jdecode('Uncontested+Divorce'),jdecode(''),'/62901/96815.html','true',[],'',''],
		['PAGE','96836',jdecode('Property+Division'),jdecode(''),'/62901/96836.html','true',[],'',''],
		['PAGE','96857',jdecode('Prenuptial+Agreement'),jdecode(''),'/62901/96857.html','true',[],'',''],
		['PAGE','96878',jdecode('Annulment'),jdecode(''),'/62901/96878.html','true',[],'',''],
		['PAGE','96899',jdecode('Legal+Separation'),jdecode(''),'/62901/96899.html','true',[],'',''],
		['PAGE','96920',jdecode('Maintenance'),jdecode(''),'/62901/96920.html','true',[],'','']
	],'',''],
	['PAGE','84001',jdecode('Custody'),jdecode(''),'/84001/index.html','true',[ 
		['PAGE','98115',jdecode('Child+Support'),jdecode(''),'/84001/98115.html','true',[],'',''],
		['PAGE','98136',jdecode('Parenting+Time'),jdecode(''),'/84001/98136.html','true',[],'',''],
		['PAGE','98157',jdecode('Paternity'),jdecode(''),'/84001/98157.html','true',[],'',''],
		['PAGE','98178',jdecode('Third+Party+Custody'),jdecode(''),'/84001/98178.html','true',[],'',''],
		['PAGE','98199',jdecode('Child+Protection'),jdecode(''),'/84001/98199.html','true',[],'',''],
		['PAGE','98220',jdecode('Termination+of+Rights'),jdecode(''),'/84001/98220.html','true',[],'','']
	],'',''],
	['PAGE','61601',jdecode('Mediation'),jdecode(''),'/61601/index.html','true',[ 
		['PAGE','99336',jdecode('Early+Neutral+Evaluation'),jdecode(''),'/61601/99336.html','true',[],'',''],
		['PAGE','99357',jdecode('Collaborative+Divorce'),jdecode(''),'/61601/99357.html','true',[],'','']
	],'',''],
	['PAGE','53301',jdecode('Order+for+Protection'),jdecode(''),'/53301/index.html','true',[ 
		['PAGE','99536',jdecode('Harassment+Restraining+Order'),jdecode(''),'/53301/99536.html','true',[],'','']
	],'',''],
	['PAGE','96941',jdecode('Adoption'),jdecode(''),'/96941/index.html','true',[ 
		['PAGE','99557',jdecode('Step-Parent+Adoption+'),jdecode(''),'/96941/99557.html','true',[],'','']
	],'',''],
	['PAGE','96962',jdecode('Name+Change+and+Other+Issues'),jdecode(''),'/96962/index.html','true',[ 
		['PAGE','99578',jdecode('Attorney%26%23x27%3Bs+Fees'),jdecode(''),'/96962/99578.html','true',[],'',''],
		['PAGE','99599',jdecode('Contempt+of+Court'),jdecode(''),'/96962/99599.html','true',[],'',''],
		['PAGE','99620',jdecode('Grandparent+Rights'),jdecode(''),'/96962/99620.html','true',[],'',''],
		['PAGE','99641',jdecode('Out+of+State+Move'),jdecode(''),'/96962/99641.html','true',[],'','']
	],'',''],
	['PAGE','66801',jdecode('Wills+and+Trusts'),jdecode(''),'/66801/index.html','true',[ 
		['PAGE','99662',jdecode('Healthcare+Directive'),jdecode(''),'/66801/99662.html','true',[],'',''],
		['PAGE','99683',jdecode('Power+of+Attorney'),jdecode(''),'/66801/99683.html','true',[],'','']
	],'',''],
	['PAGE','53501',jdecode('Contact+Us'),jdecode(''),'/53501.html','true',[],'',''],
	['PAGE','52701',jdecode('Weblog'),jdecode(''),'/52701.html','true',[],'','']];
var siteelementCount=50;
theSitetree.topTemplateName='Rectangle';
theSitetree.paletteFamily='FFFFFF';
theSitetree.keyvisualId='2521';
theSitetree.keyvisualName='recht.jpg';
theSitetree.fontsetId='454';
theSitetree.graphicsetId='506';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Rectangle',
				paletteFamily: 	'FFFFFF',
				keyvisualId: 	'2521',
				keyvisualName: 	'recht.jpg',
				fontsetId: 		'454',
				graphicsetId: 	'506',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				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['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '53501',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55101',
internalId:  '',
customField: '20101201-202013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96815',
internalId:  '',
customField: '20101128-205936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20101201-203328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '352',
internalId:  '',
customField: '20101201-201952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '373',
internalId:  '',
customField: '20101128-204855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '394',
internalId:  '',
customField: '20101201-202056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '415',
internalId:  '',
customField: '20101201-194408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53301',
internalId:  '',
customField: '20101128-215340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53501',
internalId:  '',
customField: '20101201-204152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52701',
internalId:  '',
customField: '20101201-204131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57701',
internalId:  '',
customField: '20101201-195343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58701',
internalId:  '',
customField: '20101201-195707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87801',
internalId:  '',
customField: '20091117-151455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89015',
internalId:  '',
customField: '20100522-092904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84001',
internalId:  '',
customField: '20101128-200839'
};
webappMappings['7050']=webappMappings['7050-5']={
webappId:    '7050',
documentId:  '52701',
internalId:  '5',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93315',
internalId:  '',
customField: '20101201-193040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66801',
internalId:  '',
customField: '20101128-224235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65101',
internalId:  '',
customField: '20101201-200215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62901',
internalId:  '',
customField: '20101201-184827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61601',
internalId:  '',
customField: '20101128-213025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91715',
internalId:  '',
customField: '20101201-195845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92615',
internalId:  '',
customField: '20101201-195912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93915',
internalId:  '',
customField: '20101201-193223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94615',
internalId:  '',
customField: '20101201-194339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95415',
internalId:  '',
customField: '20101201-194056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96836',
internalId:  '',
customField: '20101201-190109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96857',
internalId:  '',
customField: '20101201-185520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96878',
internalId:  '',
customField: '20101128-181359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96899',
internalId:  '',
customField: '20101128-181855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96920',
internalId:  '',
customField: '20101128-183358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96941',
internalId:  '',
customField: '20101128-221046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96962',
internalId:  '',
customField: '20101201-190649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98115',
internalId:  '',
customField: '20101128-194011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98136',
internalId:  '',
customField: '20101128-192847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98157',
internalId:  '',
customField: '20101128-193404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98178',
internalId:  '',
customField: '20101128-195440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98199',
internalId:  '',
customField: '20101128-194942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98220',
internalId:  '',
customField: '20101128-200854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99315',
internalId:  '',
customField: '20101201-204112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99515',
internalId:  '',
customField: '20101128-210939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99336',
internalId:  '',
customField: '20101128-213754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99357',
internalId:  '',
customField: '20101128-214057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99536',
internalId:  '',
customField: '20101128-215806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99557',
internalId:  '',
customField: '20101128-221416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99578',
internalId:  '',
customField: '20101201-191140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99599',
internalId:  '',
customField: '20101201-191513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99620',
internalId:  '',
customField: '20101201-192041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99641',
internalId:  '',
customField: '20101201-192452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99662',
internalId:  '',
customField: '20101128-224711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99683',
internalId:  '',
customField: '20101128-225237'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0INXZXD';
var companyName   = 'DILAVERI+LAW+FIRM+507.206.6020';
var htmlTitle	  = 'Rochester+MN+Lawyers+and+Attorneys+%7C+Minnesota+Criminal+Defense+%7C+Family+Law+%7C+DUI+';
var metaKeywords  = 'family+attorney%2C+lawyer%2C+criminal+defense%2C+law+firm%2C+rochester+mn%2C+minnesota%2C+dilaveri%2C+dui';
var metaContents  = 'Dilaveri+Law+provides+DUI+and+criminal+defense+lawyers+and+attorneys+in+Rochester+MN%2C+and+legal+services+related+to+family+law%2C+divorce+and+expungement';
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();
};

