/* [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','1720',jdecode('Home'),jdecode(''), jdecode('%2F1720.html'), 'true',[],'',''],
	['PAGE','1771',jdecode('About+us'),jdecode(''), jdecode('%2F1771%2Findex.html'), 'true',[ 
		['PAGE','1792',jdecode('Our+team'),jdecode(''), jdecode('%2F1771%2F1792.html'), 'true',[],'','']
	],'',''],
	['PAGE','3320',jdecode('REAL+ESTATE'),jdecode(''), jdecode('%2F3320%2Findex.html'), 'true',[ 
		['PAGE','35320',jdecode('LICENSING+-+LIVE'),jdecode(''), jdecode('%2F3320%2F35320.html'), 'true',[],'',''],
		['PAGE','3341',jdecode('LICENSING+-+ONLINE'),jdecode(''), jdecode('%2F3320%2F3341.html'), 'true',[],'',''],
		['PAGE','3362',jdecode('CE-LIVE'),jdecode(''), jdecode('%2F3320%2F3362.html'), 'true',[],'',''],
		['PAGE','3383',jdecode('CE-ONLINE'),jdecode(''), jdecode('%2F3320%2F3383.html'), 'true',[],'',''],
		['PAGE','3404',jdecode('MANAGING+BROKER+'),jdecode(''), jdecode('%2F3320%2F3404.html'), 'true',[],'',''],
		['PAGE','41820',jdecode('PROP.+MGMT-Residential'),jdecode(''), jdecode('%2F3320%2F41820.html'), 'true',[],'',''],
		['PAGE','41841',jdecode('PROP.+MGMT-Commercial'),jdecode(''), jdecode('%2F3320%2F41841.html'), 'true',[],'','']
	],'',''],
	['PAGE','3425',jdecode('APPRAISAL'),jdecode(''), jdecode('%2F3425%2Findex.html'), 'true',[ 
		['PAGE','35341',jdecode('PRE-LICENSE'),jdecode(''), jdecode('%2F3425%2F35341.html'), 'true',[],'',''],
		['PAGE','3620',jdecode('Trainee+LIVE+Class+Schedule'),jdecode(''), jdecode('%2F3425%2F3620.html'), 'true',[],'',''],
		['PAGE','41420',jdecode('Trainee+Online+Courses'),jdecode(''), jdecode('%2F3425%2F41420.html'), 'true',[],'',''],
		['PAGE','3641',jdecode('CE+-+LIVE+Schedule'),jdecode(''), jdecode('%2F3425%2F3641.html'), 'true',[],'',''],
		['PAGE','3662',jdecode('CE+-+ONLINE'),jdecode(''), jdecode('%2F3425%2F3662.html'), 'true',[],'','']
	],'',''],
	['PAGE','1855',jdecode('Contact+Us'),jdecode(''), jdecode('%2F1855.html'), 'true',[],'',''],
	['PAGE','59920',jdecode('School+Policies'),jdecode(''), jdecode('%2F59920.html'), 'true',[],'','']];
var siteelementCount=19;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='333F65';
theSitetree.keyvisualId='1760';
theSitetree.keyvisualName='student.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='355';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='333F65';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp13-cbeyon',
  product: 'WSCSYSSSSLYTC2ZA'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'333F65',
				keyvisualId: 	'1760',
				keyvisualName: 	'student.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'355',
				contentColor: 	'FFFFFF',
				contentBGColor: '333F65',
				a_color: 		'333F65',
				b_color: 		'040507',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				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:  '1720',
internalId:  '',
customField: '20120221-130151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1855',
internalId:  '',
customField: '20110708-134737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1771',
internalId:  '',
customField: '20120106-132734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1792',
internalId:  '',
customField: '20120106-132827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41841',
internalId:  '',
customField: '20120106-143813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41820',
internalId:  '',
customField: '20120201-141721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35341',
internalId:  '',
customField: '20110708-130040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3320',
internalId:  '',
customField: '20120125-165845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3383',
internalId:  '',
customField: '20120201-180137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3362',
internalId:  '',
customField: '20120221-134857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3341',
internalId:  '',
customField: '20120106-133245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3404',
internalId:  '',
customField: '20120201-141201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3425',
internalId:  '',
customField: '20111101-113211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3620',
internalId:  '',
customField: '20120221-140148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3641',
internalId:  '',
customField: '20120221-142045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3662',
internalId:  '',
customField: '20120125-161517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35320',
internalId:  '',
customField: '20120221-130730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41420',
internalId:  '',
customField: '20120125-165528'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1720',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59920',
internalId:  '',
customField: '20111201-122014'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVF340I7KTL0';
var companyName   = 'MYKUT+REAL+ESTATE+SCHOOL';
var htmlTitle	  = '';
var metaKeywords  = 'Real+Estate%2C+Appraisal%2C+Continuing+Education%2C+Seattle%2C++WA%2C+Lynnwood%2C++WA%2C+Bellevue%2C++WA%2C+Greater+Seattle+Area%2C+Trainee+education%2C+Training%2C+Licensing%2C+Appraisal+Licensing%2C+Certificates%2C+Online+training%2C+Live+Lecture%2C+Classroom%2C+Instruction%2C+USPAP+Training%2C+Boeing+approved%2C+Department+of+Vocational+Rehabilitation+approved%2C+';
var metaContents  = 'Mykut+Real+Estate+School+has+been+in+business+since+1954.++We+offer+both+Prelicensing+and+Continuiing+education.++We+offer+both+of+these+either+LIVE+or+ONLINE+options.++All+our+students+love+us+and+continue+to+come+back+for+their+educational+needs+again+and+again.';
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();
};

