$(function() {
	$('#tab1').carouFredSel({
		circular: true,
		items: 1,
		width: '100%',
		auto: false,
		pagination: {
			container: '#pager1',
			anchorBuilder: function( nr ) {
				return '<a href="#">' + $(this).find('span').text() + '</a>';
			}
		}
	});
	$('#tab2').carouFredSel({
		circular: true,
		items: 1,
		width: '100%',
		auto: false,
		pagination: {
			container: '#pager2',
			anchorBuilder: function( nr ) {
				return '<a href="#">' + $(this).find('span').text() + '</a>';
			}
		}
	});
	$('#tab3').carouFredSel({
		circular: true,
		items: 1,
		width: '100%',
		auto: false,
		pagination: {
			container: '#pager3',
			anchorBuilder: function( nr ) {
				return '<a href="#">' + $(this).find('span').text() + '</a>';
			}
		}
	});
	$('#tab4').carouFredSel({
		circular: true,
		items: 1,
		width: '100%',
		auto: false,
		pagination: {
			container: '#pager4',
			anchorBuilder: function( nr ) {
				return '<a href="#">' + $(this).find('span').text() + '</a>';
			}
		}
	});
	$('#tab5').carouFredSel({
		circular: true,
		items: 1,
		width: '100%',
		auto: false,
		pagination: {
			container: '#pager5',
			anchorBuilder: function( nr ) {
				return '<a href="#">' + $(this).find('span').text() + '</a>';
			}
		}
	});
	$('#tab6').carouFredSel({
		circular: true,
		items: 1,
		width: '100%',
		auto: false,
		pagination: {
			container: '#pager6',
			anchorBuilder: function( nr ) {
				return '<a href="#">' + $(this).find('span').text() + '</a>';
			}
		}
	});
});


$(window).scroll(function(){
	if ($(this).scrollTop() > 100) {$('.scrollup').fadeIn();} else {$('.scrollup').fadeOut();}
}); 

$(function(){
	$('.scrollup').click(function(){
		$("html, body").animate({ scrollTop: 0 }, 600);
		return false;
	});
});


$(window).load(function(){
/*
* customRadioCheck: jQuery plguin for checkbox and radio replacement
* Usage: $('input[type=checkbox], input[type=radio]').customRadioCheck();
* Author: Cedric Ruiz
* License: MIT
*/(function(){$.fn.customRadioCheck=function(){return this.each(function(){var e=$(this),t=$("<span/>");t.addClass("custom-"+(e.is(":checkbox")?"check":"radio")),e.is(":checked")&&t.addClass("checked"),t.insertAfter(e),e.parent("label").addClass("custom-label").attr("onclick",""),e.css({position:"absolute",left:"-9999px"}),e.on({change:function(){e.is(":radio")&&e.parent().siblings("label").find(".custom-radio").removeClass("checked"),t.toggleClass("checked",e.is(":checked"))},focus:function(){t.addClass("focus")},blur:function(){t.removeClass("focus")}})})}})();

$('input[type=checkbox], input[type=radio]').customRadioCheck();

});
