jQuery(document).ready(function(){
	jQuery('.totop').click(function () {
		scroll(0,0);
		return false;
	});
	jQuery('#top h1').flash({
		src: theme+'/noc_robotow.swf',
		width: 950,
		height: 260,
		expressInstall: true,
		wmode: 'transparent'
	});
	// jQuery('.content').each(function () {
		// jQuery(this).height()>=jQuery(this).next('.sidebar').height() ? jQuery(this).next('.sidebar').height(jQuery(this).height()) : jQuery(this).height(jQuery(this).next('.sidebar').height());
	// });
	jQuery(".simpleimage img").animate({opacity: .3});
	jQuery('.simpleimage a img').mouseover(function () { jQuery(this).animate({ opacity: 1 }, 200); });
	jQuery('.simpleimage a img').mouseout(function () { jQuery(this).animate({ opacity: .3 }, 200); });
    jQuery('#menu li a').not('#menu li.current_page_item a')
        .css( {backgroundPosition: "0px 0px"} )
        .mouseover(function(){
            jQuery(this).stop().animate({backgroundPosition:"(-195px 0px)"}, {duration:500})
        })
        .mouseout(function(){
            jQuery(this).stop().animate({backgroundPosition:"(-195px 0px)"}, {duration:200, complete:function(){
                jQuery(this).css({backgroundPosition: "0px 0px"})
            }})
        });
	jQuery(".ngg-gallery-thumbnail a").lightBox();
	jQuery('strong.hideshow').each(function () {
		jQuery(this).css('cursor','pointer');
		jQuery(this).parents('p').next('div.hideshow').hide();
	});
	jQuery('strong.hideshow').click(function () {
		jQuery(this).parents('p').next('div.hideshow').animate({ height: 'toggle' }, 300);
	});
});
