/* [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','501',jdecode('HOME'),jdecode(''), jdecode('%2F501.html'), 'true',[],'',''],
	['PAGE','6701',jdecode('PROFILE'),jdecode(''), jdecode('%2F6701.html'), 'true',[],'',''],
	['PAGE','6722',jdecode('CLASSES'),jdecode(''), jdecode('%2F6722%2Findex.html'), 'true',[ 
		['PAGE','94101',jdecode('Monday+Salsa'),jdecode(''), jdecode('%2F6722%2F94101.html'), 'true',[],'',''],
		['PAGE','94127',jdecode('Tuesday+Salsa'),jdecode(''), jdecode('%2F6722%2F94127.html'), 'true',[],'',''],
		['PAGE','94153',jdecode('Wednesday+Salsa'),jdecode(''), jdecode('%2F6722%2F94153.html'), 'true',[],'',''],
		['PAGE','94179',jdecode('Thursday+Salsa'),jdecode(''), jdecode('%2F6722%2F94179.html'), 'true',[],'',''],
		['PAGE','94205',jdecode('Friday+Salsa'),jdecode(''), jdecode('%2F6722%2F94205.html'), 'true',[],'',''],
		['PAGE','94231',jdecode('Saturday+Salsa'),jdecode(''), jdecode('%2F6722%2F94231.html'), 'true',[],'',''],
		['PAGE','95201',jdecode('Sunday+Salsa'),jdecode(''), jdecode('%2F6722%2F95201.html'), 'true',[],'','']
	],'',''],
	['PAGE','87301',jdecode('PARTIES'),jdecode(''), jdecode('%2F87301%2Findex.html'), 'true',[ 
		['PAGE','6743',jdecode('QS+Salsa+Night'),jdecode(''), jdecode('%2F87301%2F6743.html'), 'true',[],'',''],
		['PAGE','87364',jdecode('Salsa+Con+Clase'),jdecode(''), jdecode('%2F87301%2F87364.html'), 'true',[],'','']
	],'',''],
	['PAGE','107101',jdecode('HOLIDAYS'),jdecode(''), jdecode('%2F107101%2Findex.html'), 'true',[ 
		['PAGE','107127',jdecode('Colombia+Holidays'),jdecode(''), jdecode('%2F107101%2F107127.html'), 'true',[],'',''],
		['PAGE','139001',jdecode('Cuba+Holidays'),jdecode(''), jdecode('%2F107101%2F139001.html'), 'true',[],'','']
	],'',''],
	['PAGE','109001',jdecode('OTHER+EVENTS'),jdecode(''), jdecode('%2F109001.html'), 'true',[],'',''],
	['PAGE','6785',jdecode('PHOTOS'),jdecode(''), jdecode('%2F6785%2Findex.html'), 'true',[ 
		['PAGE','120301',jdecode('SALSA+HOLIDAY+1'),jdecode(''), jdecode('%2F6785%2F120301.html'), 'true',[],'',''],
		['PAGE','114201',jdecode('SALSA+HOLIDAY+2'),jdecode(''), jdecode('%2F6785%2F114201.html'), 'true',[],'',''],
		['PAGE','56601',jdecode('SALSA+COMPS'),jdecode(''), jdecode('%2F6785%2F56601.html'), 'true',[],'',''],
		['PAGE','37601',jdecode('SCC+PARTIES'),jdecode(''), jdecode('%2F6785%2F37601.html'), 'true',[],'',''],
		['PAGE','40901',jdecode('OTHER+PHOTOS'),jdecode(''), jdecode('%2F6785%2F40901.html'), 'true',[],'','']
	],'',''],
	['PAGE','6806',jdecode('VIDEOS'),jdecode(''), jdecode('%2F6806%2Findex.html'), 'true',[ 
		['PAGE','24301',jdecode('VIDEO+CLIP+1'),jdecode(''), jdecode('%2F6806%2F24301.html'), 'true',[],'',''],
		['PAGE','24322',jdecode('VIDEO+CLIP+2'),jdecode(''), jdecode('%2F6806%2F24322.html'), 'true',[],'',''],
		['PAGE','25501',jdecode('VIDEO+CLIP+3'),jdecode(''), jdecode('%2F6806%2F25501.html'), 'true',[],'',''],
		['PAGE','121401',jdecode('SALSA+HOLIDAYS'),jdecode(''), jdecode('%2F6806%2F121401.html'), 'true',[],'','']
	],'',''],
	['PAGE','10801',jdecode('ARTICLES'),jdecode(''), jdecode('%2F10801%2Findex.html'), 'true',[ 
		['PAGE','13701',jdecode('QUEEN+SALSA+1'),jdecode(''), jdecode('%2F10801%2F13701.html'), 'true',[],'',''],
		['PAGE','13722',jdecode('QUEEN+SALSA+2'),jdecode(''), jdecode('%2F10801%2F13722.html'), 'true',[],'',''],
		['PAGE','44101',jdecode('QUEEN+SALSA+3'),jdecode(''), jdecode('%2F10801%2F44101.html'), 'true',[],'',''],
		['PAGE','58401',jdecode('QUEEN+SALSA+4'),jdecode(''), jdecode('%2F10801%2F58401.html'), 'true',[],'',''],
		['PAGE','13743',jdecode('SALSA+History'),jdecode(''), jdecode('%2F10801%2F13743.html'), 'true',[],'',''],
		['PAGE','13764',jdecode('SALSA+Dance'),jdecode(''), jdecode('%2F10801%2F13764.html'), 'true',[],'',''],
		['PAGE','22401',jdecode('SALSA+Bands'),jdecode(''), jdecode('%2F10801%2F22401.html'), 'true',[],'',''],
		['PAGE','22901',jdecode('ROBERTO+PLA'),jdecode(''), jdecode('%2F10801%2F22901.html'), 'true',[],'','']
	],'',''],
	['PAGE','6869',jdecode('CONTACT+%2F+JOIN+US'),jdecode(''), jdecode('%2F6869.html'), 'true',[],'',''],
	['PAGE','6890',jdecode('LINKS'),jdecode(''), jdecode('%2F6890.html'), 'true',[],'','']];
var siteelementCount=39;
theSitetree.topTemplateName='Match';
theSitetree.paletteFamily='8FB7DA';
theSitetree.keyvisualId='2698';
theSitetree.keyvisualName='kv_2698.jpg';
theSitetree.fontsetId='10404';
theSitetree.graphicsetId='10632';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='CDE4F7';
var localeDef={
  language: 'en',
  country: 'GB'
};
var prodDef={
  wl_name: 'easily_co_uk',
  product: 'WSCSYSSSSLY0XVD7'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Match',
				paletteFamily: 	'8FB7DA',
				keyvisualId: 	'2698',
				keyvisualName: 	'kv_2698.jpg',
				fontsetId: 		'10404',
				graphicsetId: 	'10632',
				contentColor: 	'000000',
				contentBGColor: 'CDE4F7',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'EE0202',
				e_color: 		'707070',
				f_color: 		'707070',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['7060']=webappMappings['7060-4d5d62a874393914999f9d69993dd668']={
webappId:    '7060',
documentId:  '37601',
internalId:  '4d5d62a874393914999f9d69993dd668',
customField: 'language:en;country:GB;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-485']={
webappId:    '7008',
documentId:  '6869',
internalId:  '485',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94127',
internalId:  '',
customField: '20100301-005547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94153',
internalId:  '',
customField: '20111018-004453'
};
webappMappings['7060']=webappMappings['7060-4f28806d808d60e907255e053855fe70']={
webappId:    '7060',
documentId:  '56601',
internalId:  '4f28806d808d60e907255e053855fe70',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20111018-004305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94179',
internalId:  '',
customField: '20111018-004631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94205',
internalId:  '',
customField: '20090723-011559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6701',
internalId:  '',
customField: '20110404-220217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6722',
internalId:  '',
customField: '20110809-220628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6743',
internalId:  '',
customField: '20110508-165018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95201',
internalId:  '',
customField: '20110508-163747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94231',
internalId:  '',
customField: '20110508-163840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6785',
internalId:  '',
customField: '20081005-034947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56601',
internalId:  '',
customField: '20080331-035336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37601',
internalId:  '',
customField: '20081003-232530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40901',
internalId:  '',
customField: '20081005-202739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6806',
internalId:  '',
customField: '20081005-202228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24301',
internalId:  '',
customField: '20080422-143944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24322',
internalId:  '',
customField: '20080331-042205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25501',
internalId:  '',
customField: '20080120-190706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10801',
internalId:  '',
customField: '20070618-021957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13701',
internalId:  '',
customField: '20110629-175226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13722',
internalId:  '',
customField: '20100301-014621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44101',
internalId:  '',
customField: '20100301-014851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58401',
internalId:  '',
customField: '20070618-015230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13743',
internalId:  '',
customField: '20070321-130449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13764',
internalId:  '',
customField: '20070401-190401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22401',
internalId:  '',
customField: '20070401-192842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22901',
internalId:  '',
customField: '20070402-045414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6869',
internalId:  '',
customField: '20090502-052820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6890',
internalId:  '',
customField: '20110809-222820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87301',
internalId:  '',
customField: '20110404-222451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87364',
internalId:  '',
customField: '20110404-223738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107101',
internalId:  '',
customField: '20100406-024550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94101',
internalId:  '',
customField: '20111018-004534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107127',
internalId:  '',
customField: '20110404-224438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109001',
internalId:  '',
customField: '20111018-005140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139001',
internalId:  '',
customField: '20101206-220723'
};
webappMappings['7060']=webappMappings['7060-fa79f3573f8996fd9d8a4207721bea61']={
webappId:    '7060',
documentId:  '114201',
internalId:  'fa79f3573f8996fd9d8a4207721bea61',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114201',
internalId:  '',
customField: '20081005-035039'
};
webappMappings['7060']=webappMappings['7060-8fa4e3f635dc3e6d91ac1642e3edd988']={
webappId:    '7060',
documentId:  '120301',
internalId:  '8fa4e3f635dc3e6d91ac1642e3edd988',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120301',
internalId:  '',
customField: '20081005-035310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121401',
internalId:  '',
customField: '20081005-203058'
};
var webAppHostname = 'cgi.easily.co.uk:80';
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT10INXLT5';
var companyName   = 'Q+U+E+E+N++S+A+L+S+A+.+C+O+M';
var htmlTitle	  = 'http%3A%2F%2Fwww.queensalsa.com';
var metaKeywords  = 'queen%2Csalsa%2Clatin%2Cdance%2CBarnet%2CBrixton%2CFinchley%2CTufnell%2CPark%2CLondon%2CEngland%2CUK%2CU.K.%2Clesson%2Cclass%2Cclase%2Cparty%2Cevent%2Cstyle%2Cfun%2Clearn%2Cteach%2Cchampion%2Cfootwork%2Cmusic%2CMina%2Cscene%2Cinfo%2Cco%2Ccom%2Cjive%2Choliday%2Ccali%2Ccolombia%2Ccuba%2Cmon%2Cwednes%2Csatur%2Cday%2Cwest%2Cnorth%2Cweek%2Cmonth%2Cyear%2Cshow%2Ceve%2Cnight%2Ctasty%2Cfood%2Cweb%2Cnet%2Cscene%2Cinfo%2Cbegin%2Cimprove%2Cintermediate%2Cadvance%2Cchoreograph%2Croutine%2Cbody%2Cstyling%2Ccelebrate%2Coccasion%2Cshowcase%2Cperform%2Cstudent%2CTurkey%2Cact%2Ccouple%2Cgroup%2Cband%2Cmerengue%2Cchacha%2Cpachanga%2Cmambo%2Cno.%2Cnumber%2C1%2C2%2C3%2Ca%2Cb%2Cc%2Ceurope%2Cworld%2Cvillage%2Clondon+salsa+bar+%2Csalsa+class+london+%2Clondon+salsa+club+%2Csalsa+club+in++london%2Csalsa+holidays%2Csalsa+dance+steps%2Csalsa+class+london%2Clearn+to+dance+salsa%2Clatin+dance+exercise+video%2Clatin+dance+and+salsa%2Clatin+dance+workout+video%2Clatin+dance+steps%2Clatin+dance+clothes%2Clatin+dance+online%2Clatin+dance+schools%2Ctypes+of+latin+dances%2Camerican+latin+dance%2Csimply+ballroom%2Cballroom+night+club%2Cballroom+dancing+dvd%2Chistory+of+ballroom+dancing%2Cballroom+dancing+steps%2Cballroom+dancing+uk%2Cballroom+costumes%2C';
var metaContents  = 'Learn+Salsa+and+have+fun+with+Mina+QUEEN+SALSA%2C+one+of+your+more+experienced+Salsa+teachers%2C+teaching+Salsa+in+the+UK+since+1991.++Scintillatingly+Sassy+Salsa+Classes%2C+including+Footwork+and+Styling.+Visit%3A+www.queensalsa.com+for+more+info.';
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();
};

