﻿$(document).ready(function() {
    lastBlock = $("#a1");
    maxWidth = 445;
    minWidth = 30;

    $("ul li span").click(
      function() {
          $(lastBlock).animate({ width: minWidth + "px" }, { queue: false, duration: 700 });
          $(this).animate({ width: maxWidth + "px" }, { queue: false, duration: 700 });
          lastBlock = this;
      }
    );
});


function sh(qid) {
    var obj = document.getElementById(qid);
    if ($(obj).is(":hidden")) { $(obj).slideDown("slow"); }
    else { $(obj).slideUp("slow"); }
}

function fifo(fout, fin) {
    var fout2 = document.getElementById(fout);
    var fin2 = document.getElementById(fin);
    
    if (!$(fout2).is(":hidden")) {
        $(fout2).fadeOut("fast", function() {
            $(fin2).fadeIn("slow");
        });
    }
    else {
        $(fin2).fadeOut("fast", function() {
            $(fout2).fadeIn("slow");
        }
    );
    }
    
}


function sendSI (login)
{
    var eml = login; //+ “@site-industry.ru”;
    eml += "@site-industry.ru";
    document.write (eml);
}