$(document).ready(function() {
        $("#waliduj").validate({
            
            errorElement: "div"
        });

        $(".slider").jCarouselLite({
                        start: 0,
                        mouseWheel: true,
                        btnNext: ".next",
        		btnPrev: ".prev",
        		visible: 1,
        		scroll: 1,
                        auto: 6000,
                        speed: 1400
    		});

        $("#acco").accordion({
        active: 100,
        autoHeight: false,
	navigation: true,
        clearStyle: true,
        collapsible: true
        });

        $(".tiptip").tipTip({
        maxWidth: "250px"
        });

        $( ".anim" ).show( "blind", 1000 );
        $( ".anim2" ).show( "bounce", 1000 );
        $( ".anim3" ).show( "blind", 1200 );
        $( ".anim4" ).show( "fold", 1200 );
        $( ".anim5" ).effect( "slide", 1000 );
        $( ".anim6" ).show( "bounce", 600 );
        $( ".anim7" ).show( "bounce", 800 );
        $( ".anim8" ).show( "bounce", 900 );
        $( ".anim11" ).show( "slide", 1400 );
        $( ".anim12" ).show( "fold", 1500 );

        $(document).ready(function(){
			$('img.captify').captify({
				// all of these options are... optional
				// ---
				// speed of the mouseover effect
				speedOver: 'fast',
				// speed of the mouseout effect
				speedOut: 'normal',
				// how long to delay the hiding of the caption after mouseout (ms)
				hideDelay: 500,
				// 'fade', 'slide', 'always-on'
				animation: 'slide',
				// text/html to be placed at the beginning of every caption
				prefix: '',
				// opacity of the caption on mouse over
				opacity: '0.7',
				// the name of the CSS class to apply to the caption box
				className: 'caption-bottom',
				// position of the caption (top or bottom)
				position: 'bottom',
				// caption span % of the image
				spanWidth: '100%'
			});
		});
});

$(document).ready(function()
    {
    //Display Loading Image
    function Display_Load()
    {
    $("#loading").fadeIn(900,0);
    $("#loading").html("");
    }
    //Hide Loading Image
    function Hide_Load()
    {
    $("#loading").fadeOut('slow');
    };

    //Default Starting Page Results
    $("#pagination li:first")
    .css({'color' : '#FF0084'}).css({'border' : 'none'});
    Display_Load();
    $("#content").load("pagination_data.php?page=1", Hide_Load());

    //Pagination Click
    $("#pagination li").click(function(){
    Display_Load();
    //CSS Styles
    $("#pagination li")
    .css({'border' : 'solid #dddddd 1px'})
    .css({'color' : '#0063DC'});

    $(this)
    .css({'color' : '#FF0084'})
    .css({'border' : 'none'});

    //Loading Data
    var pageNum = this.id;
    $("#content").load("pagination_data.php?page=" + pageNum, Hide_Load());
    });

});


