/* [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','701',jdecode('Home'),jdecode(''),'/701.html','true',[],'',''],
	['PAGE','41037',jdecode('Latest+Projects'),jdecode(''),'/41037.html','true',[],'',''],
	['PAGE','1193',jdecode('Display+Cases'),jdecode(''),'/1193.html','true',[],'',''],
	['PAGE','42787',jdecode('Sports+Cases'),jdecode(''),'/42787.html','true',[],'',''],
	['PAGE','51985',jdecode('Retail+Stores'),jdecode(''),'/51985.html','true',[],'',''],
	['PAGE','51785',jdecode('Commercial'),jdecode(''),'/51785.html','true',[],'',''],
	['PAGE','21701',jdecode('Salon+and+Spa'),jdecode(''),'/21701.html','true',[],'',''],
	['PAGE','983',jdecode('Kitchen+'),jdecode(''),'/983.html','true',[],'',''],
	['PAGE','29201',jdecode('Bathroom+'),jdecode(''),'/29201.html','true',[],'',''],
	['PAGE','30101',jdecode('Closets'),jdecode(''),'/30101.html','true',[],'',''],
	['PAGE','10601',jdecode('Entertainment+'),jdecode(''),'/10601.html','true',[],'',''],
	['PAGE','12001',jdecode('Built+In+'),jdecode(''),'/12001.html','true',[],'',''],
	['PAGE','5822',jdecode('Garage+'),jdecode(''),'/5822.html','true',[],'',''],
	['PAGE','10622',jdecode('Furniture'),jdecode(''),'/10622.html','true',[],'',''],
	['PAGE','35801',jdecode('Details+'),jdecode(''),'/35801.html','true',[],'',''],
	['PAGE','29222',jdecode('Office+Cabinets'),jdecode(''),'/29222.html','true',[],'',''],
	['PAGE','37901',jdecode('Fixture+gallery'),jdecode(''),'/37901.html','true',[],'',''],
	['PAGE','28501',jdecode('Jewelry+cases'),jdecode(''),'/28501.html','true',[],'',''],
	['PAGE','1172',jdecode('Store+Fixtures'),jdecode(''),'/1172.html','true',[],'',''],
	['PAGE','46385',jdecode('Slatwall+Fixtures'),jdecode(''),'/46385.html','true',[],'',''],
	['PAGE','46406',jdecode('Mall+Kiosks'),jdecode(''),'/46406.html','true',[],'',''],
	['PAGE','1214',jdecode('Museum+Cases'),jdecode(''),'/1214.html','true',[],'',''],
	['PAGE','5801',jdecode('Reception+Desk'),jdecode(''),'/5801.html','true',[],'',''],
	['PAGE','18401',jdecode('Displays'),jdecode(''),'/18401.html','true',[],'',''],
	['PAGE','1130',jdecode('Trade+Show++'),jdecode(''),'/1130.html','true',[],'',''],
	['PAGE','18422',jdecode('POP+Displays'),jdecode(''),'/18422.html','true',[],'',''],
	['PAGE','899',jdecode('Contact'),jdecode(''),'/899.html','true',[],'',''],
	['PAGE','752',jdecode('About+us'),jdecode(''),'/752.html','true',[],'',''],
	['PAGE','10301',jdecode('Map'),jdecode(''),'/10301.html','true',[],'','']];
var siteelementCount=29;
theSitetree.topTemplateName='Akropolis';
theSitetree.paletteFamily='A4A4AC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10553';
theSitetree.graphicsetId='10451';
theSitetree.contentColor='1d1d20';
theSitetree.contentBGColor='A4A4AC';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Akropolis',
				paletteFamily: 	'A4A4AC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10553',
				graphicsetId: 	'10451',
				contentColor: 	'1d1d20',
				contentBGColor: 'A4A4AC',
				a_color: 		'A4A4AC',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '10301',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20110407-205416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '983',
internalId:  '',
customField: '20101112-144335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5822',
internalId:  '',
customField: '20100425-162357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20090408-230751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1214',
internalId:  '',
customField: '20100425-155937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18401',
internalId:  '',
customField: '20081005-224110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1130',
internalId:  '',
customField: '20101112-153654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18422',
internalId:  '',
customField: '20100425-162727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '899',
internalId:  '',
customField: '20110407-205536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10622',
internalId:  '',
customField: '20100425-162507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10601',
internalId:  '',
customField: '20100425-155615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12001',
internalId:  '',
customField: '20090408-235011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1172',
internalId:  '',
customField: '20090326-170018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20100425-160258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1193',
internalId:  '',
customField: '20100425-155453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28501',
internalId:  '',
customField: '20100425-155334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10301',
internalId:  '',
customField: '20080831-014242'
};
webappMappings['7008']=webappMappings['7008-2564']={
webappId:    '7008',
documentId:  '899',
internalId:  '2564',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21701',
internalId:  '',
customField: '20101112-150415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29201',
internalId:  '',
customField: '20090409-001010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30101',
internalId:  '',
customField: '20090326-162751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29222',
internalId:  '',
customField: '20100425-162637'
};
webappMappings['7060']=webappMappings['7060-2f8c6368db5540194757762877fd2be0']={
webappId:    '7060',
documentId:  '35801',
internalId:  '2f8c6368db5540194757762877fd2be0',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35801',
internalId:  '',
customField: '20090409-003818'
};
webappMappings['7060']=webappMappings['7060-7fbe2d1ae576b27370445e5c27ccfc67']={
webappId:    '7060',
documentId:  '37901',
internalId:  '7fbe2d1ae576b27370445e5c27ccfc67',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37901',
internalId:  '',
customField: '20090409-014015'
};
webappMappings['7060']=webappMappings['7060-fa727272e71aacd30e7a7cffd419b807']={
webappId:    '7060',
documentId:  '41037',
internalId:  'fa727272e71aacd30e7a7cffd419b807',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41037',
internalId:  '',
customField: '20090807-130828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42787',
internalId:  '',
customField: '20100425-154949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46385',
internalId:  '',
customField: '20100425-153057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46406',
internalId:  '',
customField: '20100425-152635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51785',
internalId:  '',
customField: '20101112-154334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51985',
internalId:  '',
customField: '20101112-155440'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INE2DP';
var companyName   = 'North+County+Cabinets+and+EDC+Fixtures';
var htmlTitle	  = 'Custom+Cabinets%2C+Kitchen+cabinets%2C+Store+Fixtures%2C+Retail+Displays%2C+Display+Cases%2C+Reception+Desks%2COceanside%2CSan+Diego+County%2CCalifornia+';
var metaKeywords  = 'custom+cabinets%2Ccabinets%2Cdisplay+cases%2Cexhibits%2Cgarage+cabinets%2Cstore+fixtures%2Creception+desks%2Ckitchen+cabinets%2Ccustom+kitchen+cabinets%2Cjewelry+showcases%2Cwood+display+cases%2Cglass+display+cases%2Cmuseum+display+cases%2Ckitchens%2Ccabinetry%2Ccustom+exhibits%2Cretail+displays%2Cmall+kiosks%2Csalon+furniture%2Csalon+cabinets';
var metaContents  = 'Providing+high+quality+custom+cabinets%2Ccustom+kitchen+cabinets%2Cstore+fixtures%2Cretail+displays%2C+display+cases%2Cgarage+cabinets%2C+custom+exhibits%2C+custom+displays%2C+reception+desks%2Cmall+kiosks%2Cmuseum+display+cases%2Csalon+furniture%2Cetc.+Building+and+Design+of+Store+Fixtures+and+Displays+and+custom+woodworking+in+Oceanside+and+San+Diego+County+and+Southern+California+for20+years.';
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();
};

