$(document).ready(function() {

//	$("#cycle").cycle({
//		fx: "fade"
//	});

//	$("figure.gallery-item a").attr("rel","gallery");
//	$("figure.gallery-item a[rel='gallery']").fancybox();

	$(document).ready(function() { 
		$('#main-navigation ul').superfish({
			hoverClass:  'over',							// the class applied to hovered list items
			delay:       10,								// one second delay on mouseout 
            animation:   {opacity:'show',height:'show'},	// fade-in and slide-down animation 
            speed:       'fast',							// faster animation speed 
            autoArrows:  true,								// disable generation of arrow mark-up 
            dropShadows: false								// disable drop shadows
		}); 
	}); 
	
	//Ajax LoadMorePosts
	$.ajaxSetup ({
		cache: false
	});	
	var ajax_load = "<img src='img/load.gif' alt=\'loading...' />";
	
	// load() functions
	$('.paginationz a').click(function() {
		var loadUrl = '/';
		var loadSelect = ' .article-list';
		var ajaxUrl = loadUrl + loadSelect;
		$('.article-list').html(ajax_load).load( ajaxUrl );
	});

});

function BlockMove(event) {
	// Tell Safari not to move the window.
	event.preventDefault() ;
}

// IE last-child fix
$(function(){
   $("#sidebar .container ul li:last-child").css("border-bottom","none")
})
