// JavaScript Document

 var firstreel=new reelslideshow({
	wrapperid: "myreel", //ID of blank DIV on page to house Slideshow
	dimensions: [180, 200], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: [
		["img/aofa.jpg", "http://www.aofa.com", "_blank"], //["image_path", "optional_link", "optional_target"]
		["img/rospa.jpg", "http://www.rospa.com", "_blank"],
		["img/bsc.jpg", "http://www.britsafe.org", "_blank"]
	],
	displaymode: {type:'auto', pause:8000, cycles:800, pauseonmouseover:true},
	orientation: "h", //Valid values: "h" or "v"
	persist: true, //remember last viewed slide and recall within same session?
	slideduration: 800 //transition duration (milliseconds)
 })

var secondreel=new reelslideshow({
	wrapperid: "myreel1", //ID of blank DIV on page to house Slideshow
	dimensions: [180, 200], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: [
		["img/cieh.jpg", "http://www.cieh.com", "#"], //["image_path", "optional_link", "optional_target"]
		["img/iosh.jpg", "http://www.iosh.com", "_blank"],
		["img/nebosh.jpg", "http://www.nebosh.com", "_blank"],
		["img/pmi.jpg", "http://www.pmi.com", "_blank"]
	],
	displaymode: {type:'auto', pause:8000, cycles:800, pauseonmouseover:true},
	orientation: "h", //Valid values: "h" or "v"
	persist: true, //remember last viewed slide and recall within same session?
	slideduration: 800 //transition duration (milliseconds)
})


//functions.js
//Create a boolean variable to check for a valid IE instance.
var xmlhttp = false;
//Check if we are using IE.
try {
//If the javascript version is greater than 5.
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
//If not, then use the older active x object.
try {
//If we are using IE.
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
//Else we must be using a non-IE browser.
xmlhttp = false;
}
}
//If we are using a non-IE browser, create a JavaScript instance of the object.
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
xmlhttp = new XMLHttpRequest();
}

// collapsible menu
function toggleMenu(objID) {
	
var ob = document.getElementById(objID).style;
ob.display = (ob.display == 'block')?'none': 'block';
document.getElementById("opencloseimg").src = "img/arrow1.gif";
}

