/* [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','24422',jdecode('HOME'),jdecode(''),'/24422.html','true',[],'',''],
	['PAGE','126401',jdecode('Lessons+%26+Milongas'),jdecode(''),'/126401/index.html','true',[ 
		['PAGE','155601',jdecode('TT101+'),jdecode(''),'/126401/155601.html','true',[],'',''],
		['PAGE','155622',jdecode('TT102'),jdecode(''),'/126401/155622.html','true',[],'',''],
		['PAGE','155643',jdecode('TT103'),jdecode(''),'/126401/155643.html','true',[],'',''],
		['PAGE','155664',jdecode('TT104'),jdecode(''),'/126401/155664.html','true',[],'',''],
		['PAGE','155685',jdecode('TT105'),jdecode(''),'/126401/155685.html','true',[],'','']
	],'',''],
	['PAGE','158501',jdecode('Life+skills+of+TANGO'),jdecode(''),'/158501.html','true',[],'',''],
	['PAGE','128401',jdecode('Team+Building+%26+more'),jdecode(''),'/128401.html','true',[],'',''],
	['PAGE','157701',jdecode('August+Tour+to+BsAs'),jdecode(''),'/157701.html','true',[],'',''],
	['PAGE','27801',jdecode('TANGO+INSIGHTS'),jdecode(''),'/27801/index.html','true',[ 
		['PAGE','29201',jdecode('Lead+and+Follow'),jdecode(''),'/27801/29201.html','true',[],'',''],
		['PAGE','29401',jdecode('Tango+%26+Relationships'),jdecode(''),'/27801/29401.html','true',[],'',''],
		['PAGE','29601',jdecode('Role+of+the+Male'),jdecode(''),'/27801/29601.html','true',[],'',''],
		['PAGE','29801',jdecode('Role+of+the+Female'),jdecode(''),'/27801/29801.html','true',[],'',''],
		['PAGE','30001',jdecode('Every+woman+wants...'),jdecode(''),'/27801/30001.html','true',[],'',''],
		['PAGE','30201',jdecode('Tango+Shoes'),jdecode(''),'/27801/30201.html','true',[],'',''],
		['PAGE','30401',jdecode('No+mistakes'),jdecode(''),'/27801/30401.html','true',[],'',''],
		['PAGE','30701',jdecode('Just+about+the+dance'),jdecode(''),'/27801/30701.html','true',[],'',''],
		['PAGE','30901',jdecode('Not+enough+men'),jdecode(''),'/27801/30901.html','true',[],'',''],
		['PAGE','31101',jdecode('Heroes'),jdecode(''),'/27801/31101.html','true',[],'',''],
		['PAGE','31301',jdecode('A+whole+new+world'),jdecode(''),'/27801/31301.html','true',[],'',''],
		['PAGE','31501',jdecode('Close+embrace'),jdecode(''),'/27801/31501.html','true',[],'',''],
		['PAGE','45901',jdecode('Why...%3F'),jdecode(''),'/27801/45901.html','true',[],'','']
	],'',''],
	['PAGE','24543',jdecode('PHOTO+GALLERY'),jdecode(''),'/24543/index.html','true',[ 
		['PAGE','128801',jdecode('Easter+Tour+Photos'),jdecode(''),'/24543/128801.html','true',[],'','']
	],'',''],
	['PAGE','24564',jdecode('CONTACT+%26+Banking+details'),jdecode(''),'/24564.html','true',[],'','']];
var siteelementCount=27;
theSitetree.topTemplateName='NewYork';
theSitetree.paletteFamily='660000';
theSitetree.keyvisualId='974';
theSitetree.keyvisualName='schmuck.jpg';
theSitetree.fontsetId='166';
theSitetree.graphicsetId='197';
theSitetree.contentColor='A00000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'NewYork',
				paletteFamily: 	'660000',
				keyvisualId: 	'974',
				keyvisualName: 	'schmuck.jpg',
				fontsetId: 		'166',
				graphicsetId: 	'197',
				contentColor: 	'A00000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'660000',
				c_color: 		'000000',
				d_color: 		'990000',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24422',
internalId:  '',
customField: '20110328-124130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158501',
internalId:  '',
customField: '20110703-121834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128801',
internalId:  '',
customField: '20101012-220245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24543',
internalId:  '',
customField: '20090428-233723'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '24422',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-793717']={
webappId:    '1501',
documentId:  '24422',
internalId:  '793717',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27801',
internalId:  '',
customField: '20090429-070309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155601',
internalId:  '',
customField: '20101012-205438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155622',
internalId:  '',
customField: '20101012-210214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24564',
internalId:  '',
customField: '20101012-220036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25101',
internalId:  '',
customField: '20080304-063050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26601',
internalId:  '',
customField: '20080307-061753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26801',
internalId:  '',
customField: '20080307-062308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27001',
internalId:  '',
customField: '20080307-063219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27201',
internalId:  '',
customField: '20080307-064136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27401',
internalId:  '',
customField: '20080307-064906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27601',
internalId:  '',
customField: '20080307-065918'
};
webappMappings['7008']=webappMappings['7008-276']={
webappId:    '7008',
documentId:  '24564',
internalId:  '276',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29201',
internalId:  '',
customField: '20080329-201542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29401',
internalId:  '',
customField: '20090429-072536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29601',
internalId:  '',
customField: '20090429-073713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29801',
internalId:  '',
customField: '20090429-075140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30001',
internalId:  '',
customField: '20080329-204903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30201',
internalId:  '',
customField: '20090429-081346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30401',
internalId:  '',
customField: '20090429-071507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30701',
internalId:  '',
customField: '20090429-083510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30901',
internalId:  '',
customField: '20090429-084252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31101',
internalId:  '',
customField: '20090429-080701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31301',
internalId:  '',
customField: '20080330-142219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31501',
internalId:  '',
customField: '20090429-082102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157701',
internalId:  '',
customField: '20110328-123251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155664',
internalId:  '',
customField: '20101012-212525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155685',
internalId:  '',
customField: '20101012-215752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155643',
internalId:  '',
customField: '20101012-211101'
};
webappMappings['7060']=webappMappings['7060-5a30e9144105cefa825aff6191e3e4bf']={
webappId:    '7060',
documentId:  '128801',
internalId:  '5a30e9144105cefa825aff6191e3e4bf',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45901',
internalId:  '',
customField: '20090429-082937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126401',
internalId:  '',
customField: '20110703-105443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128401',
internalId:  '',
customField: '20101012-204415'
};
var canonHostname = 'sitebuilder1.jnb2.host-h.net';
var accountId     = 'AHTZ10INX2GN';
var companyName   = '+++++++Tango-Tensity';
var htmlTitle	  = 'Tango+Travel+Buenos+Aires%2C+English+Lessons%2FClasses%2C+South+Africa%2C+Johannesburg++';
var metaKeywords  = 'Tango+Travel+Buenos+Aires+Argentina+Johannesburg+South+Africa+English+German+Accomodation+Class+Lesson+Milonga+Teacher+Shoes++';
var metaContents  = 'Tango+travel+in+Buenos+Aires+made+easy+for+English+and+German+speaking+visitors.+Accomodations%2C+classes+and+milongas+-+advice+and+arrangements.+Personal%2C+professional%2C+friendly+service.+Linking+South+Africa+and+Buenos+Aires.+++++';
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();
};

