/* [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','4601',jdecode('MSI+-+The+Company'),jdecode(''),'/4601/index.html','true',[ 
		['PAGE','9122',jdecode('Custom+Fabrication'),jdecode(''),'/4601/9122.html','true',[],''],
		['PAGE','9185',jdecode('Paint+System'),jdecode(''),'/4601/9185.html','true',[],''],
		['PAGE','9101',jdecode('Services+Listing'),jdecode(''),'/4601/9101.html','true',[],'']
	],''],
	['PAGE','29039',jdecode('ATM+Enhancements'),jdecode(''),'/29039/index.html','true',[ 
		['PAGE','9164',jdecode('Refurbishments+%2F+Repairs'),jdecode(''),'/29039/9164.html','true',[],''],
		['PAGE','25801',jdecode('ATM+Surrounds'),jdecode(''),'/29039/25801.html','true',[],''],
		['PAGE','30853',jdecode('ATM+Towers'),jdecode(''),'/29039/30853.html','true',[],''],
		['PAGE','30874',jdecode('ATM+Toppers'),jdecode(''),'/29039/30874.html','true',[],''],
		['PAGE','30895',jdecode('Network+Panels'),jdecode(''),'/29039/30895.html','true',[],''],
		['PAGE','15601',jdecode('Preventative+Maintenance'),jdecode(''),'/29039/15601.html','true',[],'']
	],''],
	['PAGE','9143',jdecode('Signage+Solutions'),jdecode(''),'/9143/index.html','true',[ 
		['PAGE','30353',jdecode('Sign+Boxes'),jdecode(''),'/9143/30353.html','true',[],'']
	],''],
	['PAGE','26401',jdecode('Dissection+Tables'),jdecode(''),'/26401/index.html','true',[ 
		['PAGE','27339',jdecode('Standard+Features'),jdecode(''),'/26401/27339.html','true',[],''],
		['PAGE','27839',jdecode('Table+Options'),jdecode(''),'/26401/27839.html','true',[],''],
		['PAGE','28339',jdecode('Stainless+Steel+Construction'),jdecode(''),'/26401/28339.html','true',[],'']
	],''],
	['PAGE','19201',jdecode('Contact'),jdecode(''),'/19201.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Display';
theSitetree.paletteFamily='4F4F4B';
theSitetree.keyvisualId='11079';
theSitetree.keyvisualName='kv_11079.jpg';
theSitetree.fontsetId='31963';
theSitetree.graphicsetId='13801';
theSitetree.contentColor='1B1B1B';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Display',
				paletteFamily: 	'4F4F4B',
				keyvisualId: 	'11079',
				keyvisualName: 	'kv_11079.jpg',
				fontsetId: 		'31963',
				graphicsetId: 	'13801',
				contentColor: 	'1B1B1B',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4601',
internalId:  '',
customField: '20090521-171338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9122',
internalId:  '',
customField: '20090521-163651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9143',
internalId:  '',
customField: '20090430-142549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9185',
internalId:  '',
customField: '20081219-145558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9101',
internalId:  '',
customField: '20081217-111240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9164',
internalId:  '',
customField: '20090521-164349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25801',
internalId:  '',
customField: '20090521-171115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27839',
internalId:  '',
customField: '20090415-135344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19201',
internalId:  '',
customField: '20090521-170241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15601',
internalId:  '',
customField: '20081217-113839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27339',
internalId:  '',
customField: '20090415-140736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26401',
internalId:  '',
customField: '20090415-140436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28339',
internalId:  '',
customField: '20090415-135900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29039',
internalId:  '',
customField: '20090521-181137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30353',
internalId:  '',
customField: '20090521-183321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30874',
internalId:  '',
customField: '20090521-121141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30895',
internalId:  '',
customField: '20090430-161337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30853',
internalId:  '',
customField: '20090521-120127'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0INE6XG';
var companyName   = 'Fabrication+*+Rebranding+*+Refurbishment+*+Paint+Spraying+';
var htmlTitle	  = 'MSI+-+Custom+Fabrication+and+Design';
var metaKeywords  = 'Fabrication%2C+Sheet+Metal%2C+Welding%2C+Painting%2C+Spraying%2C+Repair%2C+Signs%2C+Signage%2C+ATM%2C+Surround%2C+Enclosure%2C+Topper%2C+Tower%2C+Automated+Teller+machine%2C+Branding%2C+Pressure+Cleaning%2C+Dissection+Tables%2C+Morgue%2C+Autopsy';
var metaContents  = 'Custom+Fabrication+and+Design%2C+MSI+has+trained+professionals+in+sheet+metal+fabrication%2C+design%2C+welding+and+spraying.++Signage+Solution+company+with+statewide+mobility+throughout+FL%2C+GA%2C+SC%2C+AL%2C+NC%2C+TN.++Competitive+Pricing+and+Quality+Assurance.';
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();
};

