/* [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','1510',jdecode('Home'),jdecode(''),'/1510.html','true',[],'',''],
	['PAGE','1536',jdecode('About+United+Mower'),jdecode(''),'/1536.html','true',[],'',''],
	['PAGE','7301',jdecode('STIHL'),jdecode(''),'/7301.html','true',[],'',''],
	['PAGE','12401',jdecode('Arborist+Supplys+%26+Safety+Gear'),jdecode(''),'/12401.html','true',[],'',''],
	['PAGE','11501',jdecode('Walk+Behind+%26+Riding+Mowers'),jdecode(''),'/11501.html','true',[],'',''],
	['PAGE','13201',jdecode('Snowblowers'),jdecode(''),'/13201.html','true',[],'',''],
	['PAGE','13001',jdecode('Other+Equipment'),jdecode(''),'/13001.html','true',[],'',''],
	['PAGE','8901',jdecode('Parts'),jdecode(''),'/8901.html','true',[],'',''],
	['PAGE','3701',jdecode('Location'),jdecode(''),'/3701.html','true',[],'',''],
	['PAGE','1610',jdecode('Contact'),jdecode(''),'/1610.html','true',[],'',''],
	['PAGE','30401',jdecode('Links'),jdecode(''),'/30401.html','true',[],'','']];
var siteelementCount=11;
theSitetree.topTemplateName='America';
theSitetree.paletteFamily='CEE2B6';
theSitetree.keyvisualId='9905';
theSitetree.keyvisualName='kv_9905.jpg';
theSitetree.fontsetId='17706';
theSitetree.graphicsetId='13070';
theSitetree.contentColor='B11313';
theSitetree.contentBGColor='CEE2B6';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'America',
				paletteFamily: 	'CEE2B6',
				keyvisualId: 	'9905',
				keyvisualName: 	'kv_9905.jpg',
				fontsetId: 		'17706',
				graphicsetId: 	'13070',
				contentColor: 	'B11313',
				contentBGColor: 'CEE2B6',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8901',
internalId:  '',
customField: '20100317-134147'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1510',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12401',
internalId:  '',
customField: '20100417-105836'
};
webappMappings['7008']=webappMappings['7008-7071']={
webappId:    '7008',
documentId:  '1610',
internalId:  '7071',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1510',
internalId:  '',
customField: '20100528-155617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1536',
internalId:  '',
customField: '20100317-133106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7301',
internalId:  '',
customField: '20110227-122808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3701',
internalId:  '',
customField: '20110305-122832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11501',
internalId:  '',
customField: '20110305-160746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1610',
internalId:  '',
customField: '20100311-164407'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '3701',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13001',
internalId:  '',
customField: '20100317-134112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13201',
internalId:  '',
customField: '20100317-133938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30401',
internalId:  '',
customField: '20110305-162402'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INZQSQ';
var companyName   = 'UNITED+MOWER+';
var htmlTitle	  = 'UNITED+MOWER+';
var metaKeywords  = 'Chainsaw%2C+chainsaws%2C++lawn+mower%2C+lawn+mowers%2C+snow+blower%2C+snowblowers%2C+string+trimmer%2C+brush+cutter%2C+arborist+supplies%2C+tree+service+supplies%2C+hand+tools%2C+saws%2C+axes%2C+pruners%2C+rope%2C+lanyard%2C+gaffs%2C+tree+climbers%2C+carabiner%2C+safety+gear%2C+climbing+gear%2C+farmington+hills+michigan%2C+mi.%2C+oakland+county%2C+wayne+county%2C+livonia%2C+redford%2C+detroit%2C+southfield%2C+novi%2C+wixom%2C+northville%2C+plymouth%2C+canton%2C+farmington%2C+parts%2C+service%2C+repairs%2C+';
var metaContents  = 'Outdoor+power+equipment+dealer%2C+sales+and+service+for+Stihl%2C+Toro%2C+Snapper+equipment.+Service+for+most+makes.+Arborist+supply';
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();
};

