﻿//this file contains all the web page references for the globalhealth section.
//ensure any web page to be included in the globalhealth Report PDF Builder (in the globalhealth 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 globalhealtheate a new chapter, a new checkbox needs to be globalhealtheated in the globalhealth Report PDF builder form.
//You will also need to hook up the checkbox value to the chapter array by adding a line into the initGlobalHealth() function as outlined at the end of this file.

var globalhealthChapter0 =
[
'http://10.5.22.33:31102/responsibility/global-health/index.htm',
];

var globalhealthChapter1 =
[
'http://10.5.22.33:31102/responsibility/global-health/responding-pandemic-flu.htm',
];

var globalhealthChapter2 =
[
'http://10.5.22.33:31102/responsibility/global-health/disease-prevention.htm',
'http://10.5.22.33:31102/responsibility/global-health/role-of-vaccines.htm',
'http://10.5.22.33:31102/responsibility/global-health/other-products.htm',
];

var globalhealthChapter3 =
[
'http://10.5.22.33:31102/responsibility/global-health/disease-awareness.htm',
];

var globalhealthChapter4 =
[
'http://10.5.22.33:31102/responsibility/global-health/treating-ill-health.htm',
];

var globalhealthChapter5 =
[
'http://10.5.22.33:31102/responsibility/global-health/research-development.htm',
'http://10.5.22.33:31102/responsibility/global-health/research-activities-2009.htm',
'http://10.5.22.33:31102/responsibility/global-health/contributing-scientific-understanding.htm',
];

var globalhealthChapter6 =
[
'http://10.5.22.33:31102/responsibility/global-health/QAs.htm',
];

//function initGlobalHealth:    loads the contents of the above arrays into the corresponding checkboxes in the globalhealth 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('globalhealthChapter1').value = globalhealthChapter1.join();
//                              - sets the checkbox value with ID 'globalhealthChapter1' to the contents of the above 'globalhealthChapter1' array.

function initGlobalHealth() {
    document.getElementById('globalhealthChapter0').value = globalhealthChapter0.join();
	document.getElementById('globalhealthChapter1').value = globalhealthChapter1.join();
    document.getElementById('globalhealthChapter2').value = globalhealthChapter2.join();
    document.getElementById('globalhealthChapter3').value = globalhealthChapter3.join();
    document.getElementById('globalhealthChapter4').value = globalhealthChapter4.join();
    document.getElementById('globalhealthChapter5').value = globalhealthChapter5.join();
    document.getElementById('globalhealthChapter6').value = globalhealthChapter6.join();
}
