/* [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','72',jdecode('Organisatie'),jdecode(''),'/72.html','true',[],''],
	['PAGE','63',jdecode('Missie+en+visie'),jdecode(''),'/63.html','true',[],''],
	['PAGE','84034',jdecode('Referenties'),jdecode(''),'/84034.html','true',[],''],
	['PAGE','81',jdecode('Uw+voordelen'),jdecode(''),'/81.html','true',[],''],
	['PAGE','3054',jdecode('Veelgestelde+vragen'),jdecode(''),'/3054.html','true',[],''],
	['PAGE','6598',jdecode('Aanbestedingstips'),jdecode(''),'/6598.html','true',[],''],
	['PAGE','4735',jdecode('Interessante+links'),jdecode(''),'/4735.html','true',[],''],
	['PAGE','90',jdecode('Contact'),jdecode(''),'/90.html','true',[],''],
	['PAGE','1446',jdecode('Disclaimer'),jdecode(''),'/1446.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='CC6600';
theSitetree.keyvisualId='1383';
theSitetree.keyvisualName='callcenter2.jpg';
theSitetree.fontsetId='237';
theSitetree.graphicsetId='286';
theSitetree.contentColor='002F2F';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Startup',
				paletteFamily: 	'CC6600',
				keyvisualId: 	'1383',
				keyvisualName: 	'callcenter2.jpg',
				fontsetId: 		'237',
				graphicsetId: 	'286',
				contentColor: 	'002F2F',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'CC6600',
				b_color: 		'333333',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-76']={
webappId:    '7008',
documentId:  '90',
internalId:  '76',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42',
internalId:  '',
customField: '20100216-020037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90',
internalId:  '',
customField: '20090109-025330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72',
internalId:  '',
customField: '20100203-133045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63',
internalId:  '',
customField: '20100203-133359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81',
internalId:  '',
customField: '20100203-134245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3054',
internalId:  '',
customField: '20100203-132917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84034',
internalId:  '',
customField: '20100203-133521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6598',
internalId:  '',
customField: '20080725-064741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4735',
internalId:  '',
customField: '20100102-025731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1446',
internalId:  '',
customField: '20070228-092026'
};
var canonHostname = 'cm4all01.west-datacenter.net';
var accountId     = 'AWH010INX3ME';
var companyName   = 'copiers+%7C+printers+%7C+repro++++++++++...';
var htmlTitle	  = 'Probid%3B+Europees+aanbesteden+multifunctionals+MFP+copiers+repro+duurzaam+kopieermachines+printers+kopieerapparatuur';
var metaKeywords  = 'kosten+reductie%2C+afdrukkosten+reduceren%2C+cost+control%2C+inkopen%2C+inkoopspecialist%2C+inkoopresultaat%2C+inkoopadvies%2C+inkoopprofessional%2C+inkoopondersteuning%2C+repro%2C+centrale+repro%2C+outsourcing%2C+MFC%2C+MFP%2C+Xerox%2C+Oce%2C+Canon%2C+Nashuatec%2C+Ricoh%2C+Hewlett+Packard%2C+Danka%2C+Facility+Management%2C+facilitair%2C+facilitaire+dienstverlening%2C+RFP%2C+RFQ%2C+openbare+aanbesteding%2C+drempelbedragen%2C+drempelwaarden%2C+request+for+information%2C+request+for+proposal%2C+ministerie%2C+provincie%2C+waterschap%2C+gemeente%2C+gezondheidszorg%2C+onderwijs%2C+universiteit%2C+NIC%2C+Rental+Services%2C+NIC+Rental+Services%2C+ITS%2C+Conink%2C+Zwolle%2C+beoordelen%2C+analyseren%2C+objectief%2C+transparant%2C+niet-discriminerend%2C+zero+sum+game%2C+afdrukstromen%2C+Emeritor%2C+Alfadelta%2C+Compendium%2C+Insinc';
var metaContents  = 'Begeleiding+Europese+aanbestedingen%2C+inkoop+en+cost+control+van+copiers%2C+kopieermachines%2C+kopieerapparatuur%2C+kopieerapparaten%2C+printers%2C+multifunctionals%2C+documentbeheer+en+outsourcing+van+%28centrale%29+repro';
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();
};
