   man_fade = function()
   {
        if ($.support.opacity)
        {
            $("img.zhenya").fadeOut(5000).fadeIn(5000);
            setTimeout( "man_fade()", 12000 );
        }
   }

   show_main = function ()
   {
      $("#main_link").fadeIn(500, show_dumy);   	
   }

   show_dumy = function ()
   {
      $("#dumy_link").fadeIn(500, show_forum);   	
   }

   show_forum = function ()
   {
      $("#forum_link").fadeIn(500, show_gallery);   	
   }

   show_gallery = function ()
   {
      $("#gallery_link").fadeIn(500, show_contacts);   	
   }

   show_contacts = function ()
   {
      $("#contacts_link").fadeIn(500);   	
   }

   default_on_resize = function ()
   {
      var _w = $(window).width();
      var _h = $(window).height();

      _left = parseInt(_w * 0.05 ) + 'px';
      $("span.sun_container").css( { "left" : _left} );
      // height = текущая ширина / оригинальная ширина * оригинальная высота
      _height = parseInt( ( $("span.sun_container").width() / 262) * 208 ) + 'px';
      $("span.sun_container").css( { "height" : _height } );

      _left = parseInt(_w - _w * 0.11 - $(".moon_container").width() ) + 'px';
      $(".moon_container").css( { "left" : _left} );

      var footer_width = $("#footer_left").width() * 2;

      var a = footer_width/20;
      /*$("#dumy_link").width(a * 2);
      $("#forum_link").width(a * 5);
      $("#gallery_link").width(a * 3);
      $("#contacts_link").width(a * 3);*/

      if ( footer_width<440 )
      {
         //alert("triger!");
         $(".links").width( parseInt(footer_width - 40) + "px");
      }

/*      var _offset = 20;
      _delta = footer_width/4;
      _left = $("footer_left").css("left") + _offset;
      $("#dumy_link").css( {"left": _left } );*/

   }

   $(window).load( function() {
      on_resize();

      $("links").hide();
      $(".links").css( { "visibility" : "visible",
                         "display" : "none"   } );

      window.onresize = on_resize;

      $("div.loading_overlay").hide();
      $("#footer_left").animate({ backgroundPosition : "(0 0)" },
                                { duration : 2000 },
                                "linear");
      $("#footer_right").animate({ backgroundPosition : "(100% 0)" },
                                { duration : 2000 },
                                "linear");

      // задержка перед отображением меню
      try
      {
         _delay = menu_delay;
      }
      catch (E)
      {
            menu_delay = 800;
      }

      setTimeout( "show_main()", menu_delay );
   });

