      $(document).ready(function(){
    
        $("#ContestMoreLink").click(function () {
          $("#ContestText").slideToggle("slow", function () {($("#ContestText").css("display") == 'none' ? $("#ContestLessMoreImg").attr({ src: 'images/more.gif', alt: 'ОНДПНАМЕЕ' }) : $("#ContestLessMoreImg").attr({ src: '/images/less.gif', alt: 'ЯБЕПМСРЭ' }))});
        });
/*        
        $("#UploadFile").inputfile({button:"<img src='/images/file_input_dark.gif' id='FileInput'>",input:"<input type='text' name='temp' value='гюцпсгхрэ ахгмея-окюм'>"});
*/

        $("#UploadFile").filestyle({ 
          image: "/images/file_input_dark.gif",
          imageheight : 34,
          imagewidth : 110,
          width : 251
        });


        $("#UploadFile2").filestyle({ 
          image: "/images/file_input_dark.gif",
          imageheight : 34,
          imagewidth : 110,
          width : 251
        });

        $("#ShortSendButton").hover(function() {
          $(this).attr({ src: '/images/short_yellow_send_button.gif' });
        }, function() {
          $(this).attr({ src: '/images/short_red_send_button.gif' });
        });

        $("#LongSendButton").hover(function() {
          $(this).attr({ src: '/images/long_yellow_send_button.gif' });
        }, function() {
          $(this).attr({ src: '/images/long_red_send_button.gif' });
        });

        $("#FileInput").hover(function() {
          $(this).css({ "background": "url(/images/file_input_light.gif) 0 0 no-repeat" });
        }, function() {
          $(this).css({ "background": "url(/images/file_input_dark.gif) 0 0 no-repeat" });
        });

        $("#UploadFile2").hover(function() {
          $(this).css({ "background": "url(/images/file_input_light.gif) 0 0 no-repeat" });
        }, function() {
          $(this).css({ "background": "url(/images/file_input_dark.gif) 0 0 no-repeat" });
        });

        $("#BusinessStartButton").hover(function() {
          $(this).attr({ src: 'images/bidea_over.gif' });
        }, function() {
          $(this).attr({ src: 'images/bidea.gif' });
        });

        $("#YoungProjectButton").hover(function() {
          $(this).attr({ src: 'images/young_over.gif' });
        }, function() {
          $(this).attr({ src: 'images/young.gif' });
        });

        $('#BusinessName').example('т.х.н.');
        $('#BusinessRegAddress').example('юдпея пецхярпюжхх');
        $('#BusinessAddress').example('тюйрхвеяйне леярн фхрекэярбю');
        $('#BusinessPhone').example('йнмрюйрмши рекетнм');
        $('#BusinessEmail').example('юдпея щкейрпнммни онврш');

        $('#YoungName').example('тхплеммне мюхлемнбюмхе свюярмхйю/тхн свюярмхйю');
        $('#YoungRegAddress').example('юдпея пецхярпюжхх он леярс мюунфдемхъ/леярс фхрекэярбю');
        $('#YoungAddress').example('тюйрхвеяйне леярнмюунфдемхе/леярн опнфхбюмхъ');
        $('#YoungPhone').example('йнмрюйрмши рекетнм');
        $('#YoungEmail').example('юдпея щкейрпнммни онврш');

        $('#Name').example('хлъ');
        $('#Phone').example('йнмрюйрмши рекетнм');
        $('#Email').example('юдпея щкейрпнммни онврш');
        $('#formbg').example('рейяр бнопняю');


        $('#FileName').example('гюцпсгхрэ гюонкмеммсч гюъбйс');

      });

jQuery.preloadImages = function() {
  for(var i = 0; i<arguments.length; i++) {
    jQuery("<img>").attr("src", arguments[i]);
  }
}

$.preloadImages("/images/business_start_red.gif", "/images/business_start_yellow.gif", "/images/young_project_red.gif", "/images/young_project_yellow.gif", "/images/short_red_send_button.gif", "/images/short_yellow_send_button.gif", "/images/long_red_send_button.gif", "/images/long_yellow_send_button.gif", "/images/file_input_dark.gif", "/images/file_input_light.gif");
