/* [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','601',jdecode('CATS+Careers'),jdecode(''),'/601.html','true',[],'',''],
	['PAGE','76032',jdecode('Cardiac+Cath+Lab'),jdecode(''),'/76032.html','true',[],'',''],
	['PAGE','92336',jdecode('ICAI+Members'),jdecode(''),'/92336.html','true',[],'',''],
	['PAGE','71721',jdecode('ISCA+members'),jdecode(''),'/71721.html','true',[],'',''],
	['PAGE','82236',jdecode('Ticket+To+Work'),jdecode(''),'/82236/index.html','true',[ 
		['PAGE','82257',jdecode('Job+Training'),jdecode(''),'/82236/82257.html','true',[],'',''],
		['PAGE','82278',jdecode('Services'),jdecode(''),'/82236/82278.html','true',[],'','']
	],'',''],
	['PAGE','694',jdecode('Voc+Rehab'),jdecode(''),'/694.html','true',[],'',''],
	['PAGE','86936',jdecode('Veterans'),jdecode(''),'/86936.html','true',[],'',''],
	['PAGE','83536',jdecode('Native+Americans'),jdecode(''),'/83536/index.html','true',[ 
		['PAGE','715',jdecode('Job+Creation'),jdecode(''),'/83536/715.html','true',[],'',''],
		['PAGE','83036',jdecode('VR-SSI'),jdecode(''),'/83536/83036.html','true',[],'','']
	],'',''],
	['PAGE','43211',jdecode('Military+Personnel'),jdecode(''),'/43211/index.html','true',[ 
		['PAGE','44811',jdecode('Programs'),jdecode(''),'/43211/44811.html','true',[],'',''],
		['PAGE','43353',jdecode('Exams'),jdecode(''),'/43211/43353.html','true',[],'',''],
		['PAGE','85936',jdecode('Voc+Rehab'),jdecode(''),'/43211/85936.html','true',[],'','']
	],'',''],
	['PAGE','85957',jdecode('Wounded+Warriors'),jdecode(''),'/85957.html','true',[],'',''],
	['PAGE','46711',jdecode('Limited+X-Ray'),jdecode(''),'/46711/index.html','true',[ 
		['PAGE','47311',jdecode('Medical+Assistants'),jdecode(''),'/46711/47311.html','true',[],'',''],
		['PAGE','47332',jdecode('Chiropractic+Asst'),jdecode(''),'/46711/47332.html','true',[],'','']
	],'',''],
	['PAGE','23854',jdecode('Green+Technology'),jdecode(''),'/23854.html','true',[],'',''],
	['PAGE','652',jdecode('Course+Catalog'),jdecode(''),'/652/index.html','true',[ 
		['PAGE','673',jdecode('Career+Exploration'),jdecode(''),'/652/673.html','true',[],'','']
	],'',''],
	['PAGE','60121',jdecode('Bookstore'),jdecode(''),'/60121.html','true',[],'',''],
	['PAGE','23878',jdecode('Registration'),jdecode(''),'/23878.html','true',[],'',''],
	['PAGE','23848',jdecode('Driving+directions'),jdecode(''),'/23848.html','true',[],'',''],
	['PAGE','25335',jdecode('Map'),jdecode(''),'/25335.html','true',[],'',''],
	['PAGE','73821',jdecode('Calendar'),jdecode(''),'/73821.html','true',[],'','']];
var siteelementCount=28;
theSitetree.topTemplateName='Disco';
theSitetree.paletteFamily='000066';
theSitetree.keyvisualId='4619';
theSitetree.keyvisualName='lernen.jpg';
theSitetree.fontsetId='309';
theSitetree.graphicsetId='363';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000066';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Disco',
				paletteFamily: 	'000066',
				keyvisualId: 	'4619',
				keyvisualName: 	'lernen.jpg',
				fontsetId: 		'309',
				graphicsetId: 	'363',
				contentColor: 	'FFFFFF',
				contentBGColor: '000066',
				a_color: 		'000066',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-2921531']={
webappId:    '1501',
documentId:  '601',
internalId:  '2921531',
customField: '1501'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '23848',
internalId:  'routing',
customField: 'en_US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92336',
internalId:  '',
customField: '20110727-114644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82257',
internalId:  '',
customField: '20100806-230013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82236',
internalId:  '',
customField: '20110105-200243'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '25335',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20110816-141104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '652',
internalId:  '',
customField: '20100106-082805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '673',
internalId:  '',
customField: '20100106-082832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '694',
internalId:  '',
customField: '20101213-091129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '715',
internalId:  '',
customField: '20100816-205915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23854',
internalId:  '',
customField: '20100106-082856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23878',
internalId:  '',
customField: '20110727-114443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23848',
internalId:  '',
customField: '20081007-213218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25335',
internalId:  '',
customField: '20100525-170226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25542',
internalId:  '',
customField: '20090127-155748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85957',
internalId:  '',
customField: '20100823-065846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86936',
internalId:  '',
customField: '20110105-200110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83036',
internalId:  '',
customField: '20100819-160956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83536',
internalId:  '',
customField: '20100815-100312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85936',
internalId:  '',
customField: '20100816-224926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82278',
internalId:  '',
customField: '20101213-091059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43211',
internalId:  '',
customField: '20110105-195825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73821',
internalId:  '',
customField: '20110727-114330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76032',
internalId:  '',
customField: '20110816-141311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43353',
internalId:  '',
customField: '20110105-194445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44811',
internalId:  '',
customField: '20100816-224609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46711',
internalId:  '',
customField: '20110727-114411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47311',
internalId:  '',
customField: '20091012-164954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47332',
internalId:  '',
customField: '20100722-215706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71721',
internalId:  '',
customField: '20110727-113754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60121',
internalId:  '',
customField: '20101214-154119'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INETO7';
var companyName   = 'CATS+CAREERS+SCHOOLS';
var htmlTitle	  = 'catscareers';
var metaKeywords  = 'AVOTEC%2C+Army%2C+Voc+Tech%2C+school%2C+career%2C+medical%2C+job%2C+training%2C+transcription%2C+IN%2C+indiana%2C+KY%2C+kentucky%2C+billing%2C+coding%2C+office%2C+EKG+Tech%2C+New+Albany+Indiana%2C+New+Albany%2C+medical+training%2C+medical+assistant%2C+assistant%2C+ekg%2C+medical+billing%2C+medical+coding%2C+school%2C+job+training%2C+job+training+center%2C+medical+office+assistant%2C+phlebotomy%2C+phlebotomist';
var metaContents  = 'AVOTEC%2C+Army+Voc+Tech%2C+Army%2C+CATS+Careers++School+of+Medical+Office+Assistant%2C+School+of+Cardiovascular+EKG+Tech%2C+Medical+Reception%2C+medical+billing+and+coding%2C+Medical+Office+Clinical+Programs%2C+941+State+Street%2C+New+Albany%2C+IN+47150.++Voc+Rehab%2C+WorkOne%2C+WIA+recipients%2C+vocational+rehabilitation%2C+veterans%2C+disadvantaged+youth';
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();
};

