/* [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','1001',jdecode('Home'),jdecode(''),'/1001.html','true',[],'',''],
	['PAGE','119341',jdecode('Repair+Service'),jdecode(''),'/119341.html','true',[],'',''],
	['PAGE','22790',jdecode('Equipment+Specials'),jdecode(''),'/22790.html','true',[],'',''],
	['PAGE','124614',jdecode('++++++SportsArt%E2%80%99s+Firefighter+Fitness'),jdecode(''),'/124614.html','true',[],'',''],
	['PAGE','43801',jdecode('Treadmills'),jdecode(''),'/43801/index.html','true',[ 
		['PAGE','119332',jdecode('Best+Fitness'),jdecode(''),'/43801/119332.html','true',[],'',''],
		['PAGE','22601',jdecode('BodyGuard'),jdecode(''),'/43801/22601.html','true',[],'',''],
		['PAGE','55501',jdecode('Endurance'),jdecode(''),'/43801/55501.html','true',[],'',''],
		['PAGE','22622',jdecode('SportsArt'),jdecode(''),'/43801/22622.html','true',[],'','']
	],'',''],
	['PAGE','23601',jdecode('Ellipticals'),jdecode(''),'/23601/index.html','true',[ 
		['PAGE','23685',jdecode('BodyGuard'),jdecode(''),'/23601/23685.html','true',[],'',''],
		['PAGE','68701',jdecode('Endurance'),jdecode(''),'/23601/68701.html','true',[],'',''],
		['PAGE','23748',jdecode('SportsArt'),jdecode(''),'/23601/23748.html','true',[],'','']
	],'',''],
	['PAGE','122702',jdecode('The+X-Trainer'),jdecode(''),'/122702.html','true',[],'',''],
	['PAGE','87501',jdecode('Steppers'),jdecode(''),'/87501/index.html','true',[ 
		['PAGE','87522',jdecode('SportsArt'),jdecode(''),'/87501/87522.html','true',[],'','']
	],'',''],
	['PAGE','22643',jdecode('Bikes'),jdecode(''),'/22643/index.html','true',[ 
		['PAGE','122390',jdecode('Best+Fitness'),jdecode(''),'/22643/122390.html','true',[],'',''],
		['PAGE','23706',jdecode('BodyGuard'),jdecode(''),'/22643/23706.html','true',[],'',''],
		['PAGE','55522',jdecode('Endurance'),jdecode(''),'/22643/55522.html','true',[],'',''],
		['PAGE','23727',jdecode('SportsArt'),jdecode(''),'/22643/23727.html','true',[],'','']
	],'',''],
	['PAGE','23622',jdecode('Body-Solid'),jdecode(''),'/23622/index.html','true',[ 
		['PAGE','87627',jdecode('Fusion+Personal+Trainer'),jdecode(''),'/23622/87627.html','true',[],'',''],
		['PAGE','81101',jdecode('Body-Solid+Home+Gyms'),jdecode(''),'/23622/81101.html','true',[],'',''],
		['PAGE','87648',jdecode('+HomeGym+Options'),jdecode(''),'/23622/87648.html','true',[],'',''],
		['PAGE','87669',jdecode('FreeWeight+Systems'),jdecode(''),'/23622/87669.html','true',[],'',''],
		['PAGE','87690',jdecode('Body-Solid+Benches'),jdecode(''),'/23622/87690.html','true',[],'',''],
		['PAGE','87711',jdecode('Leg+%26+Hip+Machines'),jdecode(''),'/23622/87711.html','true',[],'',''],
		['PAGE','87732',jdecode('Ab+%26+Back+Machines'),jdecode(''),'/23622/87732.html','true',[],'',''],
		['PAGE','87753',jdecode('Chest+%26+Arms+Machines'),jdecode(''),'/23622/87753.html','true',[],'','']
	],'',''],
	['PAGE','23664',jdecode('PowerLine'),jdecode(''),'/23664/index.html','true',[ 
		['PAGE','87774',jdecode('Powerline+Gyms'),jdecode(''),'/23664/87774.html','true',[],'',''],
		['PAGE','87795',jdecode('Powerline+Racks'),jdecode(''),'/23664/87795.html','true',[],'',''],
		['PAGE','87816',jdecode('Powerline+Benches'),jdecode(''),'/23664/87816.html','true',[],'',''],
		['PAGE','87837',jdecode('Powerline+Freeweight'),jdecode(''),'/23664/87837.html','true',[],'',''],
		['PAGE','87858',jdecode('Powerline+Options'),jdecode(''),'/23664/87858.html','true',[],'','']
	],'',''],
	['PAGE','68764',jdecode('Best+Fitness'),jdecode(''),'/68764/index.html','true',[ 
		['PAGE','118123',jdecode('Home+Gyms'),jdecode(''),'/68764/118123.html','true',[],'','']
	],'',''],
	['PAGE','83001',jdecode('Weights+%26+Dumbells'),jdecode(''),'/83001/index.html','true',[ 
		['PAGE','118845',jdecode('2%22+Olympic+Plates'),jdecode(''),'/83001/118845.html','true',[],'',''],
		['PAGE','118872',jdecode('1%22+Standard+Plates'),jdecode(''),'/83001/118872.html','true',[],'',''],
		['PAGE','118854',jdecode('2%22+Bar'),jdecode(''),'/83001/118854.html','true',[],'',''],
		['PAGE','118863',jdecode('2%22+Speciality+Bars'),jdecode(''),'/83001/118863.html','true',[],'',''],
		['PAGE','118881',jdecode('1%22+Standard+Bars'),jdecode(''),'/83001/118881.html','true',[],'',''],
		['PAGE','122517',jdecode('1%22+Speciality+Bars'),jdecode(''),'/83001/122517.html','true',[],'',''],
		['PAGE','118899',jdecode('DumbBells'),jdecode(''),'/83001/118899.html','true',[],'',''],
		['PAGE','118890',jdecode('Collars'),jdecode(''),'/83001/118890.html','true',[],'',''],
		['PAGE','118908',jdecode('Weight+Storage+Racks'),jdecode(''),'/83001/118908.html','true',[],'',''],
		['PAGE','118917',jdecode('Cable+Attachments'),jdecode(''),'/83001/118917.html','true',[],'',''],
		['PAGE','118926',jdecode('Lifting+Accessories'),jdecode(''),'/83001/118926.html','true',[],'',''],
		['PAGE','118935',jdecode('Hand+Held'),jdecode(''),'/83001/118935.html','true',[],'','']
	],'',''],
	['PAGE','74201',jdecode('Return+Policy'),jdecode(''),'/74201.html','true',[],'','']];
var siteelementCount=52;
theSitetree.topTemplateName='Diamond';
theSitetree.paletteFamily='DCDEDC';
theSitetree.keyvisualId='6224';
theSitetree.keyvisualName='kv_6224.jpg';
theSitetree.fontsetId='11090';
theSitetree.graphicsetId='11861';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='DCDEDC';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Diamond',
				paletteFamily: 	'DCDEDC',
				keyvisualId: 	'6224',
				keyvisualName: 	'kv_6224.jpg',
				fontsetId: 		'11090',
				graphicsetId: 	'11861',
				contentColor: 	'000000',
				contentBGColor: 'DCDEDC',
				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['1501']=webappMappings['1501-987444']={
webappId:    '1501',
documentId:  '1001',
internalId:  '987444',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1001',
internalId:  '',
customField: '20100719-205608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43801',
internalId:  '',
customField: '20090923-182746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22601',
internalId:  '',
customField: '20090923-183310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55501',
internalId:  '',
customField: '20090923-183339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22622',
internalId:  '',
customField: '20100719-124228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23601',
internalId:  '',
customField: '20090923-183430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23685',
internalId:  '',
customField: '20090923-183509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68701',
internalId:  '',
customField: '20090923-183531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23748',
internalId:  '',
customField: '20090923-183556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87501',
internalId:  '',
customField: '20090923-183711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87522',
internalId:  '',
customField: '20090923-183751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124614',
internalId:  '',
customField: '20100719-122508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22643',
internalId:  '',
customField: '20090923-183826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23706',
internalId:  '',
customField: '20090923-183940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55522',
internalId:  '',
customField: '20090923-184003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23727',
internalId:  '',
customField: '20090813-113652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23622',
internalId:  '',
customField: '20090923-184105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87627',
internalId:  '',
customField: '20090923-184127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81101',
internalId:  '',
customField: '20090219-084704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87648',
internalId:  '',
customField: '20080731-210206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87669',
internalId:  '',
customField: '20080803-163601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87690',
internalId:  '',
customField: '20080803-171859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87711',
internalId:  '',
customField: '20080803-194419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87732',
internalId:  '',
customField: '20080803-203945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87753',
internalId:  '',
customField: '20090923-184327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23664',
internalId:  '',
customField: '20090923-184352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87774',
internalId:  '',
customField: '20090923-184433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87795',
internalId:  '',
customField: '20090923-184523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87816',
internalId:  '',
customField: '20090923-184601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87837',
internalId:  '',
customField: '20090923-184927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87858',
internalId:  '',
customField: '20090923-184943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68764',
internalId:  '',
customField: '20090923-185029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118123',
internalId:  '',
customField: '20090923-185101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83001',
internalId:  '',
customField: '20090923-185133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118845',
internalId:  '',
customField: '20090923-185155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118854',
internalId:  '',
customField: '20090923-185335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118863',
internalId:  '',
customField: '20090923-114415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118872',
internalId:  '',
customField: '20090923-185259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118881',
internalId:  '',
customField: '20090923-164236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118890',
internalId:  '',
customField: '20090923-164340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118899',
internalId:  '',
customField: '20090926-221812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118908',
internalId:  '',
customField: '20090923-175349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118917',
internalId:  '',
customField: '20090816-231709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118926',
internalId:  '',
customField: '20090927-020134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118935',
internalId:  '',
customField: '20080807-203441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22790',
internalId:  '',
customField: '20100718-164912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74201',
internalId:  '',
customField: '20071219-193659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119332',
internalId:  '',
customField: '20100719-132235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122390',
internalId:  '',
customField: '20090923-183848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122517',
internalId:  '',
customField: '20090923-164313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119341',
internalId:  '',
customField: '20100718-165203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122702',
internalId:  '',
customField: '20090923-183624'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INEJ77';
var companyName   = '';
var htmlTitle	  = 'MAX+TREADMILL+DOES+IT+ALL+%21';
var metaKeywords  = 'AGF+Treadmill%2C+Cybex+Treadmill%2C+Epic+Treamill%2C+Free+MotionTreadmill%2C+Gold+Gym+Treadmill%2C+Health+Rider+Treadmill%2C+Horizon+Treadmill%2C+Image+Treadmill%2C+Landice+Treadmill%2C++Nordic+Track+Treadmill%2C+PaceMaster+Treadmill%2C+Precor+Treadmill%2C+Proform+Treadmill%2C+Reebok+Treadmill%2C+Schwinn+Treadmill%2C+Smooth+TreadMill%2C+Sole+Treadmill%2C+Spirit+Treadmill%2C+Sportcraft+Treadmill%2C++Sports+Art+Treadmill+%2C+Star+Trac+Treadmill%2C++True+Treadmill%2C+Tunturi+Treadmill%2C+Vision+Fitness+Treadmill%2C+Weslo+Treadmill%2C+WoodWay+Treadmill%2C+Treadmill+Repair%2C+Elliptical+Machine%2C+Elliptical%2C+Elliptical+Trainer%2CProform+Elliptical%2CPrecor+Elliptical%2CSports+Art+Elliptical%2C+Elliptical+Repair%2CStepper%2C+Stair+Stepper%2C+Stepper+Repair%2C+Stair+Master+Repair%2C+Exercise+Bike%2C+Recumbent+Bike%2C+Stationary+Bike%2C+BodyGuard+Exercise+Bike%2C+Sports+Art+Bike%2C+Schwinn+Bike%2C+Bike+Reair%2C+Multi+Gym%2C+Multi+Station+Gym%2C+Weight+Machines%2C++Sports+Art+XTrainers%2C+Sports+Art+Pinnacle+Trainer+and+Bikes+%2C+Body+Solid++Strength++Machine';
var metaContents  = 'Serving+the+Central+Valley+and+the+East+Bay+with+quality+name+brand%3A++Best+Fitness%2C+BodyGuard+%2C+BodySolid%2C++Endurance+%2C+PowerLine%2C++SportsArt+Sales+and+Service';
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();
};
