//Darin's Really Very Simple Banner Changer, if you want a better one pay for it or write it your self :)


			//declaring a variable inorder to change the pictures
			var cimage=1;
			
			//the variable below controls the number of images to cycle through
			var num_of_images=9;
			
			//writing a function that preloads the images, that way there isn't a delay between swicthing them
			//if you add new images they mush be added to the sequence here
			function preload_banner()
				{
					banner1 = new Image();
					banner1.src="images/banner/1.jpg";
					
					banner2 = new Image();
					banner2.src="images/banner/2.jpg";
					
					banner3 = new Image();
					banner3.src="images/banner/3.jpg";
					
					banner4 = new Image();
					banner4.src="images/banner/4.jpg";
					
					banner5 = new Image();
					banner5.src="images/banner/5.jpg";
					
					banner6 = new Image();
					banner6.src="images/banner/6.jpg";
					
					banner7 = new Image();
					banner7.src="images/banner/7.jpg";
					
					banner8 = new Image();
					banner8.src="images/banner/8.jpg";
					
					banner9 = new Image();
					banner9.src="images/banner/9.jpg";
				}
			
			//writing a function that changes the banner's source image, 
			//and then starts over once all images are shown
			function banner_change()
				{
					if(cimage==num_of_images)
						{
							cimage=1;
							document.getElementById("banner").src="images/banner/" + cimage + ".jpg";
						}
					else
						{
							cimage++;
							document.getElementById("banner").src="images/banner/" + cimage + ".jpg";
						}
					time=setTimeout('banner_change()', 6000);
				}
			
			//writing a function that stops the banner changer
			function stop_banner()
				{
					clearTimeout(time);
				}
				
			//calling the functions, aka starting them, as soon as the page loads
			window.onload=function()
				{
					preload_banner();
					banner_change();
					new JsDatePick
					({
						useMode:2,
						target:"date_start1",
						//limitToToday:true 
					});
					new JsDatePick
					({
						useMode:2,
						target:"date_end1",
						//limitToToday:true //<-- Add this should you want to limit the calendar until today.
					});
					new JsDatePick
					({
						useMode:2,
						target:"until",
						//limitToToday:true //<-- Add this should you want to limit the calendar until today.
					});
				}
				
