/* [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','4598',jdecode('Home'),jdecode(''),'/4598.html','true',[],'',''],
	['PAGE','4655',jdecode('The+Team'),jdecode(''),'/4655.html','true',[],'',''],
	['PAGE','4682',jdecode('About+Us'),jdecode(''),'/4682.html','true',[],'',''],
	['PAGE','4736',jdecode('How+to+find+us'),jdecode(''),'/4736.html','true',[],'',''],
	['PAGE','26401',jdecode('Full+Product+List'),jdecode(''),'/26401.html','true',[],'',''],
	['PAGE','59101',jdecode('GTI+Pro+Lawn'),jdecode(''),'/59101.html','true',[],'',''],
	['PAGE','50898',jdecode('Water+Features+and+Garden+Art'),jdecode(''),'/50898/index.html','true',[ 
		['PAGE','51190',jdecode('Wall%2FGarden+Panels'),jdecode(''),'/50898/51190.html','true',[],'',''],
		['PAGE','51342',jdecode('Water+Features'),jdecode(''),'/50898/51342.html','true',[],'',''],
		['PAGE','51351',jdecode('Carved+Planter+Ornament'),jdecode(''),'/50898/51351.html','true',[],'',''],
		['PAGE','51199',jdecode('Garden+Statue'),jdecode(''),'/50898/51199.html','true',[],'',''],
		['PAGE','51208',jdecode('Kilarney+Stone'),jdecode(''),'/50898/51208.html','true',[],'','']
	],'',''],
	['PAGE','4763',jdecode('PRODUCT+GALLERY'),jdecode(''),'/4763/index.html','true',[ 
		['PAGE','4790',jdecode('Bulk+Pebble+%26+Shell'),jdecode(''),'/4763/4790.html','true',[],'',''],
		['PAGE','4817',jdecode('Growing+Media'),jdecode(''),'/4763/4817.html','true',[],'',''],
		['PAGE','16001',jdecode('Bark+Products'),jdecode(''),'/4763/16001.html','true',[],'',''],
		['PAGE','4844',jdecode('Building+Products'),jdecode(''),'/4763/4844.html','true',[],'',''],
		['PAGE','10728',jdecode('Paving'),jdecode(''),'/4763/10728.html','true',[],'',''],
		['PAGE','33001',jdecode('Sleepers%2Fedging'),jdecode(''),'/4763/33001.html','true',[],'',''],
		['PAGE','33501',jdecode('Bagged+Products'),jdecode(''),'/4763/33501.html','true',[],'','']
	],'',''],
	['PAGE','54822',jdecode('Plant+Connections+'),jdecode(''),'/54822.html','true',[],'',''],
	['PAGE','57101',jdecode('Outdoor+Fireplace'),jdecode(''),'/57101.html','true',[],'',''],
	['PAGE','54801',jdecode('Planter+Boxes'),jdecode(''),'/54801.html','true',[],'',''],
	['PAGE','5006',jdecode('Tips+%26+Tricks'),jdecode(''),'/5006.html','true',[],'',''],
	['PAGE','10836',jdecode('Coverage+guide'),jdecode(''),'/10836.html','true',[],'',''],
	['PAGE','10863',jdecode('Opening+hours'),jdecode(''),'/10863.html','true',[],'',''],
	['PAGE','11201',jdecode('CONTACT+US'),jdecode(''),'/11201.html','true',[],'',''],
	['PAGE','19201',jdecode('Local+Landscapers'),jdecode(''),'/19201.html','true',[],'',''],
	['PAGE','19228',jdecode('Links'),jdecode(''),'/19228.html','true',[],'',''],
	['PAGE','49158',jdecode('Contact'),jdecode(''),'/49158/index.html','true',[ 
		['PAGE','49167',jdecode('Address'),jdecode(''),'/49158/49167.html','true',[],'',''],
		['PAGE','49176',jdecode('How+to+find+us'),jdecode(''),'/49158/49176.html','true',[],'','']
	],'','']];
var siteelementCount=32;
theSitetree.topTemplateName='Elemental';
theSitetree.paletteFamily='AAA9A9';
theSitetree.keyvisualId='11592';
theSitetree.keyvisualName='kv_11592.jpg';
theSitetree.fontsetId='32911';
theSitetree.graphicsetId='13981';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'mitdnz',
  product: 'WSCSYSSSSLYTC22A'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Elemental',
				paletteFamily: 	'AAA9A9',
				keyvisualId: 	'11592',
				keyvisualName: 	'kv_11592.jpg',
				fontsetId: 		'32911',
				graphicsetId: 	'13981',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4598',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26401',
internalId:  '',
customField: '20090923-220443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4598',
internalId:  '',
customField: '20100228-170018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4655',
internalId:  '',
customField: '20080326-190700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4682',
internalId:  '',
customField: '20080326-190624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4736',
internalId:  '',
customField: '20070908-190127'
};
webappMappings['7008']=webappMappings['7008-3541']={
webappId:    '7008',
documentId:  '11201',
internalId:  '3541',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57101',
internalId:  '',
customField: '20090407-223717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50898',
internalId:  '',
customField: '20090721-210553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51190',
internalId:  '',
customField: '20080113-152434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51342',
internalId:  '',
customField: '20090127-143442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51351',
internalId:  '',
customField: '20080113-153141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51199',
internalId:  '',
customField: '20080113-153237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51208',
internalId:  '',
customField: '20080113-151036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4763',
internalId:  '',
customField: '20090923-220744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4790',
internalId:  '',
customField: '20100104-180437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4817',
internalId:  '',
customField: '20090126-191639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16001',
internalId:  '',
customField: '20090127-143844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4844',
internalId:  '',
customField: '20060611-160641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10728',
internalId:  '',
customField: '20070511-145846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33001',
internalId:  '',
customField: '20070511-143537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33501',
internalId:  '',
customField: '20090923-220744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59101',
internalId:  '',
customField: '20090923-222701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5006',
internalId:  '',
customField: '20080113-164346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10836',
internalId:  '',
customField: '20060711-154655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10863',
internalId:  '',
customField: '20070905-175227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11201',
internalId:  '',
customField: '20070905-175203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19201',
internalId:  '',
customField: '20090127-140943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19228',
internalId:  '',
customField: '20090721-211956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49158',
internalId:  '',
customField: '20071105-170852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49167',
internalId:  '',
customField: '20071105-171043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49176',
internalId:  '',
customField: '20071105-164922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54822',
internalId:  '',
customField: '20100228-183022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54801',
internalId:  '',
customField: '20090127-140752'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN2GLI';
var companyName   = '%27Putting+a+little+TLC+into+your+outdoor+project...%27';
var htmlTitle	  = 'Tauranga+Landscaping+Centre';
var metaKeywords  = 'Landscaping+supplies%2Clandscape+supplies%2Clandscaping%2Clandscape%2Criver+pebble%2Cpebble%2Cshell%2CLandscape+supplies+tauranga%2Clandscaping+supplies+tauranga%2Clandscaping+supplies+papamoa%2Clandscape+supplies+papamoa%2Clandscaping+supplies+mount+maunganui%2Crailway+sleepers%2Cpotting+mix%2Ccompost%2Ctopsoil%2C+boulders%2Ccrusher+dust%2Cpea+gravel%2Cpea+metal%2Cgardening+supplies%2Cgarden%2Cgardening%2Cmatangi+gold%2Cgoldrush%2Cnuhaka%2Cscreened%2Cshell%2Cwashed+shell%2Cbark%2Cbark+chip%2Cmulch%2Csand%2Cmortar+sand%2Ccement%2Cholcim+cement%2Cgolden+bay+cement%2Clandscape+design%2Clandscape+design+tauranga%2Cbuilders+mix%2Cmacrocarpa+sleepers%2Cmacrocarpa%2Cred+gum%2Cschist%2Cschist+paving%2Cgarden+art%2Clawn+seed%2Cgrass+seed%2Cinstant+lawn%2Cinstant+turf%2Clawn+soil%2Clawn+compost%2Cpaving+slabs%2Cpaving+tauranga%2Cpaving+mount+maunganui%2Cpaving+papamoa%2Cpaving%2Clandscaping+supplies+tauranga%2Clandscape+supplies+tauranga%2Clandscaping+supplies+tauranga%2Clandscaping+supplies+tauranga%2Cmacrocarpa+sleepers+tauranga%2Cmacrocarpa+tauranga%2Cmacrocarpa+sleepers+papamoa%2Cmacrocarpa+papamoa%2Cmacrocarpa+sleepers+Mount+Maunganui%2C+macrocarpa+sleepers+Mt+Maunganui%2C+macrocarpa+Mt+Maunganui%2C+kilarney+stone%2Cmatokitoki%2Cwater+feature%2Cwater+features%2Cbali%2Cweedmat%2Cpebble+delivery%2Cbrent+montgomerie%2Ccraig+montgomerie%2Cgarden+art%2Cstone+frog%2Cstone+turtle%2Crock+speaker%2Cfree+trailer+hire%2Cpebble%2Cpumice%2Cboulders';
var metaContents  = 'Tauranga+Landscaping+Centre+stocks+a+huge+range+of+landscaping+products%2C+including+bulk+river+pebble%2C+limechip%2C+boulders%2C+shell%2C+bark%2C+soil%2C+compost%2C+sleepers+-+anything+to+do+with+landscaping.+Customers+include+keen+DIY+landscapers+and+professional+landscapers.+Tauranga+Landscaping+Centre+can+arrange+supply+of+bulk+materials+to+virtually+anywhere+in+the+North+Island.';
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();
};

