// Initialise the Superfish Menu (http://users.tpg.com.au/j_birch/plugins/superfish/)
// Secondary Navigation
$(document).ready(function() { 
        $('#secondary-nav ul').superfish({ 
            delay: 100,
            animation: {opacity:'show'},
            speed: 'fast',
            autoArrows: false,
            dropShadows: false
        }); 
    });
    
$(document).ready(function() { 
        $('#primary-nav ul').superfish({ 
            delay: 200,
            animation: {opacity:'show', height:'show'},
            speed: 'fast',
            autoArrows: false,
            dropShadows: false
        }); 
    });

	
// post thumbs + avatar transitions
$(document).ready(function() { 
		$(".category-block .post-thumb img, #picture-posts a.thumb, .tab-thumb img, .tab-comments .avatar, div.slideshow img, #related-posts .post-thumb img").css({
				backgroundColor: "#f8f8f8",
				borderColor: "#e8e8e8"
			});
		$(".category-block .post-thumb img, #picture-posts a.thumb, .tab-thumb img, .tab-comments .avatar, div.slideshow img, #related-posts .post-thumb img").hover(function() {
			$(this).stop().animate({
				backgroundColor: "#FFF",
				borderTopColor: "#DDDDDD",
				borderRightColor: "#DDDDDD",
				borderBottomColor: "#DDDDDD",
				borderLeftColor: "#DDDDDD"
				}, 300);
			},function() {
			$(this).stop().animate({
				backgroundColor: "#f8f8f8",
				borderTopColor: "#e8e8e8",
				borderRightColor: "#e8e8e8",
				borderBottomColor: "#e8e8e8",
				borderLeftColor: "#e8e8e8"
				}, 500);
		});
	});
	
// opacity changes
$(document).ready(function() { 
		$("#latest-post .post-thumb img, .attachment-thumbnail-wide").css({
				opacity: 1
			});
		$("#latest-post .post-thumb img, .attachment-thumbnail-wide").hover(function() {
			$(this).stop().animate({
				opacity: 0.8
				}, 300);
			},function() {
			$(this).stop().animate({
				opacity: 1
				}, 500);
		});
	});

