/* waypoints.min.js */
$(document).ready(function() {
	$('#wrapper').waypoint(function(event, direction) {
	}).find('#gHead').waypoint(function(event, direction) {
		$(this).parent().toggleClass('sticky', direction === "down");
		event.stopPropagation();
	});
	// Register each section as a waypoint.
	$('#content > div').waypoint({ offset: '50%' });
	// The same for all waypoints
	$('body').delegate('#content > div', 'waypoint.reached', function(event, direction) {
		var $active = $(this);
		if (direction === "up") {
			$active = $active.prev();
		}
		$('.link-active').removeClass('link-active');
		$('a[href=#'+$active.attr('id')+']').addClass('link-active');
	});
});


/* mobilyslider.js */
$(document).ready(function() {
	$('.slider').mobilyslider({
		content: '.sliderContent',
		children: 'p',
		transition: 'horizontal',
		animationSpeed: 500,
		autoplay: false,
		autoplaySpeed: 3000,
		pauseOnHover: false,
		bullets: true,
		arrows: true,
		arrowsHide: true,
		prev: 'prev',
		next: 'next',
		animationStart: function(){},
		animationComplete: function(){}
	});
});


/* jquery.page-scroller-308.js */
$(window).load(function() {
	$("#tab01").mCustomScrollbar("vertical",400,"easeOutCirc",1.05,"auto","yes");
	$("#tab02").mCustomScrollbar("vertical",400,"easeOutCirc",1.05,"auto","yes");
	$("#tab03").mCustomScrollbar("vertical",400,"easeOutCirc",1.05,"auto","yes");
	$("#staffContent").mCustomScrollbar("vertical",400,"easeOutCirc",1.05,"auto","yes");
	$('#tabs').tabs({ fx: { opacity:'toggle' } });
});


/* pagescroll.js */
$(document).ready(function(){
    $('a[href^=#]').click(function(){
        var target;
        target = $( $(this).attr('href') );
        if (target.length == 0) {
            return;
        }
        $('html, body').animate({scrollTop: target.offset().top});
        return false;
    });
});

















