﻿

			imgroot = "images/gallery/small/"
			//set image paths
			src = [imgroot +"1.jpg",
				 imgroot + "2.jpg",
				 imgroot + "3.jpg",
				 imgroot + "4.jpg",
				 imgroot + "5.jpg",
				 imgroot + "6.jpg",
				 imgroot + "7.jpg",
				 imgroot + "8.jpg",
				 imgroot + "9.jpg",
				 imgroot + "10.jpg",
				 imgroot + "11.jpg",
				 imgroot + "12.jpg",
				 imgroot + "13.jpg"]
			
			
			//set corresponding urls
			url = ["gallery.asp",
					"gallery.asp",
					"gallery.asp",
					"gallery.asp",
					"gallery.asp",
					"gallery.asp",
					"gallery.asp",
					"gallery.asp",
					"gallery.asp",
					"gallery.asp",
					"gallery.asp",
					"gallery.asp",
					"gallery.asp"]
			
			//set duration for each image
			duration = 13;
			
			//Please do not edit below
			ads=[]; ct=0;
			function switchAd() {
				var n=(ct+1)%src.length;
				if (ads[n] && (ads[n].complete || ads[n].complete==null)) {
					document["Ad_Image"].src = ads[ct=n].src;
				}
				ads[n=(ct+1)%src.length] = new Image;
				ads[n].src = src[n];
				setTimeout("switchAd()",duration*500);
			}
			function doLink(){
			location.href = url[ct];
			} onload = function(){
			if (document.images)
			switchAd();
			}
			//-->
