/* [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 theSitetree=[ 
	['PAGE','13',jdecode('Home'),jdecode(''),'/13.html','true',[],''],
	['PAGE','1298',jdecode('About+Jamie'),jdecode(''),'/1298.html','true',[],''],
	['PAGE','1307',jdecode('Resume'),jdecode(''),'/1307.html','true',[],''],
	['PAGE','12001',jdecode('Work+Product'),jdecode(''),'/12001.html','true',[],''],
	['PAGE','1286',jdecode('Photo+Gallery'),jdecode(''),'/1286.html','true',[],''],
	['PAGE','7706',jdecode('Guestbook'),jdecode(''),'/7706/index.html','false',[ 
		['PAGE','7701',jdecode('Read+Guestbook'),jdecode(''),'/7706/7701.html','false',[],'']
	],''],
	['PAGE','7801',jdecode('Journal'),jdecode(''),'/7801.html','true',[],''],
	['PAGE','13301',jdecode('googlehostedservice.html'),jdecode(''),'/13301.html','false',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Money';
theSitetree.paletteFamily='144240';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='149';
theSitetree.graphicsetId='164';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Money',
				paletteFamily: 	'144240',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'149',
				graphicsetId: 	'164',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'144240',
				b_color: 		'0D111D',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-5890fae5ac6c230072f265efee94ab35']={
webappId:    '7060',
documentId:  '1286',
internalId:  '5890fae5ac6c230072f265efee94ab35',
customField: 'language:en;country:US;'
};
webappMappings['1002']=webappMappings['1002-7706avec10in2a9h']={
webappId:    '1002',
documentId:  '7706',
internalId:  '7706avec10in2a9h',
customField: 'icq=false'
};
webappMappings['7050']=webappMappings['7050-1832']={
webappId:    '7050',
documentId:  '7801',
internalId:  '1832',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13',
internalId:  '',
customField: '20090508-164505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1298',
internalId:  '',
customField: '20090508-142451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1307',
internalId:  '',
customField: '20090508-150044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1286',
internalId:  '',
customField: '20090508-143956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13301',
internalId:  '',
customField: '20090801-221437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12001',
internalId:  '',
customField: '20090508-162855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7706',
internalId:  '',
customField: '20070601-124726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7701',
internalId:  '',
customField: '20070601-124726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7801',
internalId:  '',
customField: '20090508-133518'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN2A9H';
var companyName   = 'Jamie+T.+Hall';
var htmlTitle	  = 'Jamie+T.+Hall';
var metaKeywords  = 'Jamie+Hall%2C+Land+Use%2C+Jamie+T.+Hall%2C+Jamie+Thomas+Hall%2C+San+Angelo%2C+University+of+Texas%2C+planning%2C+zoning%2C+tower%2C+wireless%2C+attorney%2C+Channel+Law+Group';
var metaContents  = 'Jamie+T.+Hall+is+a+partner+of+Channel+Law+Group%2C+LLP+and+works+in+the+area+of+communications+law%2C+with+a+special+focus+in+land+use%2C+municipal+and+regulatory+affairs.+Jamie+has+prepared+and+defended+numerous+applications+for+land+use+permits+in+California+and+has+worked+closely+with+wireless+carriers%2C+tower+companies+and+Distributed+Antenna+System+%28%E2%80%9CDAS%E2%80%9D%29+providers+to+meet+their+deployment+objectives.+In+this+capacity%2C+Jamie+has+navigated+through+all+stages+of+the+land+use+approval+process+and+has+appeared+before+hearing+officers%2C+planning+commissions+and+city+councils.+In+the+regulatory+arena%2C+Jamie+has+processed+applications+for+utility+certifications+in+various+state+public+utility+commissions.+Jamie+also+works+in+the+firm%E2%80%99s+litigation+section%2C+drafting+court+filings%2C+defending+and+taking+depositions%2C+and+conducting+discovery.Before+starting+at+Channel+Law+Group%2C+Jamie+interned+at+the+Federal+Communications+Commission+in+2002+and+the+Texas+Association+of+Broadcasters+%28%E2%80%9CTAB%E2%80%9D%29+in+2003.+While+at+TAB%2C+Jamie+conducted+a+nationwide+survey+on+behalf+of+a+Media+Security+and+Reliability+Council+subcommittee+regarding+the+Emergency+Alert+System.+Jamie+was+born+and+raised+in+West+Texas.+He+attended+The+University+of+Texas+at+Austin+and+graduated+with+Honors+with+Bachelordegrees+in+both+Journalism+and+History+in+2001.+In+December+2004%2C+Jamie+earned+his+J.D.+from+The+University+of+Texas+School+of+Law+and+Master+of+Public+Affairs+%28M.P.Aff.%29+from+the+Lyndon+Baines+Johnson+School+of+Public+Affairs+at+The+University+of+Texas.+Jamie+is+admitted+to+practice+law+in+California+and+Texas.';
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();
};
