/* [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','2201',jdecode('Home'),jdecode(''),'/2201.html','true',[],''],
	['PAGE','2252',jdecode('FOR+SALE'),jdecode(''),'/2252.html','true',[],''],
	['PAGE','4701',jdecode('WANTED'),jdecode(''),'/4701.html','true',[],''],
	['PAGE','45301',jdecode('1998+Geoprobe+GS1000+-+ESN+South'),jdecode(''),'/45301.html','false',[],''],
	['PAGE','45322',jdecode('2001+Geoprobe+GS2000+-+ESN+South'),jdecode(''),'/45322.html','false',[],''],
	['PAGE','22601',jdecode('2008+Geoprobe+Model+7720DT'),jdecode(''),'/22601.html','false',[],''],
	['PAGE','19201',jdecode('2007+Geoprobe+Model+7720DT'),jdecode(''),'/19201.html','false',[],''],
	['PAGE','30201',jdecode('2006+54LT++Site+LLC'),jdecode(''),'/30201.html','false',[],''],
	['PAGE','40601',jdecode('2006+Geoprobe+Model+540MT'),jdecode(''),'/40601.html','false',[],''],
	['PAGE','42701',jdecode('2006+Geoprobe+DP800+Injection+Pump+Atlantis+Drilling'),jdecode(''),'/42701.html','false',[],''],
	['PAGE','42801',jdecode('2006+Geoprobe+Model+5400+Z6483P54R'),jdecode(''),'/42801.html','false',[],''],
	['PAGE','44301',jdecode('2004+Geoprobe+Model+6600PC111+NE+Geotech'),jdecode(''),'/44301.html','false',[],''],
	['PAGE','39301',jdecode('2004+Geoprobe+Model+5410+w%2FFord+350-+Z4155P5410'),jdecode(''),'/39301.html','false',[],''],
	['PAGE','47201',jdecode('2004+Geoprobe+5410+PC100+Mark+Klessens'),jdecode(''),'/47201.html','false',[],''],
	['PAGE','42301',jdecode('2003+Geoprobe+Model+5400+%28Pat+Wiet%29+'),jdecode(''),'/42301.html','false',[],''],
	['PAGE','48401',jdecode('2003+Geoprobe+Model+6610DT+Z3032T6610'),jdecode(''),'/48401.html','false',[],''],
	['PAGE','32401',jdecode('2001+Geoprobe+5410+%28121%2C897%29'),jdecode(''),'/32401.html','false',[],''],
	['PAGE','32422',jdecode('2001+Geoprobe+Model+5410+%28229%2C102%29'),jdecode(''),'/32422.html','false',[],''],
	['PAGE','45343',jdecode('2000+Strataprobe+-+ESN+South'),jdecode(''),'/45343.html','false',[],''],
	['PAGE','10301',jdecode('S2C2+5410'),jdecode(''),'/10301.html','false',[],''],
	['PAGE','10322',jdecode('S2C2+540B'),jdecode(''),'/10322.html','false',[],''],
	['PAGE','20901',jdecode('1997+Geoprobe+Model+54DT'),jdecode(''),'/20901.html','false',[],''],
	['PAGE','23522',jdecode('1998+Geoprobe+Model+66DT'),jdecode(''),'/23522.html','false',[],''],
	['PAGE','11701',jdecode('1995+5400+%28Singley%29'),jdecode(''),'/11701.html','false',[],''],
	['PAGE','9001',jdecode('9478P54'),jdecode(''),'/9001.html','false',[],''],
	['PAGE','5922',jdecode('2003+Simco'),jdecode(''),'/5922.html','false',[],''],
	['PAGE','9801',jdecode('INQUIRIES'),jdecode(''),'/9801.html','true',[],''],
	['PAGE','2273',jdecode('Contact'),jdecode(''),'/2273.html','true',[],''],
	['PAGE','2294',jdecode('FAQ%26%23x27%3Bs'),jdecode(''),'/2294.html','true',[],''],
	['PAGE','41501',jdecode('2009+GS2250+-+Sold+12%2F09+to+GeoServ'),jdecode(''),'/41501.html','false',[],''],
	['PAGE','12701',jdecode('Geoprobe+7730DT+Z8778T7730+-+Sold+2%2F2010+%28ACI+Services%29'),jdecode(''),'/12701.html','false',[],''],
	['PAGE','17201',jdecode('2008+Geoprobe+Model+6600PC111+-+Sold+Aug+2009+to+Geotek+HI'),jdecode(''),'/17201.html','false',[],''],
	['PAGE','35501',jdecode('2007+Geoprobe+Model+54DT+-+Sold+12%2F09+to+company+in+CAN'),jdecode(''),'/35501.html','false',[],''],
	['PAGE','38301',jdecode('2006+Geoprobe+Model+6620DT+Z6401T6620+-+Sold+Dec+2009'),jdecode(''),'/38301.html','false',[],''],
	['PAGE','17222',jdecode('2006+Ford+F350+Dually+-+Sold+Aug+2009+to+Thein+Well'),jdecode(''),'/17222.html','false',[],''],
	['PAGE','28101',jdecode('2006+6620DT+Z6498T6620+-+Sold+Oct+2009'),jdecode(''),'/28101.html','false',[],''],
	['PAGE','5943',jdecode('2006+Simco+-+Sold+Oct+2009'),jdecode(''),'/5943.html','false',[],''],
	['PAGE','31101',jdecode('Geoprobe+Model+7730DT+%282006%29+Schulze+Drilling+-+Sold+to+Stock+Drilling+10%2F09'),jdecode(''),'/31101.html','false',[],''],
	['PAGE','26101',jdecode('2004+6600+-+Sold+Sept+2009'),jdecode(''),'/26101.html','false',[],''],
	['PAGE','18301',jdecode('2003+Geoprobe+54TR+-+Sold+10%2F2009'),jdecode(''),'/18301.html','false',[],''],
	['PAGE','23501',jdecode('2000+Geoprobe+Model+6600+-+Sold+Aug+2009'),jdecode(''),'/23501.html','false',[],''],
	['PAGE','5901',jdecode('1997+Simco+-+Sold+1%2F2010'),jdecode(''),'/5901.html','false',[],''],
	['PAGE','26122',jdecode('1996+5400+-+Sold+Aug+2009'),jdecode(''),'/26122.html','false',[],''],
	['PAGE','28122',jdecode('1995+5400+9557P54+-+Sold+12%2F09+to+Envr+Priority'),jdecode(''),'/28122.html','false',[],'']];
var siteelementCount=44;
theSitetree.topTemplateName='Displace';
theSitetree.paletteFamily='2C2C2C';
theSitetree.keyvisualId='11075';
theSitetree.keyvisualName='kv_11075.jpg';
theSitetree.fontsetId='31958';
theSitetree.graphicsetId='13797';
theSitetree.contentColor='FCFDFD';
theSitetree.contentBGColor='2C2C2C';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Displace',
				paletteFamily: 	'2C2C2C',
				keyvisualId: 	'11075',
				keyvisualName: 	'kv_11075.jpg',
				fontsetId: 		'31958',
				graphicsetId: 	'13797',
				contentColor: 	'FCFDFD',
				contentBGColor: '2C2C2C',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2201',
internalId:  '',
customField: '20091125-144120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2294',
internalId:  '',
customField: '20090409-144355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2273',
internalId:  '',
customField: '20090420-094856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2252',
internalId:  '',
customField: '20100216-150303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28122',
internalId:  '',
customField: '20090903-135157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4701',
internalId:  '',
customField: '20090520-142803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20090409-143750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5922',
internalId:  '',
customField: '20090409-171925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5943',
internalId:  '',
customField: '20090409-173222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9001',
internalId:  '',
customField: '20090420-103849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9801',
internalId:  '',
customField: '20090421-145509'
};
webappMappings['7008']=webappMappings['7008-15730']={
webappId:    '7008',
documentId:  '9801',
internalId:  '15730',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10322',
internalId:  '',
customField: '20090421-152843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10301',
internalId:  '',
customField: '20090421-165700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11701',
internalId:  '',
customField: '20090424-144954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12701',
internalId:  '',
customField: '20091029-115856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26101',
internalId:  '',
customField: '20090729-114445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17222',
internalId:  '',
customField: '20090505-173519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17201',
internalId:  '',
customField: '20090508-134429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18301',
internalId:  '',
customField: '20090507-110559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19201',
internalId:  '',
customField: '20090507-121259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28101',
internalId:  '',
customField: '20090902-171456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20901',
internalId:  '',
customField: '20090512-124044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26122',
internalId:  '',
customField: '20090729-130233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22601',
internalId:  '',
customField: '20090514-115129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23501',
internalId:  '',
customField: '20090727-114010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23522',
internalId:  '',
customField: '20090520-142601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30201',
internalId:  '',
customField: '20090929-113853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31101',
internalId:  '',
customField: '20090929-121436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32401',
internalId:  '',
customField: '20091007-154121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32422',
internalId:  '',
customField: '20091007-154556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35501',
internalId:  '',
customField: '20091008-174519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38301',
internalId:  '',
customField: '20091120-124229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39301',
internalId:  '',
customField: '20091029-172101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40601',
internalId:  '',
customField: '20091124-105151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41501',
internalId:  '',
customField: '20091125-144723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42301',
internalId:  '',
customField: '20091203-111043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42701',
internalId:  '',
customField: '20091203-112757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42801',
internalId:  '',
customField: '20091203-113312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44301',
internalId:  '',
customField: '20091218-171904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45301',
internalId:  '',
customField: '20091223-121155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45322',
internalId:  '',
customField: '20091223-123543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45343',
internalId:  '',
customField: '20091223-124140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47201',
internalId:  '',
customField: '20100112-174908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48401',
internalId:  '',
customField: '20100216-151608'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0IN3JZM';
var companyName   = 'GEOPROBEUSED.COM';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
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();
};
