$(document).ready(function(){



$(".fff").carouFredSel({
                    prev: '.prev',
                    next: '.next',
					items: 4,
					scroll: {items:1},
                    auto: false
});


function scrollToPosition(element) {
    if (element !== undefined) {
        $("#main").scrollTo(element, 800, {
            margin: true
        });
		
    }
}

$(function() {
	
	
	


    //Create an Array of posts
    var posts = $('.post');
    var position = 0; //Start Position
    var next = $('#next');
    var prev = $('#prev').hide();

    //Better performance to use Id selectors than class selectors
    next.click(function(evt) {
        //Scroll to next position
        prev.show();
	$(".sidebar-social").fadeOut()
	$(".entry-content:visible").slideToggle("slow");
    $(".sliderz").hide();
    $(".mainimage_large").fadeIn();
	$(".entry-title-head").css({"cursor" : "pointer"});
	$(".tags2").hide();
   $(".tags1").fadeIn();
 
    $(".post").css({"width" : "250px"})
    $(".entry-content").css({"width" : "230px"});
		
    });

    prev.click(function(evt) {
        //Scroll to prev position    
        next.show()
	$(".sidebar-social").fadeOut();
	$(".entry-content:visible").slideToggle("slow");
	$(".sliderz").hide();
    $(".mainimage_large").fadeIn();
	$(".entry-title-head").css({"cursor" : "pointer"});
	$(".tags2").hide();
   	$(".tags1").fadeIn();

    $(".post").css({"width" : "250px"})
    $(".entry-content").css({"width" : "230px"});
	
    });

});
});
