/* 
!!!
*/

// Dropdown:
$(document).ready(function(){
	$('.input2').customStyle();
});


// Image slider:
$(function() {
	$('#slides').cycle({
        fx:     'scrollRight',
   		easing: 'easeInOutBack',
        speed:   800,
        timeout: 20000,
		pause:   1,
        pager:  '#slides-nav',
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#slides-nav li:eq(' + (idx) + ') a';
        }
	});
});



// Slideshows:
$(document).ready(function() {
    $('#templates').cycle({
	fx: 'fade', 
    speed:    1000, 
    timeout:  5000,
	pause:    1,
    next:     '#next', 
    prev:     '#prev'
	});	
});


// Slide:
			$(function() {

                $('a#s1-btn').bind('click',function(event){
                    var $anchor = $(this);
                    $('html, body').stop().animate({
                        scrollTop: $($anchor.attr('href')).offset().top
                    }, 750,'easeInOutExpo');
                    event.preventDefault();
                });
            });
