    var latestnews=[
		// Formar: "<h2>Heading Goes Here</h2>Caption text goes here",
					
		//News Item 1
		"<h2>Life saving treatment for heart attacks in the home</h2>Ian Morphett suffered a heart attack at home and thanks to a clot busting drug, administered by paramedics, is here today",
		//News Item 2
		"<h2>Patient survey shows we deliver a quality service</h2>The annual Council of Ambulance Authorities report into patient satisfaction",
		//News Item 3
		"<h2>Ambulance Research Institute success at Conference</h2>Ambulance Research Institute wins three awards at the ACAP National Conference in Auckland",
		//News Item 4
		"<h2>Ambulance wins at NSW Health Awards</h2>Congratulations to the CARE team for their winning entry More and Safer Options for Ambulance Pre Hospital Patients"
    ]
    
    var mygallery=new simpleGallery({
        wrapperid: "simplegallery1",
        dimensions: [400, 180],
        imagearray: [
			//News Item 1 Image
            ["images/photos_2009/091118morphett.jpg", "http://www.ambulance.nsw.gov.au/media_publications/2009_pages/090810morphett.html", "", ""],
			//News Item 2 Image
            ["images/photos_2009/091030survey.jpg", "http://www.ambulance.nsw.gov.au/media_publications/2009_pages/091030survey.html", "", ""],
			//News Item 3 Image
            ["images/photos_2009/091106researchaward.jpg", "http://www.ambulance.nsw.gov.au/media_publications/2009_pages/091106researchaward.html", "", ""],
			//News Item 4 Image
            ["images/photos_2009/091103healthaward.jpg", "http://www.ambulance.nsw.gov.au/media_publications/2009_pages/091103healthaward.html", "", ""]
        ],
        autoplay: [true, 4500, 30],
        persist: false,
        fadeduration: 1000,
        oninit:function(){
        },
        onslide:function(curslide, i){
            document.getElementById("caption").innerHTML=latestnews[i] + "<a href='http://www.ambulance.nsw.gov.au/media_publications/latest_news.html'</a>";
        }
    });
	
	//play/pause toggle
	$(document).ready(function (){
		$('.playpause').bind('click',
			function() {           
				$('.playpause').find('img').toggle();
			}
		);
	});