/* [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','64',jdecode('Introduction+to+AITI'),jdecode(''),'/64.html','true',[],'',''],
	['PAGE','6107',jdecode('Our+Services'),jdecode(''),'/6107/index.html','true',[ 
		['PAGE','94',jdecode('Sale+Types'),jdecode(''),'/6107/94.html','true',[],'',''],
		['PAGE','6116',jdecode('Marketing'),jdecode(''),'/6107/6116.html','true',[],'',''],
		['PAGE','6125',jdecode('Analysis'),jdecode(''),'/6107/6125.html','true',[],'',''],
		['PAGE','6134',jdecode('Staff+Training'),jdecode(''),'/6107/6134.html','true',[],'',''],
		['PAGE','6143',jdecode('Web'),jdecode(''),'/6107/6143.html','true',[],'',''],
		['PAGE','6152',jdecode('Design'),jdecode(''),'/6107/6152.html','true',[],'','']
	],'',''],
	['PAGE','1279',jdecode('Attract+New+Customers'),jdecode(''),'/1279.html','true',[],'',''],
	['PAGE','1288',jdecode('Establish+New+Sales+Goals'),jdecode(''),'/1288.html','true',[],'',''],
	['PAGE','1297',jdecode('Solve+Cash+Flow+Problems'),jdecode(''),'/1297.html','true',[],'',''],
	['PAGE','1306',jdecode('Turn+Inventory+Quicker'),jdecode(''),'/1306.html','true',[],'',''],
	['PAGE','1315',jdecode('Create+High+Impact++Events'),jdecode(''),'/1315.html','true',[],'',''],
	['PAGE','1324',jdecode('Make+Advertising+Work'),jdecode(''),'/1324.html','true',[],'',''],
	['PAGE','1333',jdecode('Build+a+Successful+Business'),jdecode(''),'/1333.html','true',[],'',''],
	['PAGE','4430',jdecode('Signs%2C+Tags+%26+Stickers'),jdecode(''),'/4430/index.html','true',[ 
		['PAGE','5517',jdecode('Signs'),jdecode(''),'/4430/5517.html','true',[],'',''],
		['PAGE','5248',jdecode('Tags'),jdecode(''),'/4430/5248.html','true',[],'',''],
		['PAGE','5257',jdecode('Stickers'),jdecode(''),'/4430/5257.html','true',[],'','']
	],'',''],
	['PAGE','112',jdecode('Testimonials+%2F+Clients'),jdecode(''),'/112/index.html','true',[ 
		['PAGE','3330',jdecode('Testomonials+Images'),jdecode(''),'/112/3330.html','true',[],'','']
	],'',''],
	['PAGE','4666',jdecode('Current+QB+Stock+Links'),jdecode(''),'/4666.html','true',[],'',''],
	['PAGE','2630',jdecode('AITI%26%23x27%3Bs+Charity+Work'),jdecode(''),'/2630.html','true',[],'',''],
	['PAGE','2568',jdecode('Feed+Back+Form'),jdecode(''),'/2568/index.html','true',[ 
		['PAGE','2623',jdecode('Feed+Back+Form+%28follow+up+page%29'),jdecode(''),'/2568/2623.html','true',[],'','']
	],'',''],
	['PAGE','4789',jdecode('Careers'),jdecode(''),'/4789.html','true',[],'',''],
	['PAGE','6369',jdecode('Albums'),jdecode(''),'/6369/index.html','true',[ 
		['PAGE','2158',jdecode('Remote+Sale+Album'),jdecode(''),'/6369/2158.html','true',[],'',''],
		['PAGE','6891',jdecode('Signs'),jdecode(''),'/6369/6891.html','true',[],'',''],
		['PAGE','6946',jdecode('Testimonials'),jdecode(''),'/6369/6946.html','true',[],'','']
	],'',''],
	['PAGE','2696',jdecode('links'),jdecode(''),'/2696.html','true',[],'',''],
	['PAGE','6681',jdecode('Contact+AITI'),jdecode(''),'/6681.html','true',[],'','']];
var siteelementCount=32;
theSitetree.topTemplateName='Activate';
theSitetree.paletteFamily='1E3A6F';
theSitetree.keyvisualId='2033';
theSitetree.keyvisualName='e_commerz.jpg';
theSitetree.fontsetId='337';
theSitetree.graphicsetId='396';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='1E3A6F';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Activate',
				paletteFamily: 	'1E3A6F',
				keyvisualId: 	'2033',
				keyvisualName: 	'e_commerz.jpg',
				fontsetId: 		'337',
				graphicsetId: 	'396',
				contentColor: 	'DDDDDD',
				contentBGColor: '1E3A6F',
				a_color: 		'1E3A6F',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '64',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-be952e6d50f0cb96e0a76ddf95116322']={
webappId:    '7060',
documentId:  '2158',
internalId:  'be952e6d50f0cb96e0a76ddf95116322',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-2edbd01d93d4b2a033b7fa5fad98a77b']={
webappId:    '7060',
documentId:  '3330',
internalId:  '2edbd01d93d4b2a033b7fa5fad98a77b',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-4de180cd3c20ebe3c2f7353a6711041e']={
webappId:    '7060',
documentId:  '4430',
internalId:  '4de180cd3c20ebe3c2f7353a6711041e',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64',
internalId:  '',
customField: '20080111-222322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6107',
internalId:  '',
customField: '20071113-223826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94',
internalId:  '',
customField: '20080117-093609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6116',
internalId:  '',
customField: '20071112-215449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6125',
internalId:  '',
customField: '20071112-224912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6134',
internalId:  '',
customField: '20071112-224945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6143',
internalId:  '',
customField: '20071112-225014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6152',
internalId:  '',
customField: '20071112-215927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1279',
internalId:  '',
customField: '20071112-194637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1288',
internalId:  '',
customField: '20071114-084014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1297',
internalId:  '',
customField: '20071114-085214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1306',
internalId:  '',
customField: '20071112-194856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1315',
internalId:  '',
customField: '20071114-085420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1324',
internalId:  '',
customField: '20080111-222852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1333',
internalId:  '',
customField: '20071112-214148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4430',
internalId:  '',
customField: '20071116-223727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5517',
internalId:  '',
customField: '20071116-085027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5248',
internalId:  '',
customField: '20071116-221500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5257',
internalId:  '',
customField: '20071121-085226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112',
internalId:  '',
customField: '20080110-053148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3330',
internalId:  '',
customField: '20071112-195533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4666',
internalId:  '',
customField: '20080107-190148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2630',
internalId:  '',
customField: '20071112-200914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2568',
internalId:  '',
customField: '20071112-200849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2623',
internalId:  '',
customField: '20071013-032355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4789',
internalId:  '',
customField: '20071114-090008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6369',
internalId:  '',
customField: '20071119-084359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2158',
internalId:  '',
customField: '20071109-072155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6891',
internalId:  '',
customField: '20071119-083233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6946',
internalId:  '',
customField: '20071119-083322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2696',
internalId:  '',
customField: '20100903-042933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6681',
internalId:  '',
customField: '20071121-091215'
};
webappMappings['1501']=webappMappings['1501-2220272']={
webappId:    '1501',
documentId:  '64',
internalId:  '2220272',
customField: '1501'
};
webappMappings['5003']=webappMappings['5003-tid:1;pid:WSCSYSSSSLYTC245']={
webappId:    '5003',
documentId:  '64',
internalId:  'tid:1;pid:WSCSYSSSSLYTC245',
customField: 'en:US::;language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-9437']={
webappId:    '7008',
documentId:  '2568',
internalId:  '9437',
customField: 'language:en;country:US;'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050IN3ZTT';
var companyName   = 'AITI+CONSULTING+retail+services';
var htmlTitle	  = 'AITI+CONSULTING+retail+solutions%2C+providing+Retail+Consulting+Service+to+USA+and+CANADA+from+the+Pacific+North+West.++We+specialize+in+Retail+Store+Closings%2C+Retail+Promotional+Sales++Events%2C+and+proven+strategic+retail+marketing.';
var metaKeywords  = 'Retail%2C+Consulting%2C+Store+closing';
var metaContents  = 'AITI+is+a+Leading+Retail+Consulting+Company+serving+Canada+and+the+USA.+';
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();
};
