/* [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','22',jdecode('Home'),jdecode(''),'/22/index.html','true',[ 
		['PAGE','1008',jdecode('Signs'),jdecode(''),'/22/1008.html','true',[],'',''],
		['PAGE','3961',jdecode('Banners'),jdecode(''),'/22/3961.html','true',[],'',''],
		['PAGE','1017',jdecode('Exhibits'),jdecode(''),'/22/1017.html','true',[],'',''],
		['PAGE','1026',jdecode('Graphics+%26+Lettering'),jdecode(''),'/22/1026.html','true',[],'',''],
		['PAGE','11695',jdecode('Awards%2C+Recognition+%26+Gifts'),jdecode(''),'/22/11695.html','true',[],'',''],
		['PAGE','1035',jdecode('Name+Tags+%26+Miscellaneous'),jdecode(''),'/22/1035.html','true',[],'','']
	],'',''],
	['PAGE','41223',jdecode(''),jdecode(''),'/41223.html','true',[],'',''],
	['PAGE','1389',jdecode('About+us'),jdecode(''),'/1389/index.html','true',[ 
		['PAGE','1398',jdecode('Our+Team'),jdecode(''),'/1389/1398.html','true',[],'',''],
		['PAGE','27501',jdecode('The+team'),jdecode(''),'/1389/27501.html','true',[],'','']
	],'',''],
	['PAGE','1425',jdecode('Our+Services'),jdecode(''),'/1425.html','true',[],'',''],
	['PAGE','16377',jdecode('Why+SignOne%3F'),jdecode(''),'/16377.html','true',[],'',''],
	['PAGE','11704',jdecode('Customer+Comments'),jdecode(''),'/11704.html','true',[],'',''],
	['PAGE','1317',jdecode('Resources'),jdecode(''),'/1317.html','true',[],'',''],
	['PAGE','1053',jdecode('Contact+Us'),jdecode(''),'/1053/index.html','true',[ 
		['PAGE','15057',jdecode('Contact+Us+%28follow+up+page%29'),jdecode(''),'/1053/15057.html','false',[],'',''],
		['PAGE','14823',jdecode('Directions'),jdecode(''),'/1053/14823.html','true',[],'',''],
		['PAGE','1416',jdecode('Hours'),jdecode(''),'/1053/1416.html','true',[],'','']
	],'',''],
	['PAGE','16511',jdecode('Ordering+Guidelines'),jdecode(''),'/16511.html','true',[],'',''],
	['PAGE','1335',jdecode('Special+Offers'),jdecode(''),'/1335.html','true',[],'',''],
	['PAGE','1434',jdecode('NEW%21'),jdecode(''),'/1434.html','true',[],'',''],
	['PAGE','1491',jdecode('Guestbook'),jdecode(''),'/1491/index.html','true',[ 
		['PAGE','1490',jdecode('Read+Guestbook'),jdecode(''),'/1491/1490.html','false',[],'','']
	],'',''],
	['PAGE','17924',jdecode('How+to+find+us'),jdecode(''),'/17924.html','true',[],'',''],
	['PAGE','31001',jdecode('References++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'),jdecode(''),'/31001.html','true',[],'','']];
var siteelementCount=26;
theSitetree.topTemplateName='Macao';
theSitetree.paletteFamily='607FB8';
theSitetree.keyvisualId='6431';
theSitetree.keyvisualName='kv_6431.jpg';
theSitetree.fontsetId='11167';
theSitetree.graphicsetId='11976';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='A3BAE5';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Macao',
				paletteFamily: 	'607FB8',
				keyvisualId: 	'6431',
				keyvisualName: 	'kv_6431.jpg',
				fontsetId: 		'11167',
				graphicsetId: 	'11976',
				contentColor: 	'000000',
				contentBGColor: 'A3BAE5',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41223',
internalId:  '',
customField: '20091228-165751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31001',
internalId:  '',
customField: '20080727-092554'
};
webappMappings['1002']=webappMappings['1002-1491AHW050INXSZ2']={
webappId:    '1002',
documentId:  '1491',
internalId:  '1491AHW050INXSZ2',
customField: 'icq=false'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '14823',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '17924',
internalId:  'routing',
customField: 'en_US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22',
internalId:  '',
customField: '20091208-080103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1008',
internalId:  '',
customField: '20091228-154713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3961',
internalId:  '',
customField: '20080316-190909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1017',
internalId:  '',
customField: '20080516-142942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1026',
internalId:  '',
customField: '20080316-191110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11695',
internalId:  '',
customField: '20080316-191426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1035',
internalId:  '',
customField: '20080316-191746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1389',
internalId:  '',
customField: '20080319-234719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1398',
internalId:  '',
customField: '20080316-193119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27501',
internalId:  '',
customField: '20080623-210605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1425',
internalId:  '',
customField: '20080305-233722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16377',
internalId:  '',
customField: '20080319-235448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11704',
internalId:  '',
customField: '20080303-174545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1317',
internalId:  '',
customField: '20090209-110739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1053',
internalId:  '',
customField: '20080319-234655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15057',
internalId:  '',
customField: '20080305-235406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14823',
internalId:  '',
customField: '20080314-024545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1416',
internalId:  '',
customField: '20080319-233013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16511',
internalId:  '',
customField: '20080515-231031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1335',
internalId:  '',
customField: '20080623-205633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1434',
internalId:  '',
customField: '20080516-141841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1491',
internalId:  '',
customField: '20080306-000300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1490',
internalId:  '',
customField: '20080306-000312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17924',
internalId:  '',
customField: '20080616-005140'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '22',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '22',
internalId:  '1501',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-8344']={
webappId:    '7008',
documentId:  '1053',
internalId:  '8344',
customField: 'language:en;country:US;'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INXSZ2';
var companyName   = 'Your+Premier+Sign+Resource';
var htmlTitle	  = 'www.signone.com';
var metaKeywords  = 'Wide+format+banners%2C+vehicle+graphics%2C+Laser+engraved+Name+badges%2C+Building+Directories%2C+Window+Graphics+and+Lettering%2C+Architectural+Signs%2C+Trade+Show+Signs%2C+Event+Signage%2C+Golf+Outings%2C+Construction%2C+ADA+Signs%2C+Real+Estate+Signs%2C+Floor+Graphics%2C+Static+Cling%2C+Decals%2C+Logos%2C+Magnetic+Signs%2C+++A-FrameSigns%2C+Vista+System%2C+Evanston%2Cil%2C+Wilmette%2C+Il%2C+Skokie%2C+IL';
var metaContents  = 'Wide+format+banners%2C+vehicle+graphics%2C+Laser+engraved+Name+badges%2C+Building+Directories%2C+Window+Graphics+and+Lettering%2C+Architectural+Signs%2C+Trade+Show+Signs%2C+Event+Signage%2C+Golf+Outings%2C+Construction%2C+ADA+Signs%2C+Real+Estate+Signs%2C+Floor+Graphics%2C+Static+Cling%2C+Decals%2C+Logos%2C+Magnetic+Signs%2C+++A-FrameSigns%2C+Vista+System%2C+Evanston%2Cil%2C+Wilmette%2C+Il%2C+Skokie%2C+IL';
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();
};
