/* [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','4901',jdecode('Home'),jdecode(''), jdecode('%2F4901.html'), 'true',[],'',''],
	['PAGE','16901',jdecode('Gallery+of+Projects'),jdecode(''), jdecode('%2F16901.html'), 'true',[],'',''],
	['PAGE','4952',jdecode('General+Features'),jdecode(''), jdecode('%2F4952%2Findex.html'), 'true',[ 
		['PAGE','4973',jdecode('Multi+Window+View'),jdecode(''), jdecode('%2F4952%2F4973.html'), 'true',[],'',''],
		['PAGE','5501',jdecode('Menus%2C+Tools%2C+Functions'),jdecode(''), jdecode('%2F4952%2F5501.html'), 'true',[],'',''],
		['PAGE','5522',jdecode('Materials%2C+Cross-Sections'),jdecode(''), jdecode('%2F4952%2F5522.html'), 'true',[],'',''],
		['PAGE','5601',jdecode('Reports-Documentation'),jdecode(''), jdecode('%2F4952%2F5601.html'), 'true',[],'',''],
		['PAGE','6201',jdecode('User+Defined+Functions%2C+Properties%2C+Data'),jdecode(''), jdecode('%2F4952%2F6201.html'), 'true',[],'','']
	],'',''],
	['PAGE','4994',jdecode('Modeling'),jdecode(''), jdecode('%2F4994%2Findex.html'), 'true',[ 
		['PAGE','5015',jdecode('Geometry'),jdecode(''), jdecode('%2F4994%2F5015.html'), 'true',[],'',''],
		['PAGE','5036',jdecode('Import%2FExport'),jdecode(''), jdecode('%2F4994%2F5036.html'), 'true',[],'',''],
		['PAGE','5057',jdecode('Finite+Elements'),jdecode(''), jdecode('%2F4994%2F5057.html'), 'true',[],'',''],
		['PAGE','5078',jdecode('Loads'),jdecode(''), jdecode('%2F4994%2F5078.html'), 'true',[],'',''],
		['PAGE','5099',jdecode('Meshing'),jdecode(''), jdecode('%2F4994%2F5099.html'), 'true',[],'',''],
		['PAGE','49901',jdecode('Direct+Modeling%2FWizards'),jdecode(''), jdecode('%2F4994%2F49901.html'), 'true',[],'','']
	],'',''],
	['PAGE','5120',jdecode('Analysis'),jdecode(''), jdecode('%2F5120%2Findex.html'), 'true',[ 
		['PAGE','7001',jdecode('Linear%2C+Non-Linear+Static'),jdecode(''), jdecode('%2F5120%2F7001.html'), 'true',[],'',''],
		['PAGE','7022',jdecode('Vibration%2C+Buckling'),jdecode(''), jdecode('%2F5120%2F7022.html'), 'true',[],'',''],
		['PAGE','7043',jdecode('Seismic'),jdecode(''), jdecode('%2F5120%2F7043.html'), 'true',[],'',''],
		['PAGE','7064',jdecode('Dynamic'),jdecode(''), jdecode('%2F5120%2F7064.html'), 'true',[],'',''],
		['PAGE','34901',jdecode('Results'),jdecode(''), jdecode('%2F5120%2F34901.html'), 'true',[],'','']
	],'',''],
	['PAGE','6101',jdecode('Designs-Code+checks'),jdecode(''), jdecode('%2F6101%2Findex.html'), 'true',[ 
		['PAGE','6222',jdecode('Concrete'),jdecode(''), jdecode('%2F6101%2F6222.html'), 'true',[],'',''],
		['PAGE','6243',jdecode('Steel'),jdecode(''), jdecode('%2F6101%2F6243.html'), 'true',[],'',''],
		['PAGE','6264',jdecode('Prestressed'),jdecode(''), jdecode('%2F6101%2F6264.html'), 'true',[],'',''],
		['PAGE','6285',jdecode('Timber%2FWood'),jdecode(''), jdecode('%2F6101%2F6285.html'), 'true',[],'','']
	],'',''],
	['PAGE','5801',jdecode('Service%2C+Downloads'),jdecode(''), jdecode('%2F5801%2Findex.html'), 'true',[ 
		['PAGE','5843',jdecode('Demos%2C+Tutorials%2C+Step-by-Step+Instructions'),jdecode(''), jdecode('%2F5801%2F5843.html'), 'true',[],'',''],
		['PAGE','6001',jdecode('Updates%2C+Licensed+Users'),jdecode(''), jdecode('%2F5801%2F6001.html'), 'true',[],'',''],
		['PAGE','6401',jdecode('FAQ%26%23x27%3Bs'),jdecode(''), jdecode('%2F5801%2F6401.html'), 'true',[],'',''],
		['PAGE','6501',jdecode('Support'),jdecode(''), jdecode('%2F5801%2F6501.html'), 'true',[],'',''],
		['PAGE','6601',jdecode('Verifications%2C+Proofs%2C+Examples'),jdecode(''), jdecode('%2F5801%2F6601.html'), 'true',[],'',''],
		['PAGE','5822',jdecode('Pricing%2FOrdering'),jdecode(''), jdecode('%2F5801%2F5822.html'), 'true',[],'','']
	],'',''],
	['PAGE','6701',jdecode('The+Business+of+Engineering'),jdecode(''), jdecode('%2F6701%2Findex.html'), 'true',[ 
		['PAGE','50201',jdecode('Eurocode+Links'),jdecode(''), jdecode('%2F6701%2F50201.html'), 'true',[],'',''],
		['PAGE','50222',jdecode('BIM+Links'),jdecode(''), jdecode('%2F6701%2F50222.html'), 'true',[],'',''],
		['PAGE','50243',jdecode('Industry+Links'),jdecode(''), jdecode('%2F6701%2F50243.html'), 'true',[],'','']
	],'',''],
	['PAGE','5141',jdecode('Contact%2FPrivacy+Policy'),jdecode(''), jdecode('%2F5141.html'), 'true',[],'',''],
	['PAGE','52701',jdecode('Download+Registration'),jdecode(''), jdecode('%2F52701.html'), 'false',[],'',''],
	['PAGE','53601',jdecode('Search'),jdecode(''), jdecode('%2F53601.html'), 'true',[],'','']];
var siteelementCount=40;
theSitetree.topTemplateName='Metal';
theSitetree.paletteFamily='64896D';
theSitetree.keyvisualId='724';
theSitetree.keyvisualName='labtop.jpg';
theSitetree.fontsetId='142';
theSitetree.graphicsetId='157';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'endurance',
  product: 'WSCSYSSSSLY0XRN4'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Metal',
				paletteFamily: 	'64896D',
				keyvisualId: 	'724',
				keyvisualName: 	'labtop.jpg',
				fontsetId: 		'142',
				graphicsetId: 	'157',
				contentColor: 	'DDDDDD',
				contentBGColor: '000000',
				a_color: 		'64896D',
				b_color: 		'A7E4B6',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4901',
internalId:  '',
customField: '20120207-110330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4952',
internalId:  '',
customField: '20120207-110832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4994',
internalId:  '',
customField: '20101219-005312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5120',
internalId:  '',
customField: '20101219-082641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6101',
internalId:  '',
customField: '20111203-075305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5501',
internalId:  '',
customField: '20101218-173645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16901',
internalId:  '',
customField: '20101213-030555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20120205-085147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5822',
internalId:  '',
customField: '20120205-064218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6401',
internalId:  '',
customField: '20101213-013001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6501',
internalId:  '',
customField: '20101213-014201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4973',
internalId:  '',
customField: '20101219-041111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5522',
internalId:  '',
customField: '20120205-045513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5601',
internalId:  '',
customField: '20120205-082214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6201',
internalId:  '',
customField: '20120205-082409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5015',
internalId:  '',
customField: '20101218-102323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5036',
internalId:  '',
customField: '20120205-034947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5078',
internalId:  '',
customField: '20120205-131026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5099',
internalId:  '',
customField: '20120205-132824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5057',
internalId:  '',
customField: '20110809-053247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7001',
internalId:  '',
customField: '20120205-051322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7022',
internalId:  '',
customField: '20101219-034751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7043',
internalId:  '',
customField: '20110603-010521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7064',
internalId:  '',
customField: '20101219-035214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34901',
internalId:  '',
customField: '20101219-013916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6222',
internalId:  '',
customField: '20120207-104316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6243',
internalId:  '',
customField: '20120205-083651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6264',
internalId:  '',
customField: '20120205-074056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6285',
internalId:  '',
customField: '20101219-031738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6601',
internalId:  '',
customField: '20101219-044450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5843',
internalId:  '',
customField: '20120207-102854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6001',
internalId:  '',
customField: '20120205-063919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6701',
internalId:  '',
customField: '20110430-155912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5141',
internalId:  '',
customField: '20120205-064355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49901',
internalId:  '',
customField: '20110810-084015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50201',
internalId:  '',
customField: '20110430-155952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50222',
internalId:  '',
customField: '20110430-155935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50243',
internalId:  '',
customField: '20110430-154300'
};
webappMappings['7008']=webappMappings['7008-4739']={
webappId:    '7008',
documentId:  '52701',
internalId:  '4739',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52701',
internalId:  '',
customField: '20110809-091147'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '53601',
internalId:  'search',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53601',
internalId:  '',
customField: '20110810-085151'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0INZTO7';
var companyName   = 'MAD+Software';
var htmlTitle	  = 'AxisVM+Structural+Engineering+Software';
var metaKeywords  = 'AxisVM%2C+finite%2C+structural+analysis%2C+Eurocode%2C+static%2C+vibration%2C+buckling%2C+Eurocode%2C++BIM+Modeling%2C+seismic%2C+earthquake%2C+bridge%2C+tower%2C++tank%2C+wind+load%2C+snow+load%2C%0D%0A%0D%0A';
var metaContents  = 'Structural+Engineering+software+for+Modeling%2C++Analysis+and+Design+of+Beams%2C+Columns%2C+Plates%2C+Shells%2C+Membranes+%0D%0A+';
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();
};

