/* [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','2201',jdecode('Home'),jdecode(''),'/2201.html','true',[],'',''],
	['PAGE','191301',jdecode('Overview'),jdecode(''),'/191301.html','true',[],'',''],
	['PAGE','167401',jdecode('Reaffirmation+to+FP'),jdecode(''),'/167401.html','true',[],'',''],
	['PAGE','149901',jdecode('Program'),jdecode(''),'/149901.html','true',[],'',''],
	['PAGE','169401',jdecode('Presentations'),jdecode(''),'/169401/index.html','true',[ 
		['PAGE','170001',jdecode('Opening+Plenary'),jdecode(''),'/169401/170001.html','true',[],'',''],
		['PAGE','170022',jdecode('Day+1-Monday'),jdecode(''),'/169401/170022.html','true',[],'',''],
		['PAGE','170043',jdecode('Day+2-Tuesday'),jdecode(''),'/169401/170043.html','true',[],'',''],
		['PAGE','170064',jdecode('Day+3-Wednesday'),jdecode(''),'/169401/170064.html','true',[],'',''],
		['PAGE','171301',jdecode('Closing+Plenary'),jdecode(''),'/169401/171301.html','true',[],'','']
	],'',''],
	['PAGE','148701',jdecode('Workshops%2FMeetings'),jdecode(''),'/148701.html','true',[],'',''],
	['PAGE','166201',jdecode('News+-+Updated%21'),jdecode(''),'/166201.html','true',[],'',''],
	['PAGE','195601',jdecode('Useful+Resources'),jdecode(''),'/195601.html','true',[],'',''],
	['PAGE','195622',jdecode('Opportunities'),jdecode(''),'/195622.html','true',[],'',''],
	['PAGE','2315',jdecode('Partners'),jdecode(''),'/2315.html','true',[],'',''],
	['PAGE','99501',jdecode('Contact+Us'),jdecode(''),'/99501.html','true',[],'',''],
	['PAGE','2252',jdecode('Call+for+Abstracts'),jdecode(''),'/2252.html','false',[],'',''],
	['PAGE','16701',jdecode('Abstract+Status'),jdecode(''),'/16701.html','false',[],'',''],
	['PAGE','2273',jdecode('Registration-CLOSED'),jdecode(''),'/2273.html','false',[],'',''],
	['PAGE','158601',jdecode('Presenter+Guidelines'),jdecode(''),'/158601.html','false',[],'',''],
	['PAGE','133501',jdecode('Preformed+Panels'),jdecode(''),'/133501.html','false',[],'',''],
	['PAGE','141901',jdecode('Conference+Venue'),jdecode(''),'/141901.html','false',[],'',''],
	['PAGE','143101',jdecode('Travel+Information'),jdecode(''),'/143101.html','false',[],'',''],
	['PAGE','154101',jdecode('Letter+of+Invitation'),jdecode(''),'/154101.html','false',[],'',''],
	['PAGE','157001',jdecode('Sightseeing'),jdecode(''),'/157001.html','false',[],'',''],
	['PAGE','145201',jdecode('Travel+Award'),jdecode(''),'/145201.html','false',[],'',''],
	['PAGE','106501',jdecode('Fran%C3%A7ais'),jdecode(''),'/106501/index.html','false',[ 
		['PAGE','106522',jdecode('Appel+%C3%A0+R%C3%A9sum%C3%A9s'),jdecode(''),'/106501/106522.html','true',[],'',''],
		['PAGE','107201',jdecode('Soumettre+le+r%C3%A9sum%C3%A9'),jdecode(''),'/106501/107201.html','true',[],'',''],
		['PAGE','137001',jdecode('Panels+Pr%C3%A9constitu%C3%A9s+'),jdecode(''),'/106501/137001.html','true',[],'',''],
		['PAGE','107701',jdecode('Enregistrement'),jdecode(''),'/106501/107701.html','true',[],'',''],
		['PAGE','164001',jdecode('Programme'),jdecode(''),'/106501/164001.html','true',[],'',''],
		['PAGE','164101',jdecode('Directrices++Pr%C3%A9sentations'),jdecode(''),'/106501/164101.html','true',[],'',''],
		['PAGE','164022',jdecode('Lettre+d%26%23x27%3BInvitation'),jdecode(''),'/106501/164022.html','true',[],'',''],
		['PAGE','168801',jdecode('Resources+M%C3%A9diatiques'),jdecode(''),'/106501/168801.html','true',[],'',''],
		['PAGE','107901',jdecode('Partenaires'),jdecode(''),'/106501/107901.html','true',[],'',''],
		['PAGE','107722',jdecode('Nous+contacter'),jdecode(''),'/106501/107722.html','true',[],'','']
	],'','']];
var siteelementCount=37;
theSitetree.topTemplateName='Match';
theSitetree.paletteFamily='FF3333';
theSitetree.keyvisualId='2698';
theSitetree.keyvisualName='kv_2698.jpg';
theSitetree.fontsetId='10404';
theSitetree.graphicsetId='10635';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='CCCCCC';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Match',
				paletteFamily: 	'FF3333',
				keyvisualId: 	'2698',
				keyvisualName: 	'kv_2698.jpg',
				fontsetId: 		'10404',
				graphicsetId: 	'10635',
				contentColor: 	'000000',
				contentBGColor: 'CCCCCC',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FF3333',
				e_color: 		'545353',
				f_color: 		'545353',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2201',
internalId:  '',
customField: '20100121-121749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2252',
internalId:  '',
customField: '20090604-112621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2273',
internalId:  '',
customField: '20091102-184945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99501',
internalId:  '',
customField: '20100223-172822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2315',
internalId:  '',
customField: '20091103-155402'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16701',
internalId:  '',
customField: '20090928-173946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106501',
internalId:  '',
customField: '20090327-134106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106522',
internalId:  '',
customField: '20090327-141141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107201',
internalId:  '',
customField: '20090714-152704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107722',
internalId:  '',
customField: '20090619-104356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107701',
internalId:  '',
customField: '20091013-144947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107901',
internalId:  '',
customField: '20090604-112155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133501',
internalId:  '',
customField: '20090817-113400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137001',
internalId:  '',
customField: '20090623-122620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141901',
internalId:  '',
customField: '20090817-143902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143101',
internalId:  '',
customField: '20091008-213409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '145201',
internalId:  '',
customField: '20090722-122629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '148701',
internalId:  '',
customField: '20091109-201430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149901',
internalId:  '',
customField: '20100122-150339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154101',
internalId:  '',
customField: '20091008-214003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157001',
internalId:  '',
customField: '20090923-125023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158601',
internalId:  '',
customField: '20091014-153204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164001',
internalId:  '',
customField: '20091015-163127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164101',
internalId:  '',
customField: '20091015-162035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164022',
internalId:  '',
customField: '20091022-164124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166201',
internalId:  '',
customField: '20100202-101521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167401',
internalId:  '',
customField: '20100122-144824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195601',
internalId:  '',
customField: '20100122-154131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '168801',
internalId:  '',
customField: '20091113-144612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '169401',
internalId:  '',
customField: '20100120-104421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170001',
internalId:  '',
customField: '20100122-092747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170022',
internalId:  '',
customField: '20100309-120227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170043',
internalId:  '',
customField: '20100125-173551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170064',
internalId:  '',
customField: '20091228-211228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '171301',
internalId:  '',
customField: '20100106-235908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195622',
internalId:  '',
customField: '20100122-155836'
};
webappMappings['7060']=webappMappings['7060-332ce36cc6df86603b627f9de9f7934e']={
webappId:    '7060',
documentId:  '191301',
internalId:  '332ce36cc6df86603b627f9de9f7934e',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '191301',
internalId:  '',
customField: '20100215-164301'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHK31';
var companyName   = 'Universal+Access+to+Family+Planning';
var htmlTitle	  = 'International+Conference+on+Family+Planning%3A+Research+and+Best+Practices';
var metaKeywords  = '';
var metaContents  = '';
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();
};
