//**********************************************************************************************************************
/**
* COMPANY: Zipline Interactive
* EMAIL: infon@gozipline.com
* PHONE: 509-321-2849
* DESCRIPTION: This document contains programming required for the website templates.  Requires the jQuery library.
*/
//***********************************************************************************************************************


//***********************************************************************************************************************
//ON DOCUMENT READY FUNCTIONS
//***********************************************************************************************************************
$(function() {

	initSlideshow();

});

function initSlideshow() {

	$.ajax({
		url: "http://www.valleychristianschool.org/index.php?action=presentation_preload_slideshow",
		context: document.body,
		success: function(response) {
			var sources = $.evalJSON(response);
			for (i = 0; i < sources.length; i++) {
				$('#slide' + sources[i][0]).attr('src', sources[i][1]);
			}
		}
	});
}


