(function($){
	/* Replacement calls. Please see documentation for more information. */

	if(typeof sIFR == "function"){

	// This is the preferred "named argument" syntax
		sIFR.replaceElement(named(
			{
				sSelector:"h1 .sifr", 
				sFlashSrc:"http://bredeschoolparkrijk.nl/wp-content/themes/parkrijk/static/js/sifr.swf", 
				sColor:"#ffffff", 
				sLinkColor:"#ffffff", 
				sWmode:"transparent", 
				sHoverColor:"#CCCCCC", 
				nPaddingTop:-3, 
				nPaddingBottom:-3, 
				sFlashVars:"textalign=left&offsetTop=0"}));

		sIFR.replaceElement(named(
			{
				sSelector:".post h2", 
				sFlashSrc:"http://bredeschoolparkrijk.nl/wp-content/themes/parkrijk/static/js/sifr.swf", 
				sColor:"#009444", 
				sLinkColor:"#009444", 
				sWmode:"transparent", 
				sHoverColor:"#009444", 
				nPaddingTop:-1, 
				nPaddingBottom:-1, 
				sFlashVars:"textalign=left&offsetTop=0&offsetLeft=1"}));
		
		sIFR.replaceElement(named(
			{
				sSelector:"#login h2", 
				sFlashSrc:"http://bredeschoolparkrijk.nl/wp-content/themes/parkrijk/static/js/sifr.swf", 
				sColor:"#009444", 
				sLinkColor:"#009444", 
				sWmode:"transparent", 
				sHoverColor:"#009444", 
				nPaddingTop:-1, 
				nPaddingBottom:-1, 
				sFlashVars:"textalign=left&offsetTop=0"}));
		
		sIFR.replaceElement(named(
			{
				sSelector:"#sidebar ul li h2", 
				sFlashSrc:"http://bredeschoolparkrijk.nl/wp-content/themes/parkrijk/static/js/sifr.swf", 
				sColor:"#F57717", 
				sLinkColor:"#F57717", 
				sWmode:"transparent", 
				sHoverColor:"#F57717", 
				nPaddingTop:-5, 
				nPaddingBottom:-5, 
				sFlashVars:"textalign=left&offsetTop=0"}));

	};

	function mycarousel_initCallback(carousel){
		// Disable autoscrolling if the user clicks the prev or next button.
		carousel.buttonNext.bind('click', function() {
			carousel.startAuto(0);
		});

		carousel.buttonPrev.bind('click', function() {
			carousel.startAuto(0);
		});

		// Pause autoscrolling if the user moves with the cursor over the clip.
		carousel.clip.hover(function() {
			carousel.stopAuto();
		}, function() {
			carousel.startAuto();
		});
	};

	
		

	
	$('ul.carousel', 'div.post').jcarousel({
        auto: 3,
        wrap: 'last',
		//vertical:true,
		scroll:1,
        initCallback: mycarousel_initCallback
    });

})(jQuery);
