/* [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','42',jdecode('Home'),jdecode(''),'/42.html','true',[],''],
	['PAGE','63',jdecode('About+IWTC'),jdecode(''),'/63/index.html','true',[ 
		['PAGE','3566',jdecode('IWTC+Staff'),jdecode(''),'/63/3566.html','true',[],''],
		['PAGE','4026',jdecode('Partners'),jdecode(''),'/63/4026.html','true',[],'']
	],''],
	['PAGE','72',jdecode('Programme+Areas'),jdecode(''),'/72.html','true',[],''],
	['PAGE','14115',jdecode('UN+SCR+1820'),jdecode(''),'/14115.html','true',[],''],
	['PAGE','49001',jdecode('UNSCR+1820+strategy+session'),jdecode(''),'/49001.html','true',[],''],
	['PAGE','29301',jdecode('Radio+Drama+on+UNSCR+1325'),jdecode(''),'/29301.html','true',[],''],
	['PAGE','2983',jdecode('Radio+and+UNSCR+1325'),jdecode(''),'/2983/index.html','true',[ 
		['PAGE','3140',jdecode('Asia%2FPhilippines'),jdecode(''),'/2983/3140.html','true',[],''],
		['PAGE','3149',jdecode('Africa%2FUganda'),jdecode(''),'/2983/3149.html','true',[],''],
		['PAGE','5266',jdecode('Africa%2FLiberia'),jdecode(''),'/2983/5266.html','true',[],''],
		['PAGE','9515',jdecode('Africa%2FSierra+Leone'),jdecode(''),'/2983/9515.html','true',[],''],
		['PAGE','7955',jdecode('Radio+Spots'),jdecode(''),'/2983/7955.html','true',[],'']
	],''],
	['PAGE','8810',jdecode('CSW+2008'),jdecode(''),'/8810/index.html','true',[ 
		['PAGE','9243',jdecode('Information+about+the+CSW'),jdecode(''),'/8810/9243.html','true',[],''],
		['PAGE','8894',jdecode('Peace+%26+Conflict+Caucus'),jdecode(''),'/8810/8894.html','true',[],''],
		['PAGE','9152',jdecode('Sources+%26+Resources+for+1325'),jdecode(''),'/8810/9152.html','true',[],'']
	],''],
	['PAGE','6324',jdecode('CSW+2007'),jdecode(''),'/6324/index.html','true',[ 
		['PAGE','6407',jdecode('For+Girls+Only%21'),jdecode(''),'/6324/6407.html','true',[],''],
		['PAGE','6416',jdecode('Women%2C+Ink.+events'),jdecode(''),'/6324/6416.html','true',[],''],
		['PAGE','6425',jdecode('UN+Reform'),jdecode(''),'/6324/6425.html','true',[],''],
		['PAGE','9013',jdecode('Statement+on+Peace+%26+Security'),jdecode(''),'/6324/9013.html','true',[],'']
	],''],
	['PAGE','5029',jdecode('UNSCR+1325+anniversary+'),jdecode(''),'/5029.html','true',[],''],
	['PAGE','34301',jdecode('International+Colloquium'),jdecode(''),'/34301.html','true',[],''],
	['PAGE','34322',jdecode('WPBCoP'),jdecode(''),'/34322.html','true',[],''],
	['PAGE','37701',jdecode('WPBCoP+Database'),jdecode(''),'/37701.html','true',[],''],
	['PAGE','2116',jdecode('UN+Reform'),jdecode(''),'/2116.html','true',[],''],
	['PAGE','117',jdecode('Global+Net'),jdecode(''),'/117.html','true',[],''],
	['PAGE','81',jdecode('2005+Cyber-Dialogues'),jdecode(''),'/81.html','true',[],''],
	['PAGE','108',jdecode('Links+%26+Resources'),jdecode(''),'/108/index.html','true',[ 
		['PAGE','6774',jdecode('Ideas+for+Working+with+Girls'),jdecode(''),'/108/6774.html','true',[],''],
		['PAGE','9646',jdecode('Moving+the+Money+for+Women'),jdecode(''),'/108/9646.html','true',[],'']
	],''],
	['PAGE','33801',jdecode('Publications'),jdecode(''),'/33801.html','true',[],''],
	['PAGE','7579',jdecode('Jobs'),jdecode(''),'/7579.html','true',[],''],
	['PAGE','90',jdecode('Internships'),jdecode(''),'/90.html','true',[],''],
	['PAGE','99',jdecode('Support+IWTC'),jdecode(''),'/99.html','true',[],''],
	['PAGE','3652',jdecode('Contact+us'),jdecode(''),'/3652.html','true',[],'']];
var siteelementCount=38;
theSitetree.topTemplateName='Bombay';
theSitetree.paletteFamily='588972';
theSitetree.keyvisualId='7537';
theSitetree.keyvisualName='kv_7537.jpg';
theSitetree.fontsetId='16584';
theSitetree.graphicsetId='12201';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='A4ACCD';
var theTemplate={
				name: 			'Bombay',
				paletteFamily: 	'588972',
				keyvisualId: 	'7537',
				keyvisualName: 	'kv_7537.jpg',
				fontsetId: 		'16584',
				graphicsetId: 	'12201',
				contentColor: 	'000000',
				contentBGColor: 'A4ACCD',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'588972',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '42',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42',
internalId:  '',
customField: '20100217-133923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117',
internalId:  '',
customField: '20100217-134948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63',
internalId:  '',
customField: '20060427-220244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3566',
internalId:  '',
customField: '20090428-135325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4026',
internalId:  '',
customField: '20060508-210213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72',
internalId:  '',
customField: '20090915-125902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14115',
internalId:  '',
customField: '20080821-172830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2983',
internalId:  '',
customField: '20080425-153841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3140',
internalId:  '',
customField: '20070308-171648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3149',
internalId:  '',
customField: '20061103-213648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5266',
internalId:  '',
customField: '20061103-221248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9515',
internalId:  '',
customField: '20080425-193138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7955',
internalId:  '',
customField: '20070608-020409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8810',
internalId:  '',
customField: '20080305-013444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9243',
internalId:  '',
customField: '20080305-013209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8894',
internalId:  '',
customField: '20080305-014500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9152',
internalId:  '',
customField: '20080228-205924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6324',
internalId:  '',
customField: '20070223-224431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6407',
internalId:  '',
customField: '20070224-013616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6416',
internalId:  '',
customField: '20070305-190224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6425',
internalId:  '',
customField: '20070223-233024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9013',
internalId:  '',
customField: '20080228-165253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5029',
internalId:  '',
customField: '20061030-174405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2116',
internalId:  '',
customField: '20061109-180632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81',
internalId:  '',
customField: '20050908-071101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108',
internalId:  '',
customField: '20080721-113052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6774',
internalId:  '',
customField: '20070523-155423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9646',
internalId:  '',
customField: '20080721-112520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7579',
internalId:  '',
customField: '20070418-181452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90',
internalId:  '',
customField: '20090407-161910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99',
internalId:  '',
customField: '20050907-145334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3652',
internalId:  '',
customField: '20060427-220402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29301',
internalId:  '',
customField: '20090603-114238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33801',
internalId:  '',
customField: '20090512-104922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34322',
internalId:  '',
customField: '20090915-130211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34301',
internalId:  '',
customField: '20090813-105621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37701',
internalId:  '',
customField: '20090909-121030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49001',
internalId:  '',
customField: '20090929-164231'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INXXAB';
var companyName   = 'International+Women%27s+Tribune+Centre';
var htmlTitle	  = '';
var metaKeywords  = 'United+Nations%2C+womens+issues%2C+women+and+development%2C+women+in+conflict%2C+women+and+peace+building%2C+UNSCR+1325%2C+United+Nations+Security+Council+Resolution+1325%2C+Beijing+Platform+for+Action%2C+Millennium+Summit+%2B5%2C+women+in+war%2C+';
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();
};
