jQuery(document).ready(function($) {

$("#mainmenu li")
	.mouseover(function(){
		$(this).stop().animate(
			{backgroundPosition: '0px 0px'}, 
			{duration:240})
		.addClass('hover')
		})
	.mouseout(function(){
		$(this).stop().animate(
			{backgroundPosition:'0 45px'}, 
			{duration:140})
		.removeClass('hover')
		})
	;

$("#mainmenu")
	.mouseover(function(){
		$(this).stop()
		.addClass('hover')
		})
	.mouseout(function(){
		$(this).stop()
		.removeClass('hover')
		})
	;

$("#mainmenu li a:not(.current_page_item a, .current_page_parent a)").hover(function(){
 $(this).stop().fadeTo(300, 1).removeAttr('title');
}, function () {
 $(this).stop().fadeTo(250, 0.7).addAttr('title')
});


$(".submenu li a, h1 a, h2 a:not(#promo h2 a), h3 a").hover(function(){
 $(this).stop().fadeTo(300, 1);
}, function () {
 $(this).stop().fadeTo(250, 0.7);
});


$("#mainmenu li.current_page_item a, #mainmenu li.current_page_item, #mainmenu li.hover a, #mainmenu li.current_page_parent, #mainmenu .current_page_parent a, #mainmenu li.current-cat a, .submenu .current_page_item a, .submenu .current_page_parent a, .submenu .current_page_parent li.current_page_item a").hover(function(){
 $(this).stop()
}, function () {
 $(this).stop()
});

$(".submenu .current_page_item li a, #mainmenu li.hover li a, #mainmenu .current_page_item li a, .submenu .current_page_parent li a, #mainmenu .current_page_parent li a:not(.current_page_parent .current_page_item a)").hover(function(){
 $(this).stop().fadeTo(300, 1);
}, function () {
 $(this).stop().fadeTo(250, 0.7);
});


$(".submenu .current_page_parent li.current_page_item a").hover(function(){
 $(this).stop()
}, function () {
 $(this).stop()
});


$(".fade img, #promo-nav img:not(.ui-state-active img)").hover(function(){
$(this).stop().fadeTo("fast", 1.0); // Set the opacity to 100% on hover
},function(){
$(this).stop().fadeTo("fast", 0.85); // Set the opacity back to 75% on mouseout
});


$(".shadowbox img").hover(function(){
$(this).stop().fadeTo("fast", 1.0); // Set the opacity to 100% on hover
},function(){
$(this).stop().fadeTo("fast", 0.75); // Set the opacity back to 75% on mouseout
});

$(".sociable img, #social a").hover(function(){
$(this).stop().fadeTo(300, 1.0); // Set the opacity to 100% on hover
},function(){
$(this).stop().fadeTo(250, 0.8); // Set the opacity back to 60% on mouseout
});

$(".widget ul li a, .ngg-navigation a").hover(function(){
 $(this).stop().animate( { color: '#F77400' }, 200)
;
}, function () {
    $(this).stop().animate( { color: '#ffffff' }, 150)
});

$(".post-content p a, .post-content li a").hover(function(){
 $(this).stop().animate( { color: '#ddd' }, 200)
;
}, function () {
    $(this).stop().animate( { color: '#F77400' }, 150)
});


$(".more, .post a, .more-news a, .follow-me a").hover(function(){
 $(this).stop().animate( { color: '#ffffff' }, 300)
;
}, function () {
    $(this).stop().animate( { color: '#F77400' }, 250)
});


$("#promo").tabs({fx: {opacity: "toggle"}}).tabs("rotate", 7000, false);

});

