/* Author: 

*/
$(document).ready(function() {

	/*	initiate equal heights for footer boxes */

	jQuery(".equal").equalHeights();



	/*	CarouFredSel: an infinite, circular jQuery carousel.
		Configuration created by the "Configuration Robot"
		at caroufredsel.frebsite.nl
	*/
	jQuery("#xxxxxxxx").carouFredSel({
		circular: false,
		infinite: false,
		width: 940,
		items: { visible: 1, width: "variable" },
		scroll: { items: 1, easing: "linear" },
		auto: false,
		prev: { button: "#links-clip a.scroll-left", key: "left" },
		next: { button: "#links-clip a.scroll-right", key: "right" }
	});


	var scroll_prev = false,
		scroll_next = false;

	jQuery("#links-small").carouFredSel({
		circular: false,
		infinite: false,
		width: 940,
		auto: false,
		scroll: { items: 1, duration: .2, easing: "linear" },
		prev: { key: "left",
			onAfter: function() {
				if (scroll_prev) setTimeout(function() { jQuery("#links-small").trigger("prev"); }, 10);
			}
		},
		next: { key: "right",
			onAfter: function() {
				if (scroll_next) setTimeout(function() { jQuery("#links-small").trigger("next"); }, 10);
			}
		}
	});

	jQuery("#left").hover(
		function() { 
			scroll_prev = true;
			jQuery("#links-small").trigger("prev"); 
		},
		function() { 
			scroll_prev = false;
		}
	).click(function() {
		return false;
	});

	jQuery("#right").hover(
		function() { 
			scroll_next = true;
			jQuery("#links-small").trigger("next"); 
		},
		function() {
			scroll_next = false;
		}
	).click(function() {
		return false;
	});

});



