/* [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','5401',jdecode('Home'),jdecode(''),'/5401.html','true',[],''],
	['PAGE','36477',jdecode('What+Is+It%3F'),jdecode(''),'/36477/index.html','true',[ 
		['PAGE','37077',jdecode('High+Rise+Pack+Carry'),jdecode(''),'/36477/37077.html','true',[],''],
		['PAGE','37098',jdecode('Hose+Hoist'),jdecode(''),'/36477/37098.html','true',[],''],
		['PAGE','37119',jdecode('Forcible+Entry'),jdecode(''),'/36477/37119.html','true',[],''],
		['PAGE','37140',jdecode('Hose+Advance'),jdecode(''),'/36477/37140.html','true',[],''],
		['PAGE','37161',jdecode('Victim+Rescue'),jdecode(''),'/36477/37161.html','true',[],''],
		['PAGE','37182',jdecode('World+Records'),jdecode(''),'/36477/37182.html','true',[],'']
	],''],
	['PAGE','5494',jdecode('Team+Roster'),jdecode(''),'/5494/index.html','true',[ 
		['PAGE','37577',jdecode('Justin+Rhodes'),jdecode(''),'/5494/37577.html','true',[],''],
		['PAGE','37877',jdecode('Travis+Austin'),jdecode(''),'/5494/37877.html','true',[],''],
		['PAGE','37898',jdecode('Jason+Bobo'),jdecode(''),'/5494/37898.html','true',[],''],
		['PAGE','37919',jdecode('Phillip+Grandon'),jdecode(''),'/5494/37919.html','true',[],''],
		['PAGE','37940',jdecode('Nathan+Klatt'),jdecode(''),'/5494/37940.html','true',[],''],
		['PAGE','37982',jdecode('J.W.+Ray'),jdecode(''),'/5494/37982.html','true',[],''],
		['PAGE','38003',jdecode('Nick+Wilson'),jdecode(''),'/5494/38003.html','true',[],'']
	],''],
	['PAGE','5515',jdecode('Schedule+%2F+Results'),jdecode(''),'/5515/index.html','true',[ 
		['PAGE','57373',jdecode('Carlsbad+2009'),jdecode(''),'/5515/57373.html','true',[],''],
		['PAGE','60873',jdecode('Air+Force+Academy+2009'),jdecode(''),'/5515/60873.html','true',[],''],
		['PAGE','60894',jdecode('Altus+2009'),jdecode(''),'/5515/60894.html','true',[],''],
		['PAGE','60915',jdecode('Tyler+2009'),jdecode(''),'/5515/60915.html','true',[],''],
		['PAGE','60936',jdecode('Arlington+2009+Nationals'),jdecode(''),'/5515/60936.html','true',[],''],
		['PAGE','60957',jdecode('Las+Vegas+2009+Worlds'),jdecode(''),'/5515/60957.html','true',[],'']
	],''],
	['PAGE','5536',jdecode('News'),jdecode(''),'/5536.html','true',[],''],
	['PAGE','5557',jdecode('Sponsors'),jdecode(''),'/5557.html','true',[],''],
	['PAGE','59973',jdecode('Photo+Album'),jdecode(''),'/59973/index.html','true',[ 
		['PAGE','5578',jdecode('Carlsbad+2009'),jdecode(''),'/59973/5578.html','true',[],''],
		['PAGE','59994',jdecode('Air+Force+Academy+2009'),jdecode(''),'/59973/59994.html','true',[],''],
		['PAGE','60073',jdecode('Media'),jdecode(''),'/59973/60073.html','true',[],'']
	],''],
	['PAGE','26677',jdecode('Fan+Gear'),jdecode(''),'/26677.html','true',[],''],
	['PAGE','59473',jdecode('Forum'),jdecode(''),'/59473.html','true',[],''],
	['PAGE','33777',jdecode('Links'),jdecode(''),'/33777.html','true',[],''],
	['PAGE','33798',jdecode('Guestbook'),jdecode(''),'/33798.html','true',[],''],
	['PAGE','5599',jdecode('Contact+Us'),jdecode(''),'/5599.html','true',[],'']];
var siteelementCount=34;
theSitetree.topTemplateName='Sportfan2';
theSitetree.paletteFamily='D8D5FD';
theSitetree.keyvisualId='10139';
theSitetree.keyvisualName='kv_10139.jpg';
theSitetree.fontsetId='21088';
theSitetree.graphicsetId='13185';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Sportfan2',
				paletteFamily: 	'D8D5FD',
				keyvisualId: 	'10139',
				keyvisualName: 	'kv_10139.jpg',
				fontsetId: 		'21088',
				graphicsetId: 	'13185',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5401',
internalId:  '',
customField: '20091125-105724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57373',
internalId:  '',
customField: '20090607-102014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5557',
internalId:  '',
customField: '20090714-164841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5578',
internalId:  '',
customField: '20090720-011851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5599',
internalId:  '',
customField: '20090321-011142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5536',
internalId:  '',
customField: '20091125-103055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59473',
internalId:  '',
customField: '20090607-122252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5494',
internalId:  '',
customField: '20090805-125509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5515',
internalId:  '',
customField: '20091123-205428'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5401',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-cf59937fa77f197b22b41c6c5f2c63ce']={
webappId:    '7060',
documentId:  '5578',
internalId:  'cf59937fa77f197b22b41c6c5f2c63ce',
customField: 'language:en;country:US;'
};
webappMappings['1003']=webappMappings['1003-aendu0inefze121bb84fc3e']={
webappId:    '1003',
documentId:  '59473',
internalId:  'aendu0inefze121bb84fc3e',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26677',
internalId:  '',
customField: '20090702-175202'
};
webappMappings['1002']=webappMappings['1002-33798aendu0inefze']={
webappId:    '1002',
documentId:  '33798',
internalId:  '33798aendu0inefze',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33777',
internalId:  '',
customField: '20091112-184137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33798',
internalId:  '',
customField: '20090329-233209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36477',
internalId:  '',
customField: '20090629-145313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37577',
internalId:  '',
customField: '20090623-133141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37077',
internalId:  '',
customField: '20090720-003834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37877',
internalId:  '',
customField: '20090808-093621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37098',
internalId:  '',
customField: '20090720-002559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37119',
internalId:  '',
customField: '20090720-002714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37140',
internalId:  '',
customField: '20090720-003201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37161',
internalId:  '',
customField: '20090720-004306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37182',
internalId:  '',
customField: '20090719-232437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37898',
internalId:  '',
customField: '20090926-060653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37919',
internalId:  '',
customField: '20090926-060721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37940',
internalId:  '',
customField: '20090808-093416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37982',
internalId:  '',
customField: '20090808-093208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38003',
internalId:  '',
customField: '20091108-123014'
};
webappMappings['1501']=webappMappings['1501-17036208']={
webappId:    '1501',
documentId:  '5401',
internalId:  '17036208',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-3d1bca24083860aeefd051947647c3b2']={
webappId:    '7060',
documentId:  '59994',
internalId:  '3d1bca24083860aeefd051947647c3b2',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-f512837f2c241bf389e4125db6626542']={
webappId:    '7060',
documentId:  '60073',
internalId:  'f512837f2c241bf389e4125db6626542',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59973',
internalId:  '',
customField: '20090720-011756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60073',
internalId:  '',
customField: '20090720-012026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59994',
internalId:  '',
customField: '20090720-011943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60873',
internalId:  '',
customField: '20090627-213756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60894',
internalId:  '',
customField: '20090802-112810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60915',
internalId:  '',
customField: '20090926-182921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60936',
internalId:  '',
customField: '20091108-124943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60957',
internalId:  '',
customField: '20091123-205108'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INEFZE';
var companyName   = 'Team+Lubbock';
var htmlTitle	  = 'Lubbock+Firefighter+Combat+Challenge+Team';
var metaKeywords  = 'Lubbock+Firefighter+Fire+Fighter+Combat+Challenge+Team+Scott+OnTarget+On+Target+2009+Season+West+Texas+Llano+Estacado+South+Plains+Regional+National+World+Finals+Competition+Physical+Task+Timed+Time+Event+Obstacle+Course+Hose+Dummy+Sled';
var metaContents  = 'Home+page+for+the+Lubbock+Firefighter+Combat+Challenge+Team.++Team+Lubbock+competes+in+the+Scott+Firefighter+Combat+Challenge%2C+a+competition+among+the+best+and+most+physically+fit+fire+fighters+from+around+the+world.';
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();
};
