/* [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','801',jdecode('HOME'),jdecode(''),'/801.html','true',[],''],
	['PAGE','10848',jdecode('ABOUT+WTN'),jdecode(''),'/10848.html','true',[],''],
	['PAGE','852',jdecode('ONLINE+TRAINING'),jdecode(''),'/852.html','true',[],''],
	['PAGE','10701',jdecode('DVD'),jdecode(''),'/10701.html','true',[],''],
	['PAGE','10764',jdecode('LIVE+TRAINING'),jdecode(''),'/10764.html','true',[],''],
	['PAGE','10827',jdecode('CONTACT+US'),jdecode(''),'/10827.html','true',[],''],
	['PAGE','10743',jdecode('FREE+PREVIEWS'),jdecode(''),'/10743.html','true',[],''],
	['PAGE','72601',jdecode('STORE'),jdecode(''),'/72601.html','true',[],''],
	['PAGE','10722',jdecode('CALIFORNIA+AB1825'),jdecode(''),'/10722.html','true',[],''],
	['PAGE','10806',jdecode('OSHA+PRODUCTS'),jdecode(''),'/10806.html','true',[],''],
	['PAGE','163301',jdecode('TESTIMONIALS'),jdecode(''),'/163301.html','true',[],''],
	['PAGE','163322',jdecode('CLIENTS'),jdecode(''),'/163322.html','true',[],''],
	['PAGE','10869',jdecode('NIXON+PEABODY'),jdecode(''),'/10869.html','true',[],''],
	['PAGE','166001',jdecode('New+page'),jdecode(''),'/166001.html','false',[],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='333F65';
theSitetree.keyvisualId='1819';
theSitetree.keyvisualName='kv_dummy.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='355';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='333F65';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Movement',
				paletteFamily: 	'333F65',
				keyvisualId: 	'1819',
				keyvisualName: 	'kv_dummy.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'355',
				contentColor: 	'FFFFFF',
				contentBGColor: '333F65',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'333F65',
				b_color: 		'040507',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '852',
internalId:  '',
customField: '20081114-151116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '801',
internalId:  '',
customField: '20100329-005243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10701',
internalId:  '',
customField: '20081114-162718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10848',
internalId:  '',
customField: '20081114-145925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10764',
internalId:  '',
customField: '20081111-192016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10827',
internalId:  '',
customField: '20090926-152541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72601',
internalId:  '',
customField: '20081111-162434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10743',
internalId:  '',
customField: '20081111-162500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10722',
internalId:  '',
customField: '20081111-160913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10806',
internalId:  '',
customField: '20100317-225937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163322',
internalId:  '',
customField: '20081111-191532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163301',
internalId:  '',
customField: '20081111-163422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10869',
internalId:  '',
customField: '20081111-162838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166001',
internalId:  '',
customField: '20081114-152252'
};
var canonHostname = 'wsc1.brinkster.com';
var accountId     = 'ABRI10INEMH2';
var companyName   = 'Workplace+Training+Network';
var htmlTitle	  = '';
var metaKeywords  = 'free+training+video+training+online+videos+free+training+videos+Workplace+training+free+videos+training+training+online+video+Sexual+Harassment+videos+sexual+harassment+training+videos+Sexual+Harassment+video+free+training+online+video+Sexual+Harassment+training+employee+training+videos+Diversity+training+free+training+online+videos+Conflict+Resolution+training+Diversity+videos+Discrimination+videos+free+videos+online+training+Workplace+Violence+training+workplace+diversity+training+free+training+programs+sexual+harassment+training+video+workplace+harassment+video+Discrimination+training+workplace+sexual+harassment+videos+free+Sexual+Harassment+videos+Management+Skills+training+Communication+training+Hiring+videos+free+Communication+training+free+Diversity+videos+Diversity+video+Conflict+Resolution+video+Discrimination+video+workplace+harassment+training+Performance+Management+training+Termination+training+Workplace+Violence+videos+Communication+videos+Hiring+video+Workplace+training+video+workplace+sexual+harassment+training+workplace+harassment+videos+Conflict+Resolution+videos+free+Conflict+Resolution+video+Sexual+Harassment+online+training+free+Diversity+online+training+Workplace+training+online+Diversity+training+videos+sexual+harassment+prevention+video+Diversity+online+training+Diversity+training+video+training+on+line+video+Communication+video+free+sexual+harassment+training+video+AB+1825+training+workplace+diversity+video+free+Workplace+Violence+training+Termination+video+employee+training+video+free+Communication+videos+Workplace+training+videos+Communication+online+video+Communication+program+Communication+programs+Communication+training+programs+Communication+training+videos+free+Communication+online+training+free+Communication+video+Conflict+Resolution+online+training+Conflict+Resolution+program+Conflict+Resolution+programs+Conflict+Resolution+training+video+free+Conflict+Resolution+training+Discrimination+programs+free+Discrimination+training+Diversity+on+line+training+Diversity+program+Diversity+programs+Diversity+training+programs+free+Diversity+training+free+Diversity+video+employee+training+programs+Evaluation+program+Evaluation+programs+Evaluation+training+Evaluation+training+program+Evaluation+training+programs+Evaluation+video+free+Evaluation+program+Hiring+program+Hiring+programs+Hiring+training+hostile+environment+training+hostile+work+environment+training+Management+Skills+program+Management+Skills+training+videos+Management+Skills+video+Management+Skills+videos+Performance+Management+program+Performance+Management+training+video+Performance+Management+video+Performance+Management+videos+preventing+sexual+harassment+training+Quid+Pro+Quo+video+Retaliation+training+Retaliation+video+Sexual+Harassment+program+Sexual+Harassment+programs+Sexual+Harassment+training+programs+free+Sexual+Harassment+online+training+free+Sexual+Harassment+training+sexual+harassment+prevention+training+sexual+harassment+training+program+workplace+sexual+harassment+training+video+workplace+sexual+harassment+video+Termination+program+Termination+programs+Termination+videos+free+training+online+program+free+training+online+programs+free+training+program+training+on+line+videos+training+online+program+training+online+programs+free+videos+program+free+videos+programs+violence+in+the+workplace+training+violence+in+the+workplace+video+workplace+conflict+resolution+training+workplace+diversity+program+workplace+diversity+training+program+workplace+diversity+training+video+free+workplace+harassment+training+workplace+harassment+training+video+Workplace+training+videos+free+Workplace+training+videos+Workplace+Violence+program+Workplace+Violence+programs+Workplace+Violence+video+free+Workplace+Violence+video++';
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();
};
