/* [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','2801',jdecode('Home'),jdecode(''),'/2801/index.html','true',[ 
		['PAGE','199301',jdecode('Sitemap'),jdecode(''),'/2801/199301.html','true',[],'']
	],''],
	['PAGE','191001',jdecode('Product+Info'),jdecode(''),'/191001/index.html','true',[ 
		['PAGE','222579',jdecode('HawnSmith+Designs'),jdecode(''),'/191001/222579.html','true',[],''],
		['PAGE','191064',jdecode('Organic+Tee%26%23x27%3Bs'),jdecode(''),'/191001/191064.html','true',[],''],
		['PAGE','191022',jdecode('Ringer+T-Shirts'),jdecode(''),'/191001/191022.html','true',[],''],
		['PAGE','214944',jdecode('Ladies+Cap+Sleeve+Tee'),jdecode(''),'/191001/214944.html','false',[],''],
		['PAGE','213964',jdecode('Raglan+Jersey'),jdecode(''),'/191001/213964.html','true',[],''],
		['PAGE','30301',jdecode('T-Shirts%3A+Tagless'),jdecode(''),'/191001/30301.html','true',[],''],
		['PAGE','215350',jdecode('T-Shirts%3A+50%2F50'),jdecode(''),'/191001/215350.html','true',[],''],
		['PAGE','45401',jdecode('T-Shirts%3A+100%25+Cotton'),jdecode(''),'/191001/45401.html','true',[],''],
		['PAGE','191043',jdecode('Mens+Tank+Top'),jdecode(''),'/191001/191043.html','true',[],''],
		['PAGE','45422',jdecode('Long+Sleeve+Tee%26%23x27%3Bs'),jdecode(''),'/191001/45422.html','true',[],''],
		['PAGE','45443',jdecode('Fleece%2FSweatshirts'),jdecode(''),'/191001/45443.html','true',[],''],
		['PAGE','45022',jdecode('Mugs'),jdecode(''),'/191001/45022.html','true',[],''],
		['PAGE','34001',jdecode('Tote+Bags'),jdecode(''),'/191001/34001.html','true',[],'']
	],''],
	['PAGE','216718',jdecode('Designer%3A+How+To+Use'),jdecode(''),'/216718.html','true',[],''],
	['PAGE','45043',jdecode('FAQs'),jdecode(''),'/45043.html','true',[],''],
	['PAGE','3041',jdecode('Artwork'),jdecode(''),'/3041.html','true',[],''],
	['PAGE','2915',jdecode('Service'),jdecode(''),'/2915.html','true',[],''],
	['PAGE','2936',jdecode('Shipping'),jdecode(''),'/2936/index.html','true',[ 
		['PAGE','216344',jdecode('Service+Areas'),jdecode(''),'/2936/216344.html','true',[],'']
	],''],
	['PAGE','3062',jdecode('Return+Policy'),jdecode(''),'/3062.html','true',[],''],
	['PAGE','217406',jdecode('Contact+Us'),jdecode(''),'/217406.html','true',[],''],
	['PAGE','45064',jdecode('About+Us'),jdecode(''),'/45064/index.html','true',[ 
		['PAGE','35801',jdecode('How+To+Find+Us'),jdecode(''),'/45064/35801.html','true',[],'']
	],''],
	['PAGE','218181',jdecode('Events'),jdecode(''),'/218181/index.html','true',[ 
		['PAGE','218190',jdecode('2010+Schedule'),jdecode(''),'/218181/218190.html','true',[],'']
	],'']];
var siteelementCount=28;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='FDBC3F';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10461';
theSitetree.graphicsetId='10896';
theSitetree.contentColor='0000A5';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Alpha',
				paletteFamily: 	'FDBC3F',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10461',
				graphicsetId: 	'10896',
				contentColor: 	'0000A5',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FDBC3F',
				e_color: 		'FDBC3F',
				f_color: 		'FDBC3F',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2801',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '35801',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '222579',
internalId:  '',
customField: '20100103-190658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2801',
internalId:  '',
customField: '20100110-180927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '199301',
internalId:  '',
customField: '20100103-190506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '191001',
internalId:  '',
customField: '20100103-190612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30301',
internalId:  '',
customField: '20091214-205315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '191022',
internalId:  '',
customField: '20091214-195335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '191043',
internalId:  '',
customField: '20100103-191013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45401',
internalId:  '',
customField: '20100103-190935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '191064',
internalId:  '',
customField: '20100103-190738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45422',
internalId:  '',
customField: '20100103-191044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45443',
internalId:  '',
customField: '20100103-191114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45022',
internalId:  '',
customField: '20100103-191145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34001',
internalId:  '',
customField: '20100103-191209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '213964',
internalId:  '',
customField: '20100103-190823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '214944',
internalId:  '',
customField: '20090506-140432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3041',
internalId:  '',
customField: '20100103-191530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2915',
internalId:  '',
customField: '20100103-191554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2936',
internalId:  '',
customField: '20100103-191632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3062',
internalId:  '',
customField: '20100103-191852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '218181',
internalId:  '',
customField: '20100103-192203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '218190',
internalId:  '',
customField: '20100103-192106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45064',
internalId:  '',
customField: '20100103-191950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35801',
internalId:  '',
customField: '20100103-192024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45043',
internalId:  '',
customField: '20100103-191408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '215350',
internalId:  '',
customField: '20100103-190907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '216344',
internalId:  '',
customField: '20100103-191827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '216718',
internalId:  '',
customField: '20100103-191256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217406',
internalId:  '',
customField: '20100103-191923'
};
webappMappings['7008']=webappMappings['7008-3164']={
webappId:    '7008',
documentId:  '217406',
internalId:  '3164',
customField: 'language:en;country:US;'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INX2HC';
var companyName   = 'www.HawnSmith.com';
var htmlTitle	  = 'Custom+Designed+T-Shirts+%40+HawnSmith.com';
var metaKeywords  = 'custom+designed+t-shirts%2Ccustom+t-shirts%2Conline+designer%2Ctshirts%2Ctshrits%2Ctees%2Cfree+design+service%2CSandpoint+Idaho%2Cnorthwest%2Cpacific%2CUse+our+free+online+designer+to+create+your+own+custom+t-shirt%2CCheck+Out+Our+Store+Featuring+Custom+Designed+T-Shirts+By+HawnSmith%2CSITEMAP%2CHOME%2CSitemap%2CPRODUCTS%2CHawnSmith+Designs%2COrganic+Tees%2CRinger+T-Shirts%2CRaglan+Jersey%2CT-Shirts%2CTagless%2CT-Shirts%2C50%2F50%2CT-Shirts%2C100%25+Cotton%2CMens+Tank+Top%2CLong+Sleeve+Tees%2CFleece%2FSweatshirts%2CMugs%2CTote+Bags%2CDESIGNER%2CHOW+TO+USE%2CFAQS%2CARTWORK%2CSERVICE%2CSHIPPING%2CService+Areas%2CRETURN+POLICY%2CCONTACT+US%2CABOUT+US%2CHow+To+Find+Us%2CEVENTS%2C2010+Schedule%2CSTORE%2CDESIGNER%2CHow+To+Measure+A+T-Shirt%2CBODY+WIDTH+-+Measure+1+below+armhole+and+straight+across+from+side+to+side%2CBODY+LENGTH+-+Measure+in+a+straight+line+at+point+where+neck+trim+meets+body+to+bottom+of+hem%2CSLEEVE+LENGTH+-+Measure+from+center+of+back%2C+across+to+shoulder%2C+then+down+along+sleeve+to+end+of+cuff+or+hem%2CCreate+Custom+Designed+T-Shirt%2CHawnSmith+Designs%2CDistrict+Threads%2CSport-Tek+by+Port+Authority%2CGildan%2CHanes%2CPort++Company%2COrganic%2C100%25+Cotton%2C50%2F50+Cotton%2FPoly%2CShort+Sleeve%2CLong+Sleeve%2CRingers%2CRaglan+Sleeves%2CAdult%2CYouth%2CLadies%2CDetailed+Descriptions%2CCare+Instructions%2CSizing+Charts%2CDIRECT+TO+GARMENT+FULL+COLOR+PRINTING%2CUsing+FREE+Online+Custom+Shirt+Designer%2CWA%2CWashington%2CSeattle%2CSpokane%2CTacoma%2COlympia%2CNewport%2CMoses+Lake%2COR%2COregon%2CPortland%2CAstoria%2CSalem%2CLa+Grande%2CCA%2CCalifornia%2CSan+Francisco%2CLos+Angeles%2CLA%2CSacramento%2CSan+Diego%2COakland%2CID%2CIdaho%2CBoise%2CSandpoint%2CLewiston%2CCoeur+dAlene%2CBonners+Ferry%2CPriest+River%2CPost+Falls%2CNV%2CNevada%2CLas+Vegas%2CReno%2CLaughlin%2CCarson+City%2CUT%2CUtah%2CSalt+Lake+City%2CProvo%2COgden%2CAZ%2CArizona%2CPhoenix%2CFlagstaff%2CTempe%2CMT%2CMontana%2CHelena%2CBozeman%2CButte%2CMissoula%2CWhitefish%2CGreat+Falls%2CWY%2CWyoming%2CCheyenne%2CAK%2CAlaska%2CJuneau%2CAnchorage%2CCO%2CColorado%2CDenver%2CHI%2CHawaii%2CHonolulu%2CKuaii%2CKapaa%2CBig+Island%2CNM%2CNew+Mexico%2CSante+Fe%2CAlbuquerque%2CTX%2CTexas%2CAustin%2CDallas%2CFort+Worth%2CHouston%2CAL%2CAlabama%2CMontgomery+Mobile%2CAR%2CAkansas%2CLittle+Rock%2CCT%2CConnecticut%2CHartford%2CDE%2CDeleware%2CDover%2CFL%2CFlorida%2CTallahassee%2COrlando%2CMiami%2CJacksonville%2CGA%2CGeorgia%2CAtlanta%2CIL%2CIllinois%2CChicago%2CSpringfield%2CIN%2CIndiana%2CIndianapolis%2CSouth+Bend%2CFort+Worth%2CElkhart%2CKokomo%2CIA%2CIowa%2CDes+Moines%2CKS%2CKansas%2CTopeka%2CKY%2CKentucky%2CLouisville%2CFrankfort%2CLA%2CLouisiana%2CBaton+Rouge%2CNew+Orleans%2CME%2CMaine%2CAugusta%2CMD%2CMaryland%2CAnnopolis%2CMA%2CMassachusetts%2CBoston%2CMI%2CMichigan%2CLansing%2CSt+Joseph%2CStevensville%2CGrand+Rapids%2CDetroit%2CSaginaw%2CSte+St+Marie%2CMN%2CMinnesota%2CSt+Paul%2CRochester%2CMinneapolis%2CMS%2CMississippi%2CJackson%2CMO%2CMissouri%2CSt+Louis%2CJefferson+City%2CNE%2CNebraska%2CLincoln%2CNH%2CNew+Hampshire%2CConcord%2CNJ%2CNew+Jersey%2CTrenton%2CNY%2CNew+York%2CAlbany%2CNYC%2CNC%2CNorth+Carolina%2CRaleigh%2CND%2CNorth+Dakota%2CBismarck%2COH%2COhio%2CColumbus%2COK%2COklahoma%2COklahoma+City%2CPA%2CPennsylvania%2CHarrisburg%2CRI%2CRhode+Island%2CProvidence%2CSC%2CSouth+Carolina%2CColumbia%2CSD%2CSouth+Dakota%2CPierre%2CTN%2CTennessee%2CNashville%2CVT%2CVermont%2CMontpelier%2CVA%2CVirginia%2CRichmond%2CWV%2CWest+Virginia%2CCharleston%2CWI%2CWisconsin%2CMadison%2CSeattle%2CTacoma%2CPortland%2CSpokane%2CIdaho+Falls%2CBoise%2CSalt+Lake+City%2C+Reno%2CDenver%2CKalispell%2CMissoula%2CHelena%2CButte%2CPinehurst%2CActivewear%2CAdult+T+Shirts%2CAnimal+T+Shirts%2CBand+T+Shirts%2CBaseball+T+Shirt%2CBaseball+T+Shirts%2CBRIGHT+WOOD%2CCafe%2CCeramic+Coffee+Mug%2CCheap+T+Shirts%2CChurch+T+Shirts%2CClothes%2CClothing%2CClothing++Accessories%2CCoffee+Cups%2CCoffee+Mugs%2CCollege+T+Shirts%2CCreate+Picture+Puzzles%2CCustom+Coffee+Cups%2CCustom+Coffee+Mugs%2CCustom+Designed+T+Shirts%2CCustom+Made+T+Shirts%2CCustom+Military+Coffee+Mugs%2CCustom+Printed+Coffee+Mugs%2CCustom+Printed+T+Shirts%2CCustom+T+Shirt%2CCustom+T+Shirts%2CCustom+Tshirts%2CCustomized+Coffee+Mugs%2CDesign+Your+Own+T+Shirt%2CDesigner+T+Shirts%2CDog+T+Shirt%2CDog+T+Shirts%2CFirefighter+T+Shirts%2CFunny+Shirt%2CFunny+Shirts%2CFunny+T+Shirt%2CFunny+T+Shirts%2CFunny+Tee+Shirts%2CFunny+Tshirt%2CFunny+Tshirts%2CHoodies%2CHumor+Shirts%2CJerseys%2CKids+T+Shirts%2CLogo%2CMotorcycle+T+Shirts%2COnline+Designer%2CPersonalized+Coffee+Mugs%2CPersonalized+T+Shirt%2CPhat+Rags%2CPhoto+Coffee+Mugs%2CPhoto+Cups%2CPhoto+Mugs%2CPhoto+T+Shirts%2CPicture+Coffee+Mugs%2CPolo+Shirts%2CPosters%2Cprinted+t+shirts%2CPromotional+Products%2CPromotional+Shirts%2CRetro+Tee+Shirts%2CSchool+T+Shirts%2CScreen+Print+T+Shirts%2CScreen+Printed+T+Shirts%2CScreen+Printing%2CShirt%2CShirts%2CSleeve+T+Shirt%2CSoccer+T+Shirts%2CSoftball+T+Shirts%2CSorority+T+Shirts%2CSpecial+Event+T+Shirts%2CSports+T+Shirts%2CSweatshirts%2CT+Shirt%2CT+Shirt+Business%2CT+Shirt+Companies%2CT+Shirt+Design%2CT+Shirt+Designs%2CT+Shirt+Ideas%2CT+Shirt+Print%2Ct+shirt+printer%2CT+Shirt+Printers%2CT+Shirt+Printing%2CT+Shirt+Screen+Printing%2CT+Shirt+Store%2CT+Shirts%2CT+Shirts+Online%2CTank+Tops%2CTeam+T+Shirts%2CTee+Shirt%2CTee+Shirts%2CTees%2CTote+Bags%2CTrendy+Thread%2CTshirt%2CTshirt+Designs%2CTshirts%2CUniforms%2CWholesale+Shirts%2CWomens+Tee+Shirts%2C+airbrush+design+t+shirts%2Cairbrush+t+shirt+design%2Cairbrush+t+shirt+designs%2Cbaseball+t+shirt%2Cdesigns%2Ccheap+funny+t+shirts%2Ccheap+printed+t+shirts%2Ccheap+t+shirt+printing%2Ccheapest%2Ccustom+t+shirts%2Ccool+design+t+shirts%2Ccool+funny+t+shirts%2Ccool+t+shirt+designs%2Ccool+t+shirts+designs%2Ccrazy+t+shirt+design%2Ccrazy+t+shirt+designs%2Ccreate+custom+t+shirts%2Ccreate+t+shirt%2Cdesign+print+shirts%2Cdesign+print+t+shirts%2Cdiscount+custom+t+shirts%2Cembroidered+t+shirts%2Cembroidery+t+shirt%2Cfamily+reunion+t+shirt+designs%2Cfunky+t+shirt+designs%2Cfunky+t+shirts%2Cfunny+offensive+t+shirts%2Cfunny+political+t+shirts%2Cfunny+rude+t+shirts%2Cfunny+t+shirt+designs%2Cfunny+t+shirt+sayings%2Cfunny+t+shirts+for+sale%2Cfunny+t+shirts+sayings%2Cgreek+t+shirt+designs%2Chilarious+t+shirts%2Cimprinted+t+shirts%2Cink+t+shirt+designs%2Cmake+your+own+t+shirt+design%2Cmy+t+shirt%2Coffensive+t+shirt%2Coffensive+t+shirts%2Conline+t+shirt+design%2Conline+t+shirt+printing%2Cpersonalised+t+shirt%2Cpersonalize+t+shirt%2Cpersonalize+t+shirts%2Cpersonalized+t+shirt%2Cpersonalized+t+shirt+design%2Cpersonalized+t+shirt+designs%2Cpersonalized+t+shirt+printing%2Cprint+shirt+design%2Cprint+shirt+designs%2Cprint+your+own+t+shirt%2Cprinted+shirts%2Cprinting+on+t+shirt%2Cprinting+shirt+t+wholesale%2Cpromotional+t+shirt%2Creunion%2Ct+shirt+designs%2Crude+t+shirts%2Cschool+t+shirt+designs%2Cscreen+print+t+shirt%2Csilk%2Cscreen+t+shirts%2Cslogan+t+shirts%2Csoccer+t+shirt+designs%2Csorority+t+shirt+designs%2Ct+shirt+design+companies%2Ct+shirt+design+ink%2Ct+shirt+design+wholesale%2Ct+shirt+embroidery+designs%2Ct+shirt+print+designs%2Ct+shirt+printers%2Ct+shirt+printing+business%2Ct+shirt+printing+design%2Ct+shirt+printing+designs%2Ct+shirt+prints%2Ct+shirt+silk+screen+printing%2Cvolleyball+t+shirt+designs%2Cwholesale+design+t+shirts%2Cwholesale+printed+t+shirts%2Cwholesale+t+shirt+designs%2Cwholesale+t+shirt+printing%2Cwholesale+t+shirts%2Chummingbird%2Cflower%2CSchweitzer%2Cfunny+car%2Cbird%2Cpeace+sign%2Csun%2Cbaseball%2Cbat%2Cfootball%2Cski%2Cbasketball%2Chydroplane%2Cboat+racing%2Csnow+bum';
var metaContents  = 'HawnSmith.com+is+a+one+stop+shop+for+personalized%2C+custom+designed+t-shirts.++Create+your+own+custom+designed+t-shirt+in+just+minutes+with+our+easy+to+use%2C+free+online+designer+or+click+into+our+store+and+check+out+our+ready+to+ship+custom+designed++t-shirts%2C+fleece+and+more.++No+minimums.+Quick+service.+Fast+shipping.++No+set-up+fees.+No+screen+charges.+We+know+that+once+you+experience+HawnSmiths+quality+and+service%2C+you+will+return+to+us+for+all+of+your+custom+t-shirt+printing+wants+and+needs.++Located+in+the+beautiful+Pacific+Northwest+Mountains+in+Sandpoint%2C+Idaho.';
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();
};
