/*
	Autor: Grzegorz Jaworek
	E-mail: grzegorz.jaworek@gmail.com
	www: http://gjaworek.pl 
	Tel.: +48 696 818 300
*/

jQuery(document).ready(function(){
	jQuery('.totop').click(function () {
		scroll(0,0);
		return false;
	});
    jQuery('#menu li a').not('#menu li.current_cat_parent a, #menu .current_cat a')
        .css( {backgroundPosition: "0px 0px"} )
        .mouseover(function(){
            $(this).stop().animate({backgroundPosition:"(0px -100px)"}, {duration:500})
        })
        .mouseout(function(){
            $(this).stop().animate({backgroundPosition:"(0px -100px)"}, {duration:200, complete:function(){
                $(this).css({backgroundPosition: "0px 0px"})
            }})
        });
	// jQuery('.sidebar .more').each(function () {
		// link = jQuery(this).parents('.inner').children().find('.ngg-widget').children('a');
		// jQuery(this).attr('href', link.attr('href').slice(0,link.attr('href').lastIndexOf('/')));
		// jQuery(this).attr('title', link.attr('title'));
		// link.attr('href', jQuery(this).attr('href'));
	// });
});

