﻿//this file contains all the web page references for the cr section.
//ensure any web page to be included in the CR Report PDF Builder (in the cr 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 create a new chapter, a new checkbox needs to be created 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 initcr() function as outlined at the end of this file.

var crChapter0 =
[
'http://10.5.22.33:31102/responsibility/cr-at-gsk/index.htm',
];

var crChapter1 =
[
'http://10.5.22.33:31102/responsibility/cr-at-gsk/message-from-ceo.htm',
];

var crChapter2 =
[
'http://10.5.22.33:31102/responsibility/cr-at-gsk/our-corporate-responsibility-principles.htm',
];

var crChapter3 =
[
'http://10.5.22.33:31102/responsibility/cr-at-gsk/business-case-for-corporate-responsibility.htm',
];

var crChapter4 =
[
'http://10.5.22.33:31102/responsibility/cr-at-gsk/our-key-issues.htm',
];

var crChapter5 =
[
'http://10.5.22.33:31102/responsibility/cr-at-gsk/corporate-responsibility-governance.htm',
];

var crChapter6 =
[
'http://10.5.22.33:31102/responsibility/cr-at-gsk/audit-and-assurance.htm',
];

var crChapter7 =
[
'http://10.5.22.33:31102/responsibility/cr-at-gsk/risk-management.htm',
];

var crChapter8 =
[
'http://10.5.22.33:31102/responsibility/cr-at-gsk/stakeholder-engagement.htm',
'http://10.5.22.33:31102/responsibility/cr-at-gsk/how-we-engage.htm',
'http://10.5.22.33:31102/responsibility/cr-at-gsk/engagement-with-employees.htm',
'http://10.5.22.33:31102/responsibility/cr-at-gsk/engagement-with-investors.htm',
'http://10.5.22.33:31102/responsibility/cr-at-gsk/engagement-with-other-stakeholders.htm',
];

var crChapter9 =
[
'http://10.5.22.33:31102/responsibility/cr-at-gsk/benchmarking.htm',
];

var crChapter10 =
[
'http://10.5.22.33:31102/responsibility/cr-at-gsk/about-our-reporting.htm',
];

var crChapter11 =
[
'http://10.5.22.33:31102/responsibility/cr-at-gsk/corporate-responsibility-data-summary.htm',
];


//function initcr:  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('crChapter1').value = crChapter1.join();
//                          - sets the checkbox value with ID 'crChapter1' to the contents of the above 'crChapter1' array.

function initCR() {
    document.getElementById('crChapter0').value = crChapter0.join();
	document.getElementById('crChapter1').value = crChapter1.join();
    document.getElementById('crChapter2').value = crChapter2.join();
    document.getElementById('crChapter3').value = crChapter3.join();
    document.getElementById('crChapter4').value = crChapter4.join();
    document.getElementById('crChapter5').value = crChapter5.join();
    document.getElementById('crChapter6').value = crChapter6.join();
    document.getElementById('crChapter7').value = crChapter7.join();
    document.getElementById('crChapter8').value = crChapter8.join();
    document.getElementById('crChapter9').value = crChapter9.join();
    document.getElementById('crChapter10').value = crChapter10.join();
	document.getElementById('crChapter11').value = crChapter11.join();
}
