/* [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 theSitetree=[ 
	['PAGE','201',jdecode('MONTHLY+EVENTS'),jdecode(''),'/201.html','true',[],''],
	['PAGE','75501',jdecode('2010+DANCE+CALENDAR'),jdecode(''),'/75501/index.html','true',[ 
		['PAGE','73701',jdecode('EVENT+LOCATIONS'),jdecode(''),'/75501/73701.html','true',[],'']
	],''],
	['PAGE','170501',jdecode('THE+LIGHTFOOT'),jdecode(''),'/170501.html','true',[],''],
	['PAGE','199112',jdecode('WHY+I+DANCE'),jdecode(''),'/199112.html','true',[],''],
	['PAGE','208523',jdecode('LATIN+DANCE+SERIES'),jdecode(''),'/208523.html','true',[],''],
	['PAGE','203412',jdecode('TANGO+10+LESSON+SERIES'),jdecode(''),'/203412.html','true',[],''],
	['PAGE','193601',jdecode('SPECIAL+EVENTS'),jdecode(''),'/193601.html','false',[],''],
	['PAGE','176301',jdecode('DANCE+PRACTICE'),jdecode(''),'/176301/index.html','true',[ 
		['PAGE','65901',jdecode('CALENDAR+AT+A+GLANCE'),jdecode(''),'/176301/65901.html','false',[],'']
	],''],
	['PAGE','125601',jdecode('SNOWBALL+FORMAL'),jdecode(''),'/125601.html','false',[],''],
	['PAGE','138101',jdecode('DANCERS+IN+ACTION+-+PHOTOS'),jdecode(''),'/138101.html','true',[],''],
	['PAGE','167901',jdecode('FEBRUARY+28+SET+LIST'),jdecode(''),'/167901.html','false',[],''],
	['PAGE','144901',jdecode('ABOUT+US'),jdecode(''),'/144901/index.html','true',[ 
		['PAGE','252',jdecode('OUR+MISSION'),jdecode(''),'/144901/252.html','true',[],''],
		['PAGE','7301',jdecode('OFFICERS'),jdecode(''),'/144901/7301.html','true',[],''],
		['PAGE','9401',jdecode('MEMBERSHIP'),jdecode(''),'/144901/9401.html','true',[],''],
		['PAGE','13301',jdecode('PRESIDENT%26%23x27%3BS+MESSAGE'),jdecode(''),'/144901/13301.html','true',[],'']
	],''],
	['PAGE','106301',jdecode('LESSON+SERIES'),jdecode(''),'/106301/index.html','true',[ 
		['PAGE','160901',jdecode('SWING'),jdecode(''),'/106301/160901.html','true',[],''],
		['PAGE','116301',jdecode('FOXTROT'),jdecode(''),'/106301/116301.html','true',[],''],
		['PAGE','114722',jdecode('ADVANCED+TEXAS+TWO+STEP'),jdecode(''),'/106301/114722.html','true',[],''],
		['PAGE','114701',jdecode('RUMBA'),jdecode(''),'/106301/114701.html','true',[],''],
		['PAGE','105101',jdecode('CHA+CHA'),jdecode(''),'/106301/105101.html','true',[],''],
		['PAGE','23901',jdecode('WALTZ'),jdecode(''),'/106301/23901.html','true',[],''],
		['PAGE','23922',jdecode('BOLERO'),jdecode(''),'/106301/23922.html','true',[],'']
	],''],
	['PAGE','14201',jdecode('DANCE+%26+EVENT+CALENDAR'),jdecode(''),'/14201.html','false',[],''],
	['PAGE','17901',jdecode('MONTHLY+EVENTS'),jdecode(''),'/17901/index.html','false',[ 
		['PAGE','88601',jdecode('INTRODUCTORY+LESSON'),jdecode(''),'/17901/88601.html','false',[],''],
		['PAGE','71801',jdecode('WALTZ+'),jdecode(''),'/17901/71801.html','false',[],''],
		['PAGE','71843',jdecode('MOONLIGHT+FORMAL'),jdecode(''),'/17901/71843.html','false',[],'']
	],''],
	['PAGE','378',jdecode('CONTACT+US'),jdecode(''),'/378.html','true',[],''],
	['PAGE','92001',jdecode('COMPETITIVE+DANCE'),jdecode(''),'/92001.html','true',[],''],
	['PAGE','52201',jdecode('OTHER+DANCES+%26+EVENTS'),jdecode(''),'/52201/index.html','true',[ 
		['PAGE','129801',jdecode('FARGO+SWINGS'),jdecode(''),'/52201/129801.html','false',[],''],
		['PAGE','125622',jdecode('MAY+I+HAVE+THIS+DANCE'),jdecode(''),'/52201/125622.html','false',[],''],
		['PAGE','315',jdecode('WESTERN+STYLE'),jdecode(''),'/52201/315.html','false',[],''],
		['PAGE','357',jdecode('SINGLES+DANCES'),jdecode(''),'/52201/357.html','false',[],'']
	],''],
	['PAGE','10401',jdecode('JOURNAL'),jdecode(''),'/10401.html','false',[],''],
	['PAGE','185001',jdecode('INSTRUCTION+%26+MUSIC+VIDEO'),jdecode(''),'/185001.html','true',[],'']];
var siteelementCount=40;
theSitetree.topTemplateName='Office';
theSitetree.paletteFamily='727D9C';
theSitetree.keyvisualId='11165';
theSitetree.keyvisualName='kv_11165.jpg';
theSitetree.fontsetId='32065';
theSitetree.graphicsetId='13879';
theSitetree.contentColor='4e5978';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Office',
				paletteFamily: 	'727D9C',
				keyvisualId: 	'11165',
				keyvisualName: 	'kv_11165.jpg',
				fontsetId: 		'32065',
				graphicsetId: 	'13879',
				contentColor: 	'4e5978',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170501',
internalId:  '',
customField: '20100307-133242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138101',
internalId:  '',
customField: '20091213-160625'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '193601',
internalId:  '',
customField: '20091022-223257'
};
webappMappings['7050']=webappMappings['7050-43']={
webappId:    '7050',
documentId:  '10401',
internalId:  '43',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '201',
internalId:  '',
customField: '20100307-163818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '252',
internalId:  '',
customField: '20081115-174414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7301',
internalId:  '',
customField: '20100220-111101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9401',
internalId:  '',
customField: '20100220-110459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '378',
internalId:  '',
customField: '20091004-205715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13301',
internalId:  '',
customField: '20080429-230729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23901',
internalId:  '',
customField: '20080412-013528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23922',
internalId:  '',
customField: '20090402-000429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14201',
internalId:  '',
customField: '20081202-234049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17901',
internalId:  '',
customField: '20090218-231311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160901',
internalId:  '',
customField: '20091127-002540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144901',
internalId:  '',
customField: '20100307-152639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '315',
internalId:  '',
customField: '20080307-001513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357',
internalId:  '',
customField: '20080307-001533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52201',
internalId:  '',
customField: '20081206-123732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '203412',
internalId:  '',
customField: '20100307-151208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167901',
internalId:  '',
customField: '20090218-225517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114701',
internalId:  '',
customField: '20091127-002648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10401',
internalId:  '',
customField: '20080305-191346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65901',
internalId:  '',
customField: '20080310-194154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71801',
internalId:  '',
customField: '20090215-230935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114722',
internalId:  '',
customField: '20091127-002639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71843',
internalId:  '',
customField: '20080310-211159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73701',
internalId:  '',
customField: '20090801-152359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75501',
internalId:  '',
customField: '20100220-110554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88601',
internalId:  '',
customField: '20090218-231350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92001',
internalId:  '',
customField: '20081206-123144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116301',
internalId:  '',
customField: '20091127-002610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106301',
internalId:  '',
customField: '20091127-002531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125601',
internalId:  '',
customField: '20090218-230803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '176301',
internalId:  '',
customField: '20091111-005216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105101',
internalId:  '',
customField: '20090525-143647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125622',
internalId:  '',
customField: '20081115-155905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129801',
internalId:  '',
customField: '20081202-234544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '199112',
internalId:  '',
customField: '20100125-161224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185001',
internalId:  '',
customField: '20100221-210050'
};
webappMappings['7060']=webappMappings['7060-9de203245c0741df55b65c42596e8cdb']={
webappId:    '7060',
documentId:  '138101',
internalId:  '9de203245c0741df55b65c42596e8cdb',
customField: 'language:en;country:US;'
};
webappMappings['1501']=webappMappings['1501-2053450']={
webappId:    '1501',
documentId:  '201',
internalId:  '2053450',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '208523',
internalId:  '',
customField: '20100220-111306'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0INXZ73';
var companyName   = 'USA+Dance+Chapter+%232020+Northern+Lights+Ballroom+Dance+Club';
var htmlTitle	  = 'Northern+Lights+Dance+Club';
var metaKeywords  = 'BALLROOM+DANCE+FARGO+NORTHERN+LIGHTS+USA+DANCE+LESSONS+WALTZ+FOXTROT+TANGO+CHA+CHA+RUMBA+DANCE+CLUB+MOORHEAD+NORTH+DAKOTA+ENTERTAINMENT+DANCING+MUSIC+FORMAL+BRONZEGOLD+SILVER+NORTHERN+LIGHTS+DANCE+CLUB+USA+DANCE+EVENTS+USABDA+';
var metaContents  = 'We+Are+the+Northern+Lights+Chapter+of+USA+Dance.++USA+Dance+was+formerly+the++United+States+Amateur+Ballroom+Dancers+Association++%28USABDA%29.++Its+mission+is+to%2C+promote+the+quantity+and+quality+of+ballroom+dance+in+the+United+States.Northern+Lights+Ballroom+Dance+Club+serves+the+communities+of+Fargo%2C+North++Dakota%2C+Moorhead%2C+Minnesota+and+the+surrounding+areas-with+members+as+far+away+as+Grand+Forks%2C+Fergus+Falls%2C+Detroit+Lakes+and+more.++Functioning+as+a+non-profit+organization%2C+Northern+Lights+Dance+Club+promotes+the+national+mission+by+offering+dance+events+and+affordable+lessons%2C+to+its+members%2C+and+the+general+public.++';
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();
};
