/* [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','3301',jdecode('Floors+of+Distinction'),jdecode(''),'/3301.html','true',[],'',''],
	['PAGE','38322',jdecode('Carpet'),jdecode(''),'/38322/index.html','true',[ 
		['PAGE','44701',jdecode('Beaulieu'),jdecode(''),'/38322/44701.html','true',[],'',''],
		['PAGE','44722',jdecode('Camelot'),jdecode(''),'/38322/44722.html','true',[],'',''],
		['PAGE','38364',jdecode('Disney+Carpet'),jdecode(''),'/38322/38364.html','true',[],'',''],
		['PAGE','44743',jdecode('Dixie'),jdecode(''),'/38322/44743.html','true',[],'',''],
		['PAGE','44764',jdecode('Gulistan'),jdecode(''),'/38322/44764.html','true',[],'',''],
		['PAGE','38601',jdecode('Karastan'),jdecode(''),'/38322/38601.html','true',[],'',''],
		['PAGE','44785',jdecode('Masland'),jdecode(''),'/38322/44785.html','true',[],'',''],
		['PAGE','49322',jdecode('Milliken'),jdecode(''),'/38322/49322.html','true',[],'',''],
		['PAGE','44806',jdecode('Mohawk'),jdecode(''),'/38322/44806.html','true',[],'',''],
		['PAGE','44827',jdecode('Nourison'),jdecode(''),'/38322/44827.html','true',[],'',''],
		['PAGE','33501',jdecode('Shaw'),jdecode(''),'/38322/33501.html','true',[],'',''],
		['PAGE','49343',jdecode('Stanton'),jdecode(''),'/38322/49343.html','true',[],'','']
	],'',''],
	['PAGE','57912',jdecode('Bamboo+Flooring'),jdecode(''),'/57912/index.html','true',[ 
		['PAGE','57933',jdecode('Dansk'),jdecode(''),'/57912/57933.html','true',[],'',''],
		['PAGE','57954',jdecode('Green+Choice+by+International'),jdecode(''),'/57912/57954.html','true',[],'',''],
		['PAGE','57975',jdecode('Teregren'),jdecode(''),'/57912/57975.html','true',[],'','']
	],'',''],
	['PAGE','84045',jdecode('Cork+Flooring'),jdecode(''),'/84045/index.html','true',[ 
		['PAGE','85045',jdecode('APC+'),jdecode(''),'/84045/85045.html','true',[],'',''],
		['PAGE','85945',jdecode('Infinity'),jdecode(''),'/84045/85945.html','true',[],'',''],
		['PAGE','85445',jdecode('Natural+Cork'),jdecode(''),'/84045/85445.html','true',[],'','']
	],'',''],
	['PAGE','38301',jdecode('Laminates'),jdecode(''),'/38301/index.html','true',[ 
		['PAGE','64975',jdecode('Alloc'),jdecode(''),'/38301/64975.html','true',[],'',''],
		['PAGE','64954',jdecode('Armstrong'),jdecode(''),'/38301/64954.html','true',[],'',''],
		['PAGE','64996',jdecode('Floortrends'),jdecode(''),'/38301/64996.html','true',[],'',''],
		['PAGE','64933',jdecode('Quick+Step'),jdecode(''),'/38301/64933.html','true',[],'',''],
		['PAGE','64912',jdecode('Wilsonart'),jdecode(''),'/38301/64912.html','true',[],'','']
	],'',''],
	['PAGE','4901',jdecode('Wood+Floors'),jdecode(''),'/4901/index.html','true',[ 
		['PAGE','44601',jdecode('Anderson'),jdecode(''),'/4901/44601.html','true',[],'',''],
		['PAGE','43522',jdecode('Ark+Flooring'),jdecode(''),'/4901/43522.html','true',[],'',''],
		['PAGE','43543',jdecode('Armstrong'),jdecode(''),'/4901/43543.html','true',[],'',''],
		['PAGE','43564',jdecode('Boen'),jdecode(''),'/4901/43564.html','true',[],'',''],
		['PAGE','43585',jdecode('BR-111'),jdecode(''),'/4901/43585.html','true',[],'',''],
		['PAGE','43606',jdecode('Columbia'),jdecode(''),'/4901/43606.html','true',[],'',''],
		['PAGE','43690',jdecode('Homerwood'),jdecode(''),'/4901/43690.html','true',[],'',''],
		['PAGE','43732',jdecode('Kahrs'),jdecode(''),'/4901/43732.html','true',[],'',''],
		['PAGE','43753',jdecode('Lauzon'),jdecode(''),'/4901/43753.html','true',[],'',''],
		['PAGE','43795',jdecode('Mannington'),jdecode(''),'/4901/43795.html','true',[],'',''],
		['PAGE','43816',jdecode('Mirage'),jdecode(''),'/4901/43816.html','true',[],'',''],
		['PAGE','43837',jdecode('Mohawk+Wood+Floors'),jdecode(''),'/4901/43837.html','true',[],'',''],
		['PAGE','43900',jdecode('Palo+Duro+Collection'),jdecode(''),'/4901/43900.html','true',[],'',''],
		['PAGE','43942',jdecode('Shaw+Hardwoods'),jdecode(''),'/4901/43942.html','true',[],'',''],
		['PAGE','43963',jdecode('Teragren'),jdecode(''),'/4901/43963.html','true',[],'','']
	],'',''],
	['PAGE','9964',jdecode('Our+team'),jdecode(''),'/9964.html','true',[],'',''],
	['PAGE','9985',jdecode('How+to+find+us'),jdecode(''),'/9985.html','true',[],'',''],
	['PAGE','76934',jdecode('Special+Events'),jdecode(''),'/76934.html','true',[],'','']];
var siteelementCount=47;
theSitetree.topTemplateName='Sportive';
theSitetree.paletteFamily='E9EEF4';
theSitetree.keyvisualId='2657';
theSitetree.keyvisualName='architekt.jpg';
theSitetree.fontsetId='220';
theSitetree.graphicsetId='262';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='E9EEF4';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Sportive',
				paletteFamily: 	'E9EEF4',
				keyvisualId: 	'2657',
				keyvisualName: 	'architekt.jpg',
				fontsetId: 		'220',
				graphicsetId: 	'262',
				contentColor: 	'000066',
				contentBGColor: 'E9EEF4',
				a_color: 		'E9EEF4',
				b_color: 		'C1C4D3',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3301',
internalId:  '',
customField: '20100421-171614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43522',
internalId:  '',
customField: '20090825-145927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64975',
internalId:  '',
customField: '20090912-162559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64954',
internalId:  '',
customField: '20100324-172328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4901',
internalId:  '',
customField: '20090914-234035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9964',
internalId:  '',
customField: '20090912-175226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64996',
internalId:  '',
customField: '20090912-162644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64933',
internalId:  '',
customField: '20090912-162713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9985',
internalId:  '',
customField: '20090721-024400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38364',
internalId:  '',
customField: '20090825-152026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38322',
internalId:  '',
customField: '20100324-173819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38601',
internalId:  '',
customField: '20090825-152332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44601',
internalId:  '',
customField: '20090825-152846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38301',
internalId:  '',
customField: '20100324-185148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43543',
internalId:  '',
customField: '20090825-152937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43564',
internalId:  '',
customField: '20090825-153011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43585',
internalId:  '',
customField: '20090825-153044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43606',
internalId:  '',
customField: '20090723-143137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85945',
internalId:  '',
customField: '20100324-181840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43690',
internalId:  '',
customField: '20090720-222500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43732',
internalId:  '',
customField: '20090729-172852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43753',
internalId:  '',
customField: '20090825-153246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43795',
internalId:  '',
customField: '20090825-153329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43816',
internalId:  '',
customField: '20090825-150447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43837',
internalId:  '',
customField: '20090825-153409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43900',
internalId:  '',
customField: '20090825-153507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43942',
internalId:  '',
customField: '20100324-173336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43963',
internalId:  '',
customField: '20090825-153631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44701',
internalId:  '',
customField: '20090825-152057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44722',
internalId:  '',
customField: '20091021-224109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44743',
internalId:  '',
customField: '20090825-152226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44764',
internalId:  '',
customField: '20090825-152250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44785',
internalId:  '',
customField: '20100324-164241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49322',
internalId:  '',
customField: '20100324-164305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44806',
internalId:  '',
customField: '20090825-152528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44827',
internalId:  '',
customField: '20090825-152558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33501',
internalId:  '',
customField: '20090825-152621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49343',
internalId:  '',
customField: '20090825-152652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85045',
internalId:  '',
customField: '20100324-175325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85445',
internalId:  '',
customField: '20100324-180639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84045',
internalId:  '',
customField: '20100324-165758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57912',
internalId:  '',
customField: '20100324-172106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57933',
internalId:  '',
customField: '20090825-143712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57954',
internalId:  '',
customField: '20090729-040958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57975',
internalId:  '',
customField: '20100212-120832'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '3301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64912',
internalId:  '',
customField: '20090912-163012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76934',
internalId:  '',
customField: '20091124-150722'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHDLK';
var companyName   = 'Floors+of+Distinction+';
var htmlTitle	  = '';
var metaKeywords  = 'carpet%2C+installation%2C+carpet+installation%2C+wood+flooring%2C+wood%2C+cork%2C+cork+flooring%2C+bamboo+flooring%2C+hardwood+flooring%2C+Minneapolis%2C+cork%2C+bamboo%2C+laminate+flooring%2C+Minneapolis+floor+installers%2C+vinyl+tile%2C+luxury+vinyl%2C+mohawk+carpet%2C+shaw+carpet%2C+karastan+carpet%2C+tuftex+carpet%2C+floor+installation%2C+laminate+floors%2C+greenwood%2C+green+flooring%2C+wilsonart+flooring%2C+leather+flooring%2C+flooring+companies%2C+bamboo+floors%2C+red+oak+flooring%2C+cork+floors%2C+beaulieu+carpet%2C+carpet+companies%2C+natural+cork+flooring%2C+floor+installers%2C+Minneapolis+carpet+installation%2C+Minneapolis+flooring+installers%2C+greenwood+wood+flooring%2C+Brooklyn+Park%2C+Edina%2C+Minnetonka%2C+Lake+Minnetonka%2C+Eden+Prairie%2C+Maple+Grove%2C+Plymouth%2C+Excelsior%2C+Osseo%2C+Naturcor%2C+mannington%2C+Disney%2C+floorcraft%2C+quickstep%2C+amtico%2C+mirage%2C+kahrs%2C+Br111%2C';
var metaContents  = '';
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();
};
