/* [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','3601',jdecode('Home'),jdecode(''),'/3601/index.html','true',[ 
		['PAGE','4201',jdecode('Contact+Us'),jdecode(''),'/3601/4201.html','true',[],'','']
	],'',''],
	['PAGE','3841',jdecode('Project+Portfolio'),jdecode(''),'/3841.html','true',[],'',''],
	['PAGE','3673',jdecode('Products'),jdecode(''),'/3673/index.html','true',[ 
		['PAGE','15001',jdecode('Laminate+Desking+and+Reception'),jdecode(''),'/3673/15001.html','true',[],'',''],
		['PAGE','15022',jdecode('Laminate+Conference+and+Storage'),jdecode(''),'/3673/15022.html','true',[],'',''],
		['PAGE','15127',jdecode('Laminate+Finish+Options'),jdecode(''),'/3673/15127.html','true',[],'',''],
		['PAGE','61334',jdecode('Veneer+Desking+and+Reception'),jdecode(''),'/3673/61334.html','true',[],'',''],
		['PAGE','15043',jdecode('Veneer+Conference+and+Storage'),jdecode(''),'/3673/15043.html','true',[],'',''],
		['PAGE','15064',jdecode('Veneer+Finishes'),jdecode(''),'/3673/15064.html','true',[],'',''],
		['PAGE','3715',jdecode('Cubicle+Systems'),jdecode(''),'/3673/3715.html','true',[],'',''],
		['PAGE','15301',jdecode('Cubicle+Finish+Options'),jdecode(''),'/3673/15301.html','true',[],'',''],
		['PAGE','3736',jdecode('Rolling+Walls+%26+Panels'),jdecode(''),'/3673/3736.html','true',[],'',''],
		['PAGE','69834',jdecode('Demountable+Walls'),jdecode(''),'/3673/69834.html','true',[],'',''],
		['PAGE','3757',jdecode('Seating'),jdecode(''),'/3673/3757.html','true',[],'',''],
		['PAGE','69876',jdecode('Filing'),jdecode(''),'/3673/69876.html','true',[],'',''],
		['PAGE','61355',jdecode('Flooring+and+Window+Treatments'),jdecode(''),'/3673/61355.html','true',[],'',''],
		['PAGE','61376',jdecode('Window+Treatments'),jdecode(''),'/3673/61376.html','true',[],'',''],
		['PAGE','61397',jdecode('Artwork'),jdecode(''),'/3673/61397.html','true',[],'',''],
		['PAGE','4243',jdecode('Contact+Us'),jdecode(''),'/3673/4243.html','true',[],'','']
	],'',''],
	['PAGE','86867',jdecode('Buyboard'),jdecode(''),'/86867.html','true',[],'',''],
	['PAGE','3799',jdecode('Installation'),jdecode(''),'/3799/index.html','true',[ 
		['PAGE','4264',jdecode('Contact+Us'),jdecode(''),'/3799/4264.html','true',[],'','']
	],'',''],
	['PAGE','3820',jdecode('Pricing'),jdecode(''),'/3820/index.html','true',[ 
		['PAGE','4285',jdecode('Contact+Us'),jdecode(''),'/3820/4285.html','true',[],'','']
	],'',''],
	['PAGE','3652',jdecode('About+Us'),jdecode(''),'/3652/index.html','true',[ 
		['PAGE','4222',jdecode('Contact+Us'),jdecode(''),'/3652/4222.html','true',[],'','']
	],'','']];
var siteelementCount=27;
theSitetree.topTemplateName='Bound';
theSitetree.paletteFamily='4D5022';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10831';
theSitetree.graphicsetId='11288';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='787F42';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Bound',
				paletteFamily: 	'4D5022',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10831',
				graphicsetId: 	'11288',
				contentColor: 	'FFFFFF',
				contentBGColor: '787F42',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3601',
internalId:  '',
customField: '20100903-124753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3652',
internalId:  '',
customField: '20100903-120201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3673',
internalId:  '',
customField: '20100903-133830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3757',
internalId:  '',
customField: '20090828-142548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4201',
internalId:  '',
customField: '20100903-120547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69834',
internalId:  '',
customField: '20090828-105917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69876',
internalId:  '',
customField: '20090828-133748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3736',
internalId:  '',
customField: '20090828-131120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3715',
internalId:  '',
customField: '20090828-141911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20090828-140048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3820',
internalId:  '',
customField: '20090828-124933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15022',
internalId:  '',
customField: '20090828-140124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15043',
internalId:  '',
customField: '20090828-143135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4222',
internalId:  '',
customField: '20100903-120229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4243',
internalId:  '',
customField: '20090825-090320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3799',
internalId:  '',
customField: '20100903-124324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4264',
internalId:  '',
customField: '20100903-120432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4285',
internalId:  '',
customField: '20100903-120351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61376',
internalId:  '',
customField: '20090828-143920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15064',
internalId:  '',
customField: '20090828-141040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15127',
internalId:  '',
customField: '20090828-141228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15301',
internalId:  '',
customField: '20090828-131508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61397',
internalId:  '',
customField: '20100811-112504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61355',
internalId:  '',
customField: '20090828-105801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3841',
internalId:  '',
customField: '20100903-132516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61334',
internalId:  '',
customField: '20090828-143747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86867',
internalId:  '',
customField: '20100514-103620'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INLIRM';
var companyName   = 'AOC+Furniture';
var htmlTitle	  = '';
var metaKeywords  = '';
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();
};
