			var i=Math.floor(Math.random()*10+1);
			function sendRegistration()
			{
				document.registration.submit();
			}
			function changeBG(i) {
				var bgi="url(images/design/header-"+i+".jpg)";
				$('#header').css("background-image",bgi);
				i++;
				if (i>10) { i=1; }
				setTimeout("changeBG("+i+")", 30000);
			}
			/*
				function nextBG(i) {
					var bgi="url(images/design/header-"+i+".jpg)";
					$('#header').css("background-image",bgi);
					i++;
					if (i>16) { i=1; }
				}
			*/
			$(document).ready(function() {
				changeBG(i);
	        	$('#imgresize').mouseenter(function() { $('#imgresize').css("background-image","url(images/design/bg_hover_red.png)"); });
	        	$('#imgresize').mouseleave(function() { $('#imgresize').css("background-image","url(images/design/bg_transp.png)"); });
				
				/*
					$('#imgnext').mouseenter(function() { $('#imgnext').css("background-image","url(images/design/bg_hover_red.png)"); });
					$('#imgnext').mouseleave(function() { $('#imgnext').css("background-image","url(images/design/bg_transp.png)"); });
				*/
				
	        	$('#imgresize').click(function() {
					if ($('#header').height()==180)
					{
						$('#header').animate({height: '500'}, 500, function() {});
						$('#logo').animate({height: '90', width: '80'}, 500, function() {});
						$("#imgresize").attr("src","images/design/img_smaller.png");
						$('#imgresize').animate({"margin-top": '468'}, 500, function() {});
						// $('#imgnext').animate({"margin-top": '468'}, 500, function() {});
					} else {
						$('#header').animate({height: '180'}, 500, function() {});
						$('#logo').animate({height: '180', width: '160'}, 500, function() {});
						$("#imgresize").attr("src","images/design/img_bigger.png");
						$('#imgresize').animate({"margin-top": '148'}, 500, function() {});
						// $('#imgnext').animate({"margin-top": '148'}, 500, function() {});
					}
				});
	        	$('#imgnext').click(function() {
					i++;
					if (i>10) { i=1; }					
					nextBG(i)
				});
			});
