/* Home Footer Slider / Clients */

$(document).ready(function() {
	$('#sliding').coinslider({ hoverPause: false });
});
(function($) {
	$(function() { //on DOM ready
		$("#scroller").simplyScroll({
			autoMode: 'loop'
		});
	});
})(jQuery);

/* Home Scene Slider / PNG-24 */

(function ($) { var timeoutMiliSecond = 6000; var t; $.fn.homesliderSlider = function (options) { var opts = $.extend({}, $.fn.homesliderSlider.defaults, options); return this.each(function () { var $homesliderContainer = $(this), o = $.meta ? $.extend({}, opts, $homesliderContainer.data()) : opts; var $slider = $(o.slider); $slidePager = $(o.slidePager), $pager = $slidePager.children(), $autoslider = $(o.autoslider), currentSlideIndex = 0, $loading = $('.loading', $homesliderContainer); var loaded = 0, $boxs = $slider.find('.box'), totalImages = $boxs.length; $boxs.each(function () { $('').load(function () { ++loaded; if (loaded == 3) { $loading.fadeOut(1000, function () { slide(0, o.slider, o.slidePager); $slidePager.show(); }); } }).attr('src', $(this).text()).prependTo($(this)); $(this).find('span').remove(); }); $pager.each(function (index) { var $this = $(this); $this.bind('click', function () { clearTimeout(t); currentSlideIndex = index; slide(index, o.slider, o.slidePager, o.autoslider); }); }); if (o.autoslider) { var nextSlideIndex = currentSlideIndex + 1; if (nextSlideIndex == $pager.length) { nextSlideIndex == 0; }; t = setTimeout(function () { slide(nextSlideIndex, o.slider, o.slidePager, o.autoslider); }, timeoutMiliSecond); } }); }; var slide = function (index, slider, slidePager, autoslider) { var isnowSlide = $(slider + ' .isnow'); $(isnowSlide).find('.box2').stop().animate( { left: '2100px' }, { duration: 500, easing:  'easeInOutQuad', complete: function () { $(this).removeAttr('style'); } } ); $(isnowSlide).find('.box1').stop().animate( { left: '2100px' }, { duration: 1000, easing: 'easeInOutQuad', complete: function () { $(this).removeAttr('style'); } } ); $(isnowSlide).find('.box').stop().animate( { left: '2100px' }, { duration: 1500, easing: 'easeInOutQuad', complete: function () { $(this).removeAttr('style'); } } ); $(isnowSlide).removeClass('isnow'); var totalSlide = $(slidePager + ' li').length; $(slidePager + ' a').removeClass('paginationon'); $(slidePager + ' li:eq(' + index + ') a').addClass('paginationon'); var forsliding = $(slider + ' li:eq(' + index + ')'); $(forsliding).find('.box2').stop().animate( { left: '1050px' }, { duration: 1500, easing: 'easeInOutQuad', complete: function () { } } ); $(forsliding).find('.box1').stop().animate(
{ left: '1050px' }, { duration: 1750, easing: 'easeInOutQuad', complete: function () { } } ); $(forsliding).find('.box').stop().animate( { left: '1050px' }, { duration: 2000, easing: 'easeInOutQuad', complete: function () { } } ); $(forsliding).addClass('isnow'); if (autoslider) { var nextSlideIndex = index + 1; if (nextSlideIndex == totalSlide) { nextSlideIndex = 0; }; t = setTimeout(function () { slide(nextSlideIndex, slider, slidePager, autoslider); }, timeoutMiliSecond); } }; $.fn.homesliderSlider.defaults = { slider: '#homeslider', slidePager: '#pagination', autoslider: true }; })(jQuery); $(document).ready(function () { $('#sliderframe').homesliderSlider(); });
