

//*****************************************************************************
// Scroller constructor.
//*****************************************************************************
function newImage(arg) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
}

  


			function BigImage(sTitle, nSize, ImageName, w, h)
			{
				newWindow=window.open("","ImageName","toolbar=no,location=no,directories=no,status=no,menubar=no,fullscreen=no,scrollbars=no,resizable=no,width="+w+",height="+h+"");
				newContent="<html><head><script>self.moveTo((screen.width - "+w+")/ 2  , (screen.height - "+h+") / 2 );  </sc"+"ript><LINK REL=stylesheet HREF=kosmos.css TYPE=text/css><title>«ÎÎÎ ÈÑÊÎÆ»</title></head><body bgcolor=#e8eaf5 marginheight=0 marginwidth=0 topmargin=0 leftmargin=0><table width=100% height=100%><tr><td align=center valign=middle class=menu>"+sTitle+"<br><img src="+ImageName+" alt=\""+nSize+" \"><br><br><a class=menu href=javascript:window.close()>Çàêðûòü îêíî</a></td></tr></table></body></html>"
				newWindow.document.writeln(newContent);
				newWindow.document.close();
			}
var bFlag = true;
//*****************************************************************************
// Window.
//-----------------------------------------------------------------------------

function newImage(arg) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
}

function changeImages() {
		for (var i=0; i<changeImages.arguments.length; i+=2) { document[changeImages.arguments[i]]. src = changeImages.arguments[i+1]; }
}
	
        dom_01_over = newImage("images/dom_01-over.gif");
        komp_01_over = newImage("images/komp_01-over.gif");
        kon_01_over = newImage("images/kon_01-over.gif");
        nev_01_over = newImage("images/nev_01-over.gif");
	    vak_01_over = newImage("images/vak_01-over.gif");
        za_21_07_over = newImage("images/za_21_07-over.gif"); 
        za_21_04_over = newImage("images/za_21_04-over.gif"); 



     
	 



//-----------------------------------------------------------------------------
// Hide the pop-up menu that is currently displayed.
//-----------------------------------------------------------------------------

         var curPop = null;

         function clearCurrent() {
            // Hide the pop-up menu that is currently displayed.
            if (null != curPop)
               curPop.style.display = "";
            curPop = null;
         }

         function popup() {
            var el = event.srcElement;
            clearCurrent();
            // Display a new menu option.
            if (("P" == el.tagName) &&
                  ("menu" == el.parentElement.id)) {
               // Position and display the pop-up menu.
               var elpop = document.all[el.sourceIndex + 1];
               elpop.style.pixelLeft = document.all. menu.offsetLeft +
                  document.all. menu.offsetWidth - 7;
               elpop.style.pixelTop  = el.offsetTop +
                  document.all. menu.offsetTop;
               elpop.style.display = "block";
               curPop = elpop;
            }
            event.cancelBubble = true;
         }

         function highlight() {
            // Highlight the menu options.
            if (null != event.fromElement)
               if ((event.fromElement.tagName == "P") &&
                     (event.fromElement.parentElement.id == "menu"))
                  event.fromElement.className = "";
            if (null != event.toElement)
               if ((event.toElement.tagName == "P") &&
                     (event.toElement.parentElement.id == "menu"))
                  event.toElement.className = "over";
         }


//-----------------------------------------------------------------------------
// Position the passed-in relatively positioned
              
//-----------------------------------------------------------------------------
         function alignElements(el) {
            /* Position the passed-in relatively positioned
               element that is in the same coordinate system
               on top of the element whose ID is src. */
            el.style.pixelTop
               = document.all. src.offsetTop - el.offsetTop;
            el.style.pixelLeft
               = document.all. src.offsetLeft - el.offsetLeft;
            el.style.visibility = "visible";
         }

         function moveIn(el) {
            // If the element is not at its position in the flow,
            // move it closer. 
            var moved = false;
            if (el.style.pixelTop < 0) {
               el.style.pixelTop += 10;
               if (el.style.pixelTop > 0)
                  el.style.pixelTop = 0;
               moved = true;
            }
            else {
               if (el.style.pixelTop > 0)  {
                  el.style.pixelTop -= 10;
                  if (el.style.pixelTop < 0)
                     el.style.pixelTop = 0;
                  moved = true;
               }
            }
            if (el.style.pixelLeft < 0) {
               el.style.pixelLeft += 10;
               if (el.style.pixelLeft > 0)
                  el.style.pixelLeft = 0;
               moved = true;
            }
            else {
               if (el.style.pixelTop > 0) {
                  el.style.pixelLeft -= 10;
                  if (el.style.pixelLeft < 0)
                     el.style.pixelLeft = 0;
                  moved = true;
               }
            }
            /* The move variable reflects whether the element has
               moved. If the element has already reached its position
               in the flow, this function returns false. */
            return moved;
         }

         function flyInTogether() {
            var more = false;
            // Animate into place all elements with class name fly.
            for (var intLoop = 0; intLoop < document.all.length;
                  intLoop++) {
               if ("fly" == document.all[intLoop]. className)
                  more = moveIn(document.all[intLoop]) || more;
            }
            // Keep running until all elements reach their locations
            // in the flow.
            if (more) 
               setTimeout("flyInTogether()", 50); 
         }
  
         function setup() {
            // Align all elements that are going to be animated.
            for (var intLoop = 0; intLoop < document.all.length;
                  intLoop++) {
               if ("fly" == document.all[intLoop]. className)
                  alignElements(document.all[intLoop]);
            }
            flyInTogether();
         }

         window.onload = setup;


