/* [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','6001',jdecode('HOME'),jdecode(''),'/6001.html','true',[],'',''],
	['PAGE','110544',jdecode('WHY+Astute+Artistry%3F'),jdecode(''),'/110544.html','true',[],'',''],
	['PAGE','20101',jdecode('CLASSES'),jdecode(''),'/20101/index.html','true',[ 
		['PAGE','20401',jdecode('ENROLLMENT'),jdecode(''),'/20101/20401.html','true',[],'',''],
		['PAGE','20601',jdecode('AFTER+YOUR+CLASS'),jdecode(''),'/20101/20601.html','true',[],'',''],
		['PAGE','119655',jdecode('CANCELLATION+POLICY'),jdecode(''),'/20101/119655.html','true',[],'','']
	],'',''],
	['PAGE','21001',jdecode('SERVICES'),jdecode(''),'/21001/index.html','true',[ 
		['PAGE','21501',jdecode('BRIDAL+SERVICES'),jdecode(''),'/21001/21501.html','true',[],'','']
	],'',''],
	['PAGE','101544',jdecode('PORTFOLIO'),jdecode(''),'/101544/index.html','true',[ 
		['PAGE','97544',jdecode('Studio+Pictures'),jdecode(''),'/101544/97544.html','true',[],'','']
	],'',''],
	['PAGE','74778',jdecode('FEATURED+Artists'),jdecode(''),'/74778.html','true',[],'',''],
	['PAGE','21301',jdecode('SPA+Parties+%26+MORE'),jdecode(''),'/21301.html','true',[],'',''],
	['PAGE','53434',jdecode('PAST+Events'),jdecode(''),'/53434.html','true',[],'',''],
	['PAGE','15301',jdecode('OUR+CREATOR'),jdecode(''),'/15301/index.html','true',[ 
		['PAGE','15801',jdecode('OUR+EXPERT+STAFF'),jdecode(''),'/15301/15801.html','true',[],'','']
	],'',''],
	['PAGE','54434',jdecode('Community+Partnership'),jdecode(''),'/54434.html','true',[],'',''],
	['PAGE','21701',jdecode('GET+CONNECTED'),jdecode(''),'/21701.html','true',[],'',''],
	['PAGE','54834',jdecode('Map+%26+Directions'),jdecode(''),'/54834.html','true',[],'',''],
	['PAGE','69278',jdecode('POLL+TIME'),jdecode(''),'/69278.html','true',[],'',''],
	['PAGE','22101',jdecode('Links+%26+MORE'),jdecode(''),'/22101/index.html','true',[ 
		['PAGE','119355',jdecode('Terms+%26+Conditions'),jdecode(''),'/22101/119355.html','true',[],'','']
	],'','']];
var siteelementCount=21;
theSitetree.topTemplateName='Metal';
theSitetree.paletteFamily='8D8C67';
theSitetree.keyvisualId='799';
theSitetree.keyvisualName='mund.jpg';
theSitetree.fontsetId='142';
theSitetree.graphicsetId='153';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Metal',
				paletteFamily: 	'8D8C67',
				keyvisualId: 	'799',
				keyvisualName: 	'mund.jpg',
				fontsetId: 		'142',
				graphicsetId: 	'153',
				contentColor: 	'DDDDDD',
				contentBGColor: '000000',
				a_color: 		'8D8C67',
				b_color: 		'E4E2A7',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20401',
internalId:  '',
customField: '20100718-235407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6001',
internalId:  '',
customField: '20100726-205915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20101',
internalId:  '',
customField: '20100720-212613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15301',
internalId:  '',
customField: '20100719-004230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15801',
internalId:  '',
customField: '20100619-122155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97544',
internalId:  '',
customField: '20100702-113229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101544',
internalId:  '',
customField: '20100630-182917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20601',
internalId:  '',
customField: '20100708-114708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21001',
internalId:  '',
customField: '20100719-004533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21301',
internalId:  '',
customField: '20100702-121042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21501',
internalId:  '',
customField: '20100719-002431'
};
webappMappings['7008']=webappMappings['7008-4355']={
webappId:    '7008',
documentId:  '21701',
internalId:  '4355',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21701',
internalId:  '',
customField: '20100719-003004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54434',
internalId:  '',
customField: '20100719-003556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53434',
internalId:  '',
customField: '20100708-174009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110544',
internalId:  '',
customField: '20100720-212528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22101',
internalId:  '',
customField: '20100719-002523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119355',
internalId:  '',
customField: '20100719-002618'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '6001',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-7560805']={
webappId:    '1501',
documentId:  '6001',
internalId:  '7560805',
customField: '1501'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '54834',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54834',
internalId:  '',
customField: '20100719-003336'
};
webappMappings['7005']=webappMappings['7005-593']={
webappId:    '7005',
documentId:  '69278',
internalId:  '593',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69278',
internalId:  '',
customField: '20100604-105744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74778',
internalId:  '',
customField: '20100630-193211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119655',
internalId:  '',
customField: '20100720-212646'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INLISC';
var companyName   = 'Astute+Artistry';
var htmlTitle	  = 'ASTUTE+ARTISTRY+-+Michigan%27s+Only+Make-Up+%26+Special+Effects+Training+School+-+%28248%29+477-5548';
var metaKeywords  = 'makeup%2C+make-up%2C+bodypaint%2C+michigan+film%2C+makeup+classes%2C+make-up+classes%2C+makeup+courses%2C+makeup+academy%2C+michigan+movies%2C+make+up+artist+school%2C+airbrush+cosmetics%2C+become+a+makeup+artist%2C+michigan+makeup%2C+theater+makeup%2C+make+up+course%2C+make+up+artist+schools%2C+airbrushing+makeup%2C+make+up+classes%2C+become+a+make+up+artist%2C+special+effects+make-up%2C+movie+makeup%2C+movie+make-up%2C+school+for+make+up+artist%2C+makeup+artist+school%2C+makeup+artist+classes%2C+professional+makeup+artist%2C+makeup+training%2C+makeup+class%2C+airbrush+makeup+artist%2C+make+up+artist+course%2C+makeup+artistry+classes%2C+photographic+makeup%2C+airbrush+makeup+school%2C+professional+makeup+school%2C+special+effects+makeup%2C+trade+school+michigan%2C+professional+makeup+schools%2C+brow+shaping%2C+airbrush+makeup+classes%2C+film+make+up%2C+make+up+artist+job%2C+makeup+artist+job%2C+make+up+artist+courses%2C+artistry+make+up%2C+make+up+artistry+schools%2C+makeup+artistry+schools%2C+special+effects+makeup+schools%2C+makeup+artist+courses%2C+cosmetics+school%2C+make+up+artistry+school%2C+make+up+colleges%2C+professional+makeup+courses%2C+professional+makeup+course%2C+makeup+artist+education%2C+career+beautician%2C+make+up+academy%2C+best+makeup+artist%2C+best+make-up+artist%2C+makeup+artistry+courses%2C+make+up+artist+academy%2C+profesional+make+up+course%2C+make+up+artist+classes%2C+special+effects+make+up+schools%2C+makeup+artistry+training%2C+professional+make+up+courses%2C+theatrical+makeup+courses%2C+bridal+makeup+course%2C+top+make+up+artist%2C+make+up+artist+portfolios%2C+prosthetics+school%2C+top+makeup+schools%2C+bridal+makeup+courses%2C+bridal+make-up+courses%2C+brow%2C+lashes%2C+body+paint+makeup%2C+body+paint+make-up%2C+make-up+training+school+mi%2C+make-up+training+school+michigan%2C+cosmetics%2C+Lisa+Glickoff%2C+2006+Oscars%2C+Oscars%2C+Jamie+Kothe%2C+Rowe%2C+Lisa';
var metaContents  = 'Astute+Artistry%2C+Michigan%27s+Best+and+only+Premier+Makeup+Training+School.++We+offer+Make-Up+Training%2C+Boutique+%26+Beauty+Services%2C+Special+Occasion+%26+Bridal+make-up%2C+Fashion%2C+Production%2C+Theather%2C+Film+%26+Photography+make-up%2C+we+do+parties+%26+special+events%2C+Repping+Services%2C+Job+Placement+for+current+and+former+students.+We+also+offer+Non-Profit+work+for+cancer+and+burn+victims.+';
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();
};
