﻿//this file contains all the web page references for the ourpeople section.
//ensure any web page to be included in the CR Report PDF Builder (in the ourpeople section) appears in this list

//The arrays are ordered by chapter. To create a new chapter, copy a whole array and paste it in order of chapter
//If you ourpeopleeate a new chapter, a new checkbox needs to be ourpeopleeated in the CR Report PDF builder form.
//You will also need to hook up the checkbox value to the chapter array by adding a line into the initourpeople() function as outlined at the end of this file.

var ourpeopleChapter0 =
[
'http://10.5.22.33:31102/responsibility/our-people/index.htm',
];

var ourpeopleChapter1 =
[
'http://10.5.22.33:31102/responsibility/our-people/our-values-and-behaviours.htm',
];

var ourpeopleChapter2 =
[
'http://10.5.22.33:31102/responsibility/our-people/inclusion-and-diversity.htm',
'http://10.5.22.33:31102/responsibility/our-people/inclusion-and-diversity-performance.htm',
];

var ourpeopleChapter3 =
[
'http://10.5.22.33:31102/responsibility/our-people/developing-our-people.htm',
];

var ourpeopleChapter4 =
[
'http://10.5.22.33:31102/responsibility/our-people/leading-people.htm',
];

var ourpeopleChapter5 =
[
'http://10.5.22.33:31102/responsibility/our-people/restructuring.htm',
];

var ourpeopleChapter6 =
[
'http://10.5.22.33:31102/responsibility/our-people/communication-and-consultation.htm',
'http://10.5.22.33:31102/responsibility/our-people/communication-and-consultation-performance.htm',
];

var ourpeopleChapter7 =
[
'http://10.5.22.33:31102/responsibility/our-people/reward-and-recognition.htm',
];

var ourpeopleChapter8 =
[
'http://10.5.22.33:31102/responsibility/our-people/health-and-safety.htm',
'http://10.5.22.33:31102/responsibility/our-people/health-and-safety-management.htm',
'http://10.5.22.33:31102/responsibility/our-people/hazard-assesment-and-communication.htm',
'http://10.5.22.33:31102/responsibility/our-people/safety-programmes.htm',
'http://10.5.22.33:31102/responsibility/our-people/health-and-wellbeing-programmes.htm',
'http://10.5.22.33:31102/responsibility/our-people/health-and-business-continuity.htm',
'http://10.5.22.33:31102/responsibility/our-people/training-and-awareness.htm',
'http://10.5.22.33:31102/responsibility/our-people/performance.htm',
'http://10.5.22.33:31102/responsibility/our-people/data-table.htm',
];

var ourpeopleChapter9 =
[
'http://10.5.22.33:31102/responsibility/our-people/case-studies.htm',
];

var ourpeopleChapter10 =
[
'http://10.5.22.33:31102/responsibility/our-people/Q&As.htm',
];

//function initourpeople:  loads the contents of the above arrays into the corresponding checkboxes in the CR Report PDF builder form.
//INSTUCTIONS:              Each chapter above needs a corresponding line in this function to associate the PDF files with the correct checkbox.
//e.g:                      document.getElementById('ourpeopleChapter1').value = ourpeopleChapter1.join();
//                          - sets the checkbox value with ID 'ourpeopleChapter1' to the contents of the above 'ourpeopleChapter1' array.

function initOurPeople() {
    document.getElementById('ourpeopleChapter0').value = ourpeopleChapter0.join();
	document.getElementById('ourpeopleChapter1').value = ourpeopleChapter1.join();
    document.getElementById('ourpeopleChapter2').value = ourpeopleChapter2.join();
    document.getElementById('ourpeopleChapter3').value = ourpeopleChapter3.join();
    document.getElementById('ourpeopleChapter4').value = ourpeopleChapter4.join();
    document.getElementById('ourpeopleChapter5').value = ourpeopleChapter5.join();
    document.getElementById('ourpeopleChapter6').value = ourpeopleChapter6.join();
    document.getElementById('ourpeopleChapter7').value = ourpeopleChapter7.join();
    document.getElementById('ourpeopleChapter8').value = ourpeopleChapter8.join();
    document.getElementById('ourpeopleChapter9').value = ourpeopleChapter9.join();
    document.getElementById('ourpeopleChapter10').value = ourpeopleChapter10.join();
}
