$(document).ready(function() {
	
	// Ini Slideshow
	$('#slideshow').cycle({ 
    fx:     'fade', 
    speed:   900, 
    timeout: 5000, 
    pause:   1 
	});
	
	// PDF Link Styling
	$("a[href$='.pdf']").addClass("pdf");
	
	
	$('a[rel*=external]').click(function(){
		window.open($(this).attr('href'));
		return false; 
	  });
  	
	$(" #list-accredit li").click(function(){
    	window.location=$(this).find("a").attr("href");
		return false;  		
	});	
	
	$("#toTop").scrollToTop({speed:1000,ease:"easeInBack",start:500});
	
	$(".main-nav ul li:last-child").css("padding-right", 0);
	$(".content .post:last-child").css("border-bottom", 0);
   
});
