var lange = '';
  function doLoadRU() {
    doFullLoad('index.php?s_lng=ru&fullajax=1');
    lange = 'ru';
  }
  function doLoadEN() {
    doFullLoad('index.php?s_lng=en&fullajax=1');
    lange = 'en';
  }
  function doFullLoad(url) {
    document.getElementById('main_block_1').style.display = "none";
    var req = new Subsys_JsHttpRequest_Js();
    req.onreadystatechange = function() {
     if (req.readyState == 4) {
       if (req.responseJS) {
           document.getElementById('main_content').innerHTML = req.responseJS.content;
           var flash = document.getElementById('flashintro');
           flash.SetVariable('ajax', 'true');
        }
      }
     }
    req.caching = true;
    req.open('POST', url, true);
    req.send({});
  }
  function hideFlash() {
      document.getElementById('main_content').style.display = "";
      document.getElementById('flash_main').style.display = "none";
	showFlash();
  }
  function showFlash() {
   var so = new SWFObject("/theme/flash/firel.swf", "flashfl", "126", "285", "7", "#FFFFFF");
   so.addParam("wmode", "transparent");
   so.write("flash_left");
   var so = new SWFObject("/theme/flash/music_"+lange+".swf", "flashmusic", "74", "64", "7", "#FFFFFF");
   so.addParam("wmode", "transparent");
   so.write("flash");
   var so = new SWFObject("/theme/flash/firer.swf", "flashfr", "126", "285", "7", "#FFFFFF");
   so.addParam("wmode", "transparent");
   so.write("flash_right");
   }
