// JavaScript Document


/********************************************
	Start of calendar functions
*/

function goLastMonth(month, year)
{
// If the month is Januaru, decrement the year
if(month == 1)
{
--year;
month = 13;
}

document.location.href = '/'+(month-1)+'/'+year+'/diary_dates.htm';
} 


function goNextMonth(month, year)
{
// If the month is December, increment the year
if(month == 12)
{
++year;
month = 0;
}

document.location.href = '/'+(month+1)+'/'+year+'/diary_dates.htm';
}


/********************************************
	End of calendar functions
*/


/**********************************************
	Start of Home Page Slideshow
*/


var homegallery=new fadeSlideShow({
	wrapperid: "indexshow", //ID of blank DIV on page to house Slideshow
	dimensions: [460, 264], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: [
		//["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"],
		["/images/gallery/chemlab.jpg"],
		["/images/gallery/music.jpg"],
		["/images/gallery/lunch.jpg"],
		["/images/gallery/library.jpg"],
		["/images/gallery/sports.jpg"],
		["/images/gallery/afterschool.jpg"] //<--no trailing comma after very last image element!
	],
	displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 500, //transition duration (milliseconds)
	descreveal: "ondemand",
	togglerid: ""
})


/**********************************************
	End of Home Page Slideshow
*/


/**********************************************
	Start of Sport Slideshow
*/


var sportgallery=new fadeSlideShow({
	wrapperid: "sportshow", //ID of blank DIV on page to house Slideshow
	dimensions: [460, 264], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: [
		//["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"],
		["/images/gallery/sport-hockey.jpg"],
		["/images/gallery/sport-football.jpg"],
		["/images/gallery/sport-quickcricket.jpg"],
		["/images/gallery/sport-discussion.jpg"],
		["/images/gallery/sport-football2.jpg"],
		["/images/gallery/sport-netball.jpg"] //<--no trailing comma after very last image element!
	],
	displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 500, //transition duration (milliseconds)
	descreveal: "ondemand",
	togglerid: ""
})


/**********************************************
	End of Sport Slideshow
*/



/**********************************************
	Start of Music Slideshow
*/


var musicgallery=new fadeSlideShow({
	wrapperid: "musicshow", //ID of blank DIV on page to house Slideshow
	dimensions: [460, 264], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: [
		//["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"],
		["/images/gallery/music-recordergroup.jpg"],
		["/images/gallery/music-recorderlesson.jpg"],
		["/images/gallery/music-violinlesson.jpg"],
		["/images/gallery/music-violinpractice.jpg"],
		["/images/gallery/music-choir.jpg"],
		["/images/gallery/music-choir2.jpg"] //<--no trailing comma after very last image element!
	],
	displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 500, //transition duration (milliseconds)
	descreveal: "ondemand",
	togglerid: ""
})


/**********************************************
	End of Music Slideshow
*/



/**********************************************
	Start of Learning Slideshow
*/


var learninggallery=new fadeSlideShow({
	wrapperid: "learningshow", //ID of blank DIV on page to house Slideshow
	dimensions: [460, 264], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: [
		//["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"],
		["/images/gallery/learning-science.jpg"],
		["/images/gallery/learning-computing.jpg"],
		["/images/gallery/learning-lesson.jpg"],
		["/images/gallery/learning-chemistry.jpg"],
		["/images/gallery/learning-reading.jpg"],
		["/images/gallery/learning-class.jpg"] //<--no trailing comma after very last image element!
	],
	displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 500, //transition duration (milliseconds)
	descreveal: "ondemand",
	togglerid: ""
})


/**********************************************
	End of Learning Slideshow
*/


/**********************************************
	Start of Aftershool Club Slideshow
*/


var afterschoolgallery=new fadeSlideShow({
	wrapperid: "afterschoolshow", //ID of blank DIV on page to house Slideshow
	dimensions: [460, 264], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: [
		//["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"],
		["/images/gallery/afterschool-gardening.jpg"],
		["/images/gallery/afterschool-chessclub.jpg"],
		["/images/gallery/afterschool-recorder.jpg"],
		["/images/gallery/afterschool-bus.jpg"],
		["/images/gallery/afterschool-computing.jpg"],
		["/images/gallery/afterschool-sport.jpg"] //<--no trailing comma after very last image element!
	],
	displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 500, //transition duration (milliseconds)
	descreveal: "ondemand",
	togglerid: ""
})


/**********************************************
	End of Afterschool Club Slideshow
*/



/**********************************************
	Start of Lunch and Break Times Slideshow
*/


var breakgallery=new fadeSlideShow({
	wrapperid: "breakshow", //ID of blank DIV on page to house Slideshow
	dimensions: [460, 264], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: [
		//["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"],
		["/images/gallery/break-lunch.jpg"],
		["/images/gallery/break-playgrounddice.jpg"],
		["/images/gallery/break-playingfieldfriends.jpg"],
		["/images/gallery/break-lunch2.jpg"],
		["/images/gallery/break-playgroundskipping.jpg"],
		["/images/gallery/break-playingfieldball.jpg"] //<--no trailing comma after very last image element!
	],
	displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 500, //transition duration (milliseconds)
	descreveal: "ondemand",
	togglerid: ""
})


/**********************************************
	End of Lunch and Break Times Slideshow
*/



/**********************************************
	Start of About SPS Slideshow
*/


var aboutgallery=new fadeSlideShow({
	wrapperid: "aboutshow", //ID of blank DIV on page to house Slideshow
	dimensions: [460, 264], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: [
		//["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"],
		["/images/gallery/aboutsps-group.jpg"],
		["/images/gallery/aboutsps-teaching.jpg"],
		["/images/gallery/aboutsps-art.jpg"],
		["/images/gallery/aboutsps-outdoorteaching.jpg"],
		["/images/gallery/aboutsps-computing.jpg"],
		["/images/gallery/aboutsps-lesson.jpg"] //<--no trailing comma after very last image element!
	],
	displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 500, //transition duration (milliseconds)
	descreveal: "ondemand",
	togglerid: ""
})


/**********************************************
	End of About SPS Slideshow
*/



/**********************************************
	Start of Information Slideshow
*/


var infogallery=new fadeSlideShow({
	wrapperid: "infoshow", //ID of blank DIV on page to house Slideshow
	dimensions: [460, 264], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: [
		//["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"],
		["/images/gallery/info-friends.jpg"],
		["/images/gallery/info-culture.jpg"],
		["/images/gallery/info-lesson.jpg"],
		["/images/gallery/info-computerlab.jpg"],
		["/images/gallery/info-biology.jpg"],
		["/images/gallery/info-playground.jpg"] //<--no trailing comma after very last image element!
	],
	displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 500, //transition duration (milliseconds)
	descreveal: "ondemand",
	togglerid: ""
})


/**********************************************
	End of Information Slideshow
*/



/**********************************************
	Start of Contact Slideshow
*/


var contactgallery=new fadeSlideShow({
	wrapperid: "contactshow", //ID of blank DIV on page to house Slideshow
	dimensions: [460, 264], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: [
		//["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"],
		["/images/gallery/contact-5girlsoutside.jpg"],
		["/images/gallery/contact-2reading.jpg"],
		["/images/gallery/contact-3friends.jpg"],
		["/images/gallery/contact-boyworking.jpg"],
		["/images/gallery/contact-outsidebus.jpg"],
		["/images/gallery/contact-2playingchess.jpg"] //<--no trailing comma after very last image element!
	],
	displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 500, //transition duration (milliseconds)
	descreveal: "ondemand",
	togglerid: ""
})


/**********************************************
	End of Contact Slideshow
*/



/**********************************************
	Start of Admissions Slideshow
*/


var admissiongallery=new fadeSlideShow({
	wrapperid: "admissionshow", //ID of blank DIV on page to house Slideshow
	dimensions: [460, 264], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: [
		//["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"],
		["/images/gallery/admissions-painting.jpg"],
		["/images/gallery/admissions-lesson.jpg"],
		["/images/gallery/admissions-gardening.jpg"],
		["/images/gallery/admissions-teaching.jpg"],
		["/images/gallery/admissions-culture.jpg"],
		["/images/gallery/admissions-coaching.jpg"] //<--no trailing comma after very last image element!
	],
	displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 500, //transition duration (milliseconds)
	descreveal: "ondemand",
	togglerid: ""
})


/**********************************************
	End of Admissions Slideshow
*/



/**********************************************
	Start of Diary Dates Slideshow
*/


var diarygallery=new fadeSlideShow({
	wrapperid: "diaryshow", //ID of blank DIV on page to house Slideshow
	dimensions: [460, 264], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: [
		//["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"],
		["/images/gallery/diary-hockey.jpg"],
		["/images/gallery/diary-teaching.jpg"],
		["/images/gallery/diary-classroom.jpg"],
		["/images/gallery/diary-hockeyindoor.jpg"],
		["/images/gallery/diary-science.jpg"],
		["/images/gallery/diary-football.jpg"] //<--no trailing comma after very last image element!
	],
	displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 500, //transition duration (milliseconds)
	descreveal: "ondemand",
	togglerid: ""
})


/**********************************************
	End of Diary Dates Slideshow
*/
