/* [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','6301',jdecode('Home'),jdecode(''), jdecode('%2F6301.html'), 'true',[],'',''],
	['PAGE','6352',jdecode('Our+teachers'),jdecode(''), jdecode('%2F6352.html'), 'true',[],'',''],
	['PAGE','19601',jdecode('Career+Programs'),jdecode(''), jdecode('%2F19601.html'), 'true',[],'',''],
	['PAGE','6373',jdecode('Cosmetology+CE'),jdecode(''), jdecode('%2F6373%2Findex.html'), 'true',[ 
		['PAGE','6394',jdecode('FAQ'),jdecode(''), jdecode('%2F6373%2F6394.html'), 'true',[],'',''],
		['PAGE','6415',jdecode('Exam+Prep'),jdecode(''), jdecode('%2F6373%2F6415.html'), 'true',[],'',''],
		['PAGE','6436',jdecode('Consultation'),jdecode(''), jdecode('%2F6373%2F6436.html'), 'true',[],'','']
	],'',''],
	['PAGE','6688',jdecode('Fusion+Extensions'),jdecode(''), jdecode('%2F6688.html'), 'true',[],'',''],
	['PAGE','6457',jdecode('Product+Analysis'),jdecode(''), jdecode('%2F6457.html'), 'true',[],'',''],
	['PAGE','83701',jdecode('Real+Estate+CE'),jdecode(''), jdecode('%2F83701%2Findex.html'), 'true',[ 
		['PAGE','83764',jdecode('RE+Exam+Prep'),jdecode(''), jdecode('%2F83701%2F83764.html'), 'true',[],'','']
	],'',''],
	['PAGE','96101',jdecode('RE+Pre-License'),jdecode(''), jdecode('%2F96101.html'), 'true',[],'',''],
	['PAGE','96122',jdecode('RE+Post+License'),jdecode(''), jdecode('%2F96122.html'), 'true',[],'',''],
	['PAGE','98401',jdecode('Healthcare+CE'),jdecode(''), jdecode('%2F98401.html'), 'true',[],'',''],
	['PAGE','6478',jdecode('Web-Store'),jdecode(''), jdecode('%2F6478.html'), 'true',[],'',''],
	['PAGE','6499',jdecode('Sponsorship'),jdecode(''), jdecode('%2F6499.html'), 'true',[],'',''],
	['PAGE','6520',jdecode('Bulletin+board'),jdecode(''), jdecode('%2F6520.html'), 'true',[],'',''],
	['PAGE','6541',jdecode('Customer+feedback'),jdecode(''), jdecode('%2F6541.html'), 'true',[],'',''],
	['PAGE','6562',jdecode('Outreach+Campaigns'),jdecode(''), jdecode('%2F6562.html'), 'true',[],'',''],
	['PAGE','149137',jdecode('Apprenticeship'),jdecode(''), jdecode('%2F149137.html'), 'true',[],'',''],
	['PAGE','6583',jdecode('Apprentice+Jobs'),jdecode(''), jdecode('%2F6583.html'), 'true',[],'',''],
	['PAGE','130415',jdecode('Services'),jdecode(''), jdecode('%2F130415.html'), 'true',[],'',''],
	['PAGE','151937',jdecode('Photo+Album'),jdecode(''), jdecode('%2F151937.html'), 'true',[],'',''],
	['PAGE','6604',jdecode('Contact'),jdecode(''), jdecode('%2F6604.html'), 'true',[],'',''],
	['PAGE','75901',jdecode('About+us'),jdecode(''), jdecode('%2F75901%2Findex.html'), 'true',[ 
		['PAGE','75943',jdecode('How+to+find+us'),jdecode(''), jdecode('%2F75901%2F75943.html'), 'true',[],'',''],
		['PAGE','75922',jdecode('Our+building'),jdecode(''), jdecode('%2F75901%2F75922.html'), 'true',[],'','']
	],'','']];
var siteelementCount=27;
theSitetree.topTemplateName='Elegance';
theSitetree.paletteFamily='EBEFF8';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10625';
theSitetree.graphicsetId='10624';
theSitetree.contentColor='0000A0';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'valueweb',
  product: 'WSCSYSSSSLYTCR7V'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Elegance',
				paletteFamily: 	'EBEFF8',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10625',
				graphicsetId: 	'10624',
				contentColor: 	'0000A0',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6301',
internalId:  '',
customField: '20120124-203824'
};
webappMappings['1501']=webappMappings['1501-3987443']={
webappId:    '1501',
documentId:  '6301',
internalId:  '3987443',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '6301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6352',
internalId:  '',
customField: '20120124-175125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6373',
internalId:  '',
customField: '20120124-175249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6394',
internalId:  '',
customField: '20120124-175321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6415',
internalId:  '',
customField: '20120124-175359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6436',
internalId:  '',
customField: '20120124-175430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6457',
internalId:  '',
customField: '20120124-175622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6478',
internalId:  '',
customField: '20120124-180137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6499',
internalId:  '',
customField: '20120124-180207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6520',
internalId:  '',
customField: '20120124-202214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6541',
internalId:  '',
customField: '20120124-180326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6562',
internalId:  '',
customField: '20120124-180422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6583',
internalId:  '',
customField: '20120124-180537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6604',
internalId:  '',
customField: '20120124-180724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75943',
internalId:  '',
customField: '20120124-180900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75901',
internalId:  '',
customField: '20120124-180757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75922',
internalId:  '',
customField: '20120124-180941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6688',
internalId:  '',
customField: '20120124-175530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19601',
internalId:  '',
customField: '20120124-175207'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '75943',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['7005']=webappMappings['7005-435']={
webappId:    '7005',
documentId:  '6520',
internalId:  '435',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130415',
internalId:  '',
customField: '20120124-180610'
};
webappMappings['1003']=webappMappings['1003-ahw050invpyb123cf1a7e97']={
webappId:    '1003',
documentId:  '6436',
internalId:  'ahw050invpyb123cf1a7e97',
customField: 'en:US'
};
webappMappings['1002']=webappMappings['1002-6541ahw050invpyb']={
webappId:    '1002',
documentId:  '6541',
internalId:  '6541ahw050invpyb',
customField: 'icq=false'
};
webappMappings['1003']=webappMappings['1003-ahw050invpyb124ee89a031']={
webappId:    '1003',
documentId:  '75901',
internalId:  'ahw050invpyb124ee89a031',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83701',
internalId:  '',
customField: '20120124-175703'
};
webappMappings['7008']=webappMappings['7008-11762']={
webappId:    '7008',
documentId:  '6583',
internalId:  '11762',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83764',
internalId:  '',
customField: '20120124-175818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96101',
internalId:  '',
customField: '20120124-175930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96122',
internalId:  '',
customField: '20120124-180004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98401',
internalId:  '',
customField: '20120124-180049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149137',
internalId:  '',
customField: '20120124-180502'
};
webappMappings['7060']=webappMappings['7060-ac06a8b0c0a11f5b6f889ed9c03a6840']={
webappId:    '7060',
documentId:  '151937',
internalId:  'ac06a8b0c0a11f5b6f889ed9c03a6840',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151937',
internalId:  '',
customField: '20120124-180647'
};
webappMappings['7060']=webappMappings['7060-dffafebe7fc4f29e4bb23ddcc7c3f6f2']={
webappId:    '7060',
documentId:  '130415',
internalId:  'dffafebe7fc4f29e4bb23ddcc7c3f6f2',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-83816277a3c9012febec63c2a1d233cb']={
webappId:    '7060',
documentId:  '6562',
internalId:  '83816277a3c9012febec63c2a1d233cb',
customField: 'language:en;country:US;'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INVPYB';
var companyName   = 'LaMausi+International+Inc+%22Virtual+University%22';
var htmlTitle	  = 'LaMausi+International+Inc+Custom+Online+CE+%26+Career+Training+Programs';
var metaKeywords  = 'Career+Training+Programs%2C+Business+%26+Accounting%2C+House+Bill+1006%2C+Medical%2C+E-learning+CE%2C+E-learning+Healthcare+CE%2C+E-learning+Real+Estate+CE%2C+E-learning+Cosmetology+%26+Barber+CE%2C+International+Braid+Course%2C+Fusion-Hair+Extensions%2C+';
var metaContents  = 'Providing+a+standard+of+excellence+in+Continuing+Education+and+Career+Training+Programs+...';
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();
};

