var mygallery = new fadeSlideShow({
	wrapperid: "fadeshow", //ID of blank DIV on page to house Slideshow
	dimensions: [443, 101], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: [
		["/images/moved.gif", "/contact-us.html", "", "", "We have moved! Click here for details."],
		["/images/contact.gif", "/contact-us.html", "", "", "Call us today on +44 (0) 1274 220 300 or email info@advanceddynamics.co.uk"]
	],
	displaymode: {type:'auto', pause:3000, cycles:0, wraparound:true},
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 1500, //transition duration (milliseconds)
	descreveal: "always",
	togglerid: "fadeshowtoggler",
	oninit: function(){
		var dm = this.setting.displaymode, ufObj = this, defaultMode = dm.type;
		this.nav = function(num){
			this.navigate(num);
			if(typeof dm.timer !== 'undefined'){
				clearTimeout(dm.timer);
				}
			dm.timer = setTimeout(function(){
				if(defaultMode === 'auto' && dm.type !== 'auto'){
					dm.type = 'auto';
					ufObj.showslide('next');
					}
				}, dm.pause);
		};
		this.stop = function(){
			this.navigate(this.setting.imgindex);
			defaultMode = 'manual';
		};
		this.resume = function(){
			if(dm.type!=='auto'){
				dm.type='auto';
				this.showslide('next');
			}
			defaultMode = 'auto';
		};
	}

})
