/* [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 theSitetree=[ 
	['PAGE','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','452',jdecode('Products'),jdecode(''),'/452.html','true',[],''],
	['PAGE','473',jdecode('Wide+Format+Full+Color'),jdecode(''),'/473/index.html','true',[ 
		['PAGE','42512',jdecode('We%26%23x27%3Bre+%22going+green%22...'),jdecode(''),'/473/42512.html','true',[],'']
	],''],
	['PAGE','494',jdecode('Signs+and+%22stuff%22'),jdecode(''),'/494/index.html','true',[ 
		['PAGE','30901',jdecode('A-frame+signs'),jdecode(''),'/494/30901.html','true',[],''],
		['PAGE','48712',jdecode('Traffic%2Fsafety+sign+catalog'),jdecode(''),'/494/48712.html','true',[],''],
		['PAGE','11701',jdecode('Sign+bases+and+Posts'),jdecode(''),'/494/11701.html','true',[],'']
	],''],
	['PAGE','51012',jdecode('Banners+%26+Displays'),jdecode(''),'/51012/index.html','true',[ 
		['PAGE','56812',jdecode('Banner+stands%2FDisplays'),jdecode(''),'/51012/56812.html','true',[],''],
		['PAGE','51612',jdecode('Contractor%2FTrades+signs'),jdecode(''),'/51012/51612.html','false',[],''],
		['PAGE','51033',jdecode('Event+signage'),jdecode(''),'/51012/51033.html','false',[],''],
		['PAGE','51075',jdecode('Warning+signs'),jdecode(''),'/51012/51075.html','false',[],'']
	],''],
	['PAGE','50712',jdecode('Real+Estate+signs'),jdecode(''),'/50712/index.html','false',[ 
		['PAGE','50733',jdecode('Agency+signs'),jdecode(''),'/50712/50733.html','true',[],''],
		['PAGE','51096',jdecode('Sign+stands+and+frames'),jdecode(''),'/50712/51096.html','true',[],''],
		['PAGE','50754',jdecode('Foreclosure+signs'),jdecode(''),'/50712/50754.html','true',[],''],
		['PAGE','50775',jdecode('Zoning+hearing+signs'),jdecode(''),'/50712/50775.html','true',[],'']
	],''],
	['PAGE','50796',jdecode('Vehicle+lettering'),jdecode(''),'/50796/index.html','false',[ 
		['PAGE','50817',jdecode('Truck+and+auto+lettering'),jdecode(''),'/50796/50817.html','true',[],''],
		['PAGE','50838',jdecode('Boat+lettering'),jdecode(''),'/50796/50838.html','true',[],'']
	],''],
	['PAGE','515',jdecode('Engraving+Services'),jdecode(''),'/515/index.html','true',[ 
		['PAGE','24801',jdecode('ADA+compliant+signs'),jdecode(''),'/515/24801.html','true',[],''],
		['PAGE','20301',jdecode('Online+Engraving+Catalog'),jdecode(''),'/515/20301.html','true',[],'']
	],''],
	['PAGE','6701',jdecode('Photo+Album'),jdecode(''),'/6701.html','true',[],''],
	['PAGE','10301',jdecode('Tips+%26+Tricks'),jdecode(''),'/10301/index.html','true',[ 
		['PAGE','24001',jdecode('Letter+visibility+chart'),jdecode(''),'/10301/24001.html','true',[],'']
	],''],
	['PAGE','536',jdecode('Contact+Info'),jdecode(''),'/536/index.html','true',[ 
		['PAGE','557',jdecode('Our+address'),jdecode(''),'/536/557.html','true',[],''],
		['PAGE','578',jdecode('%22Google+map%22+us...'),jdecode(''),'/536/578.html','true',[],'']
	],'']];
var siteelementCount=30;
theSitetree.topTemplateName='Medium';
theSitetree.paletteFamily='01343D';
theSitetree.keyvisualId='2177';
theSitetree.keyvisualName='tastatur.jpg';
theSitetree.fontsetId='358';
theSitetree.graphicsetId='409';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='01343D';
var theTemplate={
				name: 			'Medium',
				paletteFamily: 	'01343D',
				keyvisualId: 	'2177',
				keyvisualName: 	'tastatur.jpg',
				fontsetId: 		'358',
				graphicsetId: 	'409',
				contentColor: 	'FFFFFF',
				contentBGColor: '01343D',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'01343D',
				b_color: 		'8EBFC6',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7060']=webappMappings['7060-09f5ca4a6bc4adc00b9c9fe8c30f3b98']={
webappId:    '7060',
documentId:  '6701',
internalId:  '09f5ca4a6bc4adc00b9c9fe8c30f3b98',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100217-135600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20091021-083153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20100217-094815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20090316-120659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20090316-121233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6701',
internalId:  '',
customField: '20090306-150454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10301',
internalId:  '',
customField: '20091020-114615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20090401-140457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11701',
internalId:  '',
customField: '20090306-064731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30901',
internalId:  '',
customField: '20091215-144404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20090325-062848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20091215-104503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20301',
internalId:  '',
customField: '20090226-125912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24001',
internalId:  '',
customField: '20090303-103544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24801',
internalId:  '',
customField: '20090309-120635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42512',
internalId:  '',
customField: '20091028-091334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48712',
internalId:  '',
customField: '20091217-133059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50712',
internalId:  '',
customField: '20091215-132734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50733',
internalId:  '',
customField: '20091215-140623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51096',
internalId:  '',
customField: '20091215-140733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50754',
internalId:  '',
customField: '20091215-141709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50775',
internalId:  '',
customField: '20091215-141846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50796',
internalId:  '',
customField: '20091216-154253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50817',
internalId:  '',
customField: '20091215-142739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50838',
internalId:  '',
customField: '20091215-132734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51033',
internalId:  '',
customField: '20091216-155204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51612',
internalId:  '',
customField: '20091215-142041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51012',
internalId:  '',
customField: '20091217-131923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56812',
internalId:  '',
customField: '20100216-142819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51075',
internalId:  '',
customField: '20091215-133612'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INVDSR';
var companyName   = '';
var htmlTitle	  = 'signs%2C+banners%2C+posters%2C+decals%2C+wide+format+printing%2C+engraving%2C+vinyl+lettering%2C+sign+bases%2C+magnetic+signs%2C+stencils%2C+recyclable%2C+eco+friendly%2C+environmentally+friendly';
var metaKeywords  = 'signs%2C+banners%2C+posters%2C+decals%2C+stencils%2C+engraving%2C+sign+bases%2C+magnetic+signs%2C+a+frame%2C+environmentally+friendly%2C+eco+friendly%2C+biodegradable%2C+reclycalable%2C+bio+resin%2C+green';
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();
};
