	var br_image = new Array();
	var br_link = new Array();
	var br_target=[];
	var crossFadeDuration=1000; 
	br_image[1] = "images/splash/splash_main_01.jpg";
	br_link[1] = "javascript:;";
	br_target[1]='';
	br_image[2] = "images/splash/splash_main_02.jpg";
	br_link[2] = "javascript:;";
	br_target[2]='';
	br_image[3] = "images/splash/splash_main_03.jpg";
	br_link[3] = "javascript:;";
	br_target[3]='';
	br_image[4] = "images/splash/splash_main_04.jpg";
	br_link[4] = "javascript:;";
	br_target[4]='';
	br_image[5] = "images/splash/splash_main_05.jpg";
	br_link[5] = "javascript:;";
	br_target[5]='';
	
function start_timer() {
	timecounter = setTimeout("switch_banner()", 6000);
	}
function switch_banner() {
	if (br_loaded != 5)
	{br_loaded++;}
	else 
	{br_loaded = 1}
	banner_rotation();
	start_timer();}
	
	
 if ((typeof br_image == "object") && (typeof br_link == "object")) {
                 // Determines which banner is shown; default is the first one
                 var br_loaded = 1;
                 var timecounter;
 
                 // Preload images
                 jQuery.preloadImages = function() {
                     for (var i = 0; i < arguments.length; i++) {
                         jQuery("<img>").attr("src", arguments[i]);
                     }
                 }
                 $.preloadImages(br_image[1], br_image[2], br_image[3], br_image[4], br_image[5]);
 
                 $(document).ready(function() {
                     // Exclude Firefox versions < 3
                     if ($.browser.mozilla && jQuery.browser.version.substr(0, 3) < 1.9) {
                         return false;
                     }
 
                     // Show the buttons if Javascript is enabled
                     $(".brotation_nav").css("display", "block");
                     $(".brotation_button").addClass("opacity_inactive");
 
                     // Hovering effect
                     $(".brotation_button").hover(
				function() { $(this).addClass("opacity_hover"); },
				function() { $(this).removeClass("opacity_hover"); }
			);
 
                     // Display first banner
                     $(".brotation_image a").attr("href", function() { return br_link[br_loaded]; });
                     if (br_link[br_loaded].length < 5) {
                         $(".brotation_image a").removeAttr("href");
                     }
                     $(".brotation_image a").attr("target", function() { return br_target[br_loaded]; });
                     if (br_target[br_loaded].length < 5) {
                         $(".brotation_image a").removeAttr("target");
                     }
                     $(".brotation_image img").attr("src", function() { return br_image[br_loaded]; });
                     $("#brotation_but" + br_loaded).addClass("opacity_active");
 
                     // Determine auto-timer effect
                     start_timer();
                     $(".brotation_container").hover(
				function() { return stop_timer(); },
				function() { return start_timer(); }
			);
                 });
             }
	
	function banner_rotation() {
	    // Setting button state
	    $(".brotation_nav div").removeClass("opacity_active");
	    $(".brotation_nav").find("#brotation_but" + br_loaded).addClass("opacity_active");
 
	    // Fade effect
	    $(".brotation_overlay a").attr("href", function() { return br_link[br_loaded]; });
	    if (br_link[br_loaded].length < 5) {
	        $(".brotation_image a").removeAttr("href");
	    }
	    $(".brotation_overlay a").attr("target", function() { return br_target[br_loaded]; });
	    if (br_target[br_loaded].length < 1) {
	        $(".brotation_image a").removeAttr("target");
	    }
	    $(".brotation_overlay img").attr("src", function() { return br_image[br_loaded]; });
		$(".brotation_overlay").fadeIn(
			crossFadeDuration,
			function () {
		// Reset the overlay div
		$(".brotation_image a").attr("href", function() { return br_link[br_loaded]; });
		if (br_link[br_loaded].length < 5) {
		    $(".brotation_image a").removeAttr("href");
		}
		$(".brotation_image a").attr("target", function() { return br_target[br_loaded]; });
		if (br_target[br_loaded].length < 5) {
		    $(".brotation_image a").removeAttr("target");
		}
		$(".brotation_image img").attr("src", function() { return br_image[br_loaded]; });
				$(".brotation_overlay").css("display", "none");
			}
		);
	}
	function button_click(number) {
		br_loaded = number;
		banner_rotation();
	}
	function stop_timer() {
		clearTimeout(timecounter);
	}
