// 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', height:'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
        }); 
    });

// 125 Ads + Flickr Widget + 120x240 (Sidebar)
$(document).ready(function() { 
		$("#sidebar .ads-125 img, #sidebar .flickr_badge_image img, .ads-120x240 img").css({
				backgroundColor: "#000"
			});
		$("#sidebar .ads-125 img, #sidebar .flickr_badge_image img, .ads-120x240 img").hover(function() {
			$(this).stop().animate({
				backgroundColor: "#f2710d"
				}, 300);
			},function() {
			$(this).stop().animate({
				backgroundColor: "#000"
				}, 500);
		});
	});

// Flickr Widget + 125 Ads (Footer)
$(document).ready(function() { 
		$("#footer .flickr_badge_image img, #footer .ads-125 img").css({
				backgroundColor: "#000"
			});
		$("#footer .flickr_badge_image img, #footer .ads-125 img").hover(function() {
			$(this).stop().animate({
				backgroundColor: "#f2710d"
				}, 300);
			},function() {
			$(this).stop().animate({
				backgroundColor: "#000"
				}, 500);
		});
	});

// Tabbed Widget + Post Thumbs + Related Posts
$(document).ready(function() { 
		$(".tz_tab_widget .tab-thumb img, .tab-comments .avatar, .post .post-thumb img, #related-posts .post-thumb img").css({
				backgroundColor: "#000"
			});
		$(".tz_tab_widget .tab-thumb img, .tab-comments .avatar, .post .post-thumb img, #related-posts .post-thumb img").hover(function() {
			$(this).stop().animate({
				backgroundColor: "#f2710d"
				}, 500);
			},function() {
			$(this).stop().animate({
				backgroundColor: "#000"
				}, 500);
		});
	});
	

// Tabbed Widget Tags
$(document).ready(function() { 
		$(".tz_tab_widget .tab-tags a").css({
				backgroundColor: "#ffffff",
				color: "#666"
			});
		$(".tz_tab_widget .tab-tags a").hover(function() {
			$(this).stop().animate({
				backgroundColor: "#f2710d",
				color: "#ffffff"
				}, 300);
			},function() {
			$(this).stop().animate({
				backgroundColor: "#ffffff",
				color: "#666"
				}, 500);
		});
	});
	
	
// Social Sharing
$(document).ready(function() { 
		$("#sharing li").css({
				opacity: 0.6
			});
		$("#sharing li").hover(function() {
			$(this).stop().animate({
				opacity: 1
				}, 100);
			},function() {
			$(this).stop().animate({
				opacity: 0.6
				}, 500);
		});
	});
	

	
// Post images
$(document).ready(function() {
		$("img.alignleft, img.alignright, img.aligncenter, .entry-content .attachment-thumbnail, .attachment-thumbnail-index, .entry-content object").hover(function() {
			$(this).stop().animate({
				backgroundColor: "#f2710d"
				}, 1500);
			},function() {
			$(this).stop().animate({
				backgroundColor: "#fff"
				}, 1500);
		});
	});
	
