// <![CDATA[
$(function() {

	// Slider script
	$('#slideshow').cycle({
        fx:     'fade',
        speed:  'slow',
        timeout: 15000,
        pager:  '#slider-navigation',
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#slider-navigation li:eq(' + (idx) + ') a';
        } 
    });
	
});

$(function() {

	$(window).scroll(function() {
		if($(this).scrollTop() != 0) {
			$("#toTop").fadeIn();	
		} else {
			$("#toTop").fadeOut();
		}
	});
	
	$("#toTop").click(function() {
		$("body,html").animate({scrollTop:0},800);
	});	
		
});
// ]]>
