/* [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','301',jdecode('Home'),jdecode(''),'/301.html','true',[],'',''],
	['PAGE','701',jdecode('Job+Market'),jdecode(''),'/701/index.html','true',[ 
		['PAGE','14001',jdecode('Best+Job+in+America'),jdecode(''),'/701/14001.html','true',[],'',''],
		['PAGE','14022',jdecode('Fastest-Growing+Jobs'),jdecode(''),'/701/14022.html','true',[],'',''],
		['PAGE','14043',jdecode('Job+Hunting+Strategy'),jdecode(''),'/701/14043.html','true',[],'',''],
		['PAGE','14064',jdecode('Job+Training+Strategy'),jdecode(''),'/701/14064.html','true',[],'',''],
		['PAGE','14085',jdecode('MS+SQL+vs+Oracle'),jdecode(''),'/701/14085.html','true',[],'',''],
		['PAGE','14106',jdecode('.NET+vs+J2EE'),jdecode(''),'/701/14106.html','true',[],'','']
	],'',''],
	['PAGE','743',jdecode('.NET+Training'),jdecode(''),'/743/index.html','true',[ 
		['PAGE','785',jdecode('.NET+Window%2FWeb+2.0%2F3.5'),jdecode(''),'/743/785.html','true',[],'',''],
		['PAGE','13101',jdecode('Project+201'),jdecode(''),'/743/13101.html','true',[],'',''],
		['PAGE','13122',jdecode('Project+202'),jdecode(''),'/743/13122.html','true',[],'',''],
		['PAGE','13143',jdecode('Project+203'),jdecode(''),'/743/13143.html','true',[],'',''],
		['PAGE','24401',jdecode('WPF%2FSilverlight%2FAJAX'),jdecode(''),'/743/24401.html','true',[],'',''],
		['PAGE','35501',jdecode('C%23+4.0+New+Features'),jdecode(''),'/743/35501.html','true',[],'','']
	],'',''],
	['PAGE','764',jdecode('SQL+Server+Training'),jdecode(''),'/764/index.html','true',[ 
		['PAGE','5522',jdecode('SQL+Server+2005%2F2008'),jdecode(''),'/764/5522.html','true',[],'','']
	],'',''],
	['PAGE','28301',jdecode('Smart+Programming+Ideas'),jdecode(''),'/28301/index.html','true',[ 
		['PAGE','29401',jdecode('Current+Projects'),jdecode(''),'/28301/29401.html','true',[],'',''],
		['PAGE','28322',jdecode('Smarter+Planet'),jdecode(''),'/28301/28322.html','true',[],'',''],
		['PAGE','28343',jdecode('Material+Network+-+Sense+China'),jdecode(''),'/28301/28343.html','true',[],'',''],
		['PAGE','29201',jdecode('Business+Ideas'),jdecode(''),'/28301/29201.html','true',[],'','']
	],'',''],
	['PAGE','32801',jdecode('Referral+Program'),jdecode(''),'/32801.html','true',[],'',''],
	['PAGE','911',jdecode('Testimonials'),jdecode(''),'/911.html','true',[],'',''],
	['PAGE','932',jdecode('Contact'),jdecode(''),'/932.html','true',[],'','']];
var siteelementCount=25;
theSitetree.topTemplateName='Activate';
theSitetree.paletteFamily='1E3A6F';
theSitetree.keyvisualId='2028';
theSitetree.keyvisualName='boerse.jpg';
theSitetree.fontsetId='337';
theSitetree.graphicsetId='396';
theSitetree.contentColor='FFFFFF';
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: 	'2028',
				keyvisualName: 	'boerse.jpg',
				fontsetId: 		'337',
				graphicsetId: 	'396',
				contentColor: 	'FFFFFF',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['5003']=webappMappings['5003-tid:1;pid:WSCSYSSSSLYTC245']={
webappId:    '5003',
documentId:  '301',
internalId:  'tid:1;pid:WSCSYSSSSLYTC245',
customField: 'en:US:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20100815-133529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20080717-215555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14085',
internalId:  '',
customField: '20080716-101817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '743',
internalId:  '',
customField: '20100815-132115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13101',
internalId:  '',
customField: '20100101-140650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13122',
internalId:  '',
customField: '20091027-234934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13143',
internalId:  '',
customField: '20100815-115640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '785',
internalId:  '',
customField: '20100101-142358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '764',
internalId:  '',
customField: '20091018-212803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '932',
internalId:  '',
customField: '20080703-154353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14001',
internalId:  '',
customField: '20080716-135632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14022',
internalId:  '',
customField: '20100601-150627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14043',
internalId:  '',
customField: '20080717-215542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14064',
internalId:  '',
customField: '20080716-101817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14106',
internalId:  '',
customField: '20080716-101817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24401',
internalId:  '',
customField: '20100101-145340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5522',
internalId:  '',
customField: '20091228-173718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28301',
internalId:  '',
customField: '20091102-165224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '911',
internalId:  '',
customField: '20100102-174126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28322',
internalId:  '',
customField: '20091102-165545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28343',
internalId:  '',
customField: '20091031-203725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29201',
internalId:  '',
customField: '20091031-205642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29401',
internalId:  '',
customField: '20091102-170424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32801',
internalId:  '',
customField: '20100114-163543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35501',
internalId:  '',
customField: '20100815-133324'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050IN2JS6';
var companyName   = 'iSoft+Training+School';
var htmlTitle	  = 'School_07162008';
var metaKeywords  = '';
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();
};
