//------------------------------------  
  function expandit(name){
    block = document.getElementById("c_" + name).style;
    button = document.getElementById("b_" + name);
    
    if (block.display == "block") {
        block.display = "none";
        button.src = "http://kvazarspb.ru/inf/template/kvazar/img/plus.gif";
        button.title = "Развернуть";
        button.alt = "Развернуть";
    }
    else {
        block.display = "block";
        button.src = "http://kvazarspb.ru/inf/template/kvazar/img/minus.gif";
        button.title = "Свернуть";
        button.alt = "Свернуть";
    }
  }
  
//------------------------------------
  function FP_preloadImgs() {
	   var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
	   for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
  }
  
//-------------------------------------
	function winTop(){
	  var scrOfY = 0;
    if( typeof( window.pageYOffset ) == 'number' ) {
      //Netscape compliant
      scrOfY = window.pageYOffset;
    } else if( document.body && document.body.scrollTop ) {
      //DOM compliant
      scrOfY = document.body.scrollTop;
    } else if( document.documentElement && document.documentElement.scrollTop ) {
      //IE6 standards compliant mode
      scrOfY = document.documentElement.scrollTop;
    }
	  return scrOfY + "px";
	}

//-------------------------------------
	function winHeight(){
  	var myHeight = 0;
    if( typeof( window.innerHeight ) == 'number' ) {
      //Non-IE
      myHeight = window.innerHeight;
    } else if( document.documentElement && document.documentElement.clientHeight ) {
      //IE 6+ in 'standards compliant mode'
      myHeight = document.documentElement.clientHeight;
    } else if( document.body && document.body.clientHeight ) {
      //IE 4 compatible
      myHeight = document.body.clientHeight;
    }
	  return myHeight + "px";
	}
	
//-------------------------------------
	function winWidth(){
  	var myWidth = 0;
    if( typeof( window.innerWidth ) == 'number' ) {
      //Non-IE
      myWidth = window.innerWidth;
    } else if( document.documentElement && document.documentElement.clientWidth ) {
      //IE 6+ in 'standards compliant mode'
      myWidth = document.documentElement.clientWidth;
    } else if( document.body && document.body.clientWidth ) {
      //IE 4 compatible
      myWidth = document.body.clientWidth;
    }
	  return myWidth + "px";
	}
  
//-----------------------------------
	function hideInfo() {
		document.getElementById('span_info').style.display = "none";
	}
	
//-----------------------------------
	function showInfo(info) {
		document.getElementById('span_info').style.display = "";
		document.getElementById('span_info').innerHTML = '<div class="alpha" style="min-height: ' + document.body.clientHeight + 'px;">&nbsp;</div><table class="alpha" style="top: ' + winTop() + '; height: ' + winHeight() + ';"><tr><td><table><tr><td class="border"><div class="info">' + info + '<br /><input class="button" type="button" value="OK" onClick="hideInfo()"></div></td></tr></table></td></tr></table>';
		setTimeout('hideInfo()', 100000);
	}
  
//-----------------------------------
	function loadImg(big_img,img_title) {
		document.big_img = new Image;
	  document.big_img.src = big_img;
		document.getElementById('big_img').src = big_img;
		setTitle(img_title);
	}

//-----------------------------------
	function setTitle(img_title) {
		document.getElementById('img_title').innerHTML = img_title;
	}