/*
	This Javascript is copyright of 
	You may not copy, re-distribute, re-sell or re-use this code without permission from .
*/

//side bar slideshow

slidecounter = new Class({
		initialize: function(){
			this.counter = 1;
		},

		inc: function(){
			this.counter = this.counter + 1;
			if (this.counter > 6){
				this.counter = 1;
				}

		}
	})

var whatnext = new slidecounter();

function flick(whatnext){

		whatnext.inc();
		nextpic = "url(images/slide" + whatnext.counter + ".png)";
		$('slideshow').setStyle('background', nextpic);
		$('slideshow').setStyle('background-repeat', 'no-repeat');

}