/* [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','701',jdecode('Home'),jdecode(''),'/701/index.html','true',[ 
		['PAGE','84112',jdecode('Music+Lessons+'),jdecode(''),'/701/84112/index.html','true',[ 
			['PAGE','85912',jdecode('Music+Lessons+%28follow+up+page%29'),jdecode(''),'/701/84112/85912.html','false',[],'','']
		],'',''],
		['PAGE','124512',jdecode('Musical+Theatre'),jdecode(''),'/701/124512.html','true',[],'',''],
		['PAGE','84133',jdecode('JamSpots'),jdecode(''),'/701/84133.html','true',[],'',''],
		['PAGE','124812',jdecode('Lil%26%23x27%3B+Jammers+'),jdecode(''),'/701/124812.html','true',[],'',''],
		['PAGE','55612',jdecode('ROCK+CAMP+'),jdecode(''),'/701/55612.html','true',[],'',''],
		['PAGE','56012',jdecode('ROCK+CAMP+2008+%28follow+up+page%29'),jdecode(''),'/701/56012.html','false',[],'',''],
		['PAGE','64712',jdecode('News+%26+Events'),jdecode(''),'/701/64712.html','true',[],'','']
	],'',''],
	['PAGE','752',jdecode('About+us'),jdecode(''),'/752.html','true',[],'',''],
	['PAGE','773',jdecode('Our+Teachers'),jdecode(''),'/773/index.html','true',[ 
		['PAGE','35301',jdecode('Dan'),jdecode(''),'/773/35301.html','true',[],'',''],
		['PAGE','61212',jdecode('Fiona'),jdecode(''),'/773/61212.html','true',[],'',''],
		['PAGE','134123',jdecode('Igor'),jdecode(''),'/773/134123.html','true',[],'',''],
		['PAGE','35343',jdecode('John'),jdecode(''),'/773/35343.html','true',[],'',''],
		['PAGE','114912',jdecode('Matt+K.'),jdecode(''),'/773/114912.html','true',[],'',''],
		['PAGE','35364',jdecode('Robert'),jdecode(''),'/773/35364.html','true',[],'',''],
		['PAGE','127923',jdecode('Shannon'),jdecode(''),'/773/127923.html','true',[],'',''],
		['PAGE','134144',jdecode('Spencer'),jdecode(''),'/773/134144.html','true',[],'',''],
		['PAGE','35385',jdecode('Steve+K.'),jdecode(''),'/773/35385.html','true',[],'',''],
		['PAGE','132023',jdecode('Szabolcs'),jdecode(''),'/773/132023.html','true',[],'',''],
		['PAGE','58612',jdecode('Tyler'),jdecode(''),'/773/58612.html','true',[],'',''],
		['PAGE','92212',jdecode('Valerie'),jdecode(''),'/773/92212.html','true',[],'','']
	],'',''],
	['PAGE','48012',jdecode('RecordingSchool'),jdecode(''),'/48012/index.html','true',[ 
		['PAGE','48512',jdecode('Recording+School+%28follow+up+page%29'),jdecode(''),'/48012/48512.html','false',[],'','']
	],'',''],
	['PAGE','22822',jdecode('Products'),jdecode(''),'/22822.html','true',[],'',''],
	['PAGE','97612',jdecode('JamStore'),jdecode(''),'/97612.html','true',[],'',''],
	['PAGE','102112',jdecode('Past+Events'),jdecode(''),'/102112.html','true',[],'',''],
	['PAGE','22801',jdecode('Offers'),jdecode(''),'/22801.html','true',[],'',''],
	['PAGE','22906',jdecode('Jobs'),jdecode(''),'/22906.html','true',[],'',''],
	['PAGE','22927',jdecode('Contact+Info'),jdecode(''),'/22927/index.html','true',[ 
		['PAGE','36801',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/22927/36801.html','false',[],'','']
	],'',''],
	['PAGE','95912',jdecode('Privacy+Policy'),jdecode(''),'/95912.html','true',[],'','']];
var siteelementCount=33;
theSitetree.topTemplateName='Simple';
theSitetree.paletteFamily='C1BCB6';
theSitetree.keyvisualId='4621';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='10753';
theSitetree.graphicsetId='10456';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='c1bcb6';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Simple',
				paletteFamily: 	'C1BCB6',
				keyvisualId: 	'4621',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'10753',
				graphicsetId: 	'10456',
				contentColor: 	'000000',
				contentBGColor: 'c1bcb6',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'857157',
				e_color: 		'FFFFFF',
				f_color: 		'817E7E',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20100715-171348'
};
webappMappings['7008']=webappMappings['7008-732']={
webappId:    '7008',
documentId:  '22927',
internalId:  '732',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-733']={
webappId:    '7008',
documentId:  '55612',
internalId:  '733',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-734']={
webappId:    '7008',
documentId:  '84112',
internalId:  '734',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-12f6e5f38c4682a5289db7dc98ce019f']={
webappId:    '7060',
documentId:  '102112',
internalId:  '12f6e5f38c4682a5289db7dc98ce019f',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124812',
internalId:  '',
customField: '20100705-113816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124512',
internalId:  '',
customField: '20100714-145725'
};
webappMappings['4001']=webappMappings['4001-14371565']={
webappId:    '4001',
documentId:  '97612',
internalId:  '14371565',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84112',
internalId:  '',
customField: '20100709-091347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85912',
internalId:  '',
customField: '20080620-054644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84133',
internalId:  '',
customField: '20080620-174208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132023',
internalId:  '',
customField: '20091209-092710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55612',
internalId:  '',
customField: '20100709-091213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56012',
internalId:  '',
customField: '20080225-081421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64712',
internalId:  '',
customField: '20100709-090740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20100727-091308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '773',
internalId:  '',
customField: '20100727-081931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35301',
internalId:  '',
customField: '20091209-091422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134123',
internalId:  '',
customField: '20100219-192119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61212',
internalId:  '',
customField: '20080620-163529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35343',
internalId:  '',
customField: '20080620-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127923',
internalId:  '',
customField: '20090909-070236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134144',
internalId:  '',
customField: '20100219-192441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114912',
internalId:  '',
customField: '20081130-180227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35364',
internalId:  '',
customField: '20100727-090704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35385',
internalId:  '',
customField: '20080620-163751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58612',
internalId:  '',
customField: '20100727-090010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92212',
internalId:  '',
customField: '20080902-191737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48012',
internalId:  '',
customField: '20090406-185944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48512',
internalId:  '',
customField: '20071018-094726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22822',
internalId:  '',
customField: '20100709-094540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97612',
internalId:  '',
customField: '20080801-133256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102112',
internalId:  '',
customField: '20090913-082934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22801',
internalId:  '',
customField: '20090328-190203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22906',
internalId:  '',
customField: '20100714-145431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22927',
internalId:  '',
customField: '20100724-122703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36801',
internalId:  '',
customField: '20070822-124007'
};
webappMappings['7008']=webappMappings['7008-3749']={
webappId:    '7008',
documentId:  '84133',
internalId:  '3749',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95912',
internalId:  '',
customField: '20090328-190912'
};
webappMappings['7008']=webappMappings['7008-731']={
webappId:    '7008',
documentId:  '48012',
internalId:  '731',
customField: 'language:en;country:US;'
};
var canonHostname = 'wscwrk01.ehost-services.com';
var accountId     = 'AEN010IN3F7Q';
var companyName   = 'www.JamSchool.com';
var htmlTitle	  = 'JAM+School+-+JamSchool+-+Music+Lessons%2C+Rehearsal+Studio%2C+Jam+Spot';
var metaKeywords  = 'Music+School%2C+Instruction%2C+Retail+supply%2C+Musical+Instruments%2C+Jam%2C+JAM%2C+JamSchool%2C+Ontario%2C+Guelph%2C+Canada%2C+guitar%2C+drums%2C+piano%2C+keyboard%2C+vocal%2C+singing%2C+rock%2C+rockstar%2C+kids%2C+camp%2C+summer+camp%2C+Jam+Spot%2C+jam+spots%2C+rehearsal+studio%2C+music+studio%2C+music+lessons%2C+music+lesson%2C+guitar+lesson%2C+drum+lessons%2C+vocal+lessons%2C+piano+lessons%2C+music+lessons+guelph%2C+peavey%2C+yamaha%2C';
var metaContents  = 'Music+School%2C+Instruction%2C+Retail+supply%2C+Musical+Instruments%2C+Jam%2C+JAM%2C+JamSchool%2C+Ontario%2C+Guelph%2C+Canada%2C+guitar%2C+drums%2C+piano%2C+keyboard%2C+vocal%2C+singing%2C+rock%2C+rockstar%2C+kids%2C+camp%2C+summer+camp%2C+Jam+Spot%2C+jam+spots%2C+rehearsal+studio%2C+music+studio%2C+music+lessons%2C+music+lesson%2C+guitar+lesson%2C+drum+lessons%2C+vocal+lessons%2C+piano+lessons%2C+music+lessons+guelph%2C+peavey%2C+yamaha%2C';
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();
};
